close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

multi level users admin, staff, customer

Thread began 10/31/2012 1:25 pm by Christopher West | Last modified 11/02/2012 4:10 pm by Christopher West | 3310 views | 5 replies

Christopher WestCommunity Expert

Hmm thats what I thought...Well I did that for the left column plugin as that column displays the menu links...current the code has a recordset to display all menu links.

then i repeated the recordset twice (for customer and staff) and then created a two extra headings on the left hand column. but for some reason the content wasnt repeating properly. here is the page. as standard without adding any code.


$colname_rsContent = "1";
if (isset($_GET['Content'])) {
$colname_rsContent = $_GET['Content'];
}
mysql_select_db($database_rainbowdb, $rainbowdb);
$query_rsSubMenu = sprintf("SELECT content.ContentMenuName, C2.ContentMenuName AS ParentName FROM content INNER JOIN linkingmenu ON content.ContentID = linkingmenu.LinkingMenuChild LEFT OUTER JOIN content as C2 ON linkingmenu.LinkingMenuParent = C2.ContentID WHERE linkingmenu.LinkingMenuParent = %s AND content.ContentMenuPlacement = 2 AND content.ContentMenuShow = 1 AND content.ContentMenuAccess = 0", GetSQLValueString($colname_rsContent, "int"));
$rsSubMenu = mysql_query($query_rsSubMenu, $rainbowdb) or die(mysql_error());
$row_rsSubMenu = mysql_fetch_assoc($rsSubMenu);
$totalRows_rsSubMenu = mysql_num_rows($rsSubMenu);
?>

<?php

if (isset($_GET['SubContent'])) {
$_GET['Content'] = $_GET['SubContent'];
}
?>
<?php

$colname_rsContent = "1";
if (isset($_GET['Content'])) {
$colname_rsContent = $_GET['Content'];
}

mysql_select_db($database_rainbowdb, $rainbowdb);
$query_rsContent = sprintf("SELECT * FROM content WHERE ContentID = %s AND ContentViewableRight = 1 AND ContentMenuShow = 1", GetSQLValueString($colname_rsContent, "int"));
$rsContent = mysql_query($query_rsContent, $rainbowdb) or die(mysql_error());
$row_rsContent = mysql_fetch_assoc($rsContent);
$totalRows_rsContent = mysql_num_rows($rsContent);
?>

Attached Files
plugins.zip

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...