![]() |
Ok... thanks I have it working now. I just switched from phpBB to Vbulletin and there are couple of minor differences in the control panel. :smoke:
thanks for your help :D |
I have done the update. It is still not working for me.
|
Thanks for the reply but I get this error now:
Invalid SQL: SELECT title, html, url, type, status, width, height FROM banners WHERE status = '1' AND adid != ORDER BY RAND() LIMIT 1 mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY RAND() LIMIT 1' at line 1 mysql error number: 1064 |
Ok, sorry for the inconvenience, please do this,
Select the whole thing you've added, REPLACE by this PHP Code:
|
Awesome work, thank you very much! :)
|
the banners look fine in IE, but not in Firefox. here's a link http://www.texas4x4.org/index.php
|
just a quicktip: to save 1 query on every page
Open global.php FIND 'phpinclude_end', Below ADD 'banner', :) |
@PAWS - you're welcome ;)
@Rastus - I looked your forum source code and I figured out that you want the banners to be centered. So you changed the default banner template a bit but you somehow missed and it just 'goes out of bound' :) If you want the banner to be center aligned, do this, REPLACE your banner template with this [html] <!-- Banner Rotation by AnhTuanCool --> <div class="smallfont" align="center"> <if condition="$getbanner[type] == 1"> <a href="$getbanner[url]" target="_blank"><img src="$getbanner[html]" width="$getbanner[width]" height="$getbanner[height]" alt="$getbanner[title]" border="0" align="center" /></a> <else /> <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="$getbanner[width]" HEIGHT="$getbanner[height]" CODEBASE="http://active.macromedia.com/flash6/cabs/"> <PARAM NAME="MOVIE" VALUE="$getbanner[html]"> <PARAM NAME="PLAY" VALUE="true"> <PARAM NAME="LOOP" VALUE="true"> <PARAM NAME="QUALITY" VALUE="high"> <embed src="$getbanner HTML Code:
" width="$getbanner[width]" height="60" play="true" loop="true" quality="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed> @zurih - thanks much for the tip, I'll consider adding it for the next version. Thanks, :) |
Hey AnhTuanCool,
I'm a real rookie to PHP but I'm really excited about this mod. I'm was clipping along fine until i ran into step 5. I'm confused as to what to do. Do I make a new file with nothing else? If so, does it matter what I name it? Does this go into a specific file ( I don't see any file name). Thanks for the hack and for your help. Here is the instruction I'm confused with: 5. Add New Template Title: banner Template: ================================== <!-- Banner Rotation by AnhTuanCool --> <div class="smallfont" style="float:left"> <if condition="$getbanner[type] == 1"> <a href="$getbanner[url]" target="_blank"><img src="$getbanner[html]" width="$getbanner[width]" height="$getbanner[height]" alt="$getbanner[title]" border="0"/></a> <else /> <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="$getbanner[width]" HEIGHT="$getbanner[height]" CODEBASE="http://active.macromedia.com/flash6/cabs/"> <PARAM NAME="MOVIE" VALUE="$getbanner[html]"> <PARAM NAME="PLAY" VALUE="true"> <PARAM NAME="LOOP" VALUE="true"> <PARAM NAME="QUALITY" VALUE="high"> <embed src="$getbanner[html]" width="$getbanner[width]" height="60" play="true" loop="true" quality="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed> </OBJECT> </if> </div> <!-- Banner Rotation by AnhTuanCool --> ================================== |
I get what you say, here is how you Add New Template
Get in your AdminCP > Style Manager > Click on the drop-down menu next to the style title and cho Add New Template (see attachment for detail) and do as I described in the instruction. :) |
Still not showing up at my site
|
worked great! thanks!
|
I found a bug.
when there is no ads added in admincp, pages keep loading like they didnt loading completly... Can anyone check if they get the same bug? |
How hard would it be add a stats module as part of this?
|
regarding this step:
Quote:
Quote:
So, question is, how do i get this modification to work? Where can this go ($banner) ? Ideally i want it to be in the header. Ive tried pasting it in with no success. Where should it go? The banners i have added are showing up in the admin cP |
Your navbar template might be varied from mine so try to just put the $banner at the end of your navbar template see what happen and you'll figure out.
|
Quote:
ya..seems to be resolved.. i messed around with it and almost have it perfect.. works great, and in all honesty the instructions are very well done .. thank you!!! |
Quote:
http://www.sevencityracing.com/forum/index.php? How do I center it with my logo like this site? http://www.probe-enthusiast.com/forums/ |
I'm also having problems centering the banner, see attached below
Could you help me out also please and thank you :) |
Quote:
Is what http://www.probe-enthusiast.com/forums/ did a addon also? |
@Stangsta - Read The Post #48
@oldfan - Nop, I've never written an add-on for this mod though if you're talking about the submit form. |
Quote:
|
Quote:
All I need now a some stats :) [high]* oldfan clicks install[/high] |
Quote:
I tried this and the second banner in the footer, didn't show up |
anyone?
|
In the code that you inserted in global.php or simple open up global.php and look for THIS:
PHP Code:
PHP Code:
You can use your $banner2 as a second banner in your footer now. :) |
Quote:
this is the code I added Quote:
|
Quote:
Also installed the update tutorial how to do it. The AdminCP runs fne, but the banners won't show on the bbs. Any ideas are appreciate. I'm still running 3.0.1. Thanks |
The system works here fine but....
I have put the $banner in the header, but it does not align to the most right side of my screen. Between the banner and the right side of my screen are some cm blank space. Does anyone knows how I can align de banner so it fits on the most right side of my screen? |
Quote:
I have my pop up and ad blocker off too! |
hi ,
i am using now VBB3.0.6 and VBadvanced CMPS 1.0.1 .. how can i put this Ads on my main page portal too? under Navbar or maybe as a module ( if can be, its great) thanks! by the way, how can i put 3 or 4 ads im the same line ? not only one. thx :) how to fix the banner in center and midle , instead of it near the navbar like this ? http://www.vietphim.com/forum/index.php? |
|
Anybody else having problems with 3.0.1 or is it just me?
|
I'm confused,
where it says Code:
2. Master switch Code:
An error occurred while attempting to execute your query. The following information was returned. |
Quote:
Did you insert it into the sub category and run the query on each line seperately? |
errr, nope :S
i just ran the querys from the admincp on my board |
Quote:
BTW, I think mine may be a problem because I only have 3.0.1 installed. I wish they would confirm it before I upgrade and loose my mods. |
Quote:
|
Quote:
I just upgraded to 3.0.7, so I hope it works NOW! |
Hi Everyone,
Before installing this mod, I'd highly suggest backing up your board. Install vB 3.0.7 and then happy hacking. It does not seem to work on 3.0.1. THANKS for a GREAT hack! I clicked install!!!! :D |
All times are GMT. The time now is 11:22 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:
|