![]() |
|
|
|
#1
|
||||
|
||||
|
What this does is give you a scrolling announcement under your navbar prompting visitors to register for your site and if they are registered and have a post count of 0 it prompts them to post. You can see it in action here.
I have it set to display "Please register to participate in the Forums, Chat & Gallery. It is fast, easy & Free." if a unregistered or unlogged in visitor views your site and "Our logs show that you have never posted on the forums! Please take a moment and do so, you will be equally rewarded." This mod shouldn't take you more that thirty seconds to install. 1: Open your navbar template and find ( at the very bottom ) Code:
<!-- / NAVBAR POPUP MENUS --> </if> Code:
<if condition="$bbuserinfo[usergroupid] == 2 AND $bbuserinfo['posts'] <= 0"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="panelsurround" align="center"> <div class="panel"><div align="$stylevar[center]"> <fieldset class="fieldset" style="margin:0px 0px 0px 0px"> <legend>Announcement</legend> <marquee behavior="scroll" align="center" direction="left" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"><strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase> Our logs show that you have never posted on the forums! Please take a moment and do so, you will be equally rewarded.</strong></marquee> </fieldset> </div></div> </td> </tr> </table> </td></tr></table><br /><br /> </if> <if condition="$bbuserinfo[usergroupid] == 1"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="panelsurround" align="center"> <div class="panel"><div align="$stylevar[center]"> <fieldset class="fieldset" style="margin:0px 0px 0px 0px"> <legend>Announcement</legend> <marquee behavior="scroll" align="center" direction="left" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"> <strong>Please register to participate in the Forums, Chat & Gallery. It is fast, easy & Free</strong> </marquee> </fieldset> </div></div> </td> </tr> </table> </td></tr></table><br /> </if> Last edited by mholtum; 05-13-2005 at 08:28 AM. |
|
#2
|
||||
|
||||
|
I love it Mike...thanks!!! ***Installed***
__________________
Transverse Styles | Exceptional Forum Skins |
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
|||
|
|||
|
Well done! -> installed
|
|
#5
|
|||
|
|||
|
That is very cool, Very easy to install and neat.
Thankyou for sharing |
|
#6
|
||||
|
||||
|
I am glad you all like it..
|
|
#7
|
|||
|
|||
|
thats cool it looks great thx for this
|
|
#8
|
|||
|
|||
|
Thanks Mike! Love it! INSTALLED
__________________
Cher |
|
#9
|
||||
|
||||
|
Glad you like it.
|
|
#10
|
||||
|
||||
|
That's pretty nifty!
|
|
#11
|
|||
|
|||
|
Very nice! Thanks!
__________________
Your friend Lalo |
|
#12
|
|||
|
|||
|
does the 1.x hacks/addons work for 2.x also ?
|
|
#13
|
||||
|
||||
|
as this is only a template mod, it isnt version dependant
|
|
#14
|
|||
|
|||
|
Looks good however even if I am logged in I still see, the please register messsage.
|
|
#15
|
||||
|
||||
|
there are two messages. 1 telling you to register and 1 if you havent posted..
|
|
#16
|
|||
|
|||
|
So if I am registered and have many post, I should still the message asking me to register?
|
|
#17
|
||||
|
||||
|
No, obviously not. If you are registered and many posts and you are seeing the announcemnet, then they copied the code wrong.
|
|
#18
|
|||
|
|||
|
This what I have"
<if condition="$bbuserinfo[usergroupid] == 2 AND $bbuserinfo['posts'] <= 0"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="panelsurround" align="center"> <div class="panel"><div align="$stylevar[center]"> <fieldset class="fieldset" style="margin:0px 0px 0px 0px"> <legend>Announcement</legend> <marquee behavior="scroll" align="center" direction="left" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"><strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase> Our logs show that you have never posted on the forums! Please note, all accounts with 0 post will be removed after 30 days</strong></marquee> </fieldset> </div></div> </td> </tr> </table> </td></tr></table><br /><br /> </if> <if condition="$bbuserinfo[usergroupid] == 1"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="panelsurround" align="center"> <div class="panel"><div align="$stylevar[center]"> <fieldset class="fieldset" style="margin:0px 0px 0px 0px"> <legend>Announcement</legend> <marquee behavior="scroll" align="center" direction="left" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"> <strong>You must register to participate in the Forums</strong> </marquee> </fieldset> </div></div> </td> </tr> </table> And I am registered and have many post and I see the onet telling me I must register. EDIT: I think I see the problem. I have mutiple user groups on my board, I see the script is refering to group 1 and group 2. I am not in either of those groups, is it possible to to add multiple groups to each??? Last edited by FroggyStyle; 08-22-2005 at 03:38 PM. |
|
#19
|
|||
|
|||
|
i dont use the navbar for my portal any way i can add this with out enabling navbar?
i changed your code slightly the scrolling text is now links. one points to register and the other points to my introduction forum. Code:
<if condition="$bbuserinfo[usergroupid] == 2 AND $bbuserinfo['posts'] <= 0"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="panelsurround" align="center"> <div class="panel"><div align="$stylevar[center]"> <fieldset class="fieldset" style="margin:0px 0px 0px 0px"> <legend>Announcement</legend> <marquee behavior="scroll" align="center" direction="left" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"><strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase><a href="/forum/forumdisplay.php?f=3">Our logs show that you have never posted on the forums! Why not introduce your self in our introduction forum.</strong></a></marquee> </fieldset> </div></div> </td> </tr> </table> </td></tr></table><br /><br /> </if> <if condition="$bbuserinfo[usergroupid] == 1"> <table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center"><tr><td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> <tr> <td class="panelsurround" align="center"> <div class="panel"><div align="$stylevar[center]"> <fieldset class="fieldset" style="margin:0px 0px 0px 0px"> <legend>Announcement</legend> <marquee behavior="scroll" align="center" direction="left" scrollamount="2" scrolldelay="20" onmouseover="this.stop()" onmouseout="this.start()"><a href="/forum/register.php"> <strong>Please register to participate in the Forums, Chat & Gallery. It is fast, easy & Free</strong></a> </marquee> </fieldset> </div></div> </td> </tr> </table> </td></tr></table><br /> </if> Firstly. Find Code:
<a href="/forum/forumdisplay.php?f=3> If you dont want or have the introdution forum revert back to the origanal code Find Code:
<a href="/forum/forumdisplay.php?f=3">Our logs show that you have never posted on the forums! Why not introduce your self in our introduction forum.</strong></a></marquee> Code:
Our logs show that you have never posted on the forums! Please take a moment and do so, you will be equally rewarded.</strong></marquee> Find Code:
<a href="/forum/register.php"> and thats that
|
|
#20
|
||||
|
||||
|
Phoenix, You can place the code anywhere you want.
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forum Announcement(s) on CMPS | Shon | Add-On Modules & Modifications | 39 | 04-18-2006 06:27 AM |
| VB Announcement in a module? | pdatotaal | Add-On Modules & Modifications | 17 | 04-08-2005 03:18 AM |
| Announcement condition(s) | cLord | Troubleshooting / "How do I..." Questions | 3 | 06-13-2004 03:49 PM |
| Scrolling forums | BoNfiRe | Troubleshooting / "How do I..." Questions | 2 | 05-20-2004 01:13 PM |