PDA

View Full Version : Announcments on Forum Home


Xplorer4x4
03-25-2006, 10:00 PM
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/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=111361).

Template Version(Display to registered users only!) :


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

<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 (https://vborg.vbsupport.ru/showthread.php?t=97901) released here (https://vborg.vbsupport.ru/showthread.php?t=97901). 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.

<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 (https://vborg.vbsupport.ru/showthread.php?t=97901) plug in. However it will show the notice to users that need to validate there accounts also.

<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 https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=111361)

Ziki
03-27-2006, 05:35 PM
Isn't this the same hack as mine?

kall
03-27-2006, 05:52 PM
Your 'Registerd Users' message will show to guests etc as well as Unconfirmed..

<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! ;)

Whoops.. wrong logic...

Xplorer4x4
04-09-2006, 12:55 AM
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