![]() |
How to add your own custom adcode blocks in 3 minutes
Download the zip file and open the named php files using a plain text editor (something like MSWord which uses formatting will break the code). Follow the simple instructions below then save, upload and overwrite your existing files. Your new custom adcode block will be at the bottom of the header/footer section of your vB Ad Management settings. You can add as many custom blocks as you like as long as you give each one a different name. They'll work on any page, obey all permissions and work with all features including Ad-Sharing. To name a custom adcode block, just find/replace every instance of the word "custom" in the code below with the new name of your choice. IN FILE vb_ad_management_310.xml, FIND: PHP Code:
ADD BELOW: PHP Code:
IN FILE includes/vb_ad_management/cache_templates.php, FIND: PHP Code:
PHP Code:
IN FILE includes/vb_ad_management/global_start.php,FIND: PHP Code:
PHP Code:
IN FILE includes/vb_ad_management/global_start.php,FIND: PHP Code:
ADD BELOW: PHP Code:
|
how do we update? any instructions on that?
|
It was in the update, titled "Instructions"
Quote:
|
opps :o now I see it. Thank you again.
|
im getting uncached templates postbit_advertisement which is the only one I use for now so I cant tell if the others are showing not cached.
|
Did you upload all the vb_ad_management files?
|
yes I did im using vBMicroStats and right at the bottom it shows that template as uncached.
|
If it's installed correctly there should be no problem, I'm using vBulletin's built-in function that displays uncached templates and there are none. I suppose it's possible that modification runs before the templates for this modification are cached? I don't know.
Add this line to your includes/config.php file along with the rest of the settings then save the file and overwrite the existing config.php file on your setting. Code:
$config['Misc']['debug'] = true; |
strange it dont say it there but it does on his... Do you have the older version of this until he or you can fix it?
|
Well as far as I can see, the problem is with his modification not mine. So there's no reason to use an older version.
|
well I would like to use a older one the one before this until a fix is made Im going to make a post on his thread but for now do you have the one before this?
|
You're going to at least double your database queries by going back to an older version, you do understand that? You'll be worse off than even if the template really is uncached.
|
yeah thats fine for now until I get a fix. I only really use the postbit one since the archive one really don't suite me since I cant use different codes for my archive and the main site footer.
|
....
|
RedTyger thank you once again.
|
Hi RedTyger
I wanna ask a question about it. You say IN FILE includes/vb_ad_management/global_start.php,FIND: PHP Code:
ADD BELOW: PHP Code:
But I couldn't find the first section in vb_ad_management/global_start.php PHP Code:
|
sweet.. thanks for the update.
Marco |
I would love a way to target ads to particular forums. I.E. Ad #1 goes to Forum #1 only, and Ad #2 only goes to Forum #2.
Thanks, |
Quote:
And also for the postbit ads, displayed as user. Is there a way to change it back to legacy (vertical) rather then the horizontal way? |
thanks for the update.
I'm still alittle confused regarding upgrading this plugin. I copied the files into includes and import the plugin as upgrade.. is that all? Do I have to remove all my previous ' * Upload the product using the Product Manager. * Go to Style Manager > Edit Templates and... * Find <!-- post $post[postid] popup menu --> and paste $postbit_advertisement above it in your postbit & postbit_legacy templates. * Paste $forumbit_advertisement at the bottom of your forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates. * Paste $threadbit_advertisement at the bottom of your threadbit template. * Paste $footer_advertisement at the top of your footer template. * Find $spacer_close in your footer template and below it paste $rightcolumn_advertisement. * Find in your header template and replace it with $header_advertisement. * Find $spacer_open in your header template and below it paste $leftcolumn_advertisement." that I have done? And also do I need to change the .xml file as you have mentioned now? *lost* One more question is does this version resolve the ad sharing bug in the previous version?? Thanks again Redtyger!!!!!!! |
Quote:
You do have to change the plugin, overwrite your existing plugin with the new one, you don't have to install it first. In fact you shouldn't, because you'll lose your settings. Quote:
Quote:
Quote:
|
Okay,
So basically I copied the files over.. and I upgrade (by selecting overwriting the plugin) and that's about it ya? No other changes I need to made? And also, i tried viewing my forum as guest and did 6 refresh, I still can't see the random sharing happening. My admin adsense code still appearing all 6 times but the thread starter and last poster did not. I specified "50" for admin, "40" for thread starter and "10" for last poster. Am i doing something wrong here? |
Hm, there seems to be something wrong with the % calculations. I'll take a look at this now, don't go anywhere...
|
ok! I'm staying right here, refreshing my screen non-stop!!
Thankssss!!! |
Quote:
Anyway, could you download the new zip file (3.11) and overwrite global_start.php with the version in the new zip. You do not need to alter anything else. Please let me know if it now works. |
I'll give it a go! don't go anywhere! =P
|
Tried..
here's the findings: Login as admin, the random code works perfectly fine but I can see the admin adcode and the threadstarter adcode randomly Login as a normal user, the random thingy don't work, I can see the admin adcode only (or is it the user own one only) <- my admin and my own are the same. Goes in as guest, I can only see the admin code and the random thingy don't work. |
update:
login as normal user, can only see the admin code and the thread starter (which is not the same user) random thingy don't work. |
Would you mind giving me admin access to your forum so I can see for myself? Preferably to also turn the forum off for a few minutes so I can poke around a bit. I can't reproduce your new problem on my forum, it should be working fine now.
|
pmed you. =)
Just to make it clear again: Login as admin, the random code works perfectly fine but I can see the admin adcode and the threadstarter adcode randomly login as normal user, can only see the admin code and the thread starter (which is not the same user) random thingy don't work. Goes in as guest, I can only see the admin code and the random thingy don't work. |
Where can i read upgrade instructions?
We have 3.04 Thanks. |
Quote:
|
Hi RedTyger,
I've installed v3.1.1 on vb3.6.5. Absolutely nothing shows up! I followed all the instructions, modified the templates as specified, made sure everything in the CP was enabled, used plain text instead of scripts, and it's as if nothing is installed... I've installed other Products before so I don't think I'm a complete dunce, but maybe I'm missing something. Can you help?? Thanks! PB |
Quote:
Quote:
Quote:
|
Thanks for the help, I figured it out...
I had to upload the "includes" folder as-is and NOT separate the individual files out. Killer hack!:up: |
Super easy to install! Just needed to realize that I had to ftp the includes folder.
One questions....on my left side banner it has a border around it which has a different colored background so it looks like the ads are framed or matted. Any way to get rid of that extra stuff? Amy Edited to say that I read all 51 pages now just to make sure I couldn't find the answer....nope. I also have a purple border around the template (not my image) that I want to get rid of. Here's my site: http://rubberstampchat.net/ |
[quote]
My intention is to expand the existing functionality to other areas of the forum outside the postbit in the next version - navbar, footer, threadbit, forumbit - plus a couple of minor extra features. [quote] That would be fantastic. Look forward to seeing it Thanks |
Tried posting html in from adpeeps to display and rotate adds with no luck. The ad block just shows up blank. Any ideas?
|
Quote:
[QUOTE=madkeen;1214891][quote] My intention is to expand the existing functionality to other areas of the forum outside the postbit in the next version - navbar, footer, threadbit, forumbit - plus a couple of minor extra features. Quote:
Quote:
|
<a href="https://vborg.vbsupport.ru/attachment.php?attachmentid=62415" target="_blank">https://vborg.vbsupport.ru/attac...chmentid=62415</a>
|
All times are GMT. The time now is 03:27 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:
|