vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Google Adsense (or other) in a Block like a Thread on FORUMDISPLAY (https://vborg.vbsupport.ru/showthread.php?t=237502)

Leo Brazil 03-22-2010 01:05 PM

Quote:

Originally Posted by khalled (Post 2004276)
Dear Leo Brazil
i use your code after the following in search_resultlist to add the block at the end of search result

- after the following add the adsense code
Code:

<vb:if condition="$show['results']">
                <ol id="searchbits" start="1" class="searchbits">
                    {vb:raw searchbits}
                </ol>

but where i can add it to appear in the beginning of search result

Sorry Khalled, I've been too busy.

If you want it to appear on top of the search list, add the code right after:

Code:

<vb:if condition="$show['results']">
If you like the way it shows at the end on search results, it'll be the same like I'm telling but it's going to show up at the beginning.

Try it and let people know here if it works.

khalled 03-23-2010 07:44 PM

Quote:

Originally Posted by Leo Brazil (Post 2008090)
Sorry Khalled, I've been too busy.

If you want it to appear on top of the search list, add the code right after:

Code:

<vb:if condition="$show['results']">
If you like the way it shows at the end on search results, it'll be the same like I'm telling but it's going to show up at the beginning.

Try it and let people know here if it works.

very thanks Leo Brazil for your help you are very professional programmer

it's work good

Winter Sonata 04-24-2010 06:45 AM

Installed, Thanks

medicalforums 06-14-2010 08:48 PM

Is there anyway I can use this modification on my 3.8 VB?

asus78 08-22-2010 11:07 PM

it would be awesome to put adsense within cms articles or blog post. Is that possible at all?

thanks

VAG 09-09-2010 07:03 AM

I guess so.

You could edit the template to add this as it doesn't currently have an ad location.

Try looking through the 'vbcms_content_article_page' template.

Only don't know where to insert the code.

onehost 09-13-2010 04:00 AM

I tried this on my forum as an inpost ad...

It looked horrible...It looked some spammy ad, did not match nothing.

let me know when you come up with something like this:

DEMO: Look at this if you want to see how an AD really matches....

http://www.patientenfragen.net/en/vo...ome-t1810.html

lubbie 09-14-2010 01:43 PM

onehost
Warnung: filemtime() [function.filemtime]: stat failed for [path]/vbet_guestcache/en/_showthread_php_t_181012.zip in [path]/includes/vbenterprisetranslator_functions_guestcache.php (Zeile 53)
Oo
Von daher.Ich finds auch ehrlich gesagt nicht ok sowas zu schreiben und dann noch auf seinen eigenen Mod zu verweisen.

Man k?nnte meinen... Du musst es ja n?tig haben.

Wenn Du schon Kritik ?ben willst dann doch konstruktiv!
edit. Abgesehen davon ist Deine Variante durchaus ansprechend.

Sry everybody, but i could not find any Words for what i wanted to "say", in english ;)

synseal 10-21-2010 10:28 PM

Really like this for sticky adds, thank you!.

Dr Longhorn 11-16-2010 04:09 PM

Hi Leo Brazil,

This works fine with the forumdisplay template, and it looks great.

Can you help with editing the postbit or showthread template in order to place an adsense ad in a block, right above the first post of each thread.

I got this to work with just an adsense ad, but can't seem to get it to work with a block like in your example images.

Can you help with the correct code and position for this? Am I editing the correct templates?

Also I would like to have the ad block on the category pages as well as forums, i.e. forums that are set-up as categories.

Can you please help with this too?

Longhorn.


All times are GMT. The time now is 07:10 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.02260 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)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