vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Adsense as second post. 2 Sizes - Big for guests, small for members - Legacy Version (https://vborg.vbsupport.ru/showthread.php?t=139093)

Mrdby 04-18-2007 03:40 PM

Quote:

Originally Posted by StarBuG (Post 1230485)
@Mrdby: That totally depends on your problem. First step would be to tell me where I should help you ;)

@jmw: remove the condition "AND (!$show[member])" and the whole 2nd part (either the member or guest part), depending on which advertising you want to show.

lOL..Well i mean helping me add it in my post bit...BUT i copied and pasted the code you gave...right below whatever was asked...and a google ad came up and nothing else.

South Fork 04-19-2007 10:20 PM

Very nice, thanks. Installs.

StarBuG 05-06-2007 07:44 AM

I have changed the condition to show the advertising on every page as second post, not just on page one.

The old condition was:
Code:

<if condition="THIS_SCRIPT == 'showthread' AND  $post[postid] == $GLOBALS['qrfirstpostid'] AND ($show[member])">
the new condition is:
Code:

<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND ($show[member])">
Simply replace the old conditions (2x) with the new one and the ads will show on every page of every thread as second post.

StarBuG

The hack is now version 1.1

Best regards

StarBuG

HeRmAn'S 05-07-2007 09:32 AM

Quote:

Originally Posted by Mrdby (Post 1230391)
can i see how your looks?

prove picturize ...last version 3,6,5 ...look picture :rolleyes:;) ...and good work :cool:

StarBuG 06-11-2007 09:52 AM

I have just released an add-on for this mod.


ADD-ON:
In addition you can add a Google Adsense link unit as last post of a thread on any page for members and guests. This advertising will only show if the thread has more then one post so that it does not show 2 advertisings directly below each other in case that the thread has no replies yet. Google Adsense has updated its ToS so that you are now allowed to use up to three link units on one page. So if you already use my "Adsense Link Unit in Navbar" Mod there woun't be a problem.

I hope you like it.

Let me know how it works out ;)

StarBuG

Fireproof 06-11-2007 09:45 PM

How does Google check for content to display content-relevant ads? Mine appears to not be working - it seems to ignore all the thread content. Every add is the same on all forums and is advertising "clutches" since my site title is Clutch Fitness.

StarBuG 06-12-2007 03:50 AM

They have a spider to fetch your content.
But it normaly takes 2-3 weeks for the ads to get relevant if you just started display them.

almightyone 06-24-2007 11:41 PM

is there a way to keep this from showing in some forums i dont want it in my staff area or some other forums

StarBuG 06-25-2007 05:11 PM

You could exclude forums by changing the condition like:

<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND (!$show[member])" AND !in_array($forum[forumid], array(16,17,18,19)>


replace 16,17,18,19 with the forum IDs you don't want the ad to show

StarBuG

almightyone 06-25-2007 08:34 PM

thnx man i will try this out


All times are GMT. The time now is 03:10 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.01203 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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