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.

Logician 10-04-2005 08:34 PM

I can't give you a solution since I don't use cmps but apparently this is normal. Because the hack produces its results only when "index.php" (forum home script) runs. Since you don't run it but instead your cmps script, it is normal that the annoucement is not produced.

Crazy Serb 10-04-2005 09:37 PM

Quote:

Originally Posted by Logician
I can't give you a solution since I don't use cmps but apparently this is normal. Because the hack produces its results only when "index.php" (forum home script) runs. Since you don't run it but instead your cmps script, it is normal that the annoucement is not produced.

hmm... what does it depend on, though?

all conditionals that were supposed to appear in forumhome template are in the adv_portal template (since that is the "new" forumhome, sort of... it uses most of the code from other templates except that it strips out everything in the <head>...</head> part)

I have renamed my cmps_index.php into the index.php (so that is my homepage), and the forum page (previously index.php) has been renamed to forum.php.

Now, is there anything that appears in forum.php that this hack checks for, and then displays the announcement?

csidlernet 10-05-2005 02:32 AM

/me installs
Very.. very uhh dynamic

Ugur CETIN 10-06-2005 12:47 PM

Installed guys, thank you very much....

JJR512 10-06-2005 12:53 PM

Logician, you missed one tag causing XHTML non-compliance: In the dfh_announcement template, there is one "<br>" tag, should of course be "<br />". :)

swantonio 10-06-2005 01:11 PM

as I can modify the dimension of the red window

https://vborg.vbsupport.ru/

Logician 10-06-2005 02:13 PM

Quote:

Originally Posted by JJR512
Logician, you missed one tag causing XHTML non-compliance: In the dfh_announcement template, there is one "<br>" tag, should of course be "<br />". :)

as you wish.. fixed :)

Logician 10-06-2005 02:15 PM

Quote:

Originally Posted by swantonio
as I can modify the dimension of the red window

http://img112.imageshack.us/img112/7...ine16oz.th.png

The dimension of the red window is set according to your style settings. If you want to overwrite it and use manual settings, edit template dfh_announcement_popup (in ALL TEMPLATES SETS you have) and play with this line:

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">

(Use fixed numbers for $stylevar[cellpadding] and $stylevar[cellspacing])

one9er 10-06-2005 02:43 PM

Thanks Logician!

Ugur CETIN 10-08-2005 08:37 PM

Hi logican, i installed this hack, very thnx for this but after install, i'd imported a new skin. Reinstalled product but it doesnt works. everything seems ok...

What do u think about problem..?

Logician 10-08-2005 08:45 PM

Quote:

Originally Posted by Ugur CETIN
Hi logican, i installed this hack, very thnx for this but after install, i'd imported a new skin. Reinstalled product but it doesnt works. everything seems ok...


What do u think about problem..?

Apply forumhome template modification to your new skin's forumhome template.

Ugur CETIN 10-08-2005 08:59 PM

Oh, sorry, i'd solved problem...

Thnx mate..

breaume 10-09-2005 01:45 PM

For all you VBA CMPS users I have this working on the CMPS home Page. Here is what I did. I am no coder but it works on my site. I also add step 2 to forum display and showthread.

1. in the Plugin System -> Plugin Manager
move Dynamic Forum Home Announcement Hack by Logician from forumhome_complete to Global_start hook location

2. edit adv_portal template just the same as in the forumhome template.
Replace
Code:

</head>
<body>
$header
$navbar

with
Code:

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

3. ADmincp -> VBA CMPS -> Default Settings -> Portal Output Global Variables

Add the following
dfh_announcement
dfh_announcement_popup
dfh_announcement_headercode

and Save :)

havefun 10-09-2005 02:27 PM

great hack! :) THX

[high]* havefun clicked install[/high]

Crazy Serb 10-09-2005 03:34 PM

Quote:

Originally Posted by breaume
For all you VBA CMPS users I have this working on the CMPS home Page. Here is what I did. I am no coder but it works on my site. I also add step 2 to forum display and showthread.

1. in the Plugin System -> Plugin Manager
move Dynamic Forum Home Announcement Hack by Logician from forumhome_complete to Global_start hook location

2. edit adv_portal template just the same as in the forumhome template.
Replace
Code:

</head>
<body>
$header
$navbar

with
Code:

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

3. ADmincp -> VBA CMPS -> Default Settings -> Portal Output Global Variables

Add the following
dfh_announcement
dfh_announcement_popup
dfh_announcement_headercode

and Save :)


that did it.

you da man!

Allan 10-09-2005 10:26 PM

Thanks for this Hack :)

Click Install

Allan 10-09-2005 10:39 PM

