vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Announcments on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=111361)

Xplorer4x4 03-25-2006 10:00 PM

Announcments on Forum Home
 
https://vborg.vbsupport.ru/
I am releasing 4 versions. The first TWO which is a strictly a template edit while the other 2 version requires a plug in from another hack.

If you use please click https://vborg.vbsupport.ru/.

Template Version
(Display to registered users only!) :

PHP Code:

<table class="tborder" cellpadding="6" cellspacing="0"  border="0" width="100%" align="center">
<
tr  align="center">
<
td class="tcat" colspan="4"><a  style="float:$stylevar[right]href="#top" onclick="return  toggle_collapse('announ')"><img id="collapseimg_announ"  src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_announ].gif"  alt="" border="0" /></a>Announcements Notice from the  ADMINS!</td>
</
tr>
<
tbody id="collapseobj_announ"  style="">
<
td class="alt1" width="100%" colspan="2">
<if  
condition="!is_member_of($bbuserinfo, 3)">YOUR TEXT  HERE</if></td>
</
tbody>
</
table

Template Version 2(This will display your custom message to registered users, and if you use the e-mail validation system it will show a reminder to those users needing to click the validation link in there email).

PHP Code:

 <table  class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%"  align="center">
<
tr align="center">
<
td class="tcat"  colspan="4"><a style="float:$stylevar[right]href="#top" onclick="return  toggle_collapse('announ')"><img id="collapseimg_announ"  src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_announ].gif"  alt="" border="0" /></a>Announcements Notice from the  ADMINS!</td>
</
tr>
<
tbody id="collapseobj_announ"  style="">
<
td class="alt1" width="100%" colspan="2">
<if  
condition="!is_member_of($bbuserinfo, 3)">YOUR MESSAGE TO REGISTERED  USERS</if><if condition="is_member_of($bbuserinfo, 3)"><font  size="6">
<
MARQUEE>PLEASE CHECK YOUR EMAIL FOR THE LINK TO ACTIVATE  YOUR  ACCOUNT.</MARQUEE></font></if></td>
</
tbody>
</
table

Plug In/Template Version:

This hack requires the Add Extra Header / Footer to FORUMHOME released here. Both of the versions below will only show up if you have entered text in the extra header field in the admin cp.

There is a smiliar version, yes, but it only supports bold and italics where as the extra header and footer plug in supports all HTML and even Javascript, just not PHP.

This version will show to registered users only. Install the plug in above enter your message in the extra header box. It will display in the announcement table.

PHP Code:

<if  condition="($vboptions[fhx2h])">
<
table class="tborder" cellpadding="6"  cellspacing="0" border="0" width="100%" align="center">
<
tr  align="center">
<
td class="tcat" colspan="4"><a  style="float:$stylevar[right]href="#top" onclick="return  toggle_collapse('announ')"><img id="collapseimg_announ"  src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_announ].gif"  alt="" border="0" /></a>Announcements Notice from the  ADMINS!</td>
</
tr>
<
tbody id="collapseobj_announ"  style="">
<
td class="alt1" width="100%" colspan="2">
<if  
condition="!is_member_of($bbuserinfo,  3)">$vboptions[fhx2h]</if></td>
</
tbody>
</
table>
</if> 

This version also requires the Add Extra Header / Footer to FORUMHOME plug in. However it will show the notice to users that need to validate there accounts also.

PHP Code:

<if condition="($vboptions[fhx2h])">
<
table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
<
tr align="center">
<
td class="tcat" colspan="4"><a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('announ')"><img id="collapseimg_announ" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_announ].gif" alt="" border="0" /></a>Announcements Notice from the ADMINS!</td>
</
tr>
<
tbody id="collapseobj_announ" style="">
<
td class="alt1" width="100%" colspan="2">
<if 
condition="!is_member_of($bbuserinfo, 3)">$vboptions[fhx2h]</if><if condition="is_member_of($bbuserinfo, 3)"><font size="6">
<
MARQUEE>PLEASE CHECK YOUR EMAIL FOR THE LINK TO ACTIVATE YOUR ACCOUNTIT MUST THEN BE APROVED BY AN ADMIN BEFORE YOU CAN POST!!!</MARQUEE></font></if></td>
</
tbody>
</
table>
</if> 

If you use please click https://vborg.vbsupport.ru/

Ziki 03-27-2006 04:35 PM

Isn't this the same hack as mine?

kall 03-27-2006 04:52 PM

Your 'Registerd Users' message will show to guests etc as well as Unconfirmed..
Code:

<if  condition="!is_member_of($bbuserinfo, 3)">YOUR MESSAGE TO REGISTERED  USERS</if><if condition="is_member_of($bbuserinfo, 3)"><font  size="6">
<MARQUEE>PLEASE CHECK YOUR EMAIL FOR THE LINK TO ACTIVATE  YOUR  ACCOUNT.</MARQUEE>

Though I do love the style in your screenshot! ;)

[edit]Whoops.. wrong logic...[/edit]

Xplorer4x4 04-08-2006 11:55 PM

It wroked fine the way I had it :s Tested on my forums as you can see, and it worked fine under the conditions I have.

@Ziki, I bassed the colapse variables on your hack, otherwise it is similar but this is coded a little beat cleater then yours. I noticed yours had a few uneeded variables like a fieldset. Plus it does nto require a template edit in order to chow a diffrent announcment


All times are GMT. The time now is 12:15 AM.

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.01874 seconds
  • Memory Usage 1,773KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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