vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals (https://vborg.vbsupport.ru/showthread.php?t=97073)

Andreas 09-29-2005 08:48 PM

Suggest to get rid of the Template edit:

forumhome_complete
PHP Code:

$headinclude .= $dfh_announcement_headercode;
$header $header $dfh_announcement_popup;
$navbar .= $dfh_announcement


XtremeOffroad 09-29-2005 10:29 PM

Very cool, Works flawless so far.
Clicks Install

utw-Mephisto 09-30-2005 08:49 AM

Could someone give me a bit of a code to get a red box around the dynamic announcement (not the popup, the other one) ?

Logician 09-30-2005 08:58 AM

Quote:

Originally Posted by KirbyDE
Suggest to get rid of the Template edit:

forumhome_complete
PHP Code:

$headinclude .= $dfh_announcement_headercode;
$header $header $dfh_announcement_popup;
$navbar .= $dfh_announcement


Edit : Nope, didn't work! Navbar is compiled after "forumhome_complete" hook in index.php ;)

Logician 09-30-2005 08:59 AM

Quote:

Originally Posted by SirJonathan
Hey there!

As I'm re-installing the mod I've been studying the conditionals and I came up with a conditional which I couldn't seem to make work. Is there anyway I could have a message show if a user hasn't posted in a certain forum? So, if user has no posts in (insert forum ID), a message will display?

Would this be possible? :)

Thanks!

-Jonathan

Nope sorry.. The hack can not know whether a user has posted in a forum or not without querying the DB so this can't be done without modifying hack code.

Avalon111 09-30-2005 09:14 AM

i have used your old version of this hack with 3.0.9. worked great!

today i have uplraded my forum to 3.5 gold.
i have deleted the old dfh templates and installed this new version on my forum.

now i have 2 forum home and 2 pop up boxes in admin cp. only 1 of each is working.

what have i done wrong?

Logician 09-30-2005 09:25 AM

Quote:

Originally Posted by Avalon111
i have used your old version of this hack with 3.0.9. worked great!

today i have uplraded my forum to 3.5 gold.
i have deleted the old dfh templates and installed this new version on my forum.

now i have 2 forum home and 2 pop up boxes in admin cp. only 1 of each is working.

what have i done wrong?

Nothing.. Please follow these step:
* admin cp/manage products/uninstall Dynamic Forum Home Announcement Hack by Logician
* edit includes/config.php, find:

PHP Code:

?> 

replace this line as:
PHP Code:

// Debug
 
$config['Misc']['debug'] = true
?> 

(and upload to the server)

* login to admin cp, go to vb options/dynamic forum home announcements

* delete all settings and settings group in that page to remove 3.0 settings. (by clicking "delete" next to 2 settings and 1 setting group title)

* Revert your config.php (and upload the server)

* Now install 3.5 version.

Avalon111 09-30-2005 12:05 PM

thank you very much!!!
everything is working now!

jesus likes pie 09-30-2005 01:23 PM

I am so getting this when I get home!

dookie 09-30-2005 05:42 PM

Nice hack, works fine @ 3.5 Gold


All times are GMT. The time now is 07:33 AM.

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.04394 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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