![]() |
Excellent, I love this one.
/me clicks install. |
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 |
Quote:
|
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? ;) |
Quote:
[[($bbuserinfo[languageid]==1)]] Tell me something in language 1 [[/($bbuserinfo[languageid]==1)]] [[($bbuserinfo[languageid]==2)]] Tell me something in language 2 [[/($bbuserinfo[languageid]==2)]] |
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 :) |
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> Code:
$dfh_announcement_headercode Thanks, dreck |
Quote:
https://vborg.vbsupport.ru/showpost....7&postcount=37 Quote:
|
Quote:
|
Quote:
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. |
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.
|
Quote:
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? |
/me installs
Very.. very uhh dynamic |
Installed guys, thank you very much....
|
Logician, you missed one tag causing XHTML non-compliance: In the dfh_announcement template, there is one "<br>" tag, should of course be "<br />". :)
|
|
Quote:
|
Quote:
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"> (Use fixed numbers for $stylevar[cellpadding] and $stylevar[cellspacing]) |
Thanks Logician!
|
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..? |
Quote:
|
Oh, sorry, i'd solved problem...
Thnx mate.. |
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> Code:
$dfh_announcement_headercode Add the following dfh_announcement dfh_announcement_popup dfh_announcement_headercode and Save :) |
great hack! :) THX
[high]* havefun clicked install[/high] |
Quote:
that did it. you da man! |
Thanks for this Hack :)
Click Install |
Under IE, it's OK, work perfectly, but with firefox, it's very big :( (screen)
|
works fine in IE but Firefox 1.0.7 doesn't display that popup...
|
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? |
The popup looks *really* bad in firefox...it's a huge red block
|
Quote:
Edit template "dfh_announcement_popup" (in ALL TEMPLATE SETS YOU HAVE!), find : HTML Code:
top: 50px; bottom: 50px; left: 50px; right: 50px; HTML Code:
top: 50px; left: 50px; |
Quote:
|
Now, with firefox :
|
Quote:
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;"> |
Thanks Logician, it's perfect for me :)
|
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. |
Quote:
Replace "SPECIFY YOUR CONTENT HERE. IT COULD BE TEXT, IMAGES, OR RICH HTML" with "$dfh_announcement_popuptopaste" |
Quote:
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... |
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? |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|