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)

Mickie D 11-22-2004 01:49 PM

any news on the popup only poping up once per visit ?

i know you are busy but like i said before my members are getting annoyed buy it but i would really like to use it ;) but if it could popup once per vist that would be great ;)

Logician 11-23-2004 04:42 PM

Quote:

Originally Posted by SaN-DeeP
Hey Logician, Any comments on getting the header messages changed if a user changes the forums browsing ?

Example:
When user is watching Forum id=1 - all users/usergroups can see XYZ Messge
When user is watching Forum id=2 - all users/usergroups can see ABC Messge

I think you can look for an upgrade to the script to support this now ? or maybe its already supported so you can help me know the how-to on using it :)

Regards,

I have not tested it but it should be *partly* supported:

[[($f==1)]]
XYZ Messge
[[/($f==1)]]
[[($f==2)]]
ABC Messge
[[/($f==2)]]

This should work in forumdisplay pages but not in showthread pages.

ndahiya 11-26-2004 02:03 AM

Hi

Am trying to show a message to users who have not posted in the last 2 weeks, but nothing seems to work!!

The code below shows the message to everyone... $bbuserinfo[lastpost]<strtotime("-2 weeks") also does not work!!

TIA!!
nd.

--

[[($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]+1209600<$now)]]<b>Hello $bbuserinfo[field1]</b>, we noticed that you have not posted a message in the last 2 weeks... Better get to work!! :)
[[/($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]+1209600<$now)]]

Takamine334 11-26-2004 09:44 PM

this hack should get hack of the year.

this is one of the best hacks I've ever implemented. Thanks Logician.

Logician 11-27-2004 07:03 AM

Quote:

Originally Posted by ndahiya
The code below shows the message to everyone... $bbuserinfo[lastpost]<strtotime("-2 weeks") also does not work!!

This works ok for me:


[[($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]<strtotime("-14 days"))]]
we noticed that you have not posted a message in the last 2 weeks... Better get to work!!
[[/($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]<strtotime("-14 days"))]]

ndahiya 11-27-2004 12:04 PM

Thanks Logician

It looks like its working now...

Just another small issue... If I log out, the [[($bbuserinfo[usergroupid]==1)]] tag does not appear to work properly... Is it a cookie issue ?

The work around I have used is (This works fine!):
[[($bbuserinfo[usergroupid]>1)]] [[/($bbuserinfo[usergroupid]>1)]]

<<<text for all (non-logged in) users...>>>

-

Thanks for a great hack!!
nd.

---

Quote:

Originally Posted by Logician
This works ok for me:


[[($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]<strtotime("-14 days"))]]
we noticed that you have not posted a message in the last 2 weeks... Better get to work!!
[[/($bbuserinfo[usergroupid]>1 AND $bbuserinfo[lastpost]<strtotime("-14 days"))]]


Logician 11-27-2004 12:12 PM

Quote:

Originally Posted by ndahiya
Thanks Logician

It looks like its working now...

Just another small issue... If I log out, the [[($bbuserinfo[usergroupid]==1)]] tag does not appear to work properly... Is it a cookie issue ?

The work around I have used is (This works fine!):
[[($bbuserinfo[usergroupid]>1)]] [[/($bbuserinfo[usergroupid]>1)]]

<<<text for all (non-logged in) users...>>>

-

Thanks for a great hack!!
nd.

---

As a matter of fact if you logged out successfully, [[($bbuserinfo[usergroupid]==1)]] hey guest![[/($bbuserinfo[usergroupid]==1)]] should work ok.

djjeffa 11-29-2004 03:53 AM

is there a way of chosing where the pop up box shows up?

Viks 11-29-2004 12:46 PM

I've installed this hack.. works GREAT! however one question.
I have added the announcments tempelates in HEADER so that it shows up on all pages. But I want some announcements to show up ONLY in Forums homepage.
how can i do this? does the forums homepage have a forum ID??

Divokymuz 11-30-2004 12:15 PM

Quote:

Originally Posted by djjeffa
is there a way of chosing where the pop up box shows up?

you can position it via CSS.

just change the values after top, bottom, left, right.

but be careful. it is an absolut positioning, doesn?t change on useres monitor settings.


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