Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals Details »»
Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.9 Rating:
Released: 04-20-2004 Last Update: 05-18-2004 Installs: 318
Template Edits
Code Changes  
No support by the author.

This hack allows you to post powerful dynamic announcements (changing according to different conditions) on forum home page. It differs from vbulletin's default announcements in 2 ways:
  • The announcement is displayed in forum home page, not inside thread view. So visitors will read them on home page without clicking any links.
  • The Hack's announcements are not static: ie. they can be powerfully programmed to display themselves according to many conditions.

This hack is the VB3 version of my Dynamic Forum Home Announcement Hack and it is a bit more improved in that it is now able to display your announcement as it was before AND also in DHTML popup box as well which ever you prefer better or even both. (DHTML poupup announcement is not technically a popup so popup killers can not kill it either.)

Basic Usage : You can set a text in your Admin CP and it's displayed in forum home to all users.

Advanced Usage : With conditionals you can set different texts/notifications/messages/announcements and they will be displayed if your pre-configured condition applies. This allows you to create powerful announcements/private messages/texts which address their receipt only if a certain condition is met. Some examples:

You can set to show an announcement in forum home IF:
  1. user is X
  2. user's usergroup is Y
  3. his profile field Z is X
  4. user has X posts or has more than Y posts but less than Z posts
  5. his last visit time was X days ago
  6. today is X, hour is between Y and Z, day is wednesday, month is Y, week is month's 2nd week, today is user's birthday
  7. User is invisible/visible
  8. his timeset is set to A
  9. etc.

It's tested in vb versions from v.3.0.0 to 3.0.9 and works fine with all of them. It will work for all future 3.0.x versions too. For vb2 version click here.

Here is a Screenshot from a general table announcement.
Here is a Screenshot from a popup announcement.

Some Features:
  • It's Admin CP integrated (Screenshot)
  • Smiley, BBCode, HTML, IMG tags are supported in announcements.
  • You can address your users with their usernames inside announcements (Use $bbuserinfo[username] variable)
  • Announcements are displayed directly in Forum Home so users are forced to read them.
  • The Conditionals help you to design powerful and ever changing announcements/private messages/forum home notifications.
  • Poupup announcement can not be killed by popup killer software

If you install the hack, click INSTALL, thank you..

Hacks of the hack:
* Hack 1: Puts the announcement into header instead of forum home page so that announcement appears in all forum pages.
* Hack 2: Integrates announcement with vBA_CMPS portal hack.
* Hack 3: Popup announcement will popup once in every XX hours.


Logician \\=^))

Show Your Support

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

Comments
  #212  
Old 10-09-2004, 04:14 AM
vBTotal vBTotal is offline
 
Join Date: Jul 2004
Location: Computer
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Installs*

How do I change the color of the Green Popup window to something different?
Reply With Quote
  #213  
Old 10-09-2004, 07:15 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by heynurse
Is there a way to only show conditional message to members are not in X usergroup?

For example, it would be a nice way to encourage users to become premium members by showing them a message inviting them to become a premium member, but I don't want existing premium members to see this message.

Sorry if this was covered already, I read through most of the post and couldn't find my answer.

Thanks
[[($bbuserinfo[usergroupid]!=5)]] Show this announcement if page visitor's usergroupid is NOT 5 [[/($bbuserinfo[usergroupid]!=5)]]
Reply With Quote
  #214  
Old 10-09-2004, 07:17 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dfr.cry
*Installs*

How do I change the color of the Green Popup window to something different?
change "background-color: lime;" part in template dfh_announcement_popup
Reply With Quote
  #215  
Old 10-11-2004, 09:51 PM
heynurse heynurse is offline
 
Join Date: Jan 2002
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Logician
[[($bbuserinfo[usergroupid]!=5)]] Show this announcement if page visitor's usergroupid is NOT 5 [[/($bbuserinfo[usergroupid]!=5)]]
Thanks a ton!
Reply With Quote
  #216  
Old 10-13-2004, 11:12 AM
kristian's Avatar
kristian kristian is offline
 
Join Date: Feb 2003
Location: Cambridgeshire, UK
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How could i tell a user that their PM box is FULL or that it is nearly FULL?
Reply With Quote
  #217  
Old 10-15-2004, 07:08 PM
Alzeimer's Avatar
Alzeimer Alzeimer is offline
 
Join Date: Feb 2004
Location: Spain
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working, thanks!!!!
Can I add the google ads in the announcements?
Reply With Quote
  #218  
Old 11-02-2004, 09:50 PM
klaattu klaattu is offline
 
Join Date: May 2003
Location: mexico
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HELP ! I used to have this GREAT hack in my two sites Automania.com.mx and clioclub.com.mx so I upgraded both sites to vb 303 and when I tried to rehack to use th DFA in thi spart


Quote:
http://YOUR_SITE_URL/FORUM_URL/admin...le=dynamic_fha
and give these values in that page: (be careful: case-sensitive!)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Varname : dynamic_fha

Setting Group : Dynamic Forum Announcements

Title : Forum Home Table Announcement

Description : Announcement here appears at the top of forum home page.<br><br> Use conditionals in this context:<br> <b>[[(your conditional)]]<i>The Announcement</i>[[/(your conditional)]]</b>. <br>For more info check <a href="https://vborg.vbsupport.ru/showthread.php?t=64189" target="_blank">hack's thread</a>. <br>Hack by (<a href="https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=2355" target="_blank">Logician</a>)

Option Code : textarea

Default : Hello $bbuserinfo[username]! Welcome to our board!

Display Order : 10

vBulletin Default : NO
I said that I already have this part INSTALLED !!
I guess is th eold field in the database , the prolem is that I continued with the instalation till the end and IT DOESNT SHOW UP???

How do I get rid of the old filed in the database and reinstall this part?

any ahelp would be greatly appreciated
Reply With Quote
  #219  
Old 11-03-2004, 05:49 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by klaattu
HELP ! I used to have this GREAT hack in my two sites Automania.com.mx and clioclub.com.mx so I upgraded both sites to vb 303 and when I tried to rehack to use th DFA in thi spart
Can you see the hack options in the vb settings page? If yes, you don't need to apply that step (1 & 2) of installation.

Apply other steps (3,4,5,6) and you should be fine.

Quote:
Originally Posted by klaattu
How do I get rid of the old filed in the database and reinstall this part?
Please check thread, I've already given instructions to uninstall that section in this thread.
Reply With Quote
  #220  
Old 11-15-2004, 04:35 PM
nonet nonet is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello everyone!

I am using the code below for registered users with 0 post. However, the message does not appear on the homepage when visited from a user with zero post. Do you see anything wrong with the code?
Code:
[[($bbuserinfo[posts]<0)]] Hello $bbuserinfo[username]! Don't you think its about time you made your first post? Please visit 
the
<a style="text-decoration: underline; color: #0000FF; font-weight: bold" href="http://www.okctalk.com/forumdisplay.php?f=46">
Introductions &amp; Welcome Forum</a> and tell us a little bit about yourself and 
become an active member of Oklahoma's largest online community.[[/($bbuserinfo[posts]<0)]]
Reply With Quote
  #221  
Old 11-15-2004, 04:47 PM
Divokymuz Divokymuz is offline
 
Join Date: Jan 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have a problem after doing step 1.

i alway get a parse error in the options.php at line 116.

wrot to Logician, and wating for an answer now :-)
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 09:14 AM.


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.07174 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete