vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   post is advertising (https://vborg.vbsupport.ru/showthread.php?t=257125)

tanand79 01-14-2011 02:01 PM

post is advertising
 
1 Attachment(s)
How to do like that advertisement in vbulletin 3.8x
can u give me the mod or code same like that advertisement after the post check in screen shot i attach it.

Digital Jedi 01-14-2011 02:47 PM

I've done this just by using the putting your ad code in the default ad templates. You just copy the HTML to make it look like a typical postbit post. I'm not sure if there's a mod that does this for you.

tanand79 01-14-2011 03:59 PM

Quote:

Originally Posted by Digital Jedi (Post 2148964)
I've done this just by using the putting your ad code in the default ad templates. You just copy the HTML to make it look like a typical postbit post. I'm not sure if there's a mod that does this for you.

i will put ads code write " BANNER CODE"
can u give me the code to do like that

TheLastSuperman 01-14-2011 05:35 PM

Quote:

Originally Posted by Digital Jedi (Post 2148964)
I've done this just by using the putting your ad code in the default ad templates. You just copy the HTML to make it look like a typical postbit post. I'm not sure if there's a mod that does this for you.

There is for 4.x I know not sure about 3.x but yes agreed you can do it by copying the code and using a template conditional ;).

Quote:

Originally Posted by tanand79 (Post 2149006)
i will put ads code write " BANNER CODE"
can u give me the code to do like that

You PM'd me a link:

https://vborg.vbsupport.ru/showt...ter+first+post

Click that link ^

When you copy links don't highlight them and then paste right-click and say copy link location etc otherwise when you paste a link like that it won't work :(. Repost that link please and we'll take a look.

BirdOPrey5 01-14-2011 06:14 PM

If you visit my forum you see I do this ad for guests only... here is the code I use in postbit legacy:

Directly below:
Code:

$template_hook[postbit_end]
add:

Code:



<!-- 2nd Post Ad -->
<if condition="$post['isfirstshown'] AND $show['guest']">
<img src="/forums/images/icons/blank.gif" height="5" border="0" />
<table id="postbit_as" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">

<tr>
 <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /> Don't want to see ads? <a href="register.php">Register</a> for free!</td>
</tr>
<tr valign="top">
 <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
 
<div id="postmenu_ad">

                   
                    <div class="bigusername">JUOT Ad</div>
</div>
  <div class="smallfont">Guest Only Ad</div>
</td><td>
  <!-- icon and title -->
  <div class="smallfont">
  <strong>Sponsored Advertisement</strong>
  </div>
  <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
  <!-- / icon and title -->
 
  <!-- message -->
 <div id="post_message_ad">


AD CODE HERE


</div> 

</div> 

  </div>
  <!-- / message -->
 
 </td>
</tr>
<tr>
 <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
&nbsp;
 </td>
</tr>
</table>


</if>
<!-- End 2nd Post Ad -->

Youll have to customize the image paths...

tanand79 01-15-2011 03:45 AM

i wanna show to all members
how to do that? :)

TheLastSuperman 01-15-2011 05:16 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2149094)
If you visit my forum you see I do rhis ad for guests only... here is the code I use in postbit legacy:

Directly below:
Code:

$template_hook[postbit_end]
add:

Code:



<!-- 2nd Post Ad -->
<if condition="$post['isfirstshown'] AND $show['guest']">
<img src="/forums/images/icons/blank.gif" height="5" border="0" />
<table id="postbit_as" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">

<tr>
 <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /> Don't want to see ads? <a href="register.php">Register</a> for free!</td>
</tr>
<tr valign="top">
 <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
 
<div id="postmenu_ad">

                   
                    <div class="bigusername">JUOT Ad</div>
</div>
  <div class="smallfont">Guest Only Ad</div>
</td><td>
  <!-- icon and title -->
  <div class="smallfont">
  <strong>Sponsored Advertisement</strong>
  </div>
  <hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
  <!-- / icon and title -->
 
  <!-- message -->
 <div id="post_message_ad">


AD CODE HERE


</div> 

</div> 

  </div>
  <!-- / message -->
 
 </td>
</tr>
<tr>
 <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
&nbsp;
 </td>
</tr>
</table>


</if>
<!-- End 2nd Post Ad -->

Youll have to customize the image paths...

Quote:

Originally Posted by tanand79 (Post 2149290)
i wanna show to all members
how to do that? :)

Remove this:

Code:

<if condition="$post['isfirstshown'] AND $show['guest']">
Example:

Code:

<if condition="$post['isfirstshown']">

tanand79 01-17-2011 03:07 AM

thanks done.


All times are GMT. The time now is 01:11 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.01267 seconds
  • Memory Usage 1,741KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete