Need help redirecting tabs to join.php for non-members

Hi,

I'd like to know how to redirect some of the tabs in the top navigation member to join.php for non-members.  There are some areas on my site which I only want members to access and if the user is a non-member I want to prompt them to join by sending them to the join page versus where they would end up (forums home page, videos home page, etc.) if they were a member.  Also I would like it if those tabs would not display the drop down menu when hovered over for non-members.  Can this be done?  And if so, how?  Can you include the code in your response?

Quote · 24 Mar 2011

search the forums

 

http://www.boonex.com/unity/forums/topic/members-non-members.htm

Quote · 24 Mar 2011

I looked at the suggested topic.  It doesn't do exactly what I'd like to have done here.  Does anyone else have a solution.  Can you provide me with the code to implement these modifications?   It would be greatly appreciated.

Quote · 24 Mar 2011
You can simply uncheck guest in each block in the navigation section of admin which will do what you want! There are several redirect mods! I have people redirected to joining after they look at 3 properties.......... It begs the question if you uncheck all the cool aspects of the site what is your allure to have them join? I would allow them to do some things then redirect......
Csampson
Quote · 25 Mar 2011

Thanks csampson1 for your reply.  I will try what you have suggested.  I just want some of the tabs to redirect not all.  I'll be back here again if this does not work out.  And yes it is true that if I take away all the COOL aspects of my site their won't be much of an allure to join.  Thanks for your thoughts.

Quote · 25 Mar 2011

Unchecking guest in each block of the navigation menu will hide the tab from the user not redirect them to the join page.  I need a modification that will redirect the user to the join page for selected tabs.  Is there a Mod that will do this or is this something that I can program myself?  Thanks.

Quote · 25 Mar 2011

Try this, For example, to redirect 'people' tab to join page;

Open browse.php

 Find;

$_ni = $_page['name_index'];

 

Add this right after that line;

if (!isMember()) {
header('Location: ' . BX_DOL_URL_ROOT . 'join.php');
exit;
}

 

*backup files if testing*

Quote · 25 Mar 2011

Thanks rhimpr.  This did work for the "people" tab.  Thanks alot.  Can you show me how to do this for the "forum" tab as well?  That one I couldn't figure out how to do.  It is not as straight forward.  And another thing, how can I prevent the drop down list from showing for non-members?  This would be very helpful to know.  I really appreciate what you have done for me already.  Please get back to me as soon as you can (or anyone else).  Thanks again.

Quote · 25 Mar 2011

For 'Forums'

in /modules/boonex/forum/index.php

 

 Find the line;

{
 echo 'File inclusion failed. <br />Did you properly edit <b>inc/header.inc.php</b> file ?';
 exit;
}

 

Add this right after that line;

if (!isMember()) {
header('Location: ' . BX_DOL_URL_ROOT . 'join.php');
exit;
}

Quote · 25 Mar 2011

Thanks so much rhimpr.  That worked like a charm.  I'm starting to learn the code a little better, but it's a challenge.  Without your help I don't know where I'd be.

Do you know how I can prevent the drop down list from showing for non-members?  It would be nice to make this modification as well.  Thanks again.

Quote · 25 Mar 2011

You can prevent the drop down list from displaying by changing all the categories in the drop down menu that you do not want a non-member to view to "VISIBLE BY MEMBER" in the Navigation menu of your admin panel.

In your Admin Panel, go to BUILDERS->Navigation Menu. Click on the menu items you wish not to be displayed and change VISIBLE FOR to MEMBER only. Un-check the VISITOR BOX if checked.

Quote · 27 Mar 2011

 

Try this, For example, to redirect 'people' tab to join page;

Open browse.php

Find;

$_ni = $_page['name_index'];

 

Add this right after that line;

if (!isMember()) {
header('Location: ' . BX_DOL_URL_ROOT . 'join.php');
exit;
}

 

*backup files if testing*

Thanx, this worked.. How do i do it for 'photos' tab?

Free the Dolphin...
Quote · 8 May 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.