![]() |
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? |
Quote:
|
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:
<script>function clearpopupannouncement(id) {document.getElementById(id).style.display = 'none';}</script> PS: Actually you can put 3 templates into one :D |
The anouncment screen very BIG Firefox and IE7,it is very bad view.
Any fix for that ? Thanks |
Quote:
|
Quote:
|
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? |
Quote:
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. |
Quote:
PHP Code:
|
Quote:
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. |
Quote:
|
I'm now going to take a look, I should have it fixed in an hour max.
|
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:
<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;"> |
Quote:
|
Great news....thanks for that ;)
|
Please update the version number and put in the links to check for an update, thanks!
|
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
|
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=333 |
i won't let me reinstalled without overwriting it
|
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 ? |
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 |
Quote:
|
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:
<div id="topbar"> Code:
</div> 5. Add to bottom Code:
<style type="text/css"> |
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?
|
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.:
PHP Code:
|
Also, is the hours timer cookie or db-based?
|
Anyone?
|
Is there no support for this add-on?
It seems that whenever I use the timer setting, it simply doesn't show at all. |
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. |
Quote:
|
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! |
Hello Logician
Is it possible this announcment special forum ? For example only ForumID 4,5,8 or what ever. Thanks |
Quote:
|
/me clicks install
This may be just what I am looking for! EDIT: Exactly what i was looking for! thank you! |
Quote:
Code:
[[($forumid == 4)]]Your message here...[[/($forumid==4)]] Or, if you wanted to do more than one forum... Code:
[[(in_array($forumid, array(5,6,7))]]Your message here...[[/(in_array($forumid, array(5,6,7))]] 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 |
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. |
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 ? |
Quote:
|
Quote:
|
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.
|
All times are GMT. The time now is 04:25 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|