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)

nailerpa 02-04-2006 05:43 PM

Thanks! That worked.

Quote:

Originally Posted by Logician
<blink> tag does not work with IE.

Not tested but this should work:

Put this javascript into your headinclude template:

PHP Code:

<script language="JavaScript">
var 
on_color "#FF0000";
var 
off_color "#000000";
var 
blink_onoff 1;
var 
blinkspeed500;
function 
blink()
{
    if( 
blink_onoff == 1) {
           
document.all.blink.style.color on_color;
       
blink_onoff 0;
    }
    else {
       
document.all.blink.style.color off_color;
       
blink_onoff 1;
    }
}
</
script

Then use this in your announcement:
PHP Code:

<font id=blink>My announcement</font><script>document.all.blink.style.color off_color;setInterval('blink()',blinkspeed);</script

You can google for "blink + IE" for more info about blinking effect in IE.


icare 02-04-2006 10:31 PM

PHP Code:

WarningUnknown(./includes/functions_dfha.php): failed to open streamNo such file or directory in /index.php(487) : eval()'d code on line 150

Fatal error: (null)(): Failed opening required '
./includes/functions_dfha.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/horny/public_html/index.php(487) : eval()'d code on line 150 

i AM GETTING this error. please advise

Logician 02-05-2006 07:19 AM

Quote:

Originally Posted by icare
PHP Code:

WarningUnknown(./includes/functions_dfha.php): failed to open streamNo such file or directory in /index.php(487) : eval()'d code on line 150

Fatal error: (null)(): Failed opening required '
./includes/functions_dfha.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/horny/public_html/index.php(487) : eval()'d code on line 150 

i AM GETTING this error. please advise

upload functions_dfha.php to includes folder

Fusion.nl 02-07-2006 12:25 AM

Amazing, out of this world hack. I can think of a zillion way this could be useful. If everything works the way you say it does, this will be on top of my most favorite hack list.

Awesome! :bunny:

Fusion.nl 02-08-2006 09:13 PM

Is this correct?

Code:

[[($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]<1 AND $bbuserinfo[joindate] > strtotime("-1 days"))]]
Registred user who joined at least 24 hours ago, with zero posts.

Logician 02-09-2006 06:50 AM

Quote:

Originally Posted by Fusion.nl
Is this correct?

Code:

[[($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]<1 AND $bbuserinfo[joindate] > strtotime("-1 days"))]]
Registred user who joined at least 24 hours ago, with zero posts.

looks good to me but you'd better test it with a test account.

Fusion.nl 02-09-2006 07:03 AM

Will do. Thnx for the reply and once again awesome script. ;)

Fusion.nl 02-09-2006 08:28 AM

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

Code:

[[($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]<1 AND $bbuserinfo[joindate] < strtotime("-1 days"))]]

Ziki 02-09-2006 05:54 PM

OMG this is ssooooo cooool!

D.Ilyin 02-10-2006 12:28 PM

Is there any chance to do something like that?
Code:

[[($bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==6)]]
Request activation HERE
[[/($bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==6)]]
[[($bbuserinfo[usergroupid]==6)]]
This text see ONLY awaiting conf. group & I.
[[/($bbuserinfo[usergroupid]==6)]]

I see (admin) only first condition :( and do not see second.
I tried also like this:
Code:

[[($bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==6)]]
Request activation HERE
[[($bbuserinfo[usergroupid]==6)]]
This text see ONLY awaiting conf. group & I.
[[/($bbuserinfo[usergroupid]==6)]]
[[/($bbuserinfo[usergroupid]==3 OR $bbuserinfo[usergroupid]==6)]]

But stil see only first condition :(.

Any help for this? Or maybe in future version?


All times are GMT. The time now is 01:52 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.02028 seconds
  • Memory Usage 1,761KB
  • 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_code_printable
  • (4)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
  • (2)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