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