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)

aacircle 11-15-2005 07:24 AM

Thanks for your expert feedback Logician! I've cut and pasted the above, but it doesn't show your message. All my other messages display except this IF statement... :(

Logician 11-15-2005 03:03 PM

Quote:

Originally Posted by mycolumbus
Thanks for your expert feedback Logician! I've cut and pasted the above, but it doesn't show your message. All my other messages display except this IF statement... :(

I tested it and it works for me? Are you sure you test with a MEMBER account that didn't post in the last 30 days but still has at least 1 posts?

nexus851 11-16-2005 04:35 AM

Quote:

Originally Posted by Logician
I tested it and it works for me? Are you sure you test with a MEMBER account that didn't post in the last 30 days but still has at least 1 posts?

Ok, i fixed the problem... FOR ANYONE that uses CMPS, they send the varibles through the default output page and revised the header of the 'adv' template, but what i didnt realize is that it's duplicating the popup announcement twice because of the forumhome pops and the CMPS adv template popups.. so basically, you have to deactivate one of them by:

taking out "$dfh_announcement_popup" from the FORUMHOME template only if you install the CMPS along with it. That fixed the duplicate popup announcement at FORUM HOME. =)

Blackbeard 11-17-2005 04:50 PM

ok i need help, how do i do a header for guests saying this

Quote:

There are many great features available to you once you register at SWU, including :
Richer content, access to many features that are disabled for guests like commenting on the front page
Access to a great community, with a massive database of experience on hard & software issues, gaming and recreational activities, and more
Access to the SWU online chat - you could make a friend from across the world and talk to them live
Access to SWU contests & subscription offers like exclusive SWU email addresses
It's simple, and FREE!
Then put a link to the registration

Please help

lulala 11-19-2005 01:20 AM

The Traditional Chinese Language UTF-8
enjoy it

lulala 11-19-2005 02:21 AM

Quote:

Originally Posted by Logician
I tested it and it works for me? Are you sure you test with a MEMBER account that didn't post in the last 30 days but still has at least 1 posts?

me too
I cannot show it!

Logician 11-19-2005 06:26 AM

Quote:

Originally Posted by lulala
me too
I cannot show it!

Make sure you have space before and after < and also -30 days is between quotation marks. Like that:

PHP Code:

[[($bbuserinfo[lastpost] and $bbuserinfo[lastpost] < strtotime("-30 days"))]]Show this announcement if page visitor has not posted in the last 30 days (although he posted before)[[/($bbuserinfo[lastpost] and $bbuserinfo[lastpost] < strtotime("-30 days"))]] 


lulala 11-19-2005 08:58 AM

How to show an announcement in user's birthday?
What is user's birthday of conditional syntax?
$bbuserinfo[birthday] ?
I want to show "Happy Birthday" to User? :squareeyed:

lulala 11-19-2005 09:44 AM

[[($bbuserinfo[lastvisit] and $bbuserinfo[lastvisit] < strtotime("-7days"))]]
Show this announcement if page visitor has not visited my board for over 7 days
[[/($bbuserinfo[lastvisit] and $bbuserinfo[lastvisit] < strtotime("-7days"))]]

Is It Correct as above?
I cannot show it... :ermm:

lulala 11-19-2005 10:06 AM

Popup Frequency Unit is Hour
Can change to Second or minute??


All times are GMT. The time now is 09:31 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.03471 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (5)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