vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals (https://vborg.vbsupport.ru/showthread.php?t=64189)

n_wattam 01-01-2005 10:36 PM

If i want to display the announcement if other sections of the forum i'm guessing i edit the FORUMDISPLAY / FORUMDISPLAY and use the following code in the same place

Quote:

STEP 6- Edit forumhome/forumhome template and find:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
</head>
<body>
$header
$navbar
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

REPLACE IT AS :
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$dfh_announcement_headercode
</head>
<body>
$dfh_announcement_popup
$header
$navbar
$dfh_announcement
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The thing is i have done this and it doesnt work??? any ideas

paulz 01-02-2005 12:02 AM

if you want the same thing everywhere on the site, the easiest way is to put it at the very bottom of the header template. search this forum for "header" and you'll find a link to an excellent article on the hack to do this.

n_wattam 01-02-2005 12:15 AM

the problem is when i put this code in any other place it does not work for some reason!!!!

Logician 01-02-2005 08:46 AM

Quote:

Originally Posted by n_wattam
the problem is when i put this code in any other place it does not work for some reason!!!!

https://vborg.vbsupport.ru/showpost....&postcount=126

T3MEDIA 01-04-2005 03:51 AM

Quote:

Originally Posted by Logician
k this explains now. :) My code was for inputbox profile fields. I can't think of an easy way to do it for check box profile fields.

Will it work for Single-Line Text Boxes then???

T3MEDIA 01-04-2005 04:15 AM

Quote:

Originally Posted by Host Directory
Works a treat Logician !
Try it yourself - www.hostcompanies.com/forums - register and then do not confirm by email - now login and your see the message explaining that the email may have been bounced. Obviously you can't post either. Now confirm the registration email and the message dissapears and everything works fine.

Brilliant !

I have recently had a lot of bounced emails from people trying to register because of their stupid spam software - thats one of the reasons why people sign up and never post. Atleast they now know its their email spam software which is the problem.

Your a star Logician... a star!

Im almost positive he wont do that.

Anyone figured out other cool conditionals?

T3MEDIA 01-04-2005 02:34 PM

I know I have posted a few here... sorry.
how do I do a syntax for something that is null?
=="" I am not sure if "" is ok. or can I do ()

TruthElixirX 01-05-2005 01:31 AM

Sorry, I didn't read through all 18 pages to see if this had already been answered but ehre:

https://vborg.vbsupport.ru/attachmen...chmentid=18274

there are two edit boxes. I've only got the bottom one ot edit the bright green pop up. I do not have the edit box to change the one on the actual forum. Any ideas?

Also, is there anyway to change the color of the pop-up announcement.

Logician 01-08-2005 08:41 AM

Hack of Hack:

If you apply this modification, the popup announcement will popup once in every 12 hours:

Edit index.php, find (hack code):
PHP Code:

$dfh_announcement_popuptopaste dynamic_a($dynamic_popup); 

REPLACE IT AS:
PHP Code:

$dfh_announcement_popuptopaste dynamic_a($dynamic_popup);
if (
$bbuserinfo[lastactivity]>AND $bbuserinfo[lastactivity]>mktime (date("H")-12date("i"), date("s"), date("m"), date("d"), date("Y")))     {unset ($dfh_announcement_popuptopaste);} //popup once in every XX hours 

(Change 12 above if you want to apply a different popup duration.)

djjeffa 01-16-2005 09:05 PM

i upgraded to 3.0.5 and its in my admin panel but its not showing up.
can I get a lil help?


All times are GMT. The time now is 07:40 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.01974 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete