Version: 1.00, by Logician
Developer Last Online: Nov 2023
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:
user is X
user's usergroup is Y
his profile field Z is X
user has X posts or has more than Y posts but less than Z posts
his last visit time was X days ago
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
User is invisible/visible
his timeset is set to A
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.
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.
Hey anyway to mod this to just make a user go thru web pages insted of pop ups?
like a NEW NEW just joined user could go thru stuff like would you like to subscribe to these things? or sign up for our job bank and there would be a table for that stuff... or intrested in our love connections? and there would be info for that.
conditional websites for vbulletin. so it turns this forum software into a server or some sort of a extent.
I'm having trouble getting this to work. Shouldn't there be another "conditional" that defines what group your inquiring about? And, is that the way the field conditional should be worded?
Thanks! Love this hack.
I didnt try it but I thought the same thing. but. A guest wouldnt have a new field to fill out... so the other guys would. And there isnt a condition for certain groups when it comes to option boxes. They all get them.
[[(!$bbuserinfo[fieldX])]] You haven't filled the location field yet! Please do so by following the link to your profile edit page. [[/(!$bbuserinfo[fieldX])]]
(X should be replaced by the profile field id of your location field.)
ummm after my slew of posts... yeah this doesnt work. this is exactly what I need.
You remember to:
a) change "x" with the profileid
b) Test it with a test user account (not admin account) who has this profile field empty.
right?
give me some credit! You sound like my bank now! lol.
Yep. the Profileid was 16 on mine it is not a required field though. and there are about 6 check boxes in this field.
Oh man... no? darn... that is exactly what I wanted. man. But to be honest I made a new field called last name and that was field18 that didnt work either so I dont think this will work with that code bro. Here is what I go so far.
Quote:
[[($bbuserinfo[usergroupid]==3)]]IMPORTANT: READ THIS
Hello $bbuserinfo[username]! You are seeing this message because you have not yet confirmed your registration via the email we sent you. You will not be able to post or use other features of the site until you do. Please click the activation link in the email you were sent, or visit <a href="register.php?$session[sessionurl]do=requestemail">this page</a> to resend the activation email. If you did not receive the email then it's possible it was blocked by your email client. In this case you can either disable your blocker software or enter a new email address in <a href="profile.php?$session[sessionurl]do=editpassword">your profile</a> Thanks for coming by! This message will dissappear once you confirm your registration.[[/($bbuserinfo[usergroupid]==3)]]
[[(!$bbuserinfo[field16])]]IMPORTANT: READ THIS
Hello $bbuserinfo[username]! You are seeing this message because You haven't filled in new required locations in your profile yet! Please do so by clicking <a href="profile.php?$session[sessionurl]do=editprofile">here.</a> This message will dissappear once you complete this.[[/(!$bbuserinfo[field16])]]
[[($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]==0)]]IMPORTANT: READ THIS
Hello $bbuserinfo[username]! You are seeing this message because You haven't posted on our forums. Please take the time and participate with others. You can start <a href="forum.php?">here</a>!
[[/($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]==0)]]
[[($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]<strtotime("-14 days"))]]IMPORTANT: READ THIS
Hello $bbuserinfo[username]! You are seeing this message because you have not posted a message in the last 2 weeks. Please take the time and participate with others. We would love to hear your opinions. You can start <a href="forum.php?">here</a>!
[[/($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]<strtotime("-14 days"))]]
[[($bbuserinfo[usergroupid]!=6 AND $bbuserinfo[usergroupid]!=5 AND $bbuserinfo[pmtotal]>65)]]
Attention: $bbuserinfo[username]! You have nearly reached your Private Messages limit of 70.
This counts for messages in your 'Inbox' and 'Sent Items' folder. Please delete unwanted messages, as once your limit is reached you will no longer be able to receive new Private Messages.
[[/($bbuserinfo[usergroupid]!=6 AND $bbuserinfo[usergroupid]!=5 AND $bbuserinfo[pmtotal]>65)]]
// Logician Hack: Dynamic Forum Announcements Hack
if ($vboptions['dynamic_fha'] OR $vboptions['dynamic_popup']) {require_once('./includes/functions_bbcodeparse.php');}
Or put the two announcement bits wherever you want them to appear. Don't forget to do this for all your styles.
I may add this to the add-on hack section, but it's such a little mod - no code changes, just figuring out where the code goes in vba's scheme of things - it may not be worth the bother.
Enjoy, and thanks again Logician for a great hack!
prolly overlooking something dumb here, but my vba index.php file doesn't have any of that code you mentioned. we are talking vba cmps right? if so, what am i missing here?
my index.php code:
PHP Code:
<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0 RC2 ||
// || ? 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ========================================================================++
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
chdir('./forums');
// ============================================
// No Further Editing Necessary!
// ============================================