PDA

View Full Version : Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals


Pages : 1 [2]

MissKalunji
02-26-2006, 09:34 PM
there is no javascript error with the default vb skin. However if you are using a custom skin, something might be clashing with your skin's HTML code. I think your webdesigner who designed the skin can help more on this.

mine is doing it also in the default one also

ALL MY SKIN

tim356
02-27-2006, 12:11 AM
After installing this hack, my navbar, categories and other gradient images aren't working. For some reason the hack has changed their location - it's looking for them in clientscript/vbulletin_css/images/gradients/gradient_thead.gif
instead of
images/gradients/gradient_thead.gif

Why is this? I've fixed the problem by moving the images/gradients folder to the clientscript/vbulletin_css folder, but I shouldn't have to do this.

MissKalunji
02-27-2006, 03:45 AM
i figured it out i 4got to add one of the $ before </head>

Logician
02-27-2006, 06:52 AM
After installing this hack, my navbar, categories and other gradient images aren't working. For some reason the hack has changed their location - it's looking for them in clientscript/vbulletin_css/images/gradients/gradient_thead.gif
instead of
images/gradients/gradient_thead.gif

Why is this? I've fixed the problem by moving the images/gradients folder to the clientscript/vbulletin_css folder, but I shouldn't have to do this.
Make sure you installed correctly. If necessary, remove the hack and then reinstall.

TheMusicMan
02-27-2006, 07:03 AM
Hey Logician...

Did you see my qn in post #250? Ta.

Also - if I want the announcement to show on other vB pages, can I add the code to other templates such as the navbar or searchresults templates? I'd love for the table annuncement to appear elsewhere on my site too.

Cheers.

Logician
02-27-2006, 07:38 AM
Hack of hack to make it appear in all vb pages.

IMPORTANT NOTE:This hack is originally designed to display the hack announcement in FORUMHOME PAGE ONLY! And I'm only supporting the hack when it is used in the way it is designed. However many users asked how they can make the hack announcement appear in other vb pages too so I'm sharing how to do this. BUT : this is not tested good enough by me, nor do I have time to test it so if you are changing how the original hack works by applying the instructions below, you are on your on if a problem comes up. I dont support the hack anymore when the instructions below are applied. If it does not work as expected, use the original hack.

TheMusicMan
02-27-2006, 08:02 AM
oK thanks for this... and the question in post #250...?

SaN-DeeP
02-27-2006, 02:46 PM
Hack of hack to make it appear in all vb pages.

IMPORTANT NOTE:This hack is originally designed to display the hack announcement in FORUMHOME PAGE ONLY! And I'm only supporting the hack when it is used in the way it is designed. However many users asked how they can make the hack announcement appear in other vb pages too so I'm sharing how to do this. BUT : this is not tested good enough by me, nor do I have time to test it so if you are changing how the original hack works by applying the instructions below, you are on your on if a problem comes up. I dont support the hack anymore when the instructions below are applied. If it does not work as expected, use the original hack.
thanks logician,
gonna try this out now :nervous:

Thieutje
02-28-2006, 01:14 PM
After the installation is done !, the SHOUTBOX is placed ABOVE the announcement ...

I can't get to change it ..

Is it possible to have it placed ABOVE shout box ????

Anyone ?

D.Ilyin
03-01-2006, 05:56 AM
After the installation is done !, the SHOUTBOX is placed ABOVE the announcement ...

I can't get to change it ..

Is it possible to have it placed ABOVE shout box ????

Anyone ?
./admincp/options.php?null=0
vBShout Options - vBShout Position - Above Forums

CongTuDepTrai
03-01-2006, 11:58 PM
I have 2 question

is this work with forumID? because i wanna se annoucement for each forumID, not only on FORUMHOME

can we setup different announcement for different forumID?

kira
03-06-2006, 02:12 AM
Many many thanks for this awesome and extremely integral addon. Used this in vb2 and am delighted to continue now that I'm finally moving to vb 3.5.4. Thank you again, Logician!

dcpaq2xx
03-25-2006, 03:47 PM
What are the big differences between this and the Welcome headers hack (https://vborg.vbsupport.ru/showthread.php?t=99579)?

Group,

Is it possible that Logicians mod here can take the place of and or out do Ted's mod?

Id like to know if I should be using both mods or just this one or using only Ted's mod?

Can someone help shed some light on this for me, I am undecided on what I should do.

Alot of this has to do with where do i like the announcements being displayed, such as in above or below the nav bar such as in the header or just above the forums.

Thanks

Doug

dcpaq2xx
03-25-2006, 08:11 PM
Logician,

How about adding a radio button or something within the admin control panel to disable the default Vbulletin "first_visit_message" phrase to keep us from having to manually edit or delete any code?

Would you be willing to do this for us? or me?

Also Id like to make a suggestion to have more boxes added to the acp so we can seperate things according to categories or something, instead of everything being all in one box.

Thanks

Doug

dcpaq2xx
03-25-2006, 08:34 PM
Is there a way that I can add my conditional messages like below but also be able to seperate each message with a line and what the message does without it showing up on the forums?

------------Begin Welcome Guest-----------
[[($bbuserinfo[usergroupid]==1)]]Message would be here.[[/($bbuserinfo[usergroupid]==1)]]
--------------End Welcome Guest-----------

For some reason the Begin and End Welcome Guest and lines show up, how can I do this and have them not show up.

Thanks

Doug

dcpaq2xx
03-26-2006, 01:52 AM
Group,

What would the IF command be for a user who has NEVER made a post?

What would the IF command be for a user who has registered but has not had their email address confirmed yet?

What would the IF command be for a user who hasnt made a post within a certain period of time?

I ask these as I didnt see these covered in the examples by Logician.

Thanks

Doug

d8tabyte
03-26-2006, 12:38 PM
I seen this hack with a fade in box that contained quick registration, how would I go about this?

I saw it on http://www.talkinto.com/forums/index.php? and I really like the idea - I have seen the code pasted here earlier for a fade box, but I am not sure if that is a separate hack or what....

anyone?

d8tabyte
03-28-2006, 02:09 AM
Anyone? It seems they don't have the fade in on that site any more.. - but the code that matches is here in this post - https://vborg.vbsupport.ru/showthread.php?p=851299&highlight=fade#post851299

Any ideas?

NemoTech
04-02-2006, 12:37 PM
Okay I have this working on forumdisplay. I'd like to have announcement on 3 different forums. $forumid == (5, 208, 12). I can go into my template(FORUMDISPLAY) and make adjustments in there. But ideally I'd like to make changes from the "dynamic announcements options".

I am wondering can I do something like this...
[[($bbuserinfo[usergroupid]==6)] and ($forumid=='80')]
MY ANNOUNCEMENTS!!!!
[[/($bbuserinfo[usergroupid]==6)] and /($forumid=='80')]

If I can get this working, I'll be able to have multiple announcements - different announcements for different forums!!! - Which would be ideal!!!

NemoTech
04-02-2006, 01:18 PM
<if condition="(in_array($forumid, array(2,4)))">
annoucement
</if>

Multiple forums.

El-Gazaly
04-17-2006, 01:29 AM
Great hack and could be very useful ....downloaded and installed ...
Thanks

fatxy
04-29-2006, 12:00 AM
installed! great hack, like it

maybe a turn on/off would be nice for future builds

vauge
04-30-2006, 04:33 PM
How do I get rid of the box if I only want to show conditional annoucements?

Thanks!

SaN-DeeP
05-05-2006, 11:13 PM
Hi there,
Vague question but is it possible to have different setups for different usergroups ?
Having Global Annoucements for some usergroups while having only forumhome annoucements for some usergroups :)

Thanks.

VTXCafe.com
05-11-2006, 05:22 AM
Hi there,
Vague question but is it possible to have different setups for different usergroups ?
Having Global Annoucements for some usergroups while having only forumhome annoucements for some usergroups :)

Thanks.


That is possible and the instructions are in Logicians first post.

paul41598
05-11-2006, 12:42 PM
Is there a conditional to test if the user has a profile pic or not? If not, display a msg to remind them to upload one ;)

I cant find the bbuserinfo part its stored in

Logician
05-11-2006, 01:47 PM
Is there a conditional to test if the user has a profile pic or not? If not, display a msg to remind them to upload one ;)

I cant find the bbuserinfo part its stored in
I agree that this would be a perfect conditional but unfortunately there is no way to do it without a "hack". :)

esfan38
05-14-2006, 07:18 PM
Does anyone know if it's possible to easily allow moderators to add announcements via the modcp? Do you think this is even a good idea to let mods make announcements? Certainly mods can use the built-in announcements.

Coach_Guru
05-21-2006, 02:28 AM
How to insert external links in the announcement and popup?

If i use <a href="www.externalsite.ext"</a> the result is www.the url of my site.ext/www.externalsite.ext

Thanks.

kushal
05-21-2006, 05:39 PM
You can use the external link as <a href="http://www.externalsite.ext">Externalsite</a>
It will show Externalsite

GamerJunk.net
05-23-2006, 10:35 PM
With default settings...I enable this and it makes my forumhome go blank.

Raptor
05-24-2006, 12:47 AM
installed - a great hack

is there any way for the pop up to show on all pages not just forumhome ?

RFViet
06-05-2006, 02:51 PM
I want the announcement to be displayed on every page , what should i do ??

