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)

ILiuz 06-20-2007 06:42 PM

Is it possible to integrate this mod with vBadvanced?

blindman (haha): Scroll to the first post of this page for instructions.

RedTyger 06-21-2007 09:43 AM

Quote:

Originally Posted by yagane (Post 1272647)
Thanks for reply. :D

Sure I put the example on the Header of the site:

the example
Site link: foroanime.com

#shared# = field6

Code:
Ad Sharing Adcode replacement -->#shared#

Banner:
Ad Sharing Adcode replacement --> pub-xxxxxxxxxxxxxxxx

Thanks in advance!!

I refreshed about 10 times and I saw adsense and a few image banner adverts. It seems to be working fine from a Guest's point of view. Don't forget that the system does not permit you to see your own shared advertisements.

yagane 06-21-2007 10:08 AM

Quote:

Originally Posted by RedTyger (Post 1273106)
I refreshed about 10 times and I saw adsense and a few image banner adverts. It seems to be working fine from a Guest's point of view.

Hi RedTyger:

Thanks for the reply.

Yep, in this case the banner should say:
Ad Sharing Adcode replacement --> pub-xxxxxxxxxxxxxxxx

but in the test times you saw on the header only:
Ad Sharing Adcode replacement -->

The banner code is: Ad Sharing Adcode replacement -->#shared#
but #shared# is giving me a blank result.

Quote:

Don't forget that the system does not permit you to see your own shared advertisements.
Yep, I think on that, so I created another user and try surfing with other IP (just in case), and with other computer (just to be sure). But no luck.

The rest is working great, even the custom adv add on. :D

I turn off other plugs, but the result is the same. I can't figure out were is the problem. :erm:

If you like to check the Panel, just let me know. :p

Thanks in advance!!

RedTyger 06-21-2007 10:11 AM

Could you post here (or PM me if you want to keep it private) what you have put for the Header Adcode please?

yagane 06-21-2007 10:17 AM

Hi:

PHP Code:

Ad Sharing Adcode replacement --> #shared# 


#shared# = field6

field6 = Member Google AdSense Code = pub-1234567890123456

Best Regards :D

cjddrum1 06-21-2007 10:50 AM

Okay so I just want a header banner (the banner is a .jpg) and I have about 4 which I want to rotate. I have the .jpg's on my server in the directory 7thgenhonda/forum/images/banners/

what should I put in the Header random advertisement code? I tried "[img]" tags and that didnt seem to work.

Im not sure what to do?

yagane 06-21-2007 11:39 AM

Quote:

Originally Posted by cjddrum1 (Post 1273139)
Okay so I just want a header banner (the banner is a .jpg) and I have about 4 which I want to rotate. I have the .jpg's on my server in the directory 7thgenhonda/forum/images/banners/

what should I put in the Header random advertisement code? I tried "[img]" tags and that didnt seem to work.

Hi:

Try this:
Code:

<a href="http://www.domain01.com/"><img src="http://www.yourdomain.com/forum/images/banners/banner01.jpg" alt="" name="banner01" width="480" height="60" border="0"></a>
|
<a href="http://www.domain02.com/"><img src="http://www.yourdomain.com/forum/images/banners/banner02.jpg" alt="" name="banner02" width="480" height="60" border="0"></a>
|
<a href="http://www.domain03.com/"><img src="http://www.yourdomain.com/forum/images/banners/banner03.jpg" alt="" name="banner03" width="480" height="60" border="0"></a>
|
<a href="http://www.domain04.com/"><img src="http://www.yourdomain.com/forum/images/banners/banner04.jpg" alt="" name="banner04" width="480" height="60" border="0"></a>

Make the changes for your domains and banners. Remember the | is the key to seppared the banners.

Have fun!! :D

cjddrum1 06-21-2007 12:07 PM

^thanks alot!!

RedTyger 06-21-2007 02:39 PM

Quote:

Originally Posted by yagane (Post 1273122)
Hi:

PHP Code:

Ad Sharing Adcode replacement --> #shared# 


#shared# = field6

field6 = Member Google AdSense Code = pub-1234567890123456

Best Regards :D

Hi,

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

Quote:

Originally Posted by cjddrum1 (Post 1273176)
^thanks alot!!

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.

smith2007 06-21-2007 05:47 PM

[QUOTE=RedTyger;1272273]Not much point reading all the thread, a lot of it is about old verisons anyway.

Code:

<a href="www.url1.com"><img src="bannerfolder/banner1.jpg"></a> |
<a href="www.url2.com"><img src="bannerfolder/banner2.jpg"></a> |
<a href="www.url3.com"><img src="bannerfolder/banner3.jpg"></a>



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?

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?

nsusa 06-24-2007 12:12 PM

Quote:

Originally Posted by squishi (Post 1275219)
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!

Same here. Removed it again.

Mrdby 06-24-2007 01:10 PM

Quote:

Originally Posted by squishi (Post 1275219)
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!

lmaooo

dutchbb 06-24-2007 01:11 PM

Quote:

Originally Posted by dutchbb (Post 1273962)
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

Hey Red, any news about this? I tried a couple of things but I can't get it to work.

yagane 06-24-2007 10:02 PM

Hi RedTyger:

The problem is solved, I didn't noticed the problem was on the Known Bugs for 3.x.x

Everything is working well, I realize your script could be used for more things than the adv management so I add 2 custom fields, I'll send you the file via PM so you can take a look and if you like maybe can added to the next update, will be a lot of help for some users.

Thanks for the help. your script is great!! :up:

julia44 06-25-2007 04:11 AM

anyone use flashchat? I'm trying to figure out the script name so I can add it to the exlude list but the ads keep showing. Getting frustrated, thanks for your time.

nevermind if you just put in misc it doesn't put it on the chat page

RedTyger 06-25-2007 08:15 AM

Quote:

Originally Posted by nsusa (Post 1273910)
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?

Yes, it'll do that. You can't use usergroup conditionals for individual but you can restrict templates in that manner. So you could use the header_advertisement template for usergroup X by surrounding the template with the conditional
Code:

<if condition="$bbuserinfo[usergroup] == 'x'">
TEMPLATE CONTENTS
</if>

and then do the same for the footer template but place it in the same location instead of in the footer. It will work anywhere.

Quote:

Originally Posted by dutchbb (Post 1275377)
Hey Red, any news about this? I tried a couple of things but I can't get it to work.

It should work, but if it doesn't...well, if you're altering the modification then you're more or less on your own I'm afraid. Both the header and footer adcodes work globally so if you're not using either one you could try moving them instead.

kyokushin4life 06-25-2007 08:34 AM

Redtyger, I like your mod and thanks for the good support.

I would like to know why this is not working for me. I'm usually good at installing these. I have added the codes in my template and enabled it, and turning it on/off works but where it display is not working. What I mean is that I do not want to display them on certain pages like register / private so I have done how you explained in the mod. register#private, but the ad still shows up in these pages..

cheers.

dutchbb 06-25-2007 03:05 PM

Quote:

Originally Posted by RedTyger (Post 1275972)
It should work, but if it doesn't...well, if you're altering the modification then you're more or less on your own I'm afraid. Both the header and footer adcodes work globally so if you're not using either one you could try moving them instead.

Solved it I think.

Needed to put this in the rightcolumn plugin:

include('../forum/includes/vb_ad_management/global_start.php');

I'm not sure if this is the correct way to do it, but it works. Let me know what you think please.

Thanks.

smith2007 06-25-2007 03:51 PM

Quote:

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.

Hi does anyone else experience their main table resizing when you click on a forum (this is with ads in left, right column or both). I have to click each forum twice every time, either going into it or coming up a level.:confused:

RedTyger 06-25-2007 07:11 PM

Quote:

Originally Posted by dutchbb (Post 1276185)
Solved it I think.

Needed to put this in the rightcolumn plugin:

include('../forum/includes/vb_ad_management/global_start.php');

I'm not sure if this is the correct way to do it, but it works. Let me know what you think please.

Thanks.

If it works for you then don't worry about it any further. :)

Tony_FPM 06-25-2007 09:23 PM

Hey all ,

I had this mod working on my default forum style but today i installed the redbar style and i cant get the header advertising working. Well i get it working but i want it on the right upper conner in the red section. The header template is totally different and i dont know where i have to put the $header_advertisement variabel to het it how i want.

See here how my header template is...Please help me!!!!!

Quote:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><a href="index.php"><img src="redbar/elements/logo.jpg" border="0"></a></td>
</tr>
<tr>
<td background="redbar/elements/catsub.jpg" height="24" class="menu">
<a href="http://www.freakpyromaniacs.com">Main</a> &nbsp;&nbsp;
<a href="http://www.freakpyromaniacs.com/album/">Photos</a> &nbsp;&nbsp;
<a href="http://www.freakpyromaniacs.com/forum/forumdisplay.php?f=133">Movies</a>
&nbsp; &nbsp;
</td>
</tr>
<tr>
<td width="100%">
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output

Tourmeister 06-26-2007 02:14 AM

Just curious if anyone has thoughts about server load issues using this Mod? I have mine setup so that there are two header images and two footer images, ALL randomizing independent of each other. (just copied the code and changed the variable names). So I am wondering if that might have a significant effect on the server load?

RedTyger 06-26-2007 08:07 AM

Quote:

Originally Posted by Tony_FPM (Post 1276439)
Hey all ,

I had this mod working on my default forum style but today i installed the redbar style and i cant get the header advertising working. Well i get it working but i want it on the right upper conner in the red section. The header template is totally different and i dont know where i have to put the $header_advertisement variabel to het it how i want.

See here how my header template is...Please help me!!!!!

You can put it wherever you like. If it doesn't look right, just move it again. :)


Quote:

Originally Posted by Tourmeister (Post 1276631)
Just curious if anyone has thoughts about server load issues using this Mod? I have mine setup so that there are two header images and two footer images, ALL randomizing independent of each other. (just copied the code and changed the variable names). So I am wondering if that might have a significant effect on the server load?

There are some quite sizable forums using the modification and it's gradually been made more efficient over the versions. There's not really much I can do to improve it by this point. I think it's quite effectively done. Certainly it should not have a significant effect and I'd be surprised if it had even a small effect to be honest.

cormee 06-26-2007 03:26 PM

Hi

I have this installed on my site and it appears to be working when I use simple html or plain text, but then I try used php AdsNew javascript it doesn't display the ads.

For an example of what I mean see http://www.newtotown.ie/forum/feedba...-site-401.html

here is the code I used:

<img src="http://www.newtotown.ie/gif/chauffeur.jpg

(This is the static image of the chauffeur which is displaying fine in that link)

<script language='JavaScript' type='text/javascript' src='http://www.xxxxxx.xxx/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.xxxxxxxx.xx/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:1&amp;blockcampaign=1");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script>
<noscript>
<a href='http://www.xxx.xxx/adclick.php?n=ac7e96a4'><img src='http://www.xx.xxx/adview.php?what=zone:1&amp;n=ac7e96a4' alt='' border='0' class="imgborder"></a>
<br />
</noscript>

(This is the code that isnt working)

Does anyone know what might be causing this?

Thanks

ru55ian 06-26-2007 05:28 PM

i am missing something here, i have installed it, and it should be working, because "sponsored" table shows up in the postbit legacy as a second post as well as the last post, but no actual advertisement shows up inside that table, i am using Google adsense, and if i click refresh several times, then add will actually show up at random, but only on the last post, never shows up on the second post... is there a bug i am not aware of?

help needed.

RedTyger 06-26-2007 07:13 PM

That would be a problem at Google's end.

Tony_FPM 06-26-2007 08:53 PM

Quote:

Originally Posted by RedTyger (Post 1276773)
You can put it wherever you like. If it doesn't look right, just move it again. :)

Well i did that but we dont seem to get it where we want.
Somebody help me please!!!!!

ru55ian 06-27-2007 01:18 AM

thanks

cormee 06-27-2007 07:14 AM

Hi Redtyger

Do you know of anything that may be killing the php Adsnew javascript in my installation?

RedTyger 06-27-2007 08:14 AM

Quote:

Originally Posted by Tony_FPM (Post 1277241)
Well i did that but we dont seem to get it where we want.
Somebody help me please!!!!!

Well, keep moving it! It's difficult to help with a customised forum. Not least because you haven't actually said where you want it.

Quote:

Originally Posted by cormee (Post 1277466)
Hi Redtyger

Do you know of anything that may be killing the php Adsnew javascript in my installation?

I recall that someone else had the problem but I can't remember how they solved it. Try searching the thread and/or hoping that someone else will post back with the answer.


All times are GMT. The time now is 06:42 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
  • Page Generation 0.02824 seconds
  • Memory Usage 1,883KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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