vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Randomly positioned ad in between postbits in showthread (https://vborg.vbsupport.ru/showthread.php?t=98057)

UK Jimbo 06-19-2006 11:33 AM

Quote:

Originally Posted by T.S.
Any 3.6 update coming out? This version works for me on 3.6 but doesn't quite look right. :banana:

Sorry - I won't have a chance to till v3.6 is stable and I've installed it on visordown.com

Hemanth 07-26-2006 11:03 AM

Good one. Installed.

Bulent Tekcan 08-04-2006 09:58 PM

Any news for 3.6.0 ?

dssart 08-05-2006 09:52 PM

Hope this can work with 3.6, really looked great pre-3.6..

nsusa 08-06-2006 01:12 AM

Works for me in 3.6. The only thing I had to change was to remove the $spacer_open and ...close as otherwise it would not go 100% in width in my case.

Christoph

brvheart 08-08-2006 03:06 PM

great hack, I saw earlier in the thread about making the ads show up after the first unread post...has this been done yet?

*clicks install*

almukmin 08-09-2006 08:21 AM

Quote:

Originally Posted by nsusa
Works for me in 3.6. The only thing I had to change was to remove the $spacer_open and ...close as otherwise it would not go 100% in width in my case.

Christoph

Hi, do you know how to make the space above and below the box equal to the normal space between posts? I've been trying with no success.

almukmin 08-09-2006 08:36 AM

I got the fix, change it to

<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">

and remove the spacer open and spacer close

This is for 3.6.0

dssart 08-09-2006 09:18 AM

Hi,

after we remove the spacer code from the top and bottom, where does the div style code go..at the very top? Thanks.


Quote:

Originally Posted by almukmin
I got the fix, change it to

<div style="padding:$stylevar[cellpadding]px 0px 0px 0px">

and remove the spacer open and spacer close

This is for 3.6.0


mano1.com 08-09-2006 02:12 PM

interesting, i'll give this one a shot later today. thanks!

dssart 08-16-2006 01:08 AM

just re-installed under 3.6, using the tips from above..good work. click *install*

Is it possible to have the ads displayed when viewing the forum index, or when viewing the thread topics within a group as opposed to having the ads displayed when one views the messages within a thread as this does now?

Would also like to know if I could have two rows of ads appear instead of one..

webgroup 08-18-2006 02:42 AM

Quote:

Originally Posted by UK Jimbo
Sorry - I won't have a chance to till v3.6 is stable and I've installed it on visordown.com


Any new of the new version?
works in 3.6.0 but the table with the ads is not squeared with the post tables anymore.

Smoothie 08-18-2006 04:32 AM

Quote:

Originally Posted by webgroup
Any new of the new version?
works in 3.6.0 but the table with the ads is not squeared with the post tables anymore.

Works with 3.6, you just need to remove the space_open and spacer_closed.

Use this:
HTML Code:

<div style="padding:6px 0px 0px 0px">

webgroup 08-18-2006 04:41 AM

Quote:

Originally Posted by Smoothie
Works with 3.6, you just need to remove the space_open and spacer_closed.

Use this:
HTML Code:

<div style="padding:6px 0px 0px 0px">

thanks.

should I add that code or replace the spacer_closed and space_open with the code?

Smoothie 08-19-2006 05:50 AM

Quote:

Originally Posted by webgroup
thanks.

should I add that code or replace the spacer_closed and space_open with the code?

Here's what I use:
HTML Code:

<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0">
<div style="padding:6px 0px 0px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
        <td class="alt1" align="center">

<!-- ad code goes here -->

        </td>
</tr>
</table>
</div>
</if>


almukmin 08-20-2006 04:31 PM

Please read my previous post a page ago.

jklimczak 10-05-2006 11:10 AM

can some one help me fix my code I keep geting No post after i add this

if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0">
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
<td class="alt1" align="center">

<!-- BEGIN ADVERTPRO CODE BLOCK -->

<SCRIPT language="JavaScript" type="text/javascript">
document.write('<SCR'+'IPT src="http://216.27.135.253:8080/advertpro/servlet/view/banner/javascript/zone?zid=7&pid=4&random='+Math.floor(89999999*Math .random()+10000000)+'&millis=' +new Date().getTime()+'" language="JavaScript" type="text/javascript"></SCR'+'IPT>');
</SCRIPT>
<NOSCRIPT>
<A href="http://216.27.135.253:8080/advertpro/servlet/click/zone?zid=7&pid=4&lookup=true&position=1" target="_top">
<IMG src="http://216.27.135.253:8080/advertpro/servlet/view/banner/image/zone?zid=7&pid=4&position=1" height="60" width="468" hspace="0" vspace="0" border="0" alt="Click Here!">
</A>
</NOSCRIPT>

<!-- END ADVERTPRO CODE BLOCK -->

</td>
</tr>
</table>
</div>
</if>

curriertech 10-05-2006 01:49 PM

Installed and working on 3.6.2! I made one small change, being that it only shows the random ads for guests. :)

andewy3k 10-15-2006 07:03 AM

works great, thanks

just had to remove the spacer stuff for 3.6 and add the new div tag.

thanks again...

*installed*

Domenico 10-31-2006 08:47 PM

Removing spacer_closed and space_open and changing the div to <div style="padding:$stylevar[cellpadding]px 0px 0px 0px"> or <div style="padding:6px 0px 0px 0px"> doesn't work for me.

See -> http://www.webhostingtalk.nl/webhost...ders-bots.html

Any ideas?

ThorstenA 12-05-2006 09:51 PM

Quote:

Originally Posted by Andreas (Post 792954)
What about:
Show Adsense in (or under, above) first unread Post of a Thread.
I think this is the place that would get the most user attention?

That's a nice idea. I also tried to find a solution for that. For what variable should I search for?

UK Jimbo 01-16-2007 05:36 PM

Quote:

Originally Posted by ThorstenA (Post 1132807)
That's a nice idea. I also tried to find a solution for that. For what variable should I search for?

We tried this but after a week of research putting it there and a week of placing it randomly between the postbits we found that we got a better CTR from the randomly positioned one.

I'd urge you to do some similar research on your site to see if the same's true.

Putting the adsense after the first post would just require a template change.

jw00dy 01-17-2007 03:09 AM

Thanks, for this. Install was a snap

Installed.

ThorstenA 01-17-2007 08:56 AM

Quote:

Originally Posted by UK Jimbo (Post 1160756)
We tried this but after a week of research putting it there and a week of placing it randomly between the postbits we found that we got a better CTR from the randomly positioned one.

I'd urge you to do some similar research on your site to see if the same's true.

Putting the adsense after the first post would just require a template change.

I'd think that your research would be very interesting for so much people here, I would be glad to hear more about what you tried and what you think is more successfull. Do you also put adsense for registered users on showthread? How do your link units work out? I was f.e. never sure, if my link units hurt my forum more than they earn money.

Installed.

ThorstenA 01-19-2007 04:26 PM

After playing some days, for me placement after #1 posts works better for me than random placements.

azn_romeo_4u 01-19-2007 09:38 PM

I might be doing this wrong but it doesn't work for my 3.64 version

ThorstenA 01-20-2007 08:08 AM

Quote:

Originally Posted by azn_romeo_4u (Post 1163059)
I might be doing this wrong but it doesn't work for my 3.64 version

Place code after postbit or postbit_legacy tamplate.

Stoneyreef 01-22-2007 02:22 AM

This is my code, not only do you get a google ad in there, but you can also direct your users to sign up for a paid subscription!


Code:




<!-- / random ad code, in to add usergroups add numbers to array(1) -->
<if condition="is_member_of($bbuserinfo,array(1,2,6))">
<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" align="left">Sponsored Links</td>
</tr>
<tr>
        <td class="alt1" align="center">

<!-- ad code goes here -->
</script>
<p><center>Would you like to get rid of these ads?&nbsp; Then purchase a higher level of
membership!&nbsp; Click <b><font size="4">
<a href="http://www.yourwebsite.com/forum/payments.php">here</a></font></b>
to find a membership that will work for you!</center></p>

        </td>
</tr>
</table>

</div>
$spacer_close
</if>
</if>


wtrk 02-06-2007 01:36 AM

it works fine randomly, it works fine to display after the first post, but if i wanted it display after the first unread post what do i need to change? thanks!

Cicada 10-02-2013 09:13 PM

would this work in vb4?


All times are GMT. The time now is 03:22 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.01387 seconds
  • Memory Usage 1,814KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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