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
  #182  
Old 09-08-2004, 07:02 AM
nelto nelto is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to install this hack but something came up.
After I uploaded the file functions.php I got this erros:

Parse error: parse error in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 1887

Fatal error: Call to undefined function: devdebug() in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 952

My line 1887: {

My line 952: DEVDEBUG("$optionname = $user[$optionname]");
Needless to say I revode the code from functions.php and the erroes still presists.
I have a comunity of 5K members so I need this resolved asap, if possible.

Im runing VB 3.0.3

P.S Every installation steps went ok untill I uploaded functions.php.
Reply With Quote
  #183  
Old 09-08-2004, 07:21 AM
nelto nelto is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind I dont knwo what happened.

I unziped the vb script to other folder made the changes on functions.php and uploaded everything working.

I'll let you know if everythign went fien and I'll click on the install of course
Reply With Quote
  #184  
Old 09-08-2004, 07:25 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 nelto
I tried to install this hack but something came up.
After I uploaded the file functions.php I got this erros:

Parse error: parse error in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 1887

Fatal error: Call to undefined function: devdebug() in /usr/home/kain/domains/bbs.tgpbuilders.com/includes/functions.php on line 952

My line 1887: {

My line 952: DEVDEBUG("$optionname = $user[$optionname]");
Needless to say I revode the code from functions.php and the erroes still presists.
I have a comunity of 5K members so I need this resolved asap, if possible.

Im runing VB 3.0.3

P.S Every installation steps went ok untill I uploaded functions.php.
Apply STEP 3 carefully. (For instance it is "REPLACE" it as, not add before or after).

If you are sure you applied it correctly, then the problem is the application you are editing the file. Do NOT use HTML editors like dreamweaver or frontpage to hack files. Always use notepad. This is very likely your problem. Hope it helps.

To make the board up, you can upload unhacked functions.php to the server.
Reply With Quote
  #185  
Old 09-08-2004, 07:48 PM
nelto nelto is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its working like a charm man. Great hakc you got here. Install clicked.

One question, I want to show this hack as well on the vba homepage, I was trying to follow a install instructions on other thread, but I cant find the template vba_cmp

Any help here, or is there any other way to get this working on vbahomepage?
Reply With Quote
  #186  
Old 09-08-2004, 07:57 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nelto
Its working like a charm man. Great hakc you got here. Install clicked.

One question, I want to show this hack as well on the vba homepage, I was trying to follow a install instructions on other thread, but I cant find the template vba_cmp

Any help here, or is there any other way to get this working on vbahomepage?
Im sorry, I gave the wrong name of the template.

Should be: adv_portal.

ops: Fixed and re-uploaded.
Reply With Quote
  #187  
Old 09-09-2004, 04:03 AM
nelto nelto is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working tks kall.
Reply With Quote
  #188  
Old 09-09-2004, 12:31 PM
tanhadil tanhadil is offline
 
Join Date: Aug 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to show the announcement to paid subscribers only and not all the registered users??
Reply With Quote
  #189  
Old 09-09-2004, 02:31 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 tanhadil
is there a way to show the announcement to paid subscribers only and not all the registered users??
Sure.. isn't it the whole point anyway? Please read second post of the thread.

(Hint: Paid subscribers would be in a different usergroup)
Reply With Quote
  #190  
Old 09-09-2004, 08:52 PM
tanhadil tanhadil is offline
 
Join Date: Aug 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello $bbuserinfo[username]! Welcome to Desi-Dhaba forums
<div align="center"><a href="http://www.site/subscriptions.php"><img src="http://www.site/image.jpg" border="0"></a>

[[($bbuserinfo[usergroupid]==9)]] Thank you for buying the package.Link for stream will be posted soon[[/($bbuserinfo[usergroupid]==9)]]

i am typing this into the Forum Home Table Announcement in the ADMIN CP..

Usergroup 9 is for the paid subscribers...but they still cant see the message :ermm:
Reply With Quote
  #191  
Old 09-10-2004, 02:06 AM
nelto nelto is offline
 
Join Date: Sep 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi again guys.
One simple question.
Isnt the pop-up supposed to be showed only to the admins and mods?
My reason is that everyone is geting it while not registered or even loged in. this includes me as well.
Im runing this hack on forums and the mod hack on the portal.

Any ideas?

Edited for a question/idea that just poped up.
Is it possible to have an announcement on the portal and a different one on the forums?

If possible can you tell me how to do it, since it will be 100% easier for me, to have 2 different messages sicne Im runing 2 different tasks.

And better yet, what about a different message for unregister users and other to register users?

Sorry if this was already questioned, but I have 45 hours nonstop and I simply dont have patience right now to scan all the thread.
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 06:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05256 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
  • (3)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