Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #332  
Old 03-22-2005, 04:02 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 Wolverine
Installed but have one problem.

I created a popup announcement. It displays as expected but wont close. The close button is there, it reacts when moused over and clicked, but the window remains.

Thought maybe was a firefox issue so I tried IE, same problem.
Never heard of such a problem before from anybody else. Maybe you can assign an announcement for guests and point your board url to me so that I can check myself?
Reply With Quote
  #333  
Old 03-22-2005, 05:06 PM
Wolverine Wolverine is offline
 
Join Date: Apr 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done.
www.tdr-px.com/forums
Reply With Quote
  #334  
Old 03-22-2005, 05:16 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 Wolverine
It seems that you either didn't create the template named "dfh_announcement_headercode"

or

forgot to add $dfh_announcement_headercode before </head> section in forumhome template (Step 6)

Hence the close announcement javascript function does not reside in your page source and the announcement is not closed.
Reply With Quote
  #335  
Old 03-22-2005, 05:28 PM
Wolverine Wolverine is offline
 
Join Date: Apr 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is whats in the forumhome template pertaining to the announcement hack.

PHP Code:
$dfh_announcement_headercode
</head>
<
body>
$dfh_announcement_popup
$header
$navbar
$dfh_announcement 
I found that I did not name the headercode template properly, accidently did dfg_etc etc. I fixed that but the problem remains.
Reply With Quote
  #336  
Old 03-25-2005, 01:13 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I change this so that the option shows up on the left if the admin panel so that I can control permissions to it without giving admin access to ALL the options...

I know how to edit the permissions in the admincp/index.php file, but just need an actual PHP file to point it to...
Reply With Quote
  #337  
Old 03-25-2005, 01:18 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 flypaper
How can I change this so that the option shows up on the left if the admin panel so that I can control permissions to it without giving admin access to ALL the options...

I know how to edit the permissions in the admincp/index.php file, but just need an actual PHP file to point it to...
Sorry this is not easily possible.
Reply With Quote
  #338  
Old 03-25-2005, 01:34 PM
fly fly is offline
 
Join Date: Oct 2003
Posts: 1,215
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Logician
Sorry this is not easily possible.
Yeah, as I went back through your code, I noticed that. hmmm
Reply With Quote
  #339  
Old 03-27-2005, 07:27 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I change the background colour from this green

Found it

https://vborg.vbsupport.ru/showpost....&postcount=289
Reply With Quote
  #340  
Old 03-31-2005, 06:00 AM
BigIke's Avatar
BigIke BigIke is offline
 
Join Date: Aug 2004
Location: Norfolk, VA
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

been messing with this for a while, but my vba_portal seems different than what kall said it should look like, this is what it looks like, how I interpreted his directions:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[hometitle]</title>
$headinclude
$dfh_announcement_headercode
</head>
<body> 
$dfh_announcement_popup
<!-- logo -->
<a name="top"></a>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td background="images/tvr/tvr_01.jpg" width="25" height="342" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <!--DWLayoutTable-->
      <tr>
        <td width="25" height="342" valign="top" background="images/tvr/tvr_01.jpg"><img src="images/tvr/tvr_01.jpg" width="25" height="105" alt="" /></td>
      </tr>
    </table></td>
  <td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="105" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="105" valign="top" background="images/tvr/tvr_03.jpg"><img src="images/tvr/tvr_02.jpg" width="472" height="105" alt="" /></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td height="31" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="100%" height="31" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="100%" height="25" valign="top" background="images/tvr/tvr_05.jpg">&nbsp;&nbsp;&nbsp;<span class="style1"><a href="cmps_index.php">H<span class="style2">OME</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="index.php">F<span class="style2">ORUMS</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><span class="style1"><a href="view.php?&pg=roster">R<span class="style2">OSTER</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="view.php?&pg=stats">S<span class="style2">TATS</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="http://s116946478.onlinehome.us/vb/forumdisplay.php?f=15">A<span class="style2">RTICLES</span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="view.php?&pg=draftcentral">D<span class="style2">RAFT CENTRAL                            </span></a><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="http://s116946478.onlinehome.us/vb/view.php?&pg=TVRStandards">TVR<span class="style2">STANDARDS</span></a></span><img src="images/tvr/tvr_07.jpg" alt="" width="22" height="25" align="absmiddle" /><a href="sendmessage.php">C<span class="style2">ONTACT
                            US</span></a></span></td>
                </tr>
                <tr>
                  <td height="6" background="images/tvr/tvr_09.jpg" valign="top"><img src="images/tvr/tvr_09.jpg" width="74" height="6" alt="" /></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td height="206" valign="top"> $_phpinclude_output
        <table align="center" class="page" cellspacing="0" cellpadding="0"width="95%">
          <tr>
            <td>$navbar</td>
          </tr>
        </table>
        <table align="center" class="page" cellspacing="0" cellpadding="0" width="100%">
          <!--DWLayoutTable-->
          <tr valign="top"> <if condition="$show['left_column']">
            <td background="images/tvr/tvr_2_19.jpg" width="$vba_options[portal_leftcolwidth]" height="32"> $home[leftblocks] </td>
            </if> <if condition="$show['center_column']">
            <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                  <td valign="top"> $home[centerblocks]</td>
                </tr>
              </table></td>
            </if> <if condition="$show['right_column']">
            <td valign="top" width="$vba_options[portal_rightcolwidth]"> $home[rightblocks] </td>
            </if> </tr>
        </table>     
        
        $footer
</body>
</html>
Any suggestions?
Reply With Quote
  #341  
Old 04-02-2005, 04:55 PM
kthlnwrnr kthlnwrnr is offline
 
Join Date: Mar 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me apologize in advance if this is a duplicate question. I would like to know whether it is possible to setup this dynamic announcement hack so that moderators (without making them admins) too can have access to the modification section of the announcement?
Reply With Quote
Reply

Thread Tools

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 05:26 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.07847 seconds
  • Memory Usage 2,333KB
  • 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
  • (1)bbcode_php
  • (4)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