close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PS4.5 for wholesalers

Thread began 4/25/2012 2:01 am by info266692 | Last modified 5/01/2012 9:28 am by Jason Byrnes | 819 views | 5 replies |

info266692

PS4.5 for wholesalers

Hi there,

I have nearly completed the setting up of a PS4.5 for wholesalers by restricting the view of the products only to customer that have registered and the login permission has been verified.

This worked fine with the horizontal navigation bar just below the header throughout the site; however the dynamic generated navigation bar on the left hand side of the pages behave in a different way and all my attempts to hide the products from public view have failed miserably.

It is my understanding that the left hand vertical menu operates through a different set of pages and codes; can you please help me in preventing the public viewing the products through the use of this menu?

Regards
Alfredo

Sign in to reply to this post

Jason ByrnesWebAssist

The side menu is generated by the file in the webassist/plugins/side_menu folder. you will need to edit those file to hide the side menu from the public.

Sign in to reply to this post

info266692

PS4.5 for wholesalers

Thanks Jason for your prompt reply,

Before my first post I did already located the side menu in the webassist/plugins/side_menu folder and from there I’ve made several attempts to modify the various sidemenu.php files (4 of them) or the one connected to them.

The closest I’ve got to have the side menu displaying the login page was by modifying the page webassist/plugins/catolog/themed/results.php by inserting the code: <?php if (!WA_Auth_RulePasses("Logged in to users")){ WA_Auth_RestrictAccess("users_login.php"); }?> and adding “../” to the code <?php require_once('../../../../Connections/PowerStoreConnection.php'); ?>. However with this change the entire page will have nested in the content area a copy of the header, top menu, side menu, login and footer.

I think I’ve got a bit closer to the right solution but not quite there yet; can you enlighten me on how to restrict the content only to the login section?

Maybe I should duplicate and modify the user_login.php page which contains references to the general page template and maybe I should create a new rule to manage the pages access but that is not possible either considering that the file webassist/plugins/catolog/themed/results.php is buried too dip into the site and the Security Assist Access Pages/Rules Manager can’t reach the sub-sub-sub folders.

Or maybe there is a far more simple solution by tweaking few codes here and there. Can you please offer some assistance?

Cheers
Alfredo

Sign in to reply to this post

Jason ByrnesWebAssist

i think the easiest way to do this would be to edit the template for your theme.

in the webassist/themes folder, open the subfolder for your theme, then go to the Templates folder and open the page.dwt.php template for your theme.

Find the following line of code:

php:
<?php

echo($WASideMenu->Body);
?>




and change it to:

php:
<?php

if (WA_Auth_RulePasses("Logged in to users")){
    echo(
$WASideMenu->Body);
}
?>
Sign in to reply to this post

info266692

PS4.5 for wholesalers

Dear Jason,

I did try your suggestion and the entire side menu disappeared completely from the site.

Maybe the code you suggested still needs somthing else into it to make it works; do you have any othe suggestions?

Again thanks for your help, I really appreciate WA committment for the on ongoing support.

Cheers
Alfredo

Sign in to reply to this post

Jason ByrnesWebAssist

I thought removing the side menu for not logged in users was the idea?


The reality is: this is not a supported modification. It sounds like this is something beyond what I can help you with here in the forums. For this type of custom modification, I would suggest signing up for a premiere support appointment where we can work with you one on one.

Sign in to reply to this post

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...