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)

Kaelon 09-15-2007 03:56 PM

Quote:

Originally Posted by StarBuG (Post 1339382)
Yes, there are lots of Referral Images in all sizes and for numerous products.
I did not made the FF banner myself ;)

What do you mean by "google_cpa_choice parameter"?

Rather, that the google_cpa_choice in the referral image was what brought up the Firefox image. I wanted to select a different image. Is that possible? Or was Google simply cycling them around?

hrk 09-17-2007 04:29 PM

hi. how do i see mine is posbit or legacy template?

thanks,:)

StarBuG 09-18-2007 02:38 PM

legacy is where the user info is on the left of the post, in normal postbit the user info is on top of the post.

hrk 09-25-2007 04:03 PM

Quote:

Originally Posted by StarBuG (Post 1341760)
legacy is where the user info is on the left of the post, in normal postbit the user info is on top of the post.

thanks mate! :)

mark|3 12-13-2007 08:09 AM

hi starbug

here's is my site. Possible to guide me on how to go about changing the background color of the advert.

Thanks

StarBuG 12-13-2007 09:49 AM

The color code for the adsense Ads is in the Google Code itself:

Go to your Adsense Setup and create the Banner you want, there you'll find all the options for changing the colors. Replace the current code with the newly generated code and you are good to go.

Ah, one more thing.
You use a leaderbord Banner inside the Navigation, that is not a good choice.

Put it below the navigation and inside the link unit like in my hack you seem to use.
Much better results.

To add a leaderboard banner below the navigation

In the navbar Template search for:

Code:

<!-- / PAGENAV POPUP -->
</if>

and add below:

Code:

<!-- 728x90 Leaderboard below navigation-->
<if condition="THIS_SCRIPT != 'index'">
<table class="tborder" align="center" border="0" cellpadding="6" cellspacing="1" width="100%">
<tbody>
 <!-- <tr>
  <td class="tcat" align="center"></td>
 </tr> -->
 <tr>
  <td class="alt1" colspan="2">
  <span class="smallfont">
  <center>
YOUR ADSENSE LEADERBOARD CODE HERE
  </center>
  </span>
  </td>
 </tr>
</tbody>
</table><br />
</if>
<!-- 728x90 Leaderboard below navigation -->

StarBuG

McCarroll21 12-13-2007 02:01 PM

My question is probably a simple one; though I'm not really sure. I really think I'm just overlooking something, but can't find what it is I'm looking over.

I have tested this time and time again and can't get it to show how I want it. I want to do the after first post AND after the last post. I want it to show for everyone (members and guests alike). My problem is that I get it to show, but if I have a thread that only has one post showing on one page (let's say it has 31 posts in it, so on page 4 it only has one post) I get both boxes showing up when I only want it to show one.

How could this condition be modified to where it will not show if there is only one post on the current page? I know it has if the thread only has one post, but what about one post on the current page?
Code:

<if condition="THIS_SCRIPT == 'showthread' AND $post['islastshown'] and !$GLOBALS['vbulletin']->GPC['ajax'] AND $post[postcount]!=1">
Thanks!

StarBuG 12-13-2007 09:41 PM

You could add AND $post[postcount]!=31 at the end of the condition.

But this is not an elegant solution.

I have no idea how to solve this issue because the page break depends on your settings.
I think you should ask in the programmers forum here on vB.org, if someone knows a solution.

mark|3 12-14-2007 05:37 PM

thanks for the solution :D
but now i have another problem bec there's a space between the banner. Any idea on how to prevent the gap between the navbar and the advert?

Thanks

StarBuG 12-14-2007 07:32 PM

I would leave the break between the navbar and the banner, that is a much cleaner display.

However, if not, check in the navbar template above the search code, there must be a <br /> that you need to remove

se_p800 06-04-2008 03:58 PM

this works fine for 3.7.1 btw!

F0xy 06-19-2008 08:21 PM

how do you get this to be set up for all guests and all members
https://vborg.vbsupport.ru/attachmen...9&d=1171197550

StarBuG 06-20-2008 12:08 PM

Change

Code:

<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID'] AND (!$show[member])">
to

Code:

<if condition="THIS_SCRIPT == 'showthread' AND !$GLOBALS['FIRSTPOSTID']">
:)

F0xy 06-20-2008 01:38 PM

good man, thanks

sunnylikbeckham 09-06-2008 06:17 PM

hey cool man
in bigger banner for guests
can you tell me how can i fill the place on its right
bcz what ever code i put next come in next line
thanks

StarBuG 01-14-2009 08:34 PM

use a table and put both codes each in a td ;)

Riccardo83 02-02-2009 09:56 AM

Yeah it's great. I mean the code works... Hope he still does updates for the 3.8.0 although this version has adsense support itself.... didnt test it yet tho....

hieuhpp 02-05-2009 12:28 PM

when i use:
Code:

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

The following error occurred when attempting to evaluate this template:

    The conditional on line 284 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.


This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


rtyagis 10-29-2009 11:02 AM

Thanks ... Installed. But the Adsense is not showing for guests and members both any specific reason. I use Vbullitin integrated Adsense.

otectom 08-27-2011 06:23 PM

I am having trouble installing this mod. In my templates I cannot find

Code:

<if condition="$post['userid'] AND $show['member']">
    <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
    </if>
    </table>
</div>

anywhere. I have looked in multiple templates and have tried using the search templates tool, but with no luck. Does this mod work in vb4? What template (specifically) are you editing?


All times are GMT. The time now is 01:34 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.01183 seconds
  • Memory Usage 1,765KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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