Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Announcments on Forum Home Details »»
Announcments on Forum Home
Version: 1.00, by Xplorer4x4 Xplorer4x4 is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-25-2006 Last Update: Never Installs: 6
Template Edits
 
No support by the author.


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 .

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-27-2006, 05:35 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't this the same hack as mine?
Reply With Quote
  #3  
Old 03-27-2006, 05:52 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #4  
Old 04-09-2006, 12:55 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04282 seconds
  • Memory Usage 2,277KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete