vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

julia44 06-21-2007 06:40 PM

I'm sorry if this has been posted before, I did try searching. This is working great, but I'm not seeing this in explorer.

(got this working)

New Problem!

I searched here and vbad for the information but I don't think I'm doing it right.

<if condition="THIS_SCRIPT == 'adv_index'">
WHAT GOES HERE ???
</if>

trying to turn off the right and left columns for vbadvanced/home page. Thanks!

All is working now. For anyone else who has this question use this:
Quote:

<if condition="THIS_SCRIPT != 'adv_index'">
$rightcolumn_advertisement
</if>
or

Quote:

<if condition="THIS_SCRIPT != 'adv_index'">
$leftcolumn_advertisement
</if>

dutchbb 06-21-2007 06:57 PM

I'm sorry if this has been asked before, but how can I make the variable for the rightcolumn ad work in a custom template instead of the recommended one (footer).

I made a new template called 'rightcolumn' and I have put the variable in it, but the ad doesn't show up. I'm using v2.1.

Thank you

PS: this is a great hack BTW.

yagane 06-21-2007 09:38 PM

Quote:

Originally Posted by RedTyger (Post 1273279)
Hi,

No, I meant the Header Adcode. Like what you just showed to cjddrum.



Could you mark the modification as installed please, that's the link to the top right of the first post with all the modification details.

Hi RedTyger:

in fact that is the code, :confused: I'm using it for test purpose meanwhile the problem is solved, in that way when the problem solved the adv should appeared complete:
Ad Sharing Adcode replacement --> pub-1234567890123456

I attached the info just in case. :D

Best regards!!!!

RedTyger 06-22-2007 06:36 AM

Quote:

Originally Posted by dutchbb (Post 1273419)
I'm sorry if this has been asked before, but how can I make the variable for the rightcolumn ad work in a custom template instead of the recommended one (footer).

I made a new template called 'rightcolumn' and I have put the variable in it, but the ad doesn't show up. I'm using v2.1.

Thank you

PS: this is a great hack BTW.

You must turn on right column advertisements via the yes/no option AND there must be some content in the right column Adcode box before it will display. It should work anywhere.

You will need to alter global_start.php, as it inserts part of the code automatically. Find two instances of this code:

Code:

                                                $adintegrate_rc = '<table width=\"' . $stylevar[outertablewidth] . '\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td valign=\"top\">';
                                                $str_rc = '$spacer_open';
                                                $vbulletin->templatecache['header'] = str_replace($str_rc,$adintegrate_rc.$str_rc,$vbulletin->templatecache['header']);

And remove them both, then save and reupload the file.



Quote:

Originally Posted by smith2007 (Post 1273368)
Thanks RedTyger - that worked perfectly!

I have noticed an issue re table resizing with my forum (still in test mode). When left, right or both columns are enabled with ads, when I click any of my forums from the main table, the main forum table changes to a smaller size, but I am not clicked through to the clicked forum straight away. Instead I have to click the forum a second time (on the smaller main table), then it goes into the forum.

I have a similar issue when I want to come UP a level out of a forum. I get a table resize, then after a 2nd click I can then go up a level.

My main table is set at 100%

If I switch off VBadmanagement, I do not have this issue.

Has anyone experienced a similar issue and can advise how to resolve?

VBAdmangement is a superb by the way RedTyger! I feel sure the above issue may relate to another setting I need make?

The HTML for the columns was taken directly from the suggestion by vBulletin themselves and I couldn't improve upon it. It is possible that it's a problem with the code, I know that the main table does have some sizing troubles occasionally. If anyone has an example of left and right columns that work perfectly without any resizing issues, let me know and I'll update it.

erinys 06-22-2007 07:12 AM

what do the forumbit and threadbit advertisements do? i have enabled them and put adverts in them but i cant tell where they show up to be honest

the other locations all work fine.

RedTyger 06-22-2007 07:35 AM

Quote:

Postbit - The postbit template is used to display posts, announcements and private messages.
Threadbit - The threadbit is the template for a single row when viewing a list of threads.
Forumbit - The forumbit is the template for a single row when viewing a list of forums/subforums.
Header - The template containing the logo at the top of your forum pages ONLY. The area immediately below that is the navbar template.
Footer - The template that contains everything at the bottom of your forum pages from the time downward.
...

nsusa 06-22-2007 01:06 PM

Not sure if this was asked before. Let's say I want to display ads under the navbar, but with certain restrictions. This is all for the same ad location.

1) No ads for specific usergroups (admins, moderators)
2) 728x90 ad block for group (registered users)
3) 300x250 ad block for guests

Does this mod give me this option?

dutchbb 06-22-2007 02:43 PM

Quote:

Originally Posted by RedTyger (Post 1273775)
You must turn on right column advertisements via the yes/no option AND there must be some content in the right column Adcode box before it will display. It should work anywhere.

You will need to alter global_start.php, as it inserts part of the code automatically. Find two instances of this code:

Code:

                                                $adintegrate_rc = '<table width=\"' . $stylevar[outertablewidth] . '\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td valign=\"top\">';
                                                $str_rc = '$spacer_open';
                                                $vbulletin->templatecache['header'] = str_replace($str_rc,$adintegrate_rc.$str_rc,$vbulletin->templatecache['header']);

And remove them both, then save and reupload the file.

I have done all of this and the banner still doesn't show from my custom template.

The variable $rightcolumn_advertisement is in a template called 'rightcolumn' FYI

squishi 06-24-2007 08:41 AM

Besides displaying "Ad Management by RedTyger" at the bottom, this product does absolutely nothing on my board.
I wonder how that can be? I made all template changes, activated the product, turned it on, set up advertisement... yet, NOTHING!

Mrdby 06-24-2007 11:37 AM

i haven't updated yet..so what are the main problems using 3.6.7?


All times are GMT. The time now is 10:30 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
  • Page Generation 0.03428 seconds
  • Memory Usage 1,758KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete