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)

ROTPAR 06-20-2006 11:07 AM

Vbseo but I can?t figure out, what the problem could be :(

Logician 06-20-2006 02:18 PM

Quote:

Originally Posted by ROTPAR
Vbseo but I can?t figure out, what the problem could be :(

Do you use any conditionals? Set announcement as "Hello" and see if it will help?

tanyeri24 06-20-2006 05:10 PM

Quote:

After how many hours the pop-up announcement should show up for the same user? (Enter 0 to show it everytime the user visits homepage)
If we enter 0,25 (or 0.25) means after all 15 minutes?

sorry I found my answer:
https://vborg.vbsupport.ru/showpost....&postcount=164

ROTPAR 06-22-2006 04:03 PM

1 Question...how can I do it, that all Guests get the popup on all forums except 1...So 1 Forum Section should be without the popup! the rest should have it :)

skoenig 06-23-2006 04:30 AM

I've got this excellent product/hack installed and it all works perfectly.

I'm trying to use $vbphrases so that I can get the messages translated and house them all in one place easily (I read it was BBcode parsed but I thought I'd give it a shot!).

I used this:
Code:

[[($bbuserinfo[usergroupid]==1)]]<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>[[/($bbuserinfo[usergroupid]==1)]]
To replicate the initial welcome for guests and for the most part it works perfectly except for the variables and line breaks which don't get replaced properly.

Has anyone else tried this and is it working for them. I guess more importantly should it work at all (i'm guessing not)?

Thanks for your help.

Regards

Steph

Logician 06-23-2006 06:18 AM

Quote:

Originally Posted by skoenig
I've got this excellent product/hack installed and it all works perfectly.

I'm trying to use $vbphrases so that I can get the messages translated and house them all in one place easily (I read it was BBcode parsed but I thought I'd give it a shot!).

I used this:
Code:

[[($bbuserinfo[usergroupid]==1)]]<phrase 1="faq.php$session[sessionurl_q]" 2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>[[/($bbuserinfo[usergroupid]==1)]]
To replicate the initial welcome for guests and for the most part it works perfectly except for the variables and line breaks which don't get replaced properly.

Has anyone else tried this and is it working for them. I guess more importantly should it work at all (i'm guessing not)?

Thanks for your help.

Regards

Steph

Sorry, this wont work.

skoenig 06-23-2006 07:31 AM

I figured. I kinda half got it to work but looking at the code it's a whole bunch of hassle to pre-parse it.

It doesn't matter really because I can use the standard welcome message banner thing anyway and the rest is taken care of by your excellent product/hack!

Regards

Steph

RoryF 06-23-2006 12:02 PM

Is there anyway i can get this to work in the UserCP and how could i add this to other pages aswell?

skoenig 06-23-2006 08:59 PM

OK I'm sure you get lots of suggestions.

I understand it displays the first matching string in the list. That makes sense.

Is there anyway to expand the messages so that we can add a random switch...maybe in combination dc3dreamers excellent recursion hack....

Something like $dfharandom==3 so that any messages with the same random id number will be selected from randomly (assuming the rest of the conditionals are true for those messages)?

I'm guessing this is a lot of work though since you exit the parsing at the first logical true, right? Would enable us to do tips and such like from a library of little messages...

Also how could we do a date test such as Christmas and Easter?

Regards

Steph

emforum 06-24-2006 09:40 AM

I uploaded "functions_dfha.php" into vb's /includes/ folder.

I Edited forumhome/forumhome template and replace the code

Uploaded xml file as product

No what i didnt understand is,,

Login to your vb admin cp, go to settings page and configure your announcements in "Dynamic Forum Announcements" settings.

I logged in to admin control pannel, where is the settings page???

emforum


All times are GMT. The time now is 05:15 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.01677 seconds
  • Memory Usage 1,742KB
  • 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_code_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