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 01-21-2006 08:22 AM

Quote:

Originally Posted by BlackRanger3d
I have 3.5.1

I have followed all the instructions but

I don't see it in the VBoption setup section.
And when I look in the plugin manager it is not listed so I can not change any of the hooks.

TIA

Something is wrong with installation instructions step 3. Make sure you did it correctly.

Quote:

Could you please post some samples for me to use,
Second post of this thread has some examples.

BlackRanger3d 01-21-2006 02:51 PM

Thanks dude, I am no fairly certian it is a vb issue.
I have istalled many hacks and products..so i am very certain that I followed your instructions..oh well off to vb forums.

Logician 01-21-2006 06:06 PM

Quote:

Originally Posted by BlackRanger3d
Thanks dude, I am no fairly certian it is a vb issue.
I have istalled many hacks and products..so i am very certain that I followed your instructions..oh well off to vb forums.

It might be clashing with another hack. Try to disable other products/pluggins and try again. Also make sure you use regular vb product manager not anyother hack that extends it.

bashy 01-21-2006 08:32 PM

hi m8

could you please take a gander at the image ive attached as i cannot for the lif of me get rid of the black section, I can addjust all the rest just not the left and right?

BlackRanger3d 01-21-2006 11:39 PM

Logician is there anything else you can think of. I have gone step by step throught your instructions.

I have tried other peoples hacks, and I get the same result I am not able to get the hack to show up in vb options.

Heck can I hire you to fix my vb.

noreturn 01-22-2006 06:15 AM

What happens if 4 different guests visit within the 1 hour setting I have set? Does only the first guest see the guest message if others visit within that 1 hour? If so, how can I make it always pop up for a guest, but only at 1 hour intervals for all others? And....
Thank you.

Logician 01-22-2006 12:37 PM

Quote:

Originally Posted by noreturn
What happens if 4 different guests visit within the 1 hour setting I have set? Does only the first guest see the guest message if others visit within that 1 hour? If so, how can I make it always pop up for a guest, but only at 1 hour intervals for all others? And....
Thank you.

This setting only works for members. It depends on the db value "last activity date" and vb keeps this for members only. So guests get the popup everytime.

Quote:

I have tried other peoples hacks, and I get the same result I am not able to get the hack to show up in vb options.
I can suggest you to disable all pluggins and products and upload original vb files (if you hacked them) and then try again. If you still have the problem, vb.com staff should help you with this (since your board will be hackless but problematic in this scenario) if you create a support ticket.

Logician 01-22-2006 12:42 PM

Quote:

Originally Posted by bashy
hi m8

could you please take a gander at the image ive attached as i cannot for the lif of me get rid of the black section, I can addjust all the rest just not the left and right?

Sounds like a HTML clashing with your skin. I see you have a left/right column in your forum home page. As far as I can see your forum main page also has a javascript syntax error when loads. My hack HTML code is designed for default vb3 look so you need to arrange it to fit to your skin. If you get it designed, I'm sure the webdesigner who did it, can fix this easily.

bashy 01-22-2006 12:55 PM

I am the one who put mine together...
So it looks like imn stuck with this wee issue :(

Thanks anyway

Quote:

Originally Posted by Logician
Sounds like a HTML clashing with your skin. I see you have a left/right column in your forum home page. As far as I can see your forum main page also has a javascript syntax error when loads. My hack HTML code is designed for default vb3 look so you need to arrange it to fit to your skin. If you get it designed, I'm sure the webdesigner who did it, can fix this easily.


noreturn 01-22-2006 01:15 PM

Quote:

Originally Posted by Logician
This setting only works for members. It depends on the db value "last activity date" and vb keeps this for members only. So guests get the popup everytime.

Thank you for fast reply

noreturn 01-22-2006 04:42 PM

Quote:

Originally Posted by noreturn
What happens if 4 different guests visit within the 1 hour setting I have set? Does only the first guest see the guest message if others visit within that 1 hour? If so, how can I make it always pop up for a guest, but only at 1 hour intervals for all others? And....
Thank you.

I have tested what you said by logging out and then visiting board without loggin in. I then click on "Forums" menu option and the guest pop-up does not appear...unless I keep it set to 0 (zero) in the admin PC option. It seems that once a guest (non-registered visitor) comes to board and clicks on Fourm link on navbar, the pop up with text only for GUEST does not show up unless no guests have visted in that hour. Or, better yet, what the heck am I doing wrong? (stargazerschat.com)

Thanks for you time.

Logician 01-22-2006 07:11 PM

Quote:

Originally Posted by noreturn
I have tested what you said by logging out and then visiting board without loggin in. I then click on "Forums" menu option and the guest pop-up does not appear...unless I keep it set to 0 (zero) in the admin PC option. It seems that once a guest (non-registered visitor) comes to board and clicks on Fourm link on navbar, the pop up with text only for GUEST does not show up unless no guests have visted in that hour. Or, better yet, what the heck am I doing wrong? (stargazerschat.com)

Thanks for you time.

I think vb is reading your last visit time from your cookie even if we log out. So try with a different browser (without logging in) or after your popup expiration time you set is up.

noreturn 01-22-2006 07:32 PM

Hi - I cleared all cookies, cleared cache, went to web site and was not logged in. I click on forums but the guest pop up does not come up. I am using firefox if that means any thing.
I did the same thing and used IE and it works properly. Just not firefox for some reason.

htscpl 01-22-2006 07:55 PM

Just installed and I have a strange problem. Pop up and announcement box both work, however, any text in these are coved by a smilie !

I checked everthing I could think of but still no luck. Any ideas as to what would cause this and how to fix it?

I used your hack on 3.0.x and it worked fine. I followed the instructions to remove the old version and install this one so I am at a lost to figure out the problem.

Logician 01-23-2006 04:29 AM

Quote:

Originally Posted by htscpl
Just installed and I have a strange problem. Pop up and announcement box both work, however, any text in these are coved by a smilie !

I checked everthing I could think of but still no luck. Any ideas as to what would cause this and how to fix it?

I used your hack on 3.0.x and it worked fine. I followed the instructions to remove the old version and install this one so I am at a lost to figure out the problem.

Maybe that smilie's code exist in the hack templates or the announcement somehow if it is a too general code?

htscpl 01-23-2006 09:32 AM

Quote:

Originally Posted by Logician
Maybe that smilie's code exist in the hack templates or the announcement somehow if it is a too general code?

Figured it out. Several of my smilies didn't have a replacement code. Each of them showed up on top of the announcement or popup... kinda strange but when I added a code to the smilies they went away.

Thanks for pointing me in the right direction!

H :D

topanet 02-02-2006 03:43 AM

Thanks for great hack anyway... :)
but, i just want to know.. can i use your annoucement into specified thread/posting??
i mean, if user enter some thread, your annoucement will show up...

thanks... topz.

nailerpa 02-02-2006 11:19 PM

Is there a way to make the text in the annoucement block blink? I tried the <blink> and </blink> tags but they didn't work. Thanks!

Logician 02-03-2006 06:16 AM

Quote:

Originally Posted by nailerpa
Is there a way to make the text in the annoucement block blink? I tried the <blink> and </blink> tags but they didn't work. Thanks!

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

Kinneas 02-04-2006 07:28 AM

Coooool!

*installs*

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?

Logician 02-10-2006 12:58 PM

Quote:

Originally Posted by D.Ilyin
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?

It is not clear to me what exactly you are trying to achieve but some notes:

1- Hack Only displays one announcement per user. If more than 1 conditional applies, the one with highest priority (=which is at top) is displayed.
2- Admin is usergroup 6, not 3

fkatzenb 02-10-2006 01:54 PM

I am trying to figure out a way to have a dynamic message for all people that only displays between two different server times... Is there a variable that I can use similar to the linux data function to pull hours and minutes from to allow me to show a message between 9:50am and 10:30am?

Thanks!

Frank

D.Ilyin 02-10-2006 03:54 PM

Quote:

Originally Posted by Logician
It is not clear to me what exactly you are trying to achieve but some notes:

I'd like that Users Awaiting confirmation & Admins see that line:
HTML Code:

Request activation HERE
and admins only see that additional line
HTML Code:

This text see ONLY awaiting conf. group & I.
Quote:

Originally Posted by Logician
1- Hack Only displays one announcement per user. If more than 1 conditional applies, the one with highest priority (=which is at top) is displayed.

yepp... i see why my condition not work :(
And what about future versions?
Quote:

Originally Posted by Logician
2- Admin is usergroup 6, not 3

i know that.... :ermm:

fkatzenb 02-10-2006 04:18 PM

Quote:

Originally Posted by fkatzenb
I am trying to figure out a way to have a dynamic message for all people that only displays between two different server times... Is there a variable that I can use similar to the linux data function to pull hours and minutes from to allow me to show a message between 9:50am and 10:30am?

Thanks!

Frank

I just figured out what to do

edited functions_dfha.php and added
PHP Code:

// time variables...
$time_hour date("H");
$time_minute date("i");
$time_zone date("T"); 


Code:

[[($time_hour==3 AND $time_minute>=45 AND $time_minute<=59)]]
The server is schedule to do perform a daily backup between 0345 CST and 0430 CST.  Current Server Time is $time_hour$time_minute $time_zone
[[/($time_hour==3 AND $time_minute>=45 AND $time_minute<=59)]]
[[($time_hour==4 AND $time_minute>=0 AND $time_minute<=29)]]
The server is schedule to do perform a daily backup between 0345 CST and 0430 CST.  Current Server Time is $time_hour$time_minute $time_zone
[[/($time_hour==4 AND $time_minute>=0 AND $time_minute<=29)]]


fkatzenb 02-10-2006 04:38 PM

Ok... I wasnt thinking clearly on the date function... fixing that now... new to php.

PHP Code:

// time variables...
$time_for_announce date("Hi"); 

Code:

[[($time_for_announce>=0345 AND $time_for_announce<=0430)]]
The server is schedule to do perform a daily backup between 0345 CST and 0430 CST.  Current Server Time is $time_for_announce
[[/($time_for_announce>=0345 AND $time_for_announce<=0430)]]



Frank

David_R 02-14-2006 01:25 PM

I had this hack installed on vbulletin 3.0.x version, installed the new 3.5.3 via plugin system and now i find Forum Home Table Announcement and Forum Home PopUp Announcement appearing twice in my AdminCP..

thanks.

Logician 02-15-2006 05:30 AM

Quote:

Originally Posted by David_R
I had this hack installed on vbulletin 3.0.x version, installed the new 3.5.3 via plugin system and now i find Forum Home Table Announcement and Forum Home PopUp Announcement appearing twice in my AdminCP..

thanks.

Please read and follow the instructions labelled "IMPORTANT FOR 3.x USERS:" in the first post of the thread.

D.Ilyin 02-15-2006 07:46 AM

Quote:

Originally Posted by D.Ilyin
And what about future versions?

Logician will you plan to add in future version support for multi annoucements for milti user groups? As i described above.

Logician 02-15-2006 09:22 AM

Quote:

Originally Posted by D.Ilyin
Logician will you plan to add in future version support for multi annoucements for milti user groups? As i described above.

I think you can do what you like to do with the hack as it is:
PHP Code:

[[($bbuserinfo[usergroupid]==6)]]
Request activation HEREThis text see ONLY awaiting confgroup I.
[[/(
$bbuserinfo[usergroupid]==6)]]
[[(
$bbuserinfo[usergroupid]==3)]]
Request activation HERE
[[/(
$bbuserinfo[usergroupid]==3)]] 


D.Ilyin 02-15-2006 01:25 PM

Logician, yes, i did as you sad two day's ago, but....
but i use this scheme:
annoucement: for guests and not login
annoucement: for registred
annoucement: for moders
and another 4 groups.
i'd just like to add some notes for all annoucements visible for admins only... some for moders.
That's why i asked you about crossed permisions for annoucements.

PS Anyway thanks for this usefull hack!!!! It's very helpfull!!!! :)
PSS Sory for my bad english :(


All times are GMT. The time now is 05:42 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.02044 seconds
  • Memory Usage 1,894KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_html_printable
  • (9)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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