vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Information Bar for Guests (https://vborg.vbsupport.ru/showthread.php?t=72279)

C_P 04-21-2005 02:25 PM

Yes, I did. I sent you the code I have added to our CP Style which is the default.

Lizard King 04-21-2005 02:33 PM

Quote:

Originally Posted by C_P
Yes, I did. I sent you the code I have added to our CP Style which is the default.

Dude I checked all of your styles one by one and you didnt make the edit . You have to make the edits in your each styles header. But if you have a child style then you dont need to edit the header.

C_P 04-21-2005 02:44 PM

Quote:

Originally Posted by Lizard King
Dude I checked all of your styles one by one and you didnt make the edit . You have to make the edits in your each styles header. But if you have a child style then you dont need to edit the header.

Thank you for the reply. I am aware of that and I did add this code as well as the other to my CP Style:
In CP Style:

Code:
Code:

  <!-- logo -->
<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.cpfools.com/forum/register.php?referrerid=1">It appears you have not yet registered with our community. To register please click here...</a><embed src="infobar.wav" autostart="true" loop="0" hidden="true"></embed></div>
</td>
</tr>
</table>
</if>
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="center" width="100%"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
       
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open
<br />

<if condition="$bbuserinfo['usergroupid'] == 3">

<div align="left" style="color: red; background-color: white; border: 1px solid black; padding:2px">Your account is awaiting email confirmation. Please click the activation link in the email you were sent, or visit <a href="register.php?$session[sessionurl]do=requestemail">this page</a> to resend the activation email. If you did not receive the email then it's possible it was blocked by your email client. In this case you can either disable your blocker software or enter a new email address in <a href="profile.php?$session[sessionurl]do=editpassword">your profile</a>.</div>

</if>

$_phpinclude_output


Slapyo 04-21-2005 03:15 PM

Quote:

Originally Posted by Lizard King
Dude I checked all of your styles one by one and you didnt make the edit . You have to make the edits in your each styles header. But if you have a child style then you dont need to edit the header.

correct. this would need to be applied to all of your styles if you have different styles on your forums.

C_P 04-21-2005 03:22 PM

Quote:

Originally Posted by Slapyo
correct. this would need to be applied to all of your styles if you have different styles on your forums.

Ok, then in order to get this to work at all, I have to edit every single style we have instead of the default one that only guests see?

Slapyo 04-21-2005 03:42 PM

Quote:

Originally Posted by C_P
Ok, then in order to get this to work at all, I have to edit every single style we have instead of the default one that only guests see?

i would only because you said you have added this code in and when i goto the forums i don't see the bar. when i view the code i don't see it in the code either. which would make me think that you didn't put it in the style.

i guess just try adding it to all the styles and see if it works. if it doesn't, all you have to do is remove a few lines of code in each of the styles to get them back to normal.

MentaL 04-21-2005 04:26 PM

worth using or will 90% of my users not see it?

Slapyo 04-21-2005 04:32 PM

Quote:

Originally Posted by mentalrz
worth using or will 90% of my users not see it?

what do you mean? all of your guests will see it ... it works in all of the major browsers.

C_P 04-21-2005 07:52 PM

Quote:

Slapyo:after going through it for some reason the header template isn't being used. it may be because you edited another template that called on the header template ... i'm not sure. but i am sure it isn't being called because code that isn't in any kind of conditional should show up and it doesn't. the headerinclude part is ok ... the css file gets loaded. something is causing the header template to not load.
I thank you for looking, it looks like I cannot use this mod then? Oh well, thank you anyway.

Slapyo 04-21-2005 07:53 PM

sorry about that. i'm just not sure why the header template isn't being used. none of it shows up in the code when you view the source to your forum.


All times are GMT. The time now is 01:06 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.01517 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete