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)

echamberlain 01-12-2007 01:11 AM

Quote:

Originally Posted by RedTyger (Post 1155582)
Just taken a look at search_results_postbit and I agree. I'll add it to the next version. I didn't include any search templates because of Google's TOS, but of course that doesn't apply to everyone so...

Styling is unlikely to ever be done via the AdminCP. it's very unwieldy, especially since there's no way to hook CSS into the forum's existing stylesheet. And more to the point there's so many ways people might want to format, I could never cover them all. The options would be huge! It's likely to be template edits all the way.

Navbar you can already do if you need. Just change the template edit to $GLOBALS[$header_advertisement] (I think it is, it's discussed earlier in the thread for vBCMPS) and add it to the navbar template instead of the header template. But the thought does occur that I could add perhaps two "miscellanous" adcode sections which can be placed anywhere at all in case someone wants a header template and a navbar template, for instance.

Yeah, when I was making the template changes it occured to me that it problably doesn't make sense to put the formatting in the AdminCP.

Some Miscellaneous sections would be nice. I was redoing my Navbar anyway, I just hard coded the phpAdsNew code in the Navbar. We have ads in both the header and the Navbar (http://forum.voxilla.com/).

I'm not using the left and right columns, so I guess I could retask one of those for the Navbar. The reason we started using your mod was to move the ads into the thread and post bit area. We had a wide skyscraper, but we didn't like the wasted space below the ad right column.

I still need to do some tweaking, like sending the ad post position information back to phpAdsNew, so we can track which ad positions work best.

The mod was easy to install and works great.

wildo69 01-12-2007 03:46 AM

sorry if this is a repeat question, but with 17 pages its hard to sort through

here is what i want to do
display header and footer ads to all users
display thread/forum/post ads to all users except premium members

i see i can set users that see ads by user and group, but i only see this at a global option, not per ad type/location, am i missing it? or is it not there

thanks, great mod BTW.. :)

RedTyger 01-12-2007 08:35 AM

It is there, it's why all the ads are templated. Surround the ads with a template conditional.

<if condition="!is_member_of($bbuserinfo, 1,2,3)">
$threadbit_adcode
</if>

Change 123 to the Usergroup IDs of your premium member usergroups.

RedTyger 01-12-2007 08:48 AM

Quote:

Originally Posted by ESADCG (Post 1156199)
I am having an issue.
If I enter a user ID in the "Do NOT display advertisements for UserIDs:"
It turns off ads on the entire forum for everyone.

I can confirm that, it'll be fixed for the next version.

SportsZone 01-12-2007 09:54 AM

Has anyone got Google Adsense Ads to work yet? If so, how?

Thanks :)

SportsZone 01-12-2007 02:12 PM

A possible bug I found. If you copy and paste the Google Adsense code into the static header/footer box and save it, the ad WILL show up. However, if you put the same code into the rotation banner box with another banners code, the Google Adsense ads don't show correctly. The other banner shows fine.

wildo69 01-12-2007 03:37 PM

Quote:

Originally Posted by SportsZone (Post 1156906)
Has anyone got Google Adsense Ads to work yet? If so, how?

Thanks :)

i am using them fine in the static code field

FWIW i am also using PHPAdsNew injection code in the static field as well and its working great too

wildo69 01-12-2007 03:39 PM

Quote:

Originally Posted by RedTyger (Post 1156863)
It is there, it's why all the ads are templated. Surround the ads with a template conditional.

<if condition="!is_member_of($bbuserinfo, 1,2,3)">
$threadbit_adcode
</if>

Change 123 to the Usergroup IDs of your premium member usergroups.

great,
so if i make that change in the "postbit_advertisement" using what you posted above, that will accomplish the goal.

i had a feeling it was something like that, thanks for the great support, one of the fastest i have received here, and polite.. thanks

Deska 01-12-2007 03:45 PM

Thank you for this hack.
My client love it :D

project-Buckfas 01-12-2007 05:05 PM

I wonder how I done without this now.... Excellent mod

RedTyger 01-12-2007 05:08 PM

Quote:

Originally Posted by Deska (Post 1157176)
Thank you for this hack.
My client love it :D

Charge them for branding-free and then pass on the money to me. :D

Quote:

Originally Posted by SportsZone (Post 1157060)
A possible bug I found. If you copy and paste the Google Adsense code into the static header/footer box and save it, the ad WILL show up. However, if you put the same code into the rotation banner box with another banners code, the Google Adsense ads don't show correctly. The other banner shows fine.

When you say "Doesn't show correctly" that means...? Screenshot? Can anyone else confirm this?

Quote:

Originally Posted by wildo69 (Post 1157169)
great,
so if i make that change in the "postbit_advertisement" using what you posted above, that will accomplish the goal.

i had a feeling it was something like that, thanks for the great support, one of the fastest i have received here, and polite.. thanks

You're welcome. :) I really should add that to the instructions somewhere really, I thought it was self-explanatory but that's a bit unfair.

SportsZone 01-12-2007 05:54 PM

Quote:

Originally Posted by RedTyger (Post 1157274)
When you say "Doesn't show correctly" that means...? Screenshot? Can anyone else confirm this?

The Google Ad shows like this:

http://img72.imageshack.us/img72/691...tledni5.th.png

The text shows fine btw. It's just the crappy screenshot which messes up the text!

RedTyger 01-12-2007 06:01 PM

What's the code you're trying to use? PM it if you prefer.

SportsZone 01-12-2007 06:10 PM

PM sent, thanks :)

RedTyger 01-12-2007 06:23 PM

Aha, it's what I thought. Your Adsense contains a , which is used to separate the banners in the rotation, so it's split the Adsense code down the middle. I didn't think any code would use a , but I guess I was wrong. I'll just change it to a more unusual character to separate the banners in the next release.

SportsZone 01-12-2007 06:36 PM

Quote:

Originally Posted by RedTyger (Post 1157334)
Aha, it's what I thought. Your Adsense contains a , which is used to separate the banners in the rotation, so it's split the Adsense code down the middle. I didn't think any code would use a , but I guess I was wrong. I'll just change it to a more unusual character to separate the banners in the next release.

Ahh! I removed that comma, and everything worked :D

Thanks for your help :)

RedTyger 01-12-2007 06:37 PM

Oh right, didn't realise it was optional. Ok I won't change it then. :D

wildo69 01-12-2007 06:42 PM

Quote:

Originally Posted by RedTyger (Post 1157274)
You're welcome. :) I really should add that to the instructions somewhere really, I thought it was self-explanatory but that's a bit unfair.

yes, in hindsight, your right.
i think i just didnt put the pieces together, and even if i had, i would not have known the code to use, which you pasted in the forum post for me.

if you ever decide to go all out and to a full "pro" version with loads of customizable features (using the admincp) let me know i think it would make a GREAT package and i would get it.. :)

admin0 01-12-2007 07:12 PM

Quote:

Originally Posted by RedTyger (Post 1156072)
It was never intended to rotate without a refresh. It just picks a random advert on page load.

Is it possible to rotate without a refresh ?

:D

manuelsechi 01-13-2007 08:45 AM

i installed (vB 3.6.4) and it work fine but...
it display ads ONLY to registered users... any suggestion?

brgds
Manuel

RedTyger 01-13-2007 09:01 AM

Quote:

Originally Posted by admin0 (Post 1157387)
Is it possible to rotate without a refresh ?

:D

Possible, yes. I'm not going to do it though, since I don't want to reply on javascript.

Quote:

Originally Posted by manuelsechi (Post 1157858)
i installed (vB 3.6.4) and it work fine but...
it display ads ONLY to registered users... any suggestion?


brgds
Manuel

Go through your Usergroup settings again.

manuelsechi 01-13-2007 10:11 AM

Quote:

Originally Posted by RedTyger (Post 1157862)
Possible, yes. I'm not going to do it though, since I don't want to reply on javascript.



Go through your Usergroup settings again.

mmm

where exactly please?:confused:

RedTyger 01-13-2007 10:13 AM

Global settings. Make sure that 2 is in the option where you choose which Usergroups the advertisements should display to.

manuelsechi 01-13-2007 10:26 AM

perfect!
thanx a lot

RedTyger 01-13-2007 10:27 AM

Quote:

Originally Posted by manuelsechi (Post 1157906)
perfect!
thanx a lot

Not quite, I just realised I read your question wrong. Sorry. You must already have 2 there, you need to add the Usergroup ID number for every other Usergroup you want to see adverts. :)

John W Smith 01-14-2007 12:23 AM

Quote:

Do NOT display advertisements for scripts:
This allows you to exclude pages based on the type of content they are displaying. Enter the names of the scripts which you don't want to display advertisements, separated by commas. (i.e. register,private,index)
What would I have to enter in the CP to ensure I comply with Adsense TOS?

RedTyger 01-14-2007 08:41 AM

Quote:

Originally Posted by John W Smith (Post 1158473)
What would I have to enter in the CP to ensure I comply with Adsense TOS?

That I couldn't tell you, I don't actually use advertisements myself so I'm not au fait with Adsense's TOS. But I believe roughly speaking they require original "content" on a page displayed with advertisements. So search results, registration pages, redirection pages and so on where there is none would be a no-go.

Don't take my word for it though, be sure to look it up yourself.

RedTyger 01-15-2007 02:39 PM

Whose TOS? That's what the THIS_SCRIPT setting is for, so you can avoid violating advertisement provider's TOS by excluding certain page types. If there are other things you need to do to avoid violating a TOS that's up to you.

Ronak 01-15-2007 04:00 PM

How to rotate the banners ?? i am not able to rotate banners :(

RedTyger 01-15-2007 04:01 PM

Quote:

Originally Posted by Ronak (Post 1159926)
How to rotate the banners ?? i am not able to rotate banners :(

What items are you trying to rotate?

John W Smith 01-15-2007 04:55 PM

Quote:

Originally Posted by RedTyger (Post 1158709)
That I couldn't tell you, I don't actually use advertisements myself so I'm not au fait with Adsense's TOS. But I believe roughly speaking they require original "content" on a page displayed with advertisements. So search results, registration pages, redirection pages and so on where there is none would be a no-go.

Don't take my word for it though, be sure to look it up yourself.

Specifically, if I wish to prevent an ad on a login page, which script would I enter in the exclude. How can I tell which script produces which page. Is there a list somewhere?

project-Buckfas 01-15-2007 05:27 PM

Hope this helps....

Quote:

Originally Posted by John W Smith (Post 1159964)
Specifically, if I wish to prevent an ad on a login page, which script would I enter in the exclude. How can I tell which script produces which page. Is there a list somewhere?

Code:

<if condition="!(
(THIS_SCRIPT == 'login') OR
(THIS_SCRIPT == 'register') OR
(THIS_SCRIPT == 'usercp') OR
(THIS_SCRIPT == 'private') OR
(THIS_SCRIPT == 'subscription') OR
(THIS_SCRIPT == 'payments') OR
(THIS_SCRIPT == 'invites') OR
(THIS_SCRIPT == 'memberlist') OR
(THIS_SCRIPT == 'online') OR
(THIS_SCRIPT == 'member') OR
(THIS_SCRIPT == 'spiders') OR
(THIS_SCRIPT == 'psistats') OR
(THIS_SCRIPT == 'profile') OR
(THIS_SCRIPT == 'faq') OR
(THIS_SCRIPT == 'sendmessage') OR
(THIS_SCRIPT == 'arcade') OR
(THIS_SCRIPT == 'showgroups') OR
(THIS_SCRIPT == 'calendar') OR
(THIS_SCRIPT == 'calendar') AND $_REQUEST['do'] == 'add') OR
(THIS_SCRIPT == 'misc') AND $_REQUEST['moderator_stats'] == '') OR
(THIS_SCRIPT == 'search') AND $_REQUEST['searchid'] == '') OR
(THIS_SCRIPT == 'THIS_SCRIPT')


Reece^B 01-15-2007 06:15 PM

Sweet hack mate, just a few questions.

The left column, how can I make it so it only displays on the forumhome.

RedTyger 01-15-2007 06:29 PM

Quote:

Originally Posted by Reece^B (Post 1160045)
Sweet hack mate, just a few questions.

The left column, how can I make it so it only displays on the forumhome.

Edit the leftcolumn_advertisement template. Surround the contents with:

Code:

<if condition="THIS_SCRIPT == 'forumhome'">
Contents of template
</if>


Reece^B 01-15-2007 07:04 PM

Cheers bud, I tried this but no joy, where exactly should I place it?

PHP Code:

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
    <
tr>
        <
td valign="top" align="left" style="padding-right:12px;">
            <
br />
            <
table align="left" border="1px" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder">
                <
tr>
                    <
td class="thead">
                        
$adtitle
                    
</td>
                </
tr>
                <
tr>
                    <
td class="alt1">
                        
$leftcolumn_adcode
                    
</td>
                </
tr>
            </
table>
        </
td>
        <
td valign="top">
            <
table width="100%" cellpadding="0" cellspacing="0" border="0">
            <
tr>
                <
td valign="top"


RedTyger 01-15-2007 07:09 PM

Oh, I forgot. The column templates actually spread across two templates, not one. And also I gave you the wrong conditional. Faux pas, sorry 'bout that.

Because the columns use multiple templates, this means that you can't do the usual technique of just excluding it from a page because it would exclude everything between that template and the footer as well. Which is a lot.

So for a bit of a rough workaround, we can remove the adcode and just hide the table instead.

Replace the contents of the leftcolumn_advertisement template with:

PHP Code:

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" <if condition="THIS_SCRIPT == 'index'">style="display:none;"</if>>
    <
tr>
        <
td valign="top" align="left" style="padding-right:12px;">
            <
br />
            <
table align="left" border="1px" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder">
                <
tr>
                    <
td class="thead">
                        
$adtitle
                    
</td>
                </
tr>
                <
tr>
                    <
td class="alt1">
                        <if 
condition="THIS_SCRIPT == 'index'">$leftcolumn_adcode</if>
                    </
td>
                </
tr>
            </
table>
        </
td>
        <
td valign="top">
            <
table width="100%" cellpadding="0" cellspacing="0" border="0">
            <
tr>
                <
td valign="top"

That should just hide the column and remove the adverts on the index page and shouldn't break XHTML validation either.

Reece^B 01-15-2007 08:26 PM

umm I added the code, but consequently it removed all my forums just leaving the header and footer, lol.

RedTyger 01-15-2007 08:29 PM

Quote:

Originally Posted by Reece^B (Post 1160135)
umm I added the code, but consequently it removed all my forums just leaving the header and footer, lol.

:D

Sorry, not my best time of night for clear thinking. Ok, try this:

PHP Code:

<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
    <
tr>
        <
td valign="top" align="left" <if condition="THIS_SCRIPT == 'index'">style="padding-right:12px;"</if>>

<if 
condition="THIS_SCRIPT == 'index'">
            <
br />
            <
table align="left" border="1px" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder">
                <
tr>
                    <
td class="thead">
                        
$adtitle
                    
</td>
                </
tr>
                <
tr>
                    <
td class="alt1">
                        
$leftcolumn_adcode
                    
</td>
                </
tr>
            </
table>
        </
td>
        <
td valign="top">
</if>
            <
table width="100%" cellpadding="0" cellspacing="0" border="0">
            <
tr>
                <
td valign="top"


Reece^B 01-15-2007 09:08 PM

Brilliant, cheers for that mate. Just one more thing, when you view a thread it's all centred, how can I make it so its the same as the default, see below.

Centred (not right) https://vborg.vbsupport.ru/external/2007/01/11.jpg

New default style, correctly aligned. https://vborg.vbsupport.ru/external/2007/01/12.jpg

Lordy 01-15-2007 09:33 PM

is there a way that you can have it display certain ads for certain usergroups?


All times are GMT. The time now is 02:30 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.03287 seconds
  • Memory Usage 1,890KB
  • 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
  • (3)bbcode_php_printable
  • (22)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