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)

ranger2kxlt 08-16-2004 07:43 PM

What files/templates do i have to edit, to make this announcement show up in every topic, post, etc....Right now its only on the home page and the forums home page :-/

thanks!

sv1cec 08-17-2004 03:58 AM

Quote:

Originally Posted by ranger2kxlt
What files/templates do i have to edit, to make this announcement show up in every topic, post, etc....Right now its only on the home page and the forums home page :-/

thanks!

If you want it everywhere, you may add it in the navbar template. In that way, it will appear below (or above) your navbar, wherever the navbar appears.

Rgds

ranger2kxlt 08-17-2004 01:51 PM

sv1cec thanks for the reply, but seems even if i add it there, it will only show up on the index pages.... I added the $dfh_announcement right after </if> (last line of the nav template)

Anymore suggestions?

ranger2kxlt 08-17-2004 06:33 PM

no go on that as well...but we decided to go with another approach that doesn't use this hack for now. Thanks for looking...if you get time and can find the answer we will use it, but not a rush.

sv1cec 08-17-2004 06:36 PM

Quote:

Originally Posted by ranger2kxlt
sv1cec thanks for the reply, but seems even if i add it there, it will only show up on the index pages.... I added the $dfh_announcement right after </if> (last line of the nav template)

Anymore suggestions?

There is no reason why it wouldn't show. I tried it and it works like a charm. The thing is I've done a lot of mods in this hack, to make it work as I wanted it, so I am not sure if it will work in other forums, as it works in mine.

But if you add it in forumhome and in forumdisplay and it works, there is no reason why it shouldn't work in navbar too. Are you sure you have done the mods suggested in the original hack, especially those involving the global.php file?

Rgds

sv1cec 08-17-2004 06:43 PM

Quote:

Originally Posted by sv1cec
There is no reason why it wouldn't show. I tried it and it works like a charm. The thing is I've done a lot of mods in this hack, to make it work as I wanted it, so I am not sure if it will work in other forums, as it works in mine.

But if you add it in forumhome and in forumdisplay and it works, there is no reason why it shouldn't work in navbar too. Are you sure you have done the mods suggested in the original hack, especially those involving the global.php file?

Rgds

In your global.php. is there something like :

PHP Code:

// Logician Hack: Dynamic Forum Announcements Hack
$globaltemplates[] = 'dfh_announcement';
$globaltemplates[] = 'dfh_announcement_headercode';
$globaltemplates[] = 'dfh_announcement_popup';
// Logician Hack: Dynamic Forum Announcements Hack 

If not, then add that, right after the code below:

PHP Code:

    //'board_inactive_warning'
)); 

Let me know if it works. I'll check more tomorrow morning. Have to go watch the Olympics.

Rgds

Zelda-King 08-17-2004 08:27 PM

Are there any steps that need redoing following an upgrade OTHER than file edits? I had this running on 3.0.1 then I upgraded to 3.0.3, applied the edits and the announcements don't show. I haven't at this point reverted any templates and I still see the admincp options.

MnBthunDER 08-18-2004 04:05 AM

Hmm this is very interesting... I found out about this thread from this site www.wlgo.com/bbs cuz I wanted to try out this announcement hack. Is it possible to make the announcement in motion ? I would be great since it will not require a big msgbox when there is a lot to announce :)

sv1cec 08-18-2004 05:56 AM

Quote:

Originally Posted by ranger2kxlt
no go on that as well...but we decided to go with another approach that doesn't use this hack for now. Thanks for looking...if you get time and can find the answer we will use it, but not a rush.

Check this post post and apply it. It will allow you to show the $dfh_announcement from every template.

Let me know if it works.

Rgds

sv1cec 08-18-2004 05:57 AM

Quote:

Originally Posted by MnBthunDER
Hmm this is very interesting... I found out about this thread from this site www.wlgo.com/bbs cuz I wanted to try out this announcement hack. Is it possible to make the announcement in motion ? I would be great since it will not require a big msgbox when there is a lot to announce :)

Try using the HTML marquee tag.

Rgds


All times are GMT. The time now is 07:42 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.01224 seconds
  • Memory Usage 1,746KB
  • 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
  • (5)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