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)

Logician 10-10-2005 10:13 AM

Quote:

Originally Posted by SVZ
The popup looks *really* bad in firefox...it's a huge red block

Here is the fix for this :

Edit template "dfh_announcement_popup" (in ALL TEMPLATE SETS YOU HAVE!), find :
HTML Code:

top: 50px; bottom: 50px; left: 50px; right: 50px;
replace it as:
HTML Code:

top: 50px;  left: 50px;

Logician 10-10-2005 10:20 AM

Quote:

Originally Posted by Logician
Here is the fix for this :

Edit template "dfh_announcement_popup" (in ALL TEMPLATE SETS YOU HAVE!), find :
HTML Code:

top: 50px; bottom: 50px; left: 50px; right: 50px;
replace it as:
HTML Code:

top: 50px;  left: 50px;

Hack ZIP file updated for this fix.

Allan 10-10-2005 10:30 AM

Now, with firefox :

Logician 10-10-2005 02:16 PM

Quote:

Originally Posted by Allan
Now, with firefox :

That darn firefox and its layer positioning!

Try this one to use as your dfh_announcement_popup template:

HTML Code:

<DIV ID="ANNLAYER" STYLE="background-color: red; position: absolute; margin-left:5; margin-right:5; margin-top:5; margin-bottom:0;  top:25%; left:25%; height:50%; width:50%; padding: 10px; overflow: auto; border-color: 000000; border-style: solid; border-top-width: 2px; border-right-width: 3px; border-bottom-width: 3px; border-left-width: 2px;">

<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>
        <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>

I know it is still not 100% perfect for firefox but this is all I can do for you guys, sorry.. If you like, you can keep playing with HTML in this template tweak it further.

Allan 10-10-2005 04:20 PM

Thanks Logician, it's perfect for me :)

Crazy Serb 10-10-2005 06:32 PM

how hard would it be to incorporate this dynamic dropin ad window as the announcement popup part:

http://www.dynamicdrive.com/dynamici.../dropinbox.htm

i can't get it to open up a popup window when I try substituting the code from the dhtml popup into the dfh_popup template, and adding the javascript code to the head tag...

plus I think it looks a lot nicer than the popup that is a part of the hack right now... no offence or anything, but someone's made a more sophisticated one, and it would be really cool to see it implemented.

Logician 10-10-2005 06:42 PM

Quote:

Originally Posted by Crazy Serb
how hard would it be to incorporate this dynamic dropin ad window as the announcement popup part:

http://www.dynamicdrive.com/dynamici.../dropinbox.htm

Does not sound so hard but please try yourself. I really don't have time to improve this hack further.. You should add the STEP 2 part into "dfh_announcement_headercode" template and STEP 3 into "dfh_announcement_popup" template.

Replace "SPECIFY YOUR CONTENT HERE. IT COULD BE TEXT, IMAGES, OR RICH HTML" with "$dfh_announcement_popuptopaste"

Crazy Serb 10-10-2005 07:21 PM

Quote:

Originally Posted by Logician
Does not sound so hard but please try yourself. I really don't have time to improve this hack further.. You should add the STEP 2 part into "dfh_announcement_headercode" template and STEP 3 into "dfh_announcement_popup" template.

Replace "SPECIFY YOUR CONTENT HERE. IT COULD BE TEXT, IMAGES, OR RICH HTML" with "$dfh_announcement_popuptopaste"

exactly what I did, and it doesn't seem to be working... can anyone else try this out?


EDIT: I know what the problem was... the code for the popup itself. I've tried another dropin code from dynamicdrive and it worked just fine.

Thanks Logician...

ambumann 10-10-2005 08:11 PM

Great extension, installed here!

Isn't it possible to make a "easier to use" menu system for the conditonals so we don't have to remember/look them up every time a new announcement is in the making?

womansnet 10-12-2005 02:19 AM

Is there any way to put this on all the main pages of the forums? I have it working on the home page, but it would be great to be able to add it to other pages, especially for when someone uses a direct link to a thread.


All times are GMT. The time now is 08:06 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.01241 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_html_printable
  • (5)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