![]() |
Floating notice box in forumhome.
1 Attachment(s)
This "Mod" will allow you to have a floating notice box in your Forumhome, however it can easily be adapted to show wherever you like!
The original javascript for the float and the box are from here http://www.jtricks.com/javascript/na.../floating.html all the information here does is help you understand where to put the code and how to use it etc Go to AdminCp>Style Manager>YOUR STYLE>Header and underneath PHP Code:
PHP Code:
PHP Code:
I used a little css to jazz mine up, again go to your style>Main CSS and in the additional CSS Definitions add this PHP Code:
PHP Code:
PHP Code:
I'm not a coder but will help as much as i can with problems on this! AS THERE IS NO FILE TO DOWNLOAD IF YOU USE THIS PLEASE MARK AS INSTALLED Support will be given to those that have marked this installed! |
nice idea. This sounds like a good idea for an ad banner. Any screenshots?
|
1 Attachment(s)
|
thanks lets try it
|
Nice Thank You
|
Cool Thanks for this.
|
Great work Simon I was going to suggest that you do this, believe it or not :D One question before I install it, which I think I know the answer to but I want to check first, does it take the colour from whatever your standard notice background is, ie default, or do you adjust it to your own preference?
|
Quote:
|
Quote:
Quote:
Quote:
If you haven't done so don't forget to click installed. |
Installed :)
|
Just what I needed, thanks :) ****INSTALLED****
|
Hi. How can I add a link?
|
Add a link to what? if you mean a html link the like this: <a href="http://www.mysite.com">My Site</a> so it would look like this:
PHP Code:
|
nice market
|
nice work
thanks |
can 4.2 vb versions use this?
|
Yep should be no issue using this :)
|
How do I add multiple user groups?
($bbuserinfo,1,4,7,8) etc? |
Exactly like that :)
HTML Code:
<if condition="THIS_SCRIPT == 'index' AND is_member_of($bbuserinfo,1,4,7,8)"> |
Hi,
I am using vb 4.2 version, can you please update for vb 4.2, and if the procedure is same then plz plz plz explain : Go to AdminCp>Style Manager>YOUR STYLE>Header and underneath As I am not able to find the code in header template $ad_headerEnd And where is underneath template. Waiting for your reply Million Thanks in Advance. |
Try adding it under
HTML Code:
<div class="ad_global_header"> |
Hi,
Thanks its working :) 1 more question : How to implement it on thread and category page. |
Change all of these
HTML Code:
<vb:if condition="THIS_SCRIPT == 'index' HTML Code:
<vb:if condition="in_array(THIS_SCRIPT, array('index', 'forumdisplay', 'showthread')) |
Hi,
After changing the code Getting error: Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3965 vBulletin Message The following error occurred when attempting to evaluate this template: %1$s This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
well it's just that, you've messed up the IF conditional, post it exactly as you've used it in both locations.
|
I have changed :
<vb:if condition="THIS_SCRIPT == 'index' AND is_member_of($bbuserinfo,1)"> to <vb:if condition="in_array(THIS_SCRIPT, array('index', 'forumdisplay', 'showthread') AND is_member_of($bbuserinfo,1)"> Please check |
You are missing a parenthesis, change
HTML Code:
<vb:if condition="in_array(THIS_SCRIPT, array('index', 'forumdisplay', 'showthread') AND is_member_of($bbuserinfo,1)"> HTML Code:
<vb:if condition="in_array(THIS_SCRIPT, array('index', 'forumdisplay', 'showthread')) AND is_member_of($bbuserinfo,1)"> |
Great :)
Its working on all Thread and Category but after scrolling down the page the Ad is not showing, go behind the page. Please check http://www.consumercourt.in/credit-card/ http://www.consumercourt.in/credit-c...dit-cards.html |
Add this to style=".... z-index: 100;
|
Million thanks
I was looking for this for a long time :) |
Glad to be of service!
|
Quote:
|
If they "Hide it" do you have a way to control how often comes back? Does it show in every new page?
|
AFAIK it will reappear with page refresh, i haven't used this in years :), just give it a try in a different browser.
|
Thank you again, I have two questions.
I cant figure out how to place it in the center of the page. And cant find how to place a "hide" button on it? |
I did this a few years ago, if i can find the code for adding a button to get rid of it...etc i'll post it here :)
|
figured out.. worked like charm :) thanks
|
All times are GMT. The time now is 05:50 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:
|