vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   top header msg for guests (https://vborg.vbsupport.ru/showthread.php?t=82020)

Snitz 05-25-2005 03:49 PM

top header msg for guests
 
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

Quote:

Originally Posted by Snitz
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.

N8 05-25-2005 07:09 PM

Quote:

Originally Posted by Snitz
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

Quote:

Originally Posted by N8_115
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

Quote:

Originally Posted by mholtum

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

Quote:

Originally Posted by mholtum
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

1 Attachment(s)
Throw this at the very top of your header template:
Quote:

<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

Code:

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:
Code:

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


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01187 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete