View Full Version : Hide url for Unregistered user group.
How can I hide URL for "Unregistered/Not Logged In" user group on the detailed link page.
For ex: when the Guest user is on the detail link page Instead of showing the url I want some thing like this "Please Register or Login to visit this site."
Any hacks to accomplish this?
phoenixdown
03-04-2006, 10:57 AM
You could do this...
In your ADV_LINKS_SHOWLINK template find this:
$link[url]
and change it to something like this:
<if condition="!$bbuserinfo['userid']">
<a href="showlink.php?$session[sessionurl]l=$link[linkid]&linkurl=$link[url]" target="_blank">$link[url]</a>
<else />
$vbphrase[links_url_register]
</if>
You'll need add that phrase in or hard code your text. You will also need use something very similiar to that in the little drop down box that appears that appears when your looking at the main list of links or disable it from the admincp.
Sorry I have to run now or I'd look it up.
John Struse
03-04-2006, 01:17 PM
You could do this...
In your ADV_LINKS_SHOWLINK template find this:
$link[url]
and change it to something like this:
<if condition="!$bbuserinfo['userid']">
<a href="showlink.php?$session[sessionurl]l=$link[linkid]&linkurl=$link[url]" target="_blank">$link[url]</a>
<else />
$vbphrase[links_url_register]
</if>
You'll need add that phrase in or hard code your text. You will also need use something very similiar to that in the little drop down box that appears that appears when your looking at the main list of links or disable it from the admincp.
Sorry I have to run now or I'd look it up.
Actually, don't use !bbuserinfo['userid']
Use this instead
<if condition="$show['member']">
<a href="showlink.php?$session[sessionurl]l=$link[linkid]&linkurl=$link[url]" target="_blank">$link[url]</a>
<else />
$vbphrase[links_url_register]
</if>
phoenixdown
03-04-2006, 01:38 PM
Nice, I didnt know about that!
Wonderful, thanks for the hack.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.