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-03-2010 10:00 PM

Google Adsense (or other) in a Block like a Thread on FORUMDISPLAY
 
1 Attachment(s)
This is a simple code to be added into your FORUMDISPLAY Template that will deliver your adsense or images just like Thread Table and it'll fit the same design you have on your forums.

Khalled had this idea from a vb3 Code and asked me some help because of my other mod: Google Adsense (or other) in a Block like an Individual Post
And this was from where his original idea came from https://vborg.vbsupport.ru/showthread.php?t=237136

Code:

<ol>
<div id="forumbits" class="forumbits">
<div class="forumhead">
<h2><span class="forumtitle">Sponsored Links</span>
</h2>
</div>
<div class="forumbit_post L2 table">
<div class="forumrow">
<center>-----ADD YOUR ADSENSE CODE GOES HERE----</center>
</div>
</div>
</ol>

Note: Just don't forget to add your adsense code where is indicated.


If you want it below your thread list considering a respective Forumdisplay that plays like a forum and not a category you have to:

On FORUMDISPLAY Template

Find:

Code:

  <vb:if condition="$show['threads']">
    <ol id="threads" class="threads">
    {vb:raw threadbits}
    </ol>
<ol>

Just place the code below it.

If you want it above your subforum list as well as Threadlist you have to:

Find:

Code:

{vb:raw template_hook.forumdisplay_above_subforums}
Just place the code below it.


If you want it below your subforum list as well as Threadlist you have to:


Find:

Code:

{vb:raw template_hook.forumdisplay_below_subforums}

If you want it below your sticky threads you have to:

Find:

Code:

    {vb:raw threadbits_sticky}
    </ol>

Just place the code below it.

Update!!

If you'd like to have your adsense looking just like a thread (see 4th screen shot) use the code below:

Code:

<li class="threadbit dot hot">
<div class="rating0 sticky">
 <div class="threadinfo">
<a class="threadstatus" rel="vB::AJAX" title="Sponsored Links"></a>
 <div class="inner">
 <span class="prefix understate">-----YOUR ADSENSE GOES HERE------</span>
 </div>   
 </div>
 <ul class="threadstats td">
 <li>-</li>
 </ul>
  <dl class="threadlastpost td">
<dd><div class="popupmenu memberaction">-</div>
</dd>
</dl>
</div>
</li>

Just don't forget to replace on the code above with your own adesense.
Note: The code above will look good only if placed as suggested below and will appear like a sticky thread after the sticky ones you already have.

Find:

Code:


{vb:raw threadbits_sticky}
</ol>

Just place the code below it.

If you have other ideas how to use and don't mind to share with us, make your self comfortable for it. :up:

Edit: Screen Shots Added:
1- Above Sub Forums
2- Below Sub Forums
3- After Sticky Threads

If you like it, don't forget to mark as INSTALLED !!!

zeroality 03-05-2010 02:25 AM

Any demo to show what it looks like? Thanks.

Hornstar 03-05-2010 04:39 AM

or screen shot will be fine too.

Leo Brazil 03-05-2010 06:13 PM

My bad, screen shots added.

khalled 03-05-2010 08:11 PM

dear Leo Brazil very very thanks for your quick cooperation and help

but please there is minor different between what i want and the code you give although your code is very useful

What i want that Google Adsense appear as it is threads
like the below pictures in vb 3.8 the Google Adsense appear as threads in thredlist
can we do the same thing with vb 4


https://vborg.vbsupport.ru/attachmen...9&d=1186315438

like this mod do in vb 3.8

https://vborg.vbsupport.ru/showthread.php?t=154361

i wait for your help if it's possible

khalled 03-05-2010 08:36 PM

1 Attachment(s)
also the attached pictures can clear more what i main

https://vborg.vbsupport.ru/attachmen...4&d=1267828523

baghdad4ever 03-07-2010 02:35 PM

is that against google policy or not??

please can you tell me

khalled 03-07-2010 08:19 PM

Quote:

Originally Posted by baghdad4ever (Post 1999133)
is that against google policy or not??

please can you tell me

NO it'snot , google answer by that
if any one can catch required code

khalled 03-08-2010 10:17 AM

Dear ,Leo Brazil i wait you

baghdad4ever 03-08-2010 02:58 PM

thanks khaled to confirm that

so can i install the other mod of Leo Brazil (post inside thread ) with this mod?????



see this if you want it i will pm you

http://www.baghdad4ever.net/vb/forumdisplay.php?f=175


All times are GMT. The time now is 10:05 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.01247 seconds
  • Memory Usage 1,748KB
  • 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
  • (7)bbcode_code_printable
  • (1)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
  • (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