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)

Mike Gaidin 09-30-2005 09:43 PM

Excellent, I love this one.

/me clicks install.

dsotmoon 09-30-2005 10:16 PM

i have it working great but it isnt following the colors of my forum and it just doesnt look right, is something wrong?

https://vborg.vbsupport.ru/external/2005/09/1.jpg

Logician 10-01-2005 05:30 AM

Quote:

Originally Posted by dsotmoon
i have it working great but it isnt following the colors of my forum and it just doesnt look right, is something wrong?

http://www.hostyourimage.com/uploads/ab4f76c36a.jpg

Please double check you applied STEP2 correctly. If you are sure you installed that step correctly but it still does not work for you, I can check it in your board if you give me admin cp access.

Bellinis 10-01-2005 11:01 AM

I'm so glad I found this hack! :)

One question though...
My forum uses two official languages. It would be great if I could write personal announcements in the users' preferred board language.

Is this possible with this hack? And if not... does anyone know how I could accomplish that? ;)

Logician 10-01-2005 11:20 AM

Quote:

Originally Posted by Bellinis
I'm so glad I found this hack! :)

One question though...
My forum uses two official languages. It would be great if I could write personal announcements in the users' preferred board language.

Is this possible with this hack? And if not... does anyone know how I could accomplish that? ;)

Not tested but should work:

[[($bbuserinfo[languageid]==1)]]
Tell me something in language 1
[[/($bbuserinfo[languageid]==1)]]

[[($bbuserinfo[languageid]==2)]]
Tell me something in language 2
[[/($bbuserinfo[languageid]==2)]]

Billspaintball 10-01-2005 01:02 PM

Just installed.
I was running this hack with my vB3.0.8 board which I upgraded to 3.5 tonight.

There is one small side effect of upgrading to 3.5 then installing this hack, in the announcements section of the ACP, there is two windows for the forum home announcement, and 2 windows for the popup announcement.

If you put the announcements in the bottom windows all works fine, but I guess I should work out how to delete the two old windows so noone else gets confused :)

dreck 10-01-2005 04:59 PM

Logician,

I just love this hack. I do have a question? I am trying to get this to display on my cmps_index.php page.
I edited the adv_portal template from:
Code:

</head>
<body>
$header
$navbar

To:
Code:

$dfh_announcement_headercode
</head>
<body>
$dfh_announcement_popup
$header
$navbar
$dfh_announcement

But I couldn't get to work. Do I need to edit anything else?


Thanks, dreck

Logician 10-01-2005 05:56 PM

Quote:

Originally Posted by Billspaintball
Just installed.
I was running this hack with my vB3.0.8 board which I upgraded to 3.5 tonight.

There is one small side effect of upgrading to 3.5 then installing this hack, in the announcements section of the ACP, there is two windows for the forum home announcement, and 2 windows for the popup announcement.

If you put the announcements in the bottom windows all works fine, but I guess I should work out how to delete the two old windows so noone else gets confused :)

Please see here:
https://vborg.vbsupport.ru/showpost....7&postcount=37

Quote:

I am trying to get this to display on my cmps_index.php page
I'm sorry but I'm really not familiar with cmps. I have never used or even installed it.

dreck 10-01-2005 06:33 PM

Quote:

Originally Posted by Logician
I'm sorry but I'm really not familiar with cmps. I have never used or even installed it.

Ok, thanks!

Crazy Serb 10-04-2005 08:29 PM

Quote:

Originally Posted by dreck
Logician,

I just love this hack. I do have a question? I am trying to get this to display on my cmps_index.php page.
I edited the adv_portal template from:
Code:

</head>
<body>
$header
$navbar

To:
Code:

$dfh_announcement_headercode
</head>
<body>
$dfh_announcement_popup
$header
$navbar
$dfh_announcement

But I couldn't get to work. Do I need to edit anything else?


Thanks, dreck

I have the same problem...

since cmps_index.php removes anything above the </head> tag in forumhome template, we should be adding that code to the adv_portal template instead.

however, it doesn't work wherever I put it... I just don't get any code from the dfh_ templates... weird.


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.01138 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
  • (4)bbcode_code_printable
  • (6)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