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)

Logician 09-10-2004 11:10 AM

Quote:

Originally Posted by tanhadil
Hello $bbuserinfo[username]! Welcome to Desi-Dhaba forums
<div align="center"><a href="http://www.site/subscriptions.php"><img src="http://www.site/image.jpg" border="0"></a>

[[($bbuserinfo[usergroupid]==9)]] Thank you for buying the package.Link for stream will be posted soon[[/($bbuserinfo[usergroupid]==9)]]

i am typing this into the Forum Home Table Announcement in the ADMIN CP..

Usergroup 9 is for the paid subscribers...but they still cant see the message :ermm:

Are you sure 9 is the MAIN usergroup of paid users? Apparently it is not.

sv1cec 09-11-2004 05:29 AM

Is there any reason why the pop-up announcements are shown in Netscape and not in Internet Explorer?

Also, I have two announcements, as shown in the code below. Shouldn't both of them be shown if a user belongs to usergroup 3?

HTML Code:

[[($bbuserinfo[usergroupid]==3)]]

Dear $bbuserinfo[username],

You have registered with our forums, but you have not responded to the registration e-mail we send you. If you do not do so in ten days, your account will be suspended.

If you have lost the registration e-mail we send you, or if you didn't receive it, please <A HREF="http://forum.m1911.org/sendmessage.php" target="_blank">contact us</a>, so that we re-send it to you.


Thank you for being here.

The M1911.ORG Forums Site Team

[[/($bbuserinfo[usergroupid]==3)]]


[[($bbuserinfo[usergroupid]>=0)]]

<B>September 11th</B>

Some text here.

[[/($bbuserinfo[usergroupid]>=0)]]

From the two announcements above, only one of them is shown, the one which is first in the list.

Tnx and regards

--------

John

Logician 09-11-2004 07:47 AM

only first matched announcement is displayed by the hack. You can combine them into one if you like to display both. If netscape is displaying, IE should also display.

sv1cec 09-11-2004 06:39 PM

Quote:

Originally Posted by Logician
only first matched announcement is displayed by the hack. You can combine them into one if you like to display both. If netscape is displaying, IE should also display.

Well, I have the announcement shown in Netscape, but not in IE. Maybe it has something to do with my settings in IE, I do not use it much, so I do not remember all the settings I've changed. Can you please check my site and let me know? It is located at http://forum.m1911.org. I would certainly appreciate it.

As for my other question, I would think that it is more reasonable, if there is a no-conditional announcement, that announcement to be shown to everyone, even if they fall in one of the other conditionals. In that way, a general message could be shown to everyone, together with a specific message to a particular user group, for example.

Rgds and tnx for this hack.
-----------

John

Bobbo 09-17-2004 08:31 PM

Thanks again for this hack Logician. I've made some minor tweaks to this and have it running in VBA CMPS, additionally, I am passing different custom variables via the URL to also get different content to display in different situations. It works great.

I've come across a specific application where I'd like to have a hyperlink that activates the $dfh_announcement_popup on the current page. I realize this is out of the scope of this hack, but if anyone has any ideas, I'd certainly appreciate it.

[Off Topic] The popup contains a flash search tool with predefined searches to help new users find relevant content [/Off Topic]

The trouble for me has been finding a way to activate it on the current page. I'd rather allow the popup to occur on any page the user happens to be on via a clickable 'toggle' rather than routing to a whole different page and then letting the page load the popup...

Thanks.

AcidJazz 09-19-2004 02:29 AM

Logician you rock! :)

Symbian.info 09-20-2004 03:12 AM

I did use this hack on vb v2.x. And I love it, What I didn't like was the very small editor box.. Way to small to get a overview of all the messages.
So is there a beter editor for the vb 3.x version?? If not, can somebody make a hack for it??

lazytown 09-22-2004 10:52 PM

Someone asked this before and it wasn't answered in any of the 14 pages, so I'll try it again.

Is there a way to make it so that the popup only displays once ever for a user, or is this already possible?

If they close the announcement and log back in next time, does the same popup still display for them? If so, is there a way to prevent that from happening?

Thanks!
-V

sv1cec 09-23-2004 04:01 AM

Quote:

Originally Posted by vissa
Someone asked this before and it wasn't answered in any of the 14 pages, so I'll try it again.

Is there a way to make it so that the popup only displays once ever for a user, or is this already possible?

If they close the announcement and log back in next time, does the same popup still display for them? If so, is there a way to prevent that from happening?

Thanks!
-V

Yes, the pop-up keeps coming up again and again, every time they log in. I wish someone could make a "check box" to remove it, but it's not easy. Some sort of indexing between that particular announcement and each user should exist. As far as I know the announcements are not indexed in any way, so I am not sure we will ever see such an improvement.

I have to assume, a different method has to be used to create and store the annoucements.

Rgds
--------
John

fiber1 09-23-2004 05:02 AM

Not going to happen with this script, It just was not designed for that.

Would be nice though!

Fiber


All times are GMT. The time now is 01:22 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.01332 seconds
  • Memory Usage 1,748KB
  • 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_html_printable
  • (3)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