vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 04-18-2005, 08:15 AM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Scrolling Announcement

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>
Place directly below:
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 &amp; 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  
Old 04-29-2005, 09:36 PM
smackLAN's Avatar
smackLAN smackLAN is offline
mmm...bacon!
 
Join Date: Mar 2005
Location: State Hospital
Posts: 162
Default Re: Scrolling Announcement

I love it Mike...thanks!!! ***Installed***
  #3  
Old 04-29-2005, 09:41 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Scrolling Announcement

Quote:
Originally Posted by smackLAN
I love it Mike...thanks!!! ***Installed***
Glad you like it.

  #4  
Old 05-13-2005, 07:57 AM
petersweb petersweb is offline
Junior Member
 
Join Date: Apr 2005
Posts: 11
Default Re: Scrolling Announcement

Well done! -> installed
  #5  
Old 06-18-2005, 09:09 PM
VVIper VVIper is offline
Member
 
Join Date: Oct 2004
Posts: 52
Default Re: Scrolling Announcement

That is very cool, Very easy to install and neat.
Thankyou for sharing
  #6  
Old 06-18-2005, 09:57 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Scrolling Announcement

I am glad you all like it..
  #7  
Old 07-11-2005, 08:12 PM
notorious notorious is offline
Junior Member
 
Join Date: Jul 2005
Posts: 4
Default Re: Scrolling Announcement

thats cool it looks great thx for this
  #8  
Old 07-13-2005, 09:00 PM
sunnycher sunnycher is offline
EEEK! I broke it again!
 
Join Date: Feb 2005
Location: AL
Posts: 183
Default Re: Scrolling Announcement

Thanks Mike! Love it! INSTALLED
__________________
Cher
  #9  
Old 07-13-2005, 09:13 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Scrolling Announcement

Glad you like it.
  #10  
Old 07-13-2005, 09:40 PM
SomeName's Avatar
SomeName SomeName is offline
Member
 
Join Date: Apr 2004
Posts: 86
Default Re: Scrolling Announcement

That's pretty nifty!
  #11  
Old 08-05-2005, 04:07 PM
lalotte lalotte is offline
Junior Member
 
Join Date: Sep 2004
Location: SoCal
Posts: 24
Default Re: Scrolling Announcement

Very nice! Thanks!
__________________
Your friend
Lalo
  #12  
Old 08-05-2005, 04:42 PM
axi axi is offline
Senior Member
 
Join Date: Feb 2005
Posts: 102
Default Re: Scrolling Announcement

does the 1.x hacks/addons work for 2.x also ?
  #13  
Old 08-05-2005, 04:44 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Scrolling Announcement

as this is only a template mod, it isnt version dependant
  #14  
Old 08-17-2005, 08:20 PM
FroggyStyle FroggyStyle is offline
Junior Member
 
Join Date: Jul 2005
Posts: 12
Default Re: Scrolling Announcement

Looks good however even if I am logged in I still see, the please register messsage.
  #15  
Old 08-17-2005, 08:21 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Scrolling Announcement

there are two messages. 1 telling you to register and 1 if you havent posted..
  #16  
Old 08-17-2005, 08:28 PM
FroggyStyle FroggyStyle is offline
Junior Member
 
Join Date: Jul 2005
Posts: 12
Default Re: Scrolling Announcement

So if I am registered and have many post, I should still the message asking me to register?
  #17  
Old 08-17-2005, 08:30 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Scrolling Announcement

No, obviously not. If you are registered and many posts and you are seeing the announcemnet, then they copied the code wrong.
  #18  
Old 08-22-2005, 03:31 PM
FroggyStyle FroggyStyle is offline
Junior Member
 
Join Date: Jul 2005
Posts: 12
Default Re: Scrolling Announcement

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  
Old 09-03-2005, 03:55 PM
blackpheonix blackpheonix is offline
Junior Member
 
Join Date: Jan 2005
Posts: 7
Default Re: Scrolling Announcement

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 &amp; Gallery. It is fast, easy & Free</strong></a>
</marquee>
</fieldset>
</div></div>
</td>
</tr>
</table>
</td></tr></table><br />
</if>
a few things you have to do if your a using an introduction forum.

Firstly.

Find

Code:
<a href="/forum/forumdisplay.php?f=3>
and point the link in the right direction of your introduction forum.

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>
and replace with

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>
Secondly

Find

Code:
<a href="/forum/register.php">
and point the link in the right direction of your register.php file.

and thats that
  #20  
Old 09-03-2005, 03:57 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,938
Default Re: Scrolling Announcement

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

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

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


All times are GMT -4. The time now is 04:37 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.