![]() |
Quote:
Thanks very much for answering my question, appreciated very much indeed. And yes, it covers my needs, at least 90%. The other 10% has to do with comments. Is there a comments tag or could you incorporate one? For example, I would love to have a comment, just above that conditional, saying "This is for moderators". In that way, I wouldn't have to go back and forth between the Usergroup management (to see which user group is No 5) and the announcements. Me pressing install, very nice hack Sir. Edit: Scrap that, I can always have the comment within an impossible conditional, within the conditional. Right? |
Where is this vbadvanced's index.php file? is it the main index file in root or am I blind :)
Quote:
|
can we have the hack installed in header template instead of forumshome ?
it makes it easier to be viewable on all pages :) |
Quote:
I am no expert in php, so that's as far as I can go, but it would be definitely useful to have the option to show the announcement in every page or just FORUMHOME. I do not care for the pop-up announcement, that I don't want in every page. If you actually put the $dfh_announcement in navbar, the announcement will be shown in every page, if you put it in FORUMHOME, it goes only in the first page. Ideally, that could be a user-selectable parameter, from the definition of the announcement, which could be checked at run time, something like (in human language code): if where-to-show-parameter is 1 (=show everywhere) then show-announcement if where-to-show-parameter is 0 then if this is forumhome show-announcement else don't-show-announcement endif endif Logician, can we please have that, either with the parameter in admin cp, or without it (just do it so whoever wants that message to appear in navbar, can enter $dfh_announcement in the navbar template instead of FORUMHOME)? Thank you Sir |
Quote:
Apply STEP 5 like this: (btw dont forget to revert your old step 5 installation first! That is remove the hack in step 5 from index.php before applying this) STEP 5- Edit global.php (in forum main directory), find PHP Code:
REPLACE IT AS: PHP Code:
PHP Code:
PHP Code:
Now put $dfh_announcement_headercode $dfh_announcement_popup $dfh_announcement variable in any template you like. |
Hey Logician.
I appreciate your excellent work https://vborg.vbsupport.ru/external/2004/10/2.gif It works like a charm. I just imagine, how i missed this hack to install :) since i installed vb or since this was released. Just a few more questions: Does this hack adds an extra query to forums ? When there are no annoucments: It dont add any query to the board But with an annoucment: It adds one query to entire forums. I am using it on header as i requested. :) Thnx for your code to display it on header. Works like a charm. Big Thnx again :) https://vborg.vbsupport.ru/external/2004/10/2.gif |
a small request:
Can someone please tell me how to make a conditional to display a message for: Users from Registered Usergroup only, with less then 1 posts I used a conditional in my headers, b4 installing this addon: <if condition="$bbuserinfo[posts]<1 && !$show['guest'] && !is_member_of($bbuserinfo, 3)"> Not sure, how to use it here. Regards, |
Quote:
Tested and works like a champ. Very useful hack, and my hat off to you Sir, for such a great service. Rgds |
Quote:
Quote:
announcement here [[/($bbuserinfo[usergroupid]==2 AND $bbuserinfo[posts]==0)]] |
This hack, is INCREDIBLE!!! :D I really like it, conditionals and everything are way cool.
[high]* SmasherMaster hits install[/high] |
Awesome Hack!! Thanks So Much!!
Just wanted to tell everyone, that this DOES work on 3.0.3 :) *clicks install :) |
Logician,
I hate to bother you for that, but I tried to do it alone, and failed miserably. I have no experience with php, so it's hard for me. What would make this hack perfect (at least for me), would be to have an additional parameter in AdminCP, Dynamic Forum Announcements, right below the Forum Home Table Announcement and before Forum Home PopUp Announcement. Let's say we call it "display_homeonly". This should be a Yes/No parameter. Then, inside the templates, one could add something like: For FORUMHOME: <if $vboptions[display_homeonly]="Yes"> $dfh_announcement </if> For other templates: <if $vboptions[display_homeonly]="No"> $dfh_announcement </if> In that way, the table announcement could be either viewable in the forum home, or in every page of the site, depending on the AdminCP parameter. My problems are: - How do you add such a parameter in AdminCP? I can replicate the steps you describe in the installation file, for the dynamic_fha, but I do not know what Option Code to use for this one, obviously it's not a textarea. - What shall I add in global.php to read it from the database? I assume something like $display_homeonly=$vboptions[display_homeonly] is needed. Am I correct? Or can I check $vboptions[display_homeonly] directly from the templates? I am sure I'll be able to manage the templates <if> structure from there on. Again, sorry if this is way beyong your role here, I just can't find any place to read about these issues. If you could guide me somewhere, I would appreciate it. Kind regards and again, many thanks for THE most useful hack. ---------- John |
Logician,
I am trying to add the following HTML code in the standard annnouncement: HTML Code:
<table cellspacing="0" border="0" width=98% align="center"> Rgds and tnx |
Quote:
Eg. HTML Code:
<table cellspacing="0" border="0" width=98% align="center"><tr><td width=20% align="center">................................ |
Quote:
Oh, I got it, I can change that phrase and add a note about this trick, below your name. Thanks Logician. Rgds |
It is because you enter this HTML code to a "vbulletin option box" and vbulletin replaces new lines with <br>s in option boxes when submitted. ;)
|
AWESOME!
Hope I'm still not too late to click *Install* Thumbs up! |
Logician,
After using the hack for some days, I would like to ask for an additional feature. I am using the dfh_announcement, in a ... hidden way, in other words, my members have to click on a link to see whatever I have in there. The link is shown only when there are announcements. However, if there is more than one announcements in there, people see the link and visit it. Then next day, they see it and visit it again, and they see nothing new, because I haven't added anything new. I would like to add a field in the dynamic_fha group, which will be a date field. I can change that manually, when I enter a new announcement. Then, next to my "announcements" link on forumhome, I can add that date, so that members can check and see if this is something new or not. (I might even check if this date is newer than their "last_visit" date, dreaming!!!). My problem is that I have no idea on how to add that "date" field in the admincp. I think I can handle it from there, but I have no idea on how to add the Code Option etc, so I would appreciate your help in adding the "dynamic_fha_date" in the admincp. The date does not have to be fancy to enter, with drop-down menus etc, a simple "28/07/2004" field is fine. Many thanks and best regards After some experimentation: Please have a look at http://forum.m1911.org. Notice, right below the navbar, there is an announcement link. Also notice that there is a date there. Well, this is just a text, it's not a date. I managed to create a "dynamic_fha_date" item, in the admincp, but the Code Option I used, is text area. If I could make this a date, then I could compare it with the last date the member visited, and hide or show the link accordingly. However, I have no idea how to make that a valid "date" field. This is where I would need your help. Many thanks and kind regards again. |
Awesome hack. My brain thanks you greatly! I've been beating my head for a few days to get a dhtml popup for Guests only... should have known to check here first :)
Installed with no problems, now to design the popup I want for Guests. Update: I had a problem with a text box. The other admin got it going using iframe and a text file. |
Quote:
Doesn't it suck when you see that someone has solved a problem and they don't give you step-by-step instructions? :) I'm re-doing it for my site, so here we go.. In /includes/vba_cmps_include_bottom.php: Find PHP Code:
PHP Code:
PHP Code:
PHP Code:
Add dfh_announcement, dfh_announcement_popup and dfh_announcement_headercode as templates being called in one of your modules. (Don't know if this is the best way to go about this, but it works for me.) |
What files/templates do i have to edit, to make this announcement show up in every topic, post, etc....Right now its only on the home page and the forums home page :-/
thanks! |
Quote:
Rgds |
sv1cec thanks for the reply, but seems even if i add it there, it will only show up on the index pages.... I added the $dfh_announcement right after </if> (last line of the nav template)
Anymore suggestions? |
no go on that as well...but we decided to go with another approach that doesn't use this hack for now. Thanks for looking...if you get time and can find the answer we will use it, but not a rush.
|
Quote:
But if you add it in forumhome and in forumdisplay and it works, there is no reason why it shouldn't work in navbar too. Are you sure you have done the mods suggested in the original hack, especially those involving the global.php file? Rgds |
Quote:
PHP Code:
PHP Code:
Rgds |
Are there any steps that need redoing following an upgrade OTHER than file edits? I had this running on 3.0.1 then I upgraded to 3.0.3, applied the edits and the announcements don't show. I haven't at this point reverted any templates and I still see the admincp options.
|
Hmm this is very interesting... I found out about this thread from this site www.wlgo.com/bbs cuz I wanted to try out this announcement hack. Is it possible to make the announcement in motion ? I would be great since it will not require a big msgbox when there is a lot to announce :)
|
Quote:
Let me know if it works. Rgds |
Quote:
Rgds |
Quote:
|
Quote:
|
Firefox does. I've been informed Netscape doesn't.
|
sv1cec, works perfect...thanks for the find!
Also what happens if you use the marquee and browser doesn't support it? Will the text still show, just in one spot or will it not show at all? |
You'd see the text, with no non-functional coding. Actually I just noticed Firefox also supports blinking. I didn't know that. :/
|
Quote:
|
Quote:
I am not sure about the marquee tag, Netscape and IE I use for testing, both support it, so I am not very interesting in finding out about this. Rgds |
off topic, Whats it like over there right now? with the olympics? traffic all over?
btw...thanks again :-D |
I feel old... I just did some quick searches and the "marquee" tag goes back the days of IE version 2. :(
|
Quote:
Sorry for the off topic answer. Contact me directly if you need more info. Rgds |
All times are GMT. The time now is 08:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|