![]() |
is it possible for you to add some options in the admincp?
like where you can type in a username to send it to or the user number... And Maybe Have It Seperated By Commas(,), so i can put more than one username or number, like to send it to lets say 16 people....but only one time or whenever i need to... or just click a radio button or something providing which usergroup you want it to be sent out to.... and maybe have a radio button for guests too... |
Quote:
[[($bbuserinfo[userid]==1 OR $bbuserinfo[userid]==1)]] Show this announcement if user id is 1 or 2 [[/($bbuserinfo[userid]==1 OR $bbuserinfo[userid]==1)]] |
Quote:
|
Quote:
find: PHP Code:
PHP Code:
Now it is minutes |
Quote:
well i was trying to see if you could somehow add what i suggested? :ermm: |
Quote:
It not work.... :disappointed: |
It's work....YAYA
I used this variable "$bbuserinfo[lastactivity]" [[($bbuserinfo[lastactivity] and $bbuserinfo[lastactivity] < strtotime("-7days"))]] Show this announcement if page visitor has not visited my board for over 7 days [[/($bbuserinfo[lastactivity] and $bbuserinfo[lastactivity] < strtotime("-7days"))]] |
Quote:
|
Quote:
Could you show how to show an announcement in user's birthday? What is user's birthday of conditional syntax? $bbuserinfo[birthday] ? I want to show "Happy Birthday" to User? |
Quote:
thank you :D |
[[($bbuserinfo[birthday] and $bbuserinfo[birthday] == strtotime("0 days"))]]
Show this announcement if today is page visitor's birthday [[/($bbuserinfo[birthday] and $bbuserinfo[birthday] == strtotime("0 days")]] Is it Correct? :disappointed: |
Awesome! I have this working under VB 3.5.1.
I did alter it, however. I didn't like the announcement in its own box/table, so instead I edited my style FORUMHOME templates to put the announcement text into the "guest" announcement area, and removed the <if condition="$show['guest']">...</if> so that area always shows. I did not add the $dfh_announcement after $navbar. Instead, I replaced the first_visit_message phrase code with $dfh_announcement_announcementtopaste. Voila! I then used conditionals in the DFHA to control whether my guest message or my registered user message is displayed there. Fine point: I did actually add a new phrase welcome_to_the_x_dfha and switch between that and welcome_to_the_x depending on whether $show['guest'] is true or false. That way the title of the announcement area changes between guests and registered users. I didn't post the code here because it's different in VB Classic vs Surge, etc. I can post the Classic code if needed. Now the display is consistent with the current style, takes up less room, and is really configurable. All you do is edit the DFHA announcement text in the condiitional blox. |
One thing that got me: You cannot nest conditionals. I might look at your system to see if it can recursively call itself to parse nested conditionals. For me at least, it would be very helpful. I use conditionals to switch between guest and registered user messages, and I can't use any condiitionals inside those. Instead I have to make a rather messy set of linear conditionals for all of the permutations of conditions I have.
Also the conditional syntax is a bit klunky, but I understand it's code you've had for a long ime. If it ain't broke, don't fix it! |
Quote:
|
Update #2 (final!): All is well now. Here is the code for dynamic_a() which implements nested conditionals:
Code:
function dynamic_a($logician_dfa_incoming1) I'm slowly coming up to speed on PHP :nervous: I was killed by the $bbuserinfo[membergroupids] variable testing against values, till my ancient Perl tablets fell out on the ground. Yumba! It can be an array and it may not even exist! Well, rookie me! I got it now. This is so nice! Nested conditionals open up a whole new world of possibilities, but ... Thank you Logician Thank you Logician Thank you Logician ... |
Quote:
|
Quote:
|
Quote:
|
Great hack! Thanks so much Logician :)
|
Thanks Logician et merci allan pour ta traduction fr ;)
|
Quote:
and i dont see "delete" (by clicking "delete" next to 2 settings and 1 setting group title) could u please help? |
Umm... I do not really understand the purpose of this hack. Can't this simply be done via templating system?
|
Quote:
Quote:
This hack gives you an easy way to put global announcements into your forum home page without dealing with templating system. It also allows you to put popup announcements to your forum homa page without dealing with multiple templates and complicated HTML codes for DHTML layers. |
anyway to make it smaller? :S very nice work tho! jsut massive!
|
Hi
I have uploaded the php in the right place... I have imported the product as a product, checked it 3 times, but cant see it in the manage product list, although when i try to upload it again it says its already there... Another thing, when i try to edit the forumhome template and click save, it just reverts back to the state it was before the edit... This is really strange... Any advice please... Bashy |
Quote:
|
Strange that...Cause i got loads of mods installed and this is the first time it aint let me change a template....
I will try again when i have rebooted my computer!!! Bashy |
Hi again...
still the same problem, it will not let me edit the forumhome template for love no money, Once i edit it, it just reverts back to as it was before i edited it... Im gonna go have a word with vB i think and see what they say... But in the mean time can anyone see anything in the code that could have locked the template? Code:
stylevar[htmldoctype] |
*clicks installed*
|
how do you add -adsense? also how do you make it smaler?
|
Does anyone have this working with CMPS and photopost?
|
i did a boo boo
I didnt read everything you said wich i know i should of.... but anyway I had this hack when i was running 3.0.8 now i have 3.5.2 and installed it with out removing anything so is there anyway i could remove the old stuff because im seeing double in the acp. |
*Installed*
Excellent hack just what I have been looking for.....Thanks One question. Is it possible with the popup to show this once? When the user has seen this popup and closed the window they do not get the same popup again? Thanks |
Thanks for the great hack Logician! =)
I have a question though: how can I remove the < br / > that appear before and after the announcement? I also would like to suggest the compilation of examples to help conditional challenged people like myself =) |
Quote:
|
Futur suggestion: ON/OFF by option in admincp.
|
Quote:
The error is below HTML Code:
Warning: main(./includes/functions_showthread.php): failed to open stream: No such file or directory in /home2/georgiad/public_html/vbgdbase/photos/header-inc.php on line 92 |
<font color="Green">Install</font> Great thanks
//Regards |
I have 3.5.1
I have followed all the instructions but I don't see it in the VBoption setup section. And when I look in the plugin manager it is not listed so I can not change any of the hooks. TIA |
Hi
whoopsy...found in the second post, how i missed that i will never know :( TIA |
All times are GMT. The time now is 08:39 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|