Thread: Major Additions - Forum Ad Management
View Single Post
  #62  
Old 08-19-2009, 01:23 PM
imedic's Avatar
imedic imedic is offline
 
Join Date: Mar 2008
Location: Romania
Posts: 178
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to place an ad after last post here what you can do:

- in Forum Ad Management / Posts screen in admin panel add in Postbit inclusion field (at bottom)
Code:
$vbam_location[whateveruwanthere]
- in Style Manger / Edit templates open Showthread templates / SHOWTHREAD template (you need to double click to see it in the list) and look for
Code:
<!-- / start content table -->
after add:
Code:
$vbam_location[whateveruwanthere]
<br />
Of corse whateveruwanthere can be replaced by individual name.
You also need to play with numbers of display and repeat number untill it show only one. My setting is 3 and 38 (don't ask why , it is working I don't bother )

It is looking clear as a last post. You can see it here

Aparently I run into some problems on IE , add is showing 3 times ?

There is no way I can make add show 1 time setting numbers in times to display. The edit worked fine but this mode has still bugs.
I leave it like this for when this mode will be upgraded if it will be.

Alternate way to do it (the hard way, ignoring most of this mod) but for postbit legacy (you can find in Advertisment templates the code for postbit)
Paste this:
Code:
<table class="tborder advertisement" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="margin-top:6px">
<tr>
	<td class="thead" style="line-height:1.4em" colspan="2">
		&nbsp;
	</td>
</tr>
<tr valign="top">
	<td class="alt2" width="175px">
		<div>
			<a class="bigusername">$vboptions[bbtitle]</a>
		</div>
		<div class="smallfont">
			$vbphrase[vbam_advertisement]
		</div>
		<div>
			&nbsp;<br />
			<img src="$vboptions[showdeficon]" class="inlineimg" width="0" height="0" alt="$vbphrase[vbam_advertisement]" border="0" />
		</div>
	</td>
	<td class="alt1">
		<if condition="$show[messageicon] OR $post[title]">
			<div class="smallfont">
				<if condition="$show[messageicon]">
					<img src="$vboptions[showdeficon]" class="inlineimg" alt="$vbphrase[vbam_advertisement]" border="0" />
				</if>
				<if condition="$post[title]">
					<strong>$vbphrase[vbam_sponsored_links]</strong>
				</if>
			</div>
			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
		</if>	
		<div class="postbit_adcode adcode">
			$vbam_adcode[postbit]
PLACE INSTEAD OF THIS THE AD CODE ( GOOGLE AD ...) 
		</div>
	</td>
</tr>
</table><br />

instead of $vbam_location[whateveruwanthere] from steps described above.

Place your banner (google ad code ...) instead of bold caps lock text from above (you need to scroll to see it, fifth line from below up) .

This until a better solution is found using this mod.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01865 seconds
  • Memory Usage 1,780KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete