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)

kristian 11-16-2004 08:29 AM

Quote:

Originally Posted by nonet
Hello everyone!

I am using the code below for registered users with 0 post. However, the message does not appear on the homepage when visited from a user with zero post. Do you see anything wrong with the code?

This works...

PHP Code:

[[($bbuserinfo[posts]==0)]] Hello $bbuserinfo[username]! Don't you think its about time you made your first post? Please visit 
the
<a style="text-decoration: underline; color: #0000FF; font-weight: bold" href="http://www.okctalk.com/forumdisplay.php?f=46">
Introductions &amp; Welcome Forum</a> and tell us a little bit about yourself and 
become an active member of Oklahoma'
s largest online community.[[/($bbuserinfo[posts]==0)]] 


kristian 11-16-2004 10:09 AM

This alerts users that their PM box is nearly full (in this case 70 is their limit)... I have also excluded Admin and Mods from seeing this...

PHP Code:

[[($bbuserinfo[usergroupid]!=AND $bbuserinfo[usergroupid]!=AND $bbuserinfo[pmtotal]>65)]]
You have nearly reached your Private Messages limit of 70.

This counts 
for messages in your 'Inbox' and 'Sent Items' folder.  Please delete unwanted messages, as once your limit is reached you will no longer be able to receive new Private Messages.
[[/(
$bbuserinfo[usergroupid]!=AND $bbuserinfo[usergroupid]!=AND $bbuserinfo[pmtotal]>65)]] 


Logician 11-16-2004 05:04 PM

@nonet : use the conditional kristian quoted above.

@kristian : Thx for sharing your conditional and IMO it will go well together with this hack :)

@Divokymuz : If you get Parse Error in step 1-2, please make sure:
a) You applied it correctly. (eg. it is "REPLACE", not "add")
b) You hack your files with a text editor (eg. notepad), not a html editor (like frontpage or dreamweaver)

Mickie D 11-17-2004 06:05 PM

fantastic hack pal !

any chance to have a condition to make the popup only popup once ?

would be very handy as i think its great but members could get annoyed with it after a while

Divokymuz 11-18-2004 10:50 PM

[QUOTE=Logician@Divokymuz : If you get Parse Error in step 1-2, please make sure:
b) You hack your files with a text editor (eg. notepad), not a html editor (like frontpage or dreamweaver)[/QUOTE]
yes, that was ist.

i did with dreamweaver, like i always edit php with dreamweaver.

now done with notepad and it works.

thanks for your support. by the way, great hack.

Galadrium 11-18-2004 11:42 PM

Just installed. Great hack!

However, I cannot get the popup feature to work. I have not used conditionals or anything. I just entered in some text. I can get the forumhome announcements to work, but not the popups. What should I do?

Thanks

kixxer 11-20-2004 09:25 AM

thanks for the great hack! THis was just the thing i was searching for, installation worked perfectly without any problems!

SaN-DeeP 11-20-2004 05:07 PM

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,

Viks 11-21-2004 12:46 AM

Hi guys,
im running a vb 3.0.3 forum...and i know this hack is for vb3.0
I would REALLY appreciate if anyone here who has installed this hack on VB3.0.3 will let me know of i need to make any additional changes.

thanks guys,

vik

SaN-DeeP 11-21-2004 08:00 AM

Quote:

Originally Posted by Viks
Hi guys,
im running a vb 3.0.3 forum...and i know this hack is for vb3.0
I would REALLY appreciate if anyone here who has installed this hack on VB3.0.3 will let me know of i need to make any additional changes.

thanks guys,

vik

I am running on vb 3.0.3 and this hack works perfect without any additional changes :)

Regards,


All times are GMT. The time now is 02:32 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.01484 seconds
  • Memory Usage 1,749KB
  • 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_php_printable
  • (2)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