Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x 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: 2.2.x Rating:
Released: 09-04-2002 Last Update: Never Installs: 146
 
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 (or other board pages), not inside thread view. So visitors will read them without clicking on them.
  • The Hack's announcements are not static: ie. they can be powerfully programmed to change themselves according to many conditions.
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. user is using style A
  9. his cookies are on
  10. his timeset is set to A
  11. etc..

The conditionals even allows you to design "Board Tips" ever changing according to user's seniority or post number. See how-to document for conditional usage and more info..

It's tested in both v.2.2.6 and v.2.2.7 but it should work with any versions > 2.0.3. (v.2.2.8 or later Users READ HERE!) I'm using it in my own board and a friend's board for more than a month and found it quite stable and released it. Although not likely, if you found any bugs, holler and I'll fix it..

Here is a Screenshot from a "general announcement".
Here is a Screenshot of announcement which is addressed to a certain user.

Some Features:
  • It's Admin CP integrated (Screenshot)
  • Smiley and BBCode in announcements are parsed
  • 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.


If you have problems displaying HTML/smilie/bbcode in your announcements, make this tiny change in hack code

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

Logician \\=^))

Show Your Support

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

Comments
  #52  
Old 09-20-2002, 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 ptbyjason
Any reason why I would be getting the following error at the top of my forum?
[/PHP]
Delete your announcement box and try again. It is very likely because you set an a invalid /wrong sytnaxed conditional.. If it so, correct your conditional..

If your problem continiues after deleting your announcement box, I would say it's not related to this hack, but to make sure delete the hack code you added to global.php. This is very close to uninstall and if the hack is your problem, it will be solved in this step.
Reply With Quote
  #53  
Old 09-20-2002, 09:54 PM
ptbyjason's Avatar
ptbyjason ptbyjason is offline
 
Join Date: Dec 2001
Location: TX
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am pretty sure it is the hack. Whenever I go back and replace the original php files, and make no other changes, the error is gone from the board. I can use just a text message and get the error not only on my board but also in the admin panel. Any thing I can do to make the hack work without the error? I really like this one.
Reply With Quote
  #54  
Old 09-20-2002, 10:07 PM
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 ptbyjason
I am pretty sure it is the hack. Whenever I go back and replace the original php files, and make no other changes, the error is gone from the board. I can use just a text message and get the error not only on my board but also in the admin panel. Any thing I can do to make the hack work without the error? I really like this one.
1- Do you get any errors when you clear announcement box? If no, what announcement have you inserted?
2- Do you get any errors when you delete the hack code from global.php? (only from global.php!)
3- What's your vb version?
Reply With Quote
  #55  
Old 09-21-2002, 12:45 AM
ptbyjason's Avatar
ptbyjason ptbyjason is offline
 
Join Date: Dec 2001
Location: TX
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician

1- Do you get any errors when you clear announcement box? If no, what announcement have you inserted?
2- Do you get any errors when you delete the hack code from global.php? (only from global.php!)
3- What's your vb version?

1. Yes, still get them.
2. I cannot find the code to delete in global.php
3. I am running 2.2.6

Something else I just noticed. When I have the 3 modified php files uploaded, the avatars do not appear in the postbit. Does that give a hint to the problem at all?


Logician, thank you for taking the time to help me with my problem.
Reply With Quote
  #56  
Old 09-21-2002, 06:46 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 ptbyjason
Something else I just noticed. When I have the 3 modified php files uploaded, the avatars do not appear in the postbit. Does that give a hint to the problem at all?
Frankly, I strongly believe that your problem is not related to this hack (unless it's clashing with another hack) because a problem in postbit (showthread.php) seems to have nothing to do with this hack. When you load your postbit you are dealing with showthread.php and its not even modified. Your uploading the old files correcting your problem makes me thing if you applied the hack correctly or not. Please double check this. If you cant figure out the problem and still want to use the hack, I can try to trace it if you can give me FTP access to your site and access to Admin CP.
Reply With Quote
  #57  
Old 09-24-2002, 12:42 AM
geniuscrew's Avatar
geniuscrew geniuscrew is offline
 
Join Date: Nov 2001
Location: UK
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack but i'm getting this error:

Fatal error: Call to undefined function: dynamic_a() in /home/******/public_html/forum/index.php on line 13
Reply With Quote
  #58  
Old 09-24-2002, 08:09 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 geniuscrew
Nice hack but i'm getting this error:

Fatal error: Call to undefined function: dynamic_a() in /home/******/public_html/forum/index.php on line 13
geniuscrew make sure you applied installation STEP 2 correctly. You should insert the code in that step to "admin/functions.php" (that is "functions.php" in the "admin" dir), NOT "adminfunctions.php".
Reply With Quote
  #59  
Old 09-24-2002, 07:08 PM
LawnDawg LawnDawg is offline
 
Join Date: Oct 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, ok, I followed all the instructions properly.. cept nothing's showing up on my forum home..

Help please =\
Reply With Quote
  #60  
Old 09-24-2002, 07:23 PM
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 LawnDawg
Hmm, ok, I followed all the instructions properly.. cept nothing's showing up on my forum home..

Help please =\
Have you gone to VB Settings and choose "SAVE CHANGES" after the installation? If yes, make sure:
1- you have created the template ""dfh_announcement" in all your template sets.. Also make sure the template content is correct..
2- You applied the hack code correctly to index.php and functions.php.
3- You put "$dfh_announcement" to the correct place in forumhome template (once again put inside all templates set's forum home, if you have more than 1)
Reply With Quote
  #61  
Old 09-24-2002, 10:01 PM
LawnDawg LawnDawg is offline
 
Join Date: Oct 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeesh, that was odd.

I changed the announcement right after I installed it.

Didn't work. I changed it again just now, & it works.

Thx Logi.

[edit]Is there any way I could add this into my "header" template? does seem to work.. [/edit]
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 03:13 PM.


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.06285 seconds
  • Memory Usage 2,320KB
  • 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
  • (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
  • (1)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