vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Adsense below the last thread (https://vborg.vbsupport.ru/showthread.php?t=102466)

Moparx 12-08-2005 05:56 PM

Quote:

Originally Posted by bold
if mods can see your ad
<snip>
so you dont have a missing cell

haha.. thanks. i completely forgot to add that when i made this.
the thread has been updated.

Quote:

Originally Posted by hornstar1337
I want it to show for guest and resistered members and users awaiting email confirmation.

What would I change the conditional too, thanks

change:
PHP Code:

<if condition="$show['guest']"

to:
PHP Code:

<if condition="is_member_of($bbuserinfo, 1,2,3)"

I have changed the modification to use is_member_of instead as it will be easier for those who want to use this on various usergroups.


Quote:

On a side note, what template is the one that would need to be modified to edit the bottom of the forum to put a banner there, as the navbar does the top, but i cant remember the other one.

Thanks if you can help me on these 2 questions.
I believe you are referring to the footer template.

however, it is not advisable to put adsense in the navbar or footer templates unless you have a conditional set to hide the ads on non-content-based pages (such as newthread, your user control panel, etc). if you are showing the ads in non-content pages you are violating the Adsense guidelines.

dieselpowered 12-08-2005 07:23 PM

Has this been confirmed to work with "click for quick reply"?

This happened to be an issue with AJAX when using adsense and "click for quick reply" Quick reply would not work.

Moparx 12-08-2005 09:05 PM

Quote:

Originally Posted by xtremeoff-road
Has this been confirmed to work with "click for quick reply"?

This happened to be an issue with AJAX when using adsense and "click for quick reply" Quick reply would not work.

this template mod does not show on showthread.

Hornstar 12-11-2005 07:23 AM

Quote:

Originally Posted by Moparx
haha.. thanks. i completely forgot to add that when i made this.
the thread has been updated.



change:
PHP Code:

<if condition="$show['guest']"

to:
PHP Code:

<if condition="is_member_of($bbuserinfo, 1,2,3)"

I have changed the modification to use is_member_of instead as it will be easier for those who want to use this on various usergroups.



I believe you are referring to the footer template.

however, it is not advisable to put adsense in the navbar or footer templates unless you have a conditional set to hide the ads on non-content-based pages (such as newthread, your user control panel, etc). if you are showing the ads in non-content pages you are violating the Adsense guidelines.



Thankyou, and I may need to lookinto that conditional, as i Have a few adds that I put in my navbar that show on everypage, i may need to edit that before any of my advertisers find out ^^ thanks for the info

StarBuG 12-11-2005 12:06 PM

Suggestion
Would it be possible to also show this banner as last thread in a search result?

I think that would also be a nice place for a banner :D

ferreo 12-11-2005 12:22 PM

Very nice, installed! Is it possible to display this not at the end of the forumdisplay listing, but at the beginning? What would the resulting code look like then?

I believe the CTR would increase that way.

StarBuG 12-11-2005 12:35 PM

But most likely your members would hate it

ferreo 12-11-2005 01:18 PM

Quote:

Originally Posted by StarBuG
But most likely your members would hate it


Members would not get to see it, I have it set for unregistered or unconfirmed members only.

Moparx 12-11-2005 11:52 PM

Quote:

Originally Posted by ferreo
Very nice, installed! Is it possible to display this not at the end of the forumdisplay listing, but at the beginning? What would the resulting code look like then?

I believe the CTR would increase that way.


add the code after the following:
PHP Code:

</tr>
</if>
<if 
condition="$show['threads']"


ferreo 12-12-2005 12:35 PM

Quote:

Originally Posted by Moparx
add the code after the following:
PHP Code:

</tr>
</if>
<if 
condition="$show['threads']"



Fantastic, thank you Moparx!


All times are GMT. The time now is 02:08 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.03009 seconds
  • Memory Usage 1,753KB
  • 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
  • (6)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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