D.Ilyin
06-06-2006, 10:20 AM
I want the announcement to be displayed on every page , what should i do ??
First of all you should read first post:
Hacks of Hack:
* For CMPS Integration see here
* French Translation by Allan : https://vborg.vbsupport.ru/showpost.php?p=820408&postcount=143
* Nested Conditionals by dc3dreamer : https://vborg.vbsupport.ru/showpost.php?p=827831&postcount=175
* Hack Annoucement appears in all vb pages:
https://vborg.vbsupport.ru/showthread.php?p=911498#post911498
or that post that post (https://vborg.vbsupport.ru/showpost.php?p=911498&postcount=256)

redlabour
06-08-2006, 04:06 PM
Will it work in the Future with vBulletin 3.6 (http://www.vbulletin.com/forum/showthread.php?t=187654) ?

ShadowWeaver
06-10-2006, 01:10 PM
hi,

actually i'm not getting this to work if i just want to show the message to users who are not primary but just secondary users in that group.

is there a way to do that?

ubblite
06-14-2006, 02:55 AM
Will it work in the Future with vBulletin 3.6 (http://www.vbulletin.com/forum/showthread.php?t=187654) ?
It's working for me with vb3.6 beta 2.

ROTPAR
06-19-2006, 04:45 PM
With default settings...I enable this and it makes my forumhome go blank.

Same here :(

ROTPAR
06-20-2006, 09:50 AM
is there anyone who can helpme out with this problem ?

Canis Firebrand
06-20-2006, 10:41 AM
What other hacks do you have installed?

I have 3.5.4 installed with about 10 hacks in place already. Added in this one, enabled it and it works quite nicely.

Maybe another hack you have installed is conflicting?

ROTPAR
06-20-2006, 11:07 AM
Vbseo but I can?t figure out, what the problem could be :(

Logician
06-20-2006, 02:18 PM
Vbseo but I can?t figure out, what the problem could be :(
Do you use any conditionals? Set announcement as "Hello" and see if it will help?

tanyeri24
06-20-2006, 05:10 PM
After how many hours the pop-up announcement should show up for the same user? (Enter 0 to show it everytime the user visits homepage)
If we enter 0,25 (or 0.25) means after all 15 minutes?

sorry I found my answer:
https://vborg.vbsupport.ru/showpost.php?p=825360&postcount=164

ROTPAR
06-22-2006, 04:03 PM
1 Question...how can I do it, that all Guests get the popup on all forums except 1...So 1 Forum Section should be without the popup! the rest should have it :)

skoenig
06-23-2006, 04:30 AM
I've got this excellent product/hack installed and it all works perfectly.

I'm trying to use $vbphrases so that I can get the messages translated and house them all in one place easily (I read it was BBcode parsed but I thought I'd give it a shot!).

I used this:
[[($bbuserinfo[usergroupid]==1)]]<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>[[/($bbuserinfo[usergroupid]==1)]]

To replicate the initial welcome for guests and for the most part it works perfectly except for the variables and line breaks which don't get replaced properly.

Has anyone else tried this and is it working for them. I guess more importantly should it work at all (i'm guessing not)?

Thanks for your help.

Regards

Steph

Logician
06-23-2006, 06:18 AM
I've got this excellent product/hack installed and it all works perfectly.

I'm trying to use $vbphrases so that I can get the messages translated and house them all in one place easily (I read it was BBcode parsed but I thought I'd give it a shot!).

I used this:
[[($bbuserinfo[usergroupid]==1)]]<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>[[/($bbuserinfo[usergroupid]==1)]]

To replicate the initial welcome for guests and for the most part it works perfectly except for the variables and line breaks which don't get replaced properly.

Has anyone else tried this and is it working for them. I guess more importantly should it work at all (i'm guessing not)?

Thanks for your help.

Regards

Steph
Sorry, this wont work.

skoenig
06-23-2006, 07:31 AM
I figured. I kinda half got it to work but looking at the code it's a whole bunch of hassle to pre-parse it.

It doesn't matter really because I can use the standard welcome message banner thing anyway and the rest is taken care of by your excellent product/hack!

Regards

Steph

RoryF
06-23-2006, 12:02 PM
Is there anyway i can get this to work in the UserCP and how could i add this to other pages aswell?

skoenig
06-23-2006, 08:59 PM
OK I'm sure you get lots of suggestions.

I understand it displays the first matching string in the list. That makes sense.

Is there anyway to expand the messages so that we can add a random switch...maybe in combination dc3dreamers excellent recursion hack....

Something like $dfharandom==3 so that any messages with the same random id number will be selected from randomly (assuming the rest of the conditionals are true for those messages)?

I'm guessing this is a lot of work though since you exit the parsing at the first logical true, right? Would enable us to do tips and such like from a library of little messages...

Also how could we do a date test such as Christmas and Easter?

Regards

Steph

emforum
06-24-2006, 09:40 AM
I uploaded "functions_dfha.php" into vb's /includes/ folder.

I Edited forumhome/forumhome template and replace the code

Uploaded xml file as product

No what i didnt understand is,,

Login to your vb admin cp, go to settings page and configure your announcements in "Dynamic Forum Announcements" settings.

I logged in to admin control pannel, where is the settings page???

emforum

Logician
06-24-2006, 09:41 AM
I uploaded "functions_dfha.php" into vb's /includes/ folder.

I Edited forumhome/forumhome template and replace the code

Uploaded xml file as product

No what i didnt understand is,,

Login to your vb admin cp, go to settings page and configure your announcements in "Dynamic Forum Announcements" settings.

I logged in to admin control pannel, where is the settings page???

emforum
in vb options

skoenig
06-24-2006, 04:08 PM
@emforum - Scroll to the bottom of the drop down list you'll see Dynamic... thats where you edit the annoucements.

BTW is there anyway to make the edit boxes for the conditionals/strings wider/tall by default?

morrow
07-07-2006, 06:48 PM
Nice hack... had it installed for a while but unfortunately, Photopost no longer functions when this product is enabled. Once I disabled the product, Photopost fired right back up again.

I noticed someone else asked about this but didn't get a response. Does anyone have this working with VBA/Photopost?

Thanks

*I'll leave it installed until tomorrow night. I'll fool around with it a little and if I figure anything out, I'll be sure to post the results. Too bad, I really liked this one!

Logician
07-07-2006, 07:43 PM
Nice hack... had it installed for a while but unfortunately, Photopost no longer functions when this product is enabled. Once I disabled the product, Photopost fired right back up again.

I noticed someone else asked about this but didn't get a response. Does anyone have this working with VBA/Photopost?

Thanks

*I'll leave it installed until tomorrow night. I'll fool around with it a little and if I figure anything out, I'll be sure to post the results. Too bad, I really liked this one!
Interesting experience, I cant think of why. Frankly speaking I installed it to a few boards which already use photopost but I didn't have such a problem.

morrow
07-07-2006, 07:54 PM
Interesting experience, I cant think of why. Frankly speaking I installed it to a few boards which already use photopost but I didn't have such a problem.

Possibly my directory structure?

root
- /vBulletin
- /photopost

Photopost is installed into a seperate directory than vBulletin. Could that possibly have something to do with it? Any ideas. My site is, http://www.njflyfishing.com Maybe after seeing the site, something will click. Keep in mind that the hack is disabled.

Logician
07-07-2006, 08:00 PM
Possibly my directory structure?

root
- /vBulletin
- /photopost

Photopost is installed into a seperate directory than vBulletin. Could that possibly have something to do with it? Any ideas. My site is, http://www.njflyfishing.com Maybe after seeing the site, something will click. Keep in mind that the hack is disabled.
Are you using "photopost" or "vbpicgallery"? I dont have any experience with the latter.

Also please make sure you use the original (supported) version of the hack which displays announcement in forum home page only. If you installed unsupported version (which displays announcement in all pages), I'm not sure what kind of problems it can cause with other hacks and scripts.

morrow
07-08-2006, 04:10 AM
I'm using Photopost.

Ok, so vba would not be considered supported? If not, I'll remove it from my vba template.

R-n-R
07-08-2006, 08:44 PM
I just installed this Plug-in last night and so for I have been getting good reviews, thansk for the script!

I did have a couple of my members make a suggestion that the annoucements be able to be shown on the "New Posts" page results as that is how they have my forum bookedmarked.

Would this be possible?

paul41598
08-03-2006, 07:31 PM
Is there a way to use this multiple times? I see you can use this a max of twice, one for the forumhome and one for the popup. What if I want two popups? Or wahtever

bang
08-15-2006, 07:51 PM
does this work on 3.6?

Logician
08-16-2006, 09:47 PM
does this work on 3.6?
Yes, it should

UZFRED
08-21-2006, 05:37 PM
Please update the thread to 3.6.0 to stop confusion and confirm compatibility ;).

mlucek
08-26-2006, 11:49 PM
How does this hack compare to

Welcome headers - Improve community registration rates

https://vborg.vbsupport.ru/showthread.php?t=119572

There's definitely overlap in some of the functionality, though your hack seems a bit more flexible ??

TIA

Logician
08-30-2006, 05:04 PM
How does this hack compare to

Welcome headers - Improve community registration rates

https://vborg.vbsupport.ru/showthread.php?t=119572

There's definitely overlap in some of the functionality, though your hack seems a bit more flexible ??

TIA
As you said: Similiar concepts but mine allows you to create ANY announcement with conditionals while Ted's is easier to configure for users if you are not after a flexible solution but happy with a few message pre-configured for your convenience.. They are both easy to install hack so I'd say, install both and make your decision according to your needs..

vampireus
09-01-2006, 05:57 AM
Installed on vB 3.6, "general table announcement" works but "popup announcement" don't :(

Logician
09-01-2006, 06:39 PM
Please update the thread to 3.6.0 to stop confusion and confirm compatibility ;).
I've tested and confirmed the hack is compatible with 3.6.x too as it is. No changes needed, hack thread updated to stress this point..

Logician
09-01-2006, 06:40 PM
Installed on vB 3.6, "general table announcement" works but "popup announcement" don't :(
It works fine for me. You probably don't see it because you didn't wait for 12 hours (default option) before revisiting the site. Set pop-up frequency setting to 0 and you'll see it.

amcd
09-19-2006, 05:41 PM
hi,
thx for the hack.. installed and its workin beautifully...

i want the dynamic popup to be shown also on a particular forum page (not just home). what can I do for that?
I inserted the same code (as in forumhome) in the header template, but it doesnt work. am a n00b at this, and am sure am missing something basic. can u please help me out... thx.

azn_romeo_4u
09-22-2006, 02:49 AM
anyways to show the annoucement once per day? or per x amount of day?

nimonogi
09-22-2006, 08:29 AM
Can this hack used for showing rules if a member starting a new thread in a certain forum?

istvan
09-27-2006, 09:28 AM
doesnt work ->
[[($bbuserinfo[usergroupid]==10)]]testmessage[[/($bbuserinfo[usergroupid]==10)]]

does work ->
testmessage

so i cant get an message to show for usergroups... Is it so that it only checks on primarygroups?

istvan
09-30-2006, 10:34 AM
doesnt work ->
[[($bbuserinfo[usergroupid]==10)]]testmessage[[/($bbuserinfo[usergroupid]==10)]]

does work ->
testmessage



so i cant get an message to show for usergroups... Is it so that it only checks on primarygroups?

/bump :)

tqvn2004
10-08-2006, 09:15 PM
For those who have problem with closing the announcement popup, do the following:

Edit FORUMHOME template, find: (if you have more than 1 template set apply this to all sets)

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

Replace by:

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

This should do the trick!

===============================================

@Logician: I think it better to embed the announcement popup's closing script in the "dfh_announcement_popup" template, for example:

<script>function clearpopupannouncement(id) {document.getElementById(id).style.display = 'none';}</script>

<DIV ID="ANNLAYER" STYLE="background-color: red; position: absolute; margin-left:5; margin-right:5; margin-top:5; margin-bottom:0; top: 50px; bottom: 50px; 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 height="100%">
<td class="panelsurround" align="center" height="100%">
<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>
</td>
</tr>
</table>
</td></tr></table>
</div>

By this you dont have to define and calling other template, "dfh_announcement_headercode" :D

PS: Actually you can put 3 templates into one :D

Bulent Tekcan
10-23-2006, 08:46 AM
The anouncment screen very BIG Firefox and IE7,it is very bad view.

Any fix for that ?

Thanks

Bubble #5
12-02-2006, 09:16 PM
What if I want two popups?

I think that's its only drawback ;)

Bulent Tekcan
12-13-2006, 09:53 AM
The anouncment screen very BIG Firefox and IE7,it is very bad view.

Any fix for that ?

Thanks

Any idea for this problem ?

Cooleyvol
12-22-2006, 10:08 PM
OK, I'm not understanding the time settings.
I've done the change so that you can set it to minutes.

When I set any variable >0, the box doesnt show up.

If I set negative integers, it does.

What is the setting for 15 minutes?

-0.25?

Logician
12-23-2006, 08:21 AM
OK, I'm not understanding the time settings.
I've done the change so that you can set it to minutes.

When I set any variable >0, the box doesnt show up.

If I set negative integers, it does.

What is the setting for 15 minutes?

-0.25?
Numbers should be positive.

The box normally shows up but it does not show up for you because you visited the board in the last 15 minutes (while setting this setting). Log out and wait for 20 minutes, then revisit the board and you'll see that it will show up.

Logician
12-23-2006, 08:26 AM
The anouncment screen very BIG Firefox and IE7,it is very bad view.

Any fix for that ?

Thanks
Sorry HTML is not my strong point but if you have a design related problem in popup announcement, you can edit template "dfh_announcement_popup" and play with the setting of the DIV style here:


<DIV ID="ANNLAYER" STYLE="background-color: red; position: absolute; margin-left:5; margin-right:5; margin-top:5; margin-bottom:0; top: 50px; bottom: 50px; 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;">

Cooleyvol
12-23-2006, 02:56 PM
Numbers should be positive.

The box normally shows up but it does not show up for you because you visited the board in the last 15 minutes (while setting this setting). Log out and wait for 20 minutes, then revisit the board and you'll see that it will show up.


So the setting for 15 minutes is '15?

If that's the case, how many times does it show during that 15 minutes. Am I correct in thinking that with a setting of '15' that the box will show up for userX for 15 minutes after his first visit to the forums following my setting up of the popup?

If that is incorrect, how can I set it to show up only one time per user OR to show up for the 15 minutes following their first visit? I don't want it to continue popping up for UserX for more than 15 minutes past his first visit after I set it up.

Raptor
01-10-2007, 04:22 PM
Sorry HTML is not my strong point but if you have a design related problem in popup announcement, you can edit template "dfh_announcement_popup" and play with the setting of the DIV style here:


<DIV ID="ANNLAYER" STYLE="background-color: red; position: absolute; margin-left:5; margin-right:5; margin-top:5; margin-bottom:0; top: 50px; bottom: 50px; 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;">


Can someone post a fix for this (IE7) - I cant get anything to work no matter what I tweak ?

Xoligy
01-10-2007, 07:05 PM
I'm now going to take a look, I should have it fixed in an hour max.

Raptor
01-10-2007, 07:35 PM
OK a friend (Xoligy) fixed the code for me so the pop is perfect in IE6, IE7 and Firefox :)

here's the code for dfh_announcement_popup

<div id="ANNLAYER" style="background-color: red; overflow: auto; position: absolute; margin-left:5; margin-right:5; margin-top:5; margin-bottom:0; top:33%; left:12%; height: auto; width:75%; padding: 10px; 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="50%" 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>

Logician
01-11-2007, 07:03 AM
OK a friend (Xoligy) fixed the code for me so the pop is perfect in IE6, IE7 and Firefox :)
Thanks for the fix! I've updated the hack xml too..

Bulent Tekcan
01-11-2007, 05:56 PM
Great news....thanks for that ;)

jazde86
01-13-2007, 08:33 PM
Please update the version number and put in the links to check for an update, thanks!

taydu
01-14-2007, 07:00 AM
I just update and still get the very big popup, please see attachment, how can I make the popup match with size of the text area like the second picture form Logician

Logician
01-14-2007, 08:08 AM
I just update and still get the very big popup, please see attachment, how can I make the popup match with size of the text area like the second picture form Logician
You must have changed the template manually so reinstalling does not overwrite it. Apply the change here:
https://vborg.vbsupport.ru/showpost.php?p=1155703&postcount=333

taydu
01-16-2007, 01:47 AM
i won't let me reinstalled without overwriting it

OmniBuzz
01-24-2007, 02:30 PM
Amazing mod !
Thanks a LOT.

============
Ok one question : How do I set a condition to have a message to be displayed only once per user ?

lazydesis
01-29-2007, 01:58 PM
hello :) could someone help me with the conditionals ..so that the message pops up only for users who have not voted on a poll? for eg. say pollid=10

thanx

Logician
01-29-2007, 07:07 PM
hello :) could someone help me with the conditionals ..so that the message pops up only for users who have not voted on a poll? for eg. say pollid=10

thanx
this wouldn't be possible with this hack, sorry..

taydu
02-05-2007, 02:12 AM
For those who wanted to have the pop up static try the following (I just copy & paste some code from dynamic drive. I'm not really good with coding so if anyone can please clean up the code.)

1. Find dhf_announcement_popup

2. Add to top
<div id="topbar">

3. Add to bottom
</div>

4. Open the header include template

5. Add to bottom

<style type="text/css">

#topbar{
position:absolute;
width: 620px;
visibility: hidden;
z-index: 100;
}

</style>

<script type="text/javascript">

/***********************************************
* Floating Top Bar script- ? Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(off set, end))
}
}
return returnvalue;
}

function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>

bts420
02-14-2007, 03:22 PM
I've installed the script unfortunately when I use the popup announcement, pressing the close button does not close the popup. Anyone else having this problem?

voteforbird
02-14-2007, 08:11 PM
Would this be the correct code for a member who visited within the last 7 days, joined at least 2 weeks ago and is not a member of group 27? This is to combined with "do not display for 720 hours" as a donate reminder every month.:[[!($bbuserinfo[lastvisit]
AND $bbuserinfo[lastvisit]<strtotime(-7 days))
AND is_member_of($bbuserdata['usergroupid'],27)
AND $bbuserinfo[joindate]>strtotime("-2 weeks")]]
Text
[[/($bbuserinfo[lastvisit]
AND $bbuserinfo[lastvisit]<strtotime(-7 days))
AND is_member_of($bbuserdata['usergroupid'],27)
AND $bbuserinfo[joindate]>strtotime("-2 weeks")]]

voteforbird
02-14-2007, 08:25 PM
Also, is the hours timer cookie or db-based?

voteforbird
02-19-2007, 11:34 PM
Anyone?

voteforbird
03-16-2007, 08:51 PM
Is there no support for this add-on?

It seems that whenever I use the timer setting, it simply doesn't show at all.

monasa
04-03-2007, 06:36 PM
Im beginner user of VB 3.6.5 and interested to integrate DFHA to my forum. However still cant figure out what does this mean in installation instructions,

2- Edit forumhome/forumhome template and find:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
</head>
<body>
$header
$navbar
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Please guide me on these :-
Where does this forumhome/forumhome template located?
What files should I modify?

Your help much appreciated.

monasa
04-03-2007, 08:38 PM
Im beginner user of VB 3.6.5 and interested to integrate DFHA to my forum. However still cant figure out what does this mean in installation instructions,

2- Edit forumhome/forumhome template and find:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
</head>
<body>
$header
$navbar
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Please guide me on these :-
Where does this forumhome/forumhome template located?
What files should I modify?

Your help much appreciated.

found it myself

otto
05-03-2007, 05:40 AM
Hi,

and sorry for my bad english ...

I search the conditionals for :

"today is X, hour is between Y and Z, day is wednesday, month is Y, week is month's 2nd week, "

Please help. Thanks!

Bulent Tekcan
05-03-2007, 08:43 AM
Hello Logician

Is it possible this announcment special forum ? For example only ForumID 4,5,8 or what ever.

Thanks

Bulent Tekcan
05-14-2007, 06:19 AM
Hello Logician

Is it possible this announcment special forum ? For example only ForumID 4,5,8 or what ever.

Thanks

***Bump***

atropos4
05-20-2007, 09:21 PM
/me clicks install

This may be just what I am looking for!

EDIT:
Exactly what i was looking for!
thank you!

RaidenDAWG2
05-23-2007, 07:31 PM
Hello Logician

Is it possible this announcment special forum ? For example only ForumID 4,5,8 or what ever.

Thanks
Do a condition based on the variable $forumid if you're using the hack to make the thing display on all vB pages, so something along the lines of...


[[($forumid == 4)]]Your message here...[[/($forumid==4)]]


Where your forum's id is 4 obviously...

Or, if you wanted to do more than one forum...


[[(in_array($forumid, array(5,6,7))]]Your message here...[[/(in_array($forumid, array(5,6,7))]]


Where array(5,6,7) would refer to forums with id's 5,6, and 7. Or whatever you prefer there. The form is basically a comma separated list with no spaces for in_array.

I've not tested those exactly, but my understanding of where that hook is located is that you should have access to the $forumid variable from global.php, which should be what you'd need to do it.

-RD

Bulent Tekcan
05-24-2007, 07:50 AM
Aha it is worked :)

But your code include 2 extra space.

[[($forumid == 4)]]Your message here...[[/($forumid==4)]]

Working Code

[[($forumid==4)]]Your message here...[[/($forumid==4)]]

Thanks for great post.

Bulent Tekcan
05-25-2007, 11:57 AM
I find a problem today.If I use this conditional User Notes is not working.When I press Post Notes or View Notes this error occured.Every user same thing

"No User specified. If you followed a valid link, please notify the administrator"

Any idea for this ?

Bulent Tekcan
06-11-2007, 03:13 PM
I find a problem today.If I use this conditional User Notes is not working.When I press Post Notes or View Notes this error occured.Every user same thing

"No User specified. If you followed a valid link, please notify the administrator"

Any idea for this ?

**Bump**

Logician
06-20-2007, 04:10 PM
**Bump**
I guess this happens because you use the unsupported "make it work in ALL vb pages" version. As stated in that hack of hack, it is not tested well and it can cause such problems. This is because the original of this hack is not designed to run in all vb pages but only in forum home. So if you have the problem, please revert to the original supported version of the hack.

Soliloquy
06-22-2007, 04:49 AM
I'd like to display a message each Thursday to remind users it's chat night, and another each Thursday between 9 and 11 p.m. to remind users to go to the chat room. The first post says this plugin has that functionality, but there are no examples given with the rest of the usage instructions.

Yousof
07-10-2007, 05:43 AM
when i press close , why the popup doesnt close ? its annoying

Desesperao
07-13-2007, 12:50 AM
HI,

This is my community: http://www.foromotos.com

You can see the popup announcement at the top. This is the problem.

I need to show the popup in the middle of the page.

Is it possible?

I have changed some parameters in the "dfh_announcement_popup" template but I can?t put the popup in the middle

Thanks

Desesperao
07-19-2007, 06:05 PM
Any idea?

symptome
08-01-2007, 05:56 AM
at http://www.symptome.ch you see a picture in the welcome message.
this is only avaiable today.

why is there so much space at the top of the picture?

thanks a lot!
marcel

this is my code:
<table border="0" cellpadding="0" cellspacing="3" width="100%">
<tr>
<td width="18%"><img border="0" src="http://www.symptome.ch/vbboard/images/schweiz.jpg" width="135" height="92"></td>
<td width="82%"><b>Schweizer Nationalfeiertag</b><br>
Ich w?nsche allen Schweizern unter uns heute einen tollen Feiertag!<br>
Wer eine 1.August-Rede halten m?chte, kann das <a href="http://www.symptome.ch/vbboard/alle-themen/8680-rede-1-august.html">hier</a>
tun.</td>
</tr>
</table>

silence88
08-02-2007, 01:42 PM
Thanks alot, i tried installing this once then it didnt work. But now it works i dont know why. WHO CARES LOL IT WORKS!

brfrankl
08-08-2007, 04:18 PM
Ok, didn't find this mentioned anywhere, but how would I make an announcement "expire" at a certain time (say august 20, 2007 8:00pm EST)...

Great mod by the way!

skariko
08-29-2007, 09:52 PM
Nice hack... had it installed for a while but unfortunately, Photopost no longer functions when this product is enabled. Once I disabled the product, Photopost fired right back up again.

I noticed someone else asked about this but didn't get a response. Does anyone have this working with VBA/Photopost?

Thanks

*I'll leave it installed until tomorrow night. I'll fool around with it a little and if I figure anything out, I'll be sure to post the results. Too bad, I really liked this one!

I've the same problem.

Do you resolve that?

woodcreeker
09-03-2007, 10:56 AM
Clicked Install !!!! Worked perfect for vB 3.6.8 !!!!

Great work !!!!

periphrastic
09-30-2007, 03:30 AM
installed & currently working & thank you (3.6.8)

Tested it. The > before strtotime must be <. Then its fine. :)

[[($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]<1 AND $bbuserinfo[joindate] < strtotime("-1 days"))]]


that was helpful, thanks

badboyz
10-07-2007, 10:18 AM
how do i stop this popups for guest?

andor
10-09-2007, 03:48 AM
3.6.8 installation here - very nice job - laughed when I saw first message. Thanks!

lolzers
10-09-2007, 11:11 AM
Thanks a lot for this. Just installed it now.

SemperFideles
10-19-2007, 02:26 PM
What are the conditionals for:

1. Day of the week? (e.g. Today is Saturday)
2. Hour of the day? (e.g. Time is between 3:00 pm and 5:00 pm)

Soliloquy
10-19-2007, 04:18 PM
What are the conditionals for:

1. Day of the week? (e.g. Today is Saturday)
2. Hour of the day? (e.g. Time is between 3:00 pm and 5:00 pm)

SemperFideles, I've been wondering the same thing, so I just started experimenting and found the answer to your first question:

[[(date("l"))==Saturday]]Test...[[/(date("l"))==Saturday]]

Still working on the second one. Theoretically it should be
[[(date("G"))==13]]Test...[[/(date("G"))==13]]
but that's not working. I'll report back later.

indiancinema
10-20-2007, 01:15 AM
how do i add img code?
any help

Soliloquy
10-20-2007, 05:21 AM
Day (as a full text representation of the day of the week)
[[(date("l"))==Saturday]]Today is Saturday[[/(date("l"))==Saturday]]

Month (full text representation of the month)
[[(date("F"))==October]]This is the month of October[[/(date("F"))==October]]

Year (four digits)
[[(date("Y"))==2007]]This is the year 2007[[/(date("Y"))==2007]]

Whether it's a.m. or p.m. (must use capital letters)
[[(date("A"))==AM]]It's morning[[/(date("A"))==AM]]

if it's a certain hour (using 24 hour format without leading zeros)
[[(date("G"))==0]]It's way too early in the morning[[/(date("G"))==0]]

if it's a certain hour or later (using 24 hour format without leading zeros)
[[(date("G"))>=10]]You're late for breakfast[[/(date("G"))>=10]]

So I think this will work for you, though I haven't tested it yet:
[[(date("G"))>=14 AND (date("G"))<=17]] It's between three p.m. and five p.m., time to get ready for dinner[[/(date("G"))>=14 AND (date("G"))<=17]]

You can find more parameters that should work with the date function (http://de3.php.net/date) in the PHP manual.:)

indiancinema
10-20-2007, 10:21 AM
how do i insert image in the pop up?

SemperFideles
10-21-2007, 09:43 AM
SemperFideles, I've been wondering the same thing, so I just started experimenting and found the answer to your first question:

[[(date("l"))==Saturday]]Test...[[/(date("l"))==Saturday]]

Still working on the second one. Theoretically it should be
[[(date("G"))==13]]Test...[[/(date("G"))==13]]
but that's not working. I'll report back later.

Thanks. I have the first code working in the Table Announcement but, for some reason, it doesn't work in the popup announcement until I set the frequency to 0.

Desesperao
11-02-2007, 03:32 PM
I canĀ“t insert images in the pop up.

Any idea?

Desesperao
12-21-2007, 11:23 PM
How can I insert images in the popup?

Raptor
01-03-2008, 02:35 AM
tested perfect on 3.6.4 - thanks

wavelets95
02-08-2008, 11:58 AM
thanks for this mod ! I'm on 3.6.4

winpro19
02-11-2008, 06:36 PM
on 3.6.8, when I click "Close", nothing happens. My popup template is not edited....

Any ideas?

Thanks

noreturn
03-19-2008, 08:37 PM
Hi - Could some one please explain to me the correct way to include these other usergroups (2,3,5,7) IDs in this? I have tried duplicating the line of code with only editing the usergroups ID. But that did not work. Is there a way to do it all in the same line of code?

[[($bbuserinfo[usergroupid]==2)]]

Thanks

anoob
05-13-2008, 09:12 PM
Does this work in vb 7?

Logician
05-14-2008, 06:37 AM
Does this work in vb 7?
I haven't tested it but this hack will probably work in 3.7.0. Yet IMO it is pointless to use this hack in 3.7.0 as it already introduced a very similiar builtin feature.

dt_truck11
05-15-2008, 11:16 AM
I haven't tested it but this hack will probably work in 3.7.0. Yet IMO it is pointless to use this hack in 3.7.0 as it already introduced a very similiar builtin feature.

ive tried this is in 3.7 and it doesnt completely work. the welcome message that is below the navbar works but the pop up message does not

TheMusicMan
07-06-2008, 06:27 AM
I haven't tested it but this hack will probably work in 3.7.0. Yet IMO it is pointless to use this hack in 3.7.0 as it already introduced a very similiar builtin feature.
What's this feature...? I have only just upgraded and haven't discovered everything as yet. Can you advise please Logician? Ta.

Logician
07-06-2008, 09:27 AM
What's this feature...? I have only just upgraded and haven't discovered everything as yet. Can you advise please Logician? Ta.
You can find it in Admin CP under "Notices".

Domenico
07-07-2008, 01:45 PM
Can this be used to show a popup when someone starts a new thread in a particular forum on your board?

Konstantinos
08-26-2008, 09:12 AM
Nice hack... had it installed for a while but unfortunately, Photopost no longer functions when this product is enabled. Once I disabled the product, Photopost fired right back up again.

I noticed someone else asked about this but didn't get a response. Does anyone have this working with VBA/Photopost?

Thanks

*I'll leave it installed until tomorrow night. I'll fool around with it a little and if I figure anything out, I'll be sure to post the results. Too bad, I really liked this one!

this conflicts with photopost when the hack is configured to be used in all pages. can u fix it ?

Ransy72560
01-18-2009, 08:07 PM
Great mod, thanks so much for this! Installed!

JoeBOBBillyTed
02-12-2009, 12:24 PM
For the guy wanting the img code, I believe you can use HTML.

<img src="Img URL GOES HERE" />

JoeBOBBillyTed
02-15-2009, 02:39 PM
[[($bbuserinfo[lastvisit]<='1234704000' AND strtotime("now") < '1235258206')]]<a href='http://www.sportscardfreaks.com/forums/contests/137396-new-guess-ending-price-contest-free-cards-join.html'>New Contest For All</a> - Check it out, if you collect another sport, a replacement prize will be offered :)[[/($bbuserinfo[lastvisit]<='1234704000' AND strtotime("now") < '1235258206')]]

I am trying to make it so that this message shows up only to people that haven't visited the site since a certain date, and I want the messages to stop showing up at a certain date. Finally, I want the message to show up 1 time only.

JoeBOBBillyTed
02-17-2009, 02:06 PM
No one?

tafreeh
08-09-2009, 03:42 AM
does it work with 3.8?

ruchemist
12-27-2009, 07:14 PM
does it work with 3.8?
Yes, it works. Version 3.8.4 - tested

dhaimy
01-20-2010, 06:39 PM
thanks
an update vb4

TexArkana
06-19-2010, 05:23 AM
FWIW... I'm using this in vB 3.8.5, along with the hack to make the announcement appear on every forum page, not just FORUMHOME. Works fine. (Nice mod BTW. Thanks!)

imedic
02-16-2011, 08:02 AM
Update #2 (final!): All is well now. Here is the code for dynamic_a() which implements nested conditionals:
function dynamic_a($logician_dfa_incoming1)
{
extract ($GLOBALS);

// Prevent successive conditionals on separate lines from generating
// spurious <br /> after running thru BbCode parser. You might not
// like this, it's optional.
$logician_dfa_incoming1 = ereg_replace("\]\][\r\n\f \t]*\[\[", "]][[", $logician_dfa_incoming1);
// Recursively process nested conditionals
$logician_dfa_incoming1 = trim(dynamic_b($logician_dfa_incoming1));
// Finish up by running result through BbCode parser
if (trim($logician_dfa_incoming1))
{
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$logician_dfa_incoming1 = $parser->do_parse($logician_dfa_incoming1, 1, 1, 1, 1, 1, 1);
}
return $logician_dfa_incoming1;
}

function dynamic_b($dc3dreamer_dfa_incoming1)
{
extract ($GLOBALS);

while (preg_match("/\[\[(.*)\]\](.*)\[\[(\/\\1)\]\]/siU", $dc3dreamer_dfa_incoming1, $matches14))
{
@eval ('if ('.stripslashes($matches14[1]).') { $eval_deger= "1"; } else { $eval_deger= "0"; }');
if ($eval_deger == 1) //if conditional applied, replace with inner text
{
$dc3dreamer_dfa_incoming1 = dynamic_b(str_replace($matches14[0], $matches14[2], $dc3dreamer_dfa_incoming1));
}
else // Conditional not applied, delete the whole chunk
{
$dc3dreamer_dfa_incoming1 = dynamic_b(str_replace($matches14[0], '', $dc3dreamer_dfa_incoming1));
}
}
return $dc3dreamer_dfa_incoming1;
}

The recursion continues until there are no conditionals found, at which point the final result is passed through the BbCodeParser at the end of the first method. The trick was to remove line endings from conditionals that follow one another with just newlines between. They generated extra breaks and line spacing after going through the BbCode parser. You might want to remove the * in the regexp for the call to ereg_replace(). Er, do I really have to name my parameter variable like it might exist in the host page? I hope not, but I copied Logician's style. I would have used sumpin' like $src for the parameter var :nervous:

I'm slowly coming up to speed on PHP :nervous: I was killed by the $bbuserinfo[membergroupids] variable testing against values, till my ancient Perl tablets fell out on the ground. Yumba! It can be an array and it may not even exist! Well, rookie me! I got it now.

This is so nice! Nested conditionals open up a whole new world of possibilities, but ... Thank you Logician Thank you Logician Thank you Logician ...

I have read almost all of this thread but can't figure out where to put this code ....
Does it goes in the window where you put the announcements, or you need to do some file editing?
A short how to use description would be v appreciated. :)

Very good mode, mostly for the pop up. The conditional announcement can be done easyer with other mods however this one gives maximum flexibility.
For example I need to make an anouncement show if you have not selected aditional usergroup and probably this one can help.
Thanks for the mod. Will install soon.

K!nG
08-30-2011, 07:50 PM
I know very well this mod isn't at all for vb 4 .... i am really looking for something like this for my 4.1.5 vb and i thought to give it a try to see if it works ... but after doing everything i get this error on my forumhome... If anyone can figure out or the coder himself wants to help in this one . i will really appreciate that. Thanks
This is the error:

Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: dfh_announcement in [path]/includes/functions.php on line 4183
$dfh_announcement_headercode $dfh_announcement_popup $header $navbar $dfh_announcement

Logician
09-04-2011, 06:58 AM
I know very well this mod isn't at all for vb 4
Main reason this hack was never ported to vb4 is vb4 comes with notice management which is VERY similiar to this hack. So doesn't vb4's notice system work for you?

borsafoni
09-10-2011, 10:47 AM
does it work with 4.1.5?

Logician
09-11-2011, 08:06 AM
does it work with 4.1.5?
Read post above you.

Geek Specialtie
03-15-2012, 10:16 PM
I wan to show a message for Registered users (usergroup 2) but not if they have the additional usergroup 9.

This is what I have but it's not working. It's showing for all in usergroup 2 if they also have usergroup 9 or not.

[[($bbuserinfo[usergroupid]==2 AND $bbuserinfo[usergroupid]!=9)]]

Logician
03-16-2012, 07:17 AM
I wan to show a message for Registered users (usergroup 2) but not if they have the additional usergroup 9.

This is what I have but it's not working. It's showing for all in usergroup 2 if they also have usergroup 9 or not.


[[($bbuserinfo[usergroupid]==2 AND $bbuserinfo[usergroupid]!=9)]]
Not tested but I believe this should work:

[[($bbuserinfo[usergroupid]==2 AND !is_member_of($bbuserinfo, 9))]]

Geek Specialtie
03-16-2012, 07:44 PM
Not tested but I believe this should work:

[[($bbuserinfo[usergroupid]==2 AND !is_member_of($bbuserinfo, 9))]]

Thanks for the quick reply.
That is not working either. The message is not showing for anybody with that conditional.

Any other ideas?

Coop56
07-15-2012, 09:16 PM
Is there any way to get this to work with vBulletin 4? If not, is there a similar plugin/mod that will do this?

brycea
09-20-2012, 02:02 AM
<a href="http://www.healthcommunity.co" target="_blank">HealthCommunity.co</a>

I need more members to participate in the forums. I know that you have forgotten more than most people will ever know about coding, how about a break.

Bryce

Logician
09-20-2012, 07:55 AM
Guys you are aware that vbulletin 4 has a built-in feature called "Notices" which is nearly identical to this hack, right?

brycea
09-20-2012, 12:11 PM
HealthCommunity.co (http://healthcommunity.co)

https://vborg.vbsupport.ru/external/2012/09/16.jpg

Earliar dis yeer i couldnt spell weebmaster, now i r one!

xPonyx
09-27-2012, 05:17 AM
Guys you are aware that vbulletin 4 has a built-in feature called "Notices" which is nearly identical to this hack, right?

I'm using an announcements mod on my phpbb board. It's got a simple interface from the ACP, and allows moderators without coding/html skills to type text, hit bold/italic/underline, choose a color, and then preview before submitting on the board. Also adjustable per usergroup.

I'm really kinda surprised that I haven't seen one for vB, in looking around this evening. And the "Notices" isn't nearly as nice or functional.