View Full Version : top header msg for guests
Snitz
05-25-2005, 03:49 PM
I've seen on a forum once, a top header message telling guests to register... anyone have it ?
Zachery
05-25-2005, 04:03 PM
<if condition="!$bbuserinfo[userid]">Message here</if>
There ya go
Snitz
05-25-2005, 04:58 PM
I don't understand :confused:
where would I add this ??
and doesn't the variable shows the user's name ?
I thought this is for guests ? im lost :\
aspen0
05-25-2005, 05:31 PM
<a href="http://www.theadminzone.com/forums/articles.php?do=viewarticle&aid=3560" target="_blank">http://www.theadminzone.com/forums/a...ticle&aid=3560</a>
Snitz
05-25-2005, 06:56 PM
can I see a demo ? :confused:
but I don't think this is what im looking for :\
Zachery
05-25-2005, 07:07 PM
I don't understand :confused:
where would I add this ??
and doesn't the variable shows the user's name ?
I thought this is for guests ? im lost :\
You add that to your navbar or header tempalte where you would like to to appear, and replace, message with the mesage you want.
I've seen on a forum once, a top header message telling guests to register... anyone have it ?
Are you talking about the one that looks like the IE SP2 warning message?
Snitz
05-26-2005, 07:56 AM
Are you talking about the one that looks like the IE SP2 warning message?
somehow, yes!
mholtum
05-26-2005, 08:39 AM
This one? http://www.ravensrealm.net
Snitz
05-26-2005, 08:47 AM
This one? http://www.ravensrealm.net
no not really, although it's a good one.. but this isn't what im looking for
the msg im talkin about get displayed above the header, at the very top of the page
mholtum
05-26-2005, 09:40 AM
Like this: http://www.theflyfishingforum.com If that is it.. I cant remember where I got it. sorry. It was either here or at vbulletintemplates.com
Snitz
05-26-2005, 10:06 AM
Like this: http://www.theflyfishingforum.com If that is it.. I cant remember where I got it. sorry. It was either here or at vbulletintemplates.com
yeeeeeeeeees this is the one!!! finally
but too bad u don't know where u got it from :(
mholtum
05-26-2005, 10:22 AM
Throw this at the very top of your header template:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<div id="infobar"><a href="http://www.theflyfishingforum.com/forums/register.php?referrerid=1">It appears you have not yet registered with our community. To register for free please click here...</a><embed src="infobar.wav" autostart="true" loop="0" hidden="true" width="128" height="128"></div>
SInce you are not using a CMS open the zip file and place the contents in the root directory of your forums. Change the red text to match your site.
Rock on!
Snitz
05-26-2005, 01:23 PM
im doing exactly as you're saying but when I try to save the header template it gives me this
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/vhosts/radioonev5.com/var/www/html/forum/includes/adminfunctions_template.php(3096) : eval()'d code on line 1
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
mholtum
05-26-2005, 03:53 PM
Try this:
<if condition="($show['guest']) AND (THIS_SCRIPT != 'register') AND (THIS_SCRIPT != 'login')">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<div id="infobar"><a href="http://www.theflyfishingforum.com/forums/register.php?referrerid=1">It appears you have not yet registered with our community. To register for free please click here...</a><embed src="infobar.wav" autostart="true" loop="0" hidden="true" width="128" height="128"></div>
</td>
</tr>
</table>
</if>
Sorry forgot to close the statement.
Snitz
05-27-2005, 07:27 AM
it saved but the alert didn't show up on my forum
would you mind telling me where can I get the other hack found on:
http://www.ravensrealm.net/
mholtum
08-23-2005, 04:01 PM
which one exactly? I have so many different hacks and template mods running, that I am not sure which one you are talking about.
Do you mean this one? http://www.vbadvanced.com/forum/showthread.php?t=7272 that is my scrolling annoouncement addon.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.