vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals (https://vborg.vbsupport.ru/showthread.php?t=97073)

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

Quote:

Originally Posted by istvan
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:

Code:

<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

Quote:

Originally Posted by paul41598 (Post 1043616)
What if I want two popups?

I think that's its only drawback ;)

Bulent Tekcan 12-13-2006 09:53 AM

Quote:

Originally Posted by Bulent Tekcan (Post 1102636)
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

Quote:

Originally Posted by Cooleyvol (Post 1143708)
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

Quote:

Originally Posted by Bulent Tekcan (Post 1102636)
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:

PHP Code:

<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

Quote:

Originally Posted by Logician (Post 1143892)
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.


All times are GMT. The time now is 08:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03005 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete