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-23-2004 07:45 AM

Quote:

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

Would be nice though!

Exactly. It would be nice to have it but its structure is not appropriate for this feature.

Mosh 09-23-2004 10:31 AM

* jd clicks install *

I have been testing this for a while, it is great just installed it on my live forum.

Thank you.

JD. :)

Symbian.info 09-25-2004 03:25 PM

Quote:

Originally Posted by Symbian.info
So is there a beter editor for the vb 3.x version?? If not, can somebody make a hack for it??

Nobody with the same problem? :ermm:

poolking 10-02-2004 10:46 AM

Nice hack, installed without a problem on 3.0.3 :)

djohn 10-06-2004 02:52 PM

installed and working, great hack. both announcement types work fine, exept for the fact that the popup one appears somewhere on the side of the forum table, not in the middle, like i want it to be. any chance of changing that?

SaN-DeeP 10-06-2004 09:15 PM

Quote:

Originally Posted by djohn
installed and working, great hack. both announcement types work fine, exept for the fact that the popup one appears somewhere on the side of the forum table, not in the middle, like i want it to be. any chance of changing that?

use the center tag :)

sv1cec 10-07-2004 07:16 AM

Logician,

If someone wants to have a link to the Dynamic Forum Announcements, from the menu on the left column of the AdminCP, what would that link point to? I would rather having it there, than being forced to go into vBulletin Options, etc.

I assume it is something in the options.php, but I am not sure of the parameters or the syntax.

Many thanks and kind regards

CANCEL THAT, found it : admincp/options.php?dogroup=dynamic_fha

----------
John

djohn 10-07-2004 08:44 AM

Quote:

use the center tag
i've tried that, even the div allign=middle and such, but the actual box with the announcement still appears somewhere on the side of the forum table :(

heynurse 10-08-2004 05:50 PM

Is there a way to only show conditional message to members are not in X usergroup?

For example, it would be a nice way to encourage users to become premium members by showing them a message inviting them to become a premium member, but I don't want existing premium members to see this message.

Sorry if this was covered already, I read through most of the post and couldn't find my answer.

Thanks

Mokster 10-08-2004 06:52 PM

/me installs! very nice!

vBTotal 10-09-2004 04:14 AM

*Installs*

How do I change the color of the Green Popup window to something different?

Logician 10-09-2004 07:15 AM

Quote:

Originally Posted by heynurse
Is there a way to only show conditional message to members are not in X usergroup?

For example, it would be a nice way to encourage users to become premium members by showing them a message inviting them to become a premium member, but I don't want existing premium members to see this message.

Sorry if this was covered already, I read through most of the post and couldn't find my answer.

Thanks

[[($bbuserinfo[usergroupid]!=5)]] Show this announcement if page visitor's usergroupid is NOT 5 [[/($bbuserinfo[usergroupid]!=5)]]

Logician 10-09-2004 07:17 AM

Quote:

Originally Posted by dfr.cry
*Installs*

How do I change the color of the Green Popup window to something different?

change "background-color: lime;" part in template dfh_announcement_popup

heynurse 10-11-2004 09:51 PM

Quote:

Originally Posted by Logician
[[($bbuserinfo[usergroupid]!=5)]] Show this announcement if page visitor's usergroupid is NOT 5 [[/($bbuserinfo[usergroupid]!=5)]]

Thanks a ton!

kristian 10-13-2004 11:12 AM

How could i tell a user that their PM box is FULL or that it is nearly FULL?

Alzeimer 10-15-2004 07:08 PM

Installed and working, thanks!!!!
Can I add the google ads in the announcements?

klaattu 11-02-2004 09:50 PM

HELP ! I used to have this GREAT hack in my two sites Automania.com.mx and clioclub.com.mx so I upgraded both sites to vb 303 and when I tried to rehack to use th DFA in thi spart


Quote:

http://YOUR_SITE_URL/FORUM_URL/admin...le=dynamic_fha
and give these values in that page: (be careful: case-sensitive!)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Varname : dynamic_fha

Setting Group : Dynamic Forum Announcements

Title : Forum Home Table Announcement

Description : Announcement here appears at the top of forum home page.<br><br> Use conditionals in this context:<br> <b>[[(your conditional)]]<i>The Announcement</i>[[/(your conditional)]]</b>. <br>For more info check <a href="https://vborg.vbsupport.ru/showthread.php?t=64189" target="_blank">hack's thread</a>. <br>Hack by (<a href="https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=2355" target="_blank">Logician</a>)

Option Code : textarea

Default : Hello $bbuserinfo[username]! Welcome to our board! :)

Display Order : 10

vBulletin Default : NO
I said that I already have this part INSTALLED !!
I guess is th eold field in the database , the prolem is that I continued with the instalation till the end and IT DOESNT SHOW UP???

How do I get rid of the old filed in the database and reinstall this part?

any ahelp would be greatly appreciated

Logician 11-03-2004 05:49 AM

Quote:

Originally Posted by klaattu
HELP ! I used to have this GREAT hack in my two sites Automania.com.mx and clioclub.com.mx so I upgraded both sites to vb 303 and when I tried to rehack to use th DFA in thi spart

Can you see the hack options in the vb settings page? If yes, you don't need to apply that step (1 & 2) of installation.

Apply other steps (3,4,5,6) and you should be fine.

Quote:

Originally Posted by klaattu
How do I get rid of the old filed in the database and reinstall this part?

Please check thread, I've already given instructions to uninstall that section in this thread.

nonet 11-15-2004 04:35 PM

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?
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)]]


Divokymuz 11-15-2004 04:47 PM

i have a problem after doing step 1.

i alway get a parse error in the options.php at line 116.

wrot to Logician, and wating for an answer now :-)

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,

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 08:09 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.03186 seconds
  • Memory Usage 1,849KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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