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)

yesfans 04-29-2005 08:26 PM

I have a problem in that I loaded this hack to all my SKINS and it is ONLY working on one, #7. I just went thru all the code agaig, can't find the issue. I assume it has to be in my Forum home or the 3 templates that is causin gthis issue. Log onto my site, www.yesfans.com and see if you can HELP.

IceBurn3000 04-30-2005 03:09 AM

This may seem like a dumb thing to say.. but I cant find the zip of this hack to download... Where is it?

Adrian Schneider 04-30-2005 03:13 AM

Dynamic Forum Home Announcements Hack VB3.txt :)

T3MEDIA 05-01-2005 10:08 AM

Quote:

Originally Posted by Logician
Thanks for the nice message. I try to help out as much as I can. I wish I had more free times at my hands to help more but this is all I can spare. :)

Yeah honestly your a nice guy... Thank you as well.

T3MEDIA 05-01-2005 10:14 AM

I havea question how do you do a else statement with these conditionals?
if this is this way....
do this...
else
do this...

I only want it do do the second part if the first if false.
not sure how to do that.

Logician 05-01-2005 10:36 AM

Quote:

Originally Posted by T3MEDIA
I havea question how do you do a else statement with these conditionals?
if this is this way....
do this...
else
do this...

I only want it do do the second part if the first if false.
not sure how to do that.

You can use a "NOT" "(!)" conditional to simulate <else />.

Eg.

[[($bbuserinfo[userid]>0)]]
if visitor is a member
[[/($bbuserinfo[userid]>0)]]

[[(!($bbuserinfo[userid]>0))]]
if visitor is NOT a member
[[/(!($bbuserinfo[userid]>0))]]

Please note the location of ! and double paranthesis in the second clause
/(!( condition ))

BOWZONE 05-01-2005 09:48 PM

Great hack. Went in on the 1st try with no problems in V3.0.7

Thank you.

Installed!

92GreenGT 05-02-2005 02:38 AM

Can you change color of the pop ups? Also, can you make it where only "Unregistered" users will see it? Thanks

Logician 05-02-2005 08:44 AM

Quote:

Originally Posted by 92GreenGT
Can you change color of the pop ups? Also, can you make it where only "Unregistered" users will see it? Thanks

Please read the thread. Several times asked and answered.

T3MEDIA 05-02-2005 02:35 PM

Quote:

Originally Posted by Logician
You can use a "NOT" "(!)" conditional to simulate <else />.

Eg.

[[($bbuserinfo[userid]>0)]]
if visitor is a member
[[/($bbuserinfo[userid]>0)]]

[[(!($bbuserinfo[userid]>0))]]
if visitor is NOT a member
[[/(!($bbuserinfo[userid]>0))]]

Please note the location of ! and double paranthesis in the second clause
/(!( condition ))

Gotcha! Thank you.


All times are GMT. The time now is 11:51 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.01479 seconds
  • Memory Usage 1,735KB
  • 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
  • (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