Under IE, it's OK, work perfectly, but with firefox, it's very big :( (screen)

Boots 10-09-2005 11:22 PM

works fine in IE but Firefox 1.0.7 doesn't display that popup...

LICryptkeeper 10-09-2005 11:40 PM

Hi, Installed this on my forum, Like it, but I have one question, Is it possible to have this in a thread?

I know it's intended use, but I would like to have a "nag" screen for visitors to register, and since most links to my site are pointing to showthread.php and not index.php, most visitors are going directly to a thread.

is this possible?

SVZ 10-10-2005 10:03 AM

The popup looks *really* bad in firefox...it's a huge red block

Logician 10-10-2005 10:13 AM

Quote:

Originally Posted by SVZ
The popup looks *really* bad in firefox...it's a huge red block

Here is the fix for this :

Edit template "dfh_announcement_popup" (in ALL TEMPLATE SETS YOU HAVE!), find :
HTML Code:

top: 50px; bottom: 50px; left: 50px; right: 50px;
replace it as:
HTML Code:

top: 50px;  left: 50px;

Logician 10-10-2005 10:20 AM

Quote:

Originally Posted by Logician
Here is the fix for this :

Edit template "dfh_announcement_popup" (in ALL TEMPLATE SETS YOU HAVE!), find :
HTML Code:

top: 50px; bottom: 50px; left: 50px; right: 50px;
replace it as:
HTML Code:

top: 50px;  left: 50px;

Hack ZIP file updated for this fix.

Allan 10-10-2005 10:30 AM

Now, with firefox :

Logician 10-10-2005 02:16 PM

Quote:

Originally Posted by Allan
Now, with firefox :

That darn firefox and its layer positioning!

Try this one to use as your dfh_announcement_popup template:

HTML Code:

<DIV ID="ANNLAYER" STYLE="background-color: red; position: absolute; margin-left:5; margin-right:5; margin-top:5; margin-bottom:0;  top:25%; left:25%; height:50%; width:50%; padding: 10px; overflow: auto; border-color: 000000; border-style: solid; border-top-width: 2px; border-right-width: 3px; border-bottom-width: 3px; border-left-width: 2px;">

<table cellpadding="1" cellspacing="0" border="0" class="tborder" width="100%" height="100%"  align="center"><tr><td>
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" height="100%">
<tr>
        <td class="panelsurround" align="center">
        <div class="panel"><div align="$stylevar[left]">

$dfh_announcement_popuptopaste

<br /><br />

<input type="button" onclick="clearpopupannouncement('ANNLAYER')" name="clear" value="$vbphrase[closeannouncement]" class="button">
<br />

</div></div>

</div></div>
        </td>
</tr>
</table>
</td></tr></table>

</div>

I know it is still not 100% perfect for firefox but this is all I can do for you guys, sorry.. If you like, you can keep playing with HTML in this template tweak it further.

Allan 10-10-2005 04:20 PM

Thanks Logician, it's perfect for me :)

Crazy Serb 10-10-2005 06:32 PM

how hard would it be to incorporate this dynamic dropin ad window as the announcement popup part:

http://www.dynamicdrive.com/dynamici.../dropinbox.htm

i can't get it to open up a popup window when I try substituting the code from the dhtml popup into the dfh_popup template, and adding the javascript code to the head tag...

plus I think it looks a lot nicer than the popup that is a part of the hack right now... no offence or anything, but someone's made a more sophisticated one, and it would be really cool to see it implemented.

Logician 10-10-2005 06:42 PM

Quote:

Originally Posted by Crazy Serb
how hard would it be to incorporate this dynamic dropin ad window as the announcement popup part:

http://www.dynamicdrive.com/dynamici.../dropinbox.htm

Does not sound so hard but please try yourself. I really don't have time to improve this hack further.. You should add the STEP 2 part into "dfh_announcement_headercode" template and STEP 3 into "dfh_announcement_popup" template.

Replace "SPECIFY YOUR CONTENT HERE. IT COULD BE TEXT, IMAGES, OR RICH HTML" with "$dfh_announcement_popuptopaste"

Crazy Serb 10-10-2005 07:21 PM

Quote:

Originally Posted by Logician
Does not sound so hard but please try yourself. I really don't have time to improve this hack further.. You should add the STEP 2 part into "dfh_announcement_headercode" template and STEP 3 into "dfh_announcement_popup" template.

Replace "SPECIFY YOUR CONTENT HERE. IT COULD BE TEXT, IMAGES, OR RICH HTML" with "$dfh_announcement_popuptopaste"

exactly what I did, and it doesn't seem to be working... can anyone else try this out?


EDIT: I know what the problem was... the code for the popup itself. I've tried another dropin code from dynamicdrive and it worked just fine.

Thanks Logician...

ambumann 10-10-2005 08:11 PM

Great extension, installed here!

Isn't it possible to make a "easier to use" menu system for the conditonals so we don't have to remember/look them up every time a new announcement is in the making?

womansnet 10-12-2005 02:19 AM

Is there any way to put this on all the main pages of the forums? I have it working on the home page, but it would be great to be able to add it to other pages, especially for when someone uses a direct link to a thread.


All times are GMT. The time now is 05:31 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.02142 seconds
  • Memory Usage 1,849KB
  • 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
  • (8)bbcode_code_printable
  • (5)bbcode_html_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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