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 11-13-2005 07:42 AM

Quote:

Originally Posted by Loco Macheen
what is the condition to make it say the users name ..
like here it would be

Hello Loco Macheen pls post more :D

i seen it was set in the default, but i've edited it..ty

[[($bbuserinfo[userid] AND $bbuserinfo[posts]<5)]]
Hello $bbuserinfo[username] pls post more :D
[[($bbuserinfo[userid] AND $bbuserinfo[posts]<5)]]

Translation :

If visitor is a user but has less than 5 posts, say :

Hello $bbuserinfo[username] pls post more :D

aacircle 11-13-2005 12:59 PM

Anyone know what would be the condition if a user hasn't posted for 30 days? I have been trying the following without luck.

[[($headerstime - 1209600 > $bbuserinfo[lastpost])]]Message Here[[/($headerstime - 1209600 > $bbuserinfo[lastpost])]]

Allan 11-13-2005 06:49 PM

The French Language :)

Logician 11-14-2005 08:29 AM

Quote:

Originally Posted by Allan
The French Language :)

Thanks for sharing. I linked in the hack post.

nexus851 11-14-2005 09:39 AM

Seems like i cannot close announcement POPUP at the FORUM homepage. When it pops up, and i click "close announcement" it doesnt close and stays there.. its annoying for my users.. Only way i can close it is to goto another link. Anyone knows whats wrong or how to fix this???

John P.

Logician 11-14-2005 09:53 AM

Quote:

Originally Posted by nexus851
Seems like i cannot close announcement POPUP at the FORUM homepage. When it pops up, and i click "close announcement" it doesnt close and stays there.. its annoying for my users.. Only way i can close it is to goto another link. Anyone knows whats wrong or how to fix this???

John P.

If you modified popup template, revert it to the original. If not, give me the URL of your board, put a announcement for guests and let me check it.

davidw 11-14-2005 01:16 PM

<font color="SeaGreen">* chrisitanb clicks install</font>

nexus851 11-14-2005 09:18 PM

i didnt modify the templates at all... couldnt close the announcement at my FORUM HOME only, but for my CMPS home, it closes fine. Check it out at www.pimpwithus.com and click "Forum" link under navigation link on left. It was like this even before i put in the CMPS codes in, i just thought maybe after i install the CMPS add on it'll work fine, but guess not... please advise...


P.S - it has 2 different size popup tables in the FORUM HOME.. maybe that's a clue in why it's duplicating the popup and not closing one.

aacircle 11-15-2005 01:38 AM

Logician... are you able to help with my above post #142. I am using your hack and this replaced the welcome headers hack I was previously using. The welcome headers hack was similar, but places the message on every page, whereas I don't want to be so "in the face" for our users.

Need the message to only display if a user hasn't posted for x amount of days.

Thanks. ;)

Logician 11-15-2005 05:38 AM

Quote:

Originally Posted by mycolumbus
Anyone know what would be the condition if a user hasn't posted for 30 days? I have been trying the following without luck.

[[($headerstime - 1209600 > $bbuserinfo[lastpost])]]Message Here[[/($headerstime - 1209600 > $bbuserinfo[lastpost])]]

[[($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"))]]


All times are GMT. The time now is 03:20 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.01361 seconds
  • Memory Usage 1,740KB
  • 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
  • (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