The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How To Insert Adsense Between Threadbits for VB4 ?
Hi
I need your assistance to provide mod that allows to insert Adsense in between Threadbits for VB4 Below image as an example Below link is a tutorial for VB3. If someone can optimize the code for VB4 https://www.vbulletin.com/forum/show...een-Threadbits Best regards Fadi --------------- Added [DATE]1312941480[/DATE] at [TIME]1312941480[/TIME] --------------- any advise? |
#2
|
|||
|
|||
please assist
|
#3
|
|||
|
|||
If anybody has an answer to this gentleman's question it would be much appreciated.
|
#4
|
|||
|
|||
Here's the "red code" from the thread linked above, changed for vb4 template syntax.
Code:
<vb:if condition="$GLOBALS[threadcount] == X AND in_array(THIS_SCRIPT, array('forumdisplay', 'search'))"> <vb:if condition="$GLOBALS[threadcount] = 1"></vb:if> <tr> <td class="alt1"> </td> <vb:if condition="$show['threadicons']"> <td class="alt2"> </td> </vb:if> <td class="alt1"> YOUR AD CODE HERE </td> <td class="alt2"> </td> <td class="alt1" align="center"> </td> <td class="alt2" align="center"> </td> <vb:if condition="$show['forumlink']"> <td class="alt1"> </td> </vb:if> <vb:if condition="$show['inlinemod']"> <td class="alt1"> </td> </vb:if> </tr> <vb:else /> <vb:if condition="$GLOBALS[threadcount]++"></vb:if> </vb:if> |
#5
|
|||
|
|||
the idea of this code is very interesting, the following code have similar idea if any coder can help us by using the above code and also code in the below link to modify the one required by farhan2004
https://vborg.vbsupport.ru/showthread.php?t=237502 |
#6
|
|||
|
|||
If you'd like to have your adsense looking just like a thread use the code below:
Quote:
Code: Quote:
if any one can help to convert this code to the get the code required in the first post |
#7
|
|||
|
|||
Just in case anyone still wants this, the exact code for VB4 is, for search results:
extract from the start of template search_threadbit: Code:
<vb:if condition="$show['below_unread'] > 0"> <li class="threadbit"> <div class="icon0 rating0 nonsticky"> <div id="below_unread"> <vb:if condition="$show['below_unread'] == 1"> {vb:rawphrase all_threads_below_here_unread} <vb:else /> {vb:rawphrase all_threads_below_here} </vb:if> </div> </div> </li> </vb:if> <!-- end of standard code, start of mod --> <vb:if condition="$GLOBALS['sthreadcount'] == 25"> <vb:if condition="$GLOBALS['sthreadcount'] = 1"></vb:if> <li class="threadbit"> <!-- MY AD --> </li> <vb:else /> <vb:if condition="$GLOBALS['sthreadcount']++"></vb:if> </vb:if> <!-- end of mod now back to the normal file --> <li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']} <vb:if <!-- and so on..... --> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|