PDA

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


Pages : 1 [2]

MissKalunji
26 Feb 2006, 22:34
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
27 Feb 2006, 01:11
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
27 Feb 2006, 04:45
i figured it out i 4got to add one of the $ before </head>

Logician
27 Feb 2006, 07:52
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
27 Feb 2006, 08:03
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
27 Feb 2006, 08:38
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
27 Feb 2006, 09:02
oK thanks for this... and the question in post #250...?

SaN-DeeP
27 Feb 2006, 15:46
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
28 Feb 2006, 14:14
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
01 Mar 2006, 06:56
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
02 Mar 2006, 00:58
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
06 Mar 2006, 03:12
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
25 Mar 2006, 16:47
What are the big differences between this and the Welcome headers hack (http://www.vbulletin.org/forum/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
25 Mar 2006, 21:11
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
25 Mar 2006, 21:34
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
26 Mar 2006, 02:52
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
26 Mar 2006, 13:38
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
28 Mar 2006, 03:09
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 - http://www.vbulletin.org/forum/showthread.php?p=851299&highlight=fade#post851299

Any ideas?

NemoTech
02 Apr 2006, 13:37
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
02 Apr 2006, 14:18
<if condition="(in_array($forumid, array(2,4)))">
annoucement
</if>

Multiple forums.

El-Gazaly
17 Apr 2006, 02:29
Great hack and could be very useful ....downloaded and installed ...
Thanks

fatxy
29 Apr 2006, 01:00
installed! great hack, like it

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

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

Thanks!

SaN-DeeP
06 May 2006, 00:13
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
11 May 2006, 06:22
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
11 May 2006, 13:42
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
11 May 2006, 14:47
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
14 May 2006, 20:18
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
21 May 2006, 03:28
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
21 May 2006, 18:39
You can use the external link as <a href="http://www.externalsite.ext">Externalsite</a>
It will show Externalsite

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

Raptor
24 May 2006, 01:47
installed - a great hack

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

RFViet
05 Jun 2006, 15:51
I want the announcement to be displayed on every page , what should i do ??

D.Ilyin
06 Jun 2006, 11:20
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 : http://www.vbulletin.org/forum/showpost.php?p=820408&postcount=143
* Nested Conditionals by dc3dreamer : http://www.vbulletin.org/forum/showpost.php?p=827831&postcount=175
* Hack Annoucement appears in all vb pages:
http://www.vbulletin.org/forum/showthread.php?p=911498#post911498
or that post that post (http://www.vbulletin.org/forum/showpost.php?p=911498&postcount=256)

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

ShadowWeaver
10 Jun 2006, 14:10
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
14 Jun 2006, 03:55
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
19 Jun 2006, 17:45
With default settings...I enable this and it makes my forumhome go blank.

Same here :(

ROTPAR
20 Jun 2006, 10:50
is there anyone who can helpme out with this problem ?

Canis Firebrand
20 Jun 2006, 11:41
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
20 Jun 2006, 12:07
Vbseo but I can´t figure out, what the problem could be :(

Logician
20 Jun 2006, 15:18
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
20 Jun 2006, 18:10
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:
http://www.vbulletin.org/forum/showpost.php?p=825360&postcount=164

ROTPAR
22 Jun 2006, 17:03
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
23 Jun 2006, 05:30
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
23 Jun 2006, 07:18
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:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
23 Jun 2006, 08:31
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
23 Jun 2006, 13:02
Is there anyway i can get this to work in the UserCP and how could i add this to other pages aswell?

skoenig
23 Jun 2006, 21:59
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
24 Jun 2006, 10:40
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
24 Jun 2006, 10:41
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
24 Jun 2006, 17:08
@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 Jul 2006, 19:48
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 Jul 2006, 20:43
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 Jul 2006, 20:54
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 Jul 2006, 21:00
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
08 Jul 2006, 05:10
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
08 Jul 2006, 21:44
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
03 Aug 2006, 20:31
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
15 Aug 2006, 20:51
does this work on 3.6?

Logician
16 Aug 2006, 22:47
does this work on 3.6?
Yes, it should

UZFRED
21 Aug 2006, 18:37
Please update the thread to 3.6.0 to stop confusion and confirm compatibility ;).

mlucek
27 Aug 2006, 00:49
How does this hack compare to

Welcome headers - Improve community registration rates

http://www.vbulletin.org/forum/showthread.php?t=119572

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

TIA

Logician
30 Aug 2006, 18:04
How does this hack compare to

Welcome headers - Improve community registration rates

http://www.vbulletin.org/forum/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
01 Sep 2006, 06:57
Installed on vB 3.6, "general table announcement" works but "popup announcement" don't :(

Logician
01 Sep 2006, 19:39
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
01 Sep 2006, 19:40
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
19 Sep 2006, 18:41
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
22 Sep 2006, 03:49
anyways to show the annoucement once per day? or per x amount of day?

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

istvan
27 Sep 2006, 10:28
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
30 Sep 2006, 11:34
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
08 Oct 2006, 22:15
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
23 Oct 2006, 09:46
The anouncment screen very BIG Firefox and IE7,it is very bad view.

Any fix for that ?

Thanks

Bubble #5
02 Dec 2006, 22:16
What if I want two popups?

I think that's its only drawback ;)

Bulent Tekcan
13 Dec 2006, 10:53
The anouncment screen very BIG Firefox and IE7,it is very bad view.

Any fix for that ?

Thanks

Any idea for this problem ?

Cooleyvol
22 Dec 2006, 23:08
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
23 Dec 2006, 09:21
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
23 Dec 2006, 09:26
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Cooleyvol
23 Dec 2006, 15:56
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
10 Jan 2007, 17:22
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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

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

Raptor
10 Jan 2007, 20:35
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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

Logician
11 Jan 2007, 08:03
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
11 Jan 2007, 18:56
Great news....thanks for that ;)

jazde86
13 Jan 2007, 21:33
Please update the version number and put in the links to check for an update, thanks!

taydu
14 Jan 2007, 08:00
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
14 Jan 2007, 09:08
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:
http://www.vbulletin.org/forum/showpost.php?p=1155703&postcount=333

taydu
16 Jan 2007, 02:47
i won't let me reinstalled without overwriting it

OmniBuzz
24 Jan 2007, 15:30
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
29 Jan 2007, 14:58
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
29 Jan 2007, 20:07
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
05 Feb 2007, 03:12
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


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



3. Add to bottom


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



4. Open the header include template

5. Add to bottom


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

bts420
14 Feb 2007, 16:22
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
14 Feb 2007, 21:11
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.:

Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

voteforbird
14 Feb 2007, 21:25
Also, is the hours timer cookie or db-based?

voteforbird
20 Feb 2007, 00:34
Anyone?

voteforbird
16 Mar 2007, 21:51
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
03 Apr 2007, 19:36
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
03 Apr 2007, 21:38
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
03 May 2007, 06:40
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
03 May 2007, 09:43
Hello Logician

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

Thanks

Bulent Tekcan
14 May 2007, 07:19
Hello Logician

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

Thanks

***Bump***

atropos4
20 May 2007, 22:21
/me clicks install

This may be just what I am looking for!


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

RaidenDAWG2
23 May 2007, 20:31
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...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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

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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
24 May 2007, 08:50
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
25 May 2007, 12:57
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
11 Jun 2007, 16:13
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
20 Jun 2007, 17:10
**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
22 Jun 2007, 05:49
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
10 Jul 2007, 06:43
when i press close , why the popup doesnt close ? its annoying

Desesperao
13 Jul 2007, 01:50
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
19 Jul 2007, 19:05
Any idea?

symptome
01 Aug 2007, 06:56
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
02 Aug 2007, 14:42
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 Aug 2007, 17:18
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
29 Aug 2007, 22:52
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
03 Sep 2007, 11:56
Clicked Install !!!! Worked perfect for vB 3.6.8 !!!!

Great work !!!!

periphrastic
30 Sep 2007, 04:30
installed & currently working & thank you (3.6.8)

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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




that was helpful, thanks

badboyz
07 Oct 2007, 11:18
how do i stop this popups for guest?

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

lolzers
09 Oct 2007, 12:11
Thanks a lot for this. Just installed it now.

SemperFideles
19 Oct 2007, 15:26
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
19 Oct 2007, 17:18
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Still working on the second one. Theoretically it should be


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


but that's not working. I'll report back later.

indiancinema
20 Oct 2007, 02:15
how do i add img code?
any help

Soliloquy
20 Oct 2007, 06:21
Day (as a full text representation of the day of the week)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Month (full text representation of the month)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Year (four digits)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Whether it's a.m. or p.m. (must use capital letters)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



if it's a certain hour (using 24 hour format without leading zeros)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



if it's a certain hour or later (using 24 hour format without leading zeros)


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



So I think this will work for you, though I haven't tested it yet:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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

indiancinema
20 Oct 2007, 11:21
how do i insert image in the pop up?

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



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Still working on the second one. Theoretically it should be


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


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
02 Nov 2007, 16:32
I can´t insert images in the pop up.

Any idea?

Desesperao
22 Dec 2007, 00:23
How can I insert images in the popup?

Raptor
03 Jan 2008, 03:35
tested perfect on 3.6.4 - thanks

wavelets95
08 Feb 2008, 12:58
thanks for this mod ! I'm on 3.6.4

winpro19
11 Feb 2008, 19:36
on 3.6.8, when I click "Close", nothing happens. My popup template is not edited....

Any ideas?

Thanks

noreturn
19 Mar 2008, 21:37
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
13 May 2008, 22:12
Does this work in vb 7?

Logician
14 May 2008, 07:37
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
15 May 2008, 12:16
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
06 Jul 2008, 07:27
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
06 Jul 2008, 10:27
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 Jul 2008, 14:45
Can this be used to show a popup when someone starts a new thread in a particular forum on your board?

Konstantinos
26 Aug 2008, 10:12
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
18 Jan 2009, 21:07
Great mod, thanks so much for this! Installed!

JoeBOBBillyTed
12 Feb 2009, 13:24
For the guy wanting the img code, I believe you can use HTML.

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

JoeBOBBillyTed
15 Feb 2009, 15:39
[[($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
17 Feb 2009, 15:06
No one?

tafreeh
09 Aug 2009, 04:42
does it work with 3.8?

ruchemist
27 Dec 2009, 20:14
does it work with 3.8?
Yes, it works. Version 3.8.4 - tested

dhaimy
20 Jan 2010, 19:39
thanks
an update vb4

TexArkana
19 Jun 2010, 06:23
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
16 Feb 2011, 09:02
Update #2 (final!): All is well now. Here is the code for dynamic_a() which implements nested conditionals:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
30 Aug 2011, 20:50
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
04 Sep 2011, 07:58
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
10 Sep 2011, 11:47
does it work with 4.1.5?

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

Geek Specialtie
15 Mar 2012, 22:16
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
16 Mar 2012, 07:17
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
16 Mar 2012, 19:44
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?