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)

otto 05-03-2007 05:40 AM

Hi,

and sorry for my bad english ...

I search the conditionals for :

"today is X, hour is between Y and Z, day is wednesday, month is Y, week is month's 2nd week, "

Please help. Thanks!

Bulent Tekcan 05-03-2007 08:43 AM

Hello Logician

Is it possible this announcment special forum ? For example only ForumID 4,5,8 or what ever.

Thanks

Bulent Tekcan 05-14-2007 06:19 AM

Quote:

Originally Posted by Bulent Tekcan (Post 1240453)
Hello Logician

Is it possible this announcment special forum ? For example only ForumID 4,5,8 or what ever.

Thanks

***Bump***

atropos4 05-20-2007 09:21 PM

/me clicks install

This may be just what I am looking for!

EDIT:
Exactly what i was looking for!
thank you!

RaidenDAWG2 05-23-2007 07:31 PM

Quote:

Originally Posted by Bulent Tekcan (Post 1240453)
Hello Logician

Is it possible this announcment special forum ? For example only ForumID 4,5,8 or what ever.

Thanks

Do a condition based on the variable $forumid if you're using the hack to make the thing display on all vB pages, so something along the lines of...

Code:

[[($forumid == 4)]]Your message here...[[/($forumid==4)]]
Where your forum's id is 4 obviously...

Or, if you wanted to do more than one forum...

Code:

[[(in_array($forumid, array(5,6,7))]]Your message here...[[/(in_array($forumid, array(5,6,7))]]
Where array(5,6,7) would refer to forums with id's 5,6, and 7. Or whatever you prefer there. The form is basically a comma separated list with no spaces for in_array.

I've not tested those exactly, but my understanding of where that hook is located is that you should have access to the $forumid variable from global.php, which should be what you'd need to do it.

-RD

Bulent Tekcan 05-24-2007 07:50 AM

Aha it is worked :)

But your code include 2 extra space.

[[($forumid == 4)]]Your message here...[[/($forumid==4)]]

Working Code

[[($forumid==4)]]Your message here...[[/($forumid==4)]]

Thanks for great post.

Bulent Tekcan 05-25-2007 11:57 AM

I find a problem today.If I use this conditional User Notes is not working.When I press Post Notes or View Notes this error occured.Every user same thing

"No User specified. If you followed a valid link, please notify the administrator"

Any idea for this ?

Bulent Tekcan 06-11-2007 03:13 PM

Quote:

Originally Posted by Bulent Tekcan (Post 1254425)
I find a problem today.If I use this conditional User Notes is not working.When I press Post Notes or View Notes this error occured.Every user same thing

"No User specified. If you followed a valid link, please notify the administrator"

Any idea for this ?

**Bump**

Logician 06-20-2007 04:10 PM

Quote:

Originally Posted by Bulent Tekcan (Post 1266304)
**Bump**

I guess this happens because you use the unsupported "make it work in ALL vb pages" version. As stated in that hack of hack, it is not tested well and it can cause such problems. This is because the original of this hack is not designed to run in all vb pages but only in forum home. So if you have the problem, please revert to the original supported version of the hack.

Soliloquy 06-22-2007 04:49 AM

I'd like to display a message each Thursday to remind users it's chat night, and another each Thursday between 9 and 11 p.m. to remind users to go to the chat room. The first post says this plugin has that functionality, but there are no examples given with the rest of the usage instructions.


All times are GMT. The time now is 09:11 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.01466 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (4)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