vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals (https://vborg.vbsupport.ru/showthread.php?t=64189)

asianboi 05-02-2005 03:02 PM

is there a way to make the close this window button to work?

92GreenGT 05-02-2005 06:32 PM

Quote:

Originally Posted by Logician
Please read the thread. Several times asked and answered.

I did, thanks man for the great mod. I got everything I wanted to know out of the thread. :nervous: Thanks again for the mod.

yesfans 05-02-2005 07:28 PM

Can anyone help me figure out why it is showing up on my style set 7 on www.yesfans.com and not the others. I have everything set up right, can't find it.

Billspaintball 05-03-2005 12:39 PM

I cant believe that I havent stumbled accross this hack before.

Excellent!!!

Consider it Installed :D

Samira 05-05-2005 03:26 AM

Quote:

Originally Posted by greenhybrid
Mine flipped out on the very first step by throwing up an unexpected ] on the following line:

PHP Code:

            $xml .= "\t<setting varname=\"$set[varname]\" displayorder=\"$set[displayorder]\"" iif($set['advanced'], '],'],' advanced="1"') . ">\r\n"


Ditto. That line wasn't touched, any suggestions?

BfB 05-09-2005 04:13 AM

Logician,

Excellent hack! I do appreciate it very much. I installed it on 3.0.3, and it works like a charm.

However, I do have one question, and please do forgive me for possibly repeating something another may have already asked (we're up to 26 pages now, and it is quite tedious to scroll through every single page):

Q: How do you keep the popup within the viewing screen of the browser for when you scroll, so as not to allow it to disappear?

Thanks in advance!

Sincerely,

James

Imperial Fritz 05-09-2005 05:08 AM

How can I show different messages to people with different board languages?

David_R 05-15-2005 07:24 PM

Quote:

Originally Posted by Logician
Not tested, should work:
Apply STEP 5 like this: (btw dont forget to revert your old step 5 installation first! That is remove the hack in step 5 from index.php before applying this)

STEP 5- Edit global.php (in forum main directory), find

PHP Code:

// parse headinclude, header & footer 


REPLACE IT AS:
PHP Code:


// Logician Hack: Dynamic Forum Announcements Hack
if ($vboptions['dynamic_fha'] OR $vboptions['dynamic_popup']) {require_once('./includes/functions_bbcodeparse.php');}

if (
$vboptions['dynamic_fha'])
{
eval(
'$dynamic_fha = "' addslashes($vboptions['dynamic_fha']) . '";'); 
$dynamic_fha=str_replace("\\'""'"$dynamic_fha);
$dfh_announcement_announcementtopaste dynamic_a($dynamic_fha);
if (
trim($dfh_announcement_announcementtopaste)) {eval('$dfh_announcement = "' fetch_template('dfh_announcement') . '";');}
}

if (
$vboptions['dynamic_popup'])
{
eval(
'$dynamic_popup = "' addslashes($vboptions['dynamic_popup']) . '";'); 
$dynamic_popup=str_replace("\\'""'"$dynamic_popup);
$dfh_announcement_popuptopaste dynamic_a($dynamic_popup);
if (
trim($dfh_announcement_popuptopaste)) 
    {
    eval(
'$dfh_announcement_headercode = "' fetch_template('dfh_announcement_headercode') . '";');
    eval(
'$dfh_announcement_popup = "' fetch_template('dfh_announcement_popup') . '";');
    }
}

// Logician Hack: Dynamic Forum Announcements Hack
// parse headinclude, header & footer 

find:

PHP Code:

// if we are in a message editing page then get the editor templates 

Replace it AS:

PHP Code:

// Logician Hack: Dynamic Forum Announcements Hack
$globaltemplates[] = 'dfh_announcement';
$globaltemplates[] = 'dfh_announcement_headercode';
$globaltemplates[] = 'dfh_announcement_popup';
// Logician Hack: Dynamic Forum Announcements Hack
// if we are in a message editing page then get the editor templates 

Upload the file.

Now put
$dfh_announcement_headercode
$dfh_announcement_popup
$dfh_announcement
variable in any template you like.

I found a small problem here. If post caching is enabled it screws my thread display with content of forum annoucement

I am forced to place this in forumshome only :(
do you got any idea, why it screws the showthread content display of first post in a thread when applied on header ?

thanks.

agiacosa 05-28-2005 10:28 AM

I need to present an announcement to my mods that have been inactive. Therefore, I want to show this announcement to usergroup 7 who have posted less than 10 posts in the last two weeks.

Can someone please help me with the conditionals that would be needed to achieve the above?

Thanks.

Divokymuz 06-09-2005 10:33 AM

i use the hack in different forums. it is realy great.

but i got one problem.

when i install a forum, i import a style, which i produced before in a testforum.
if you then did not make the announcement hack, and import the style as second, you geht a database error, if you try to do the addsettings.

is there anyone, who has an idea, to solve this problem ?


All times are GMT. The time now is 03:53 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
  • Page Generation 0.01609 seconds
  • Memory Usage 1,774KB
  • 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_php_printable
  • (3)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