vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Randomly positioned ad in between postbits in showthread (https://vborg.vbsupport.ru/showthread.php?t=98057)

kommuni 01-01-2006 12:17 PM

Quote:

Originally Posted by RasMasta
Awesome thanks.

Quote:

I have no idea what the difference is, but this plugin worked for me in v3.5.2 in the postbit_legacy template.
there are two "styles" to display posts in vbulletin- one of both has the avatar and information about a user above his/her post (the default setting) the other "old style" is the one wich shows it on the left like here in this forums. That's the difference.

Awesome idea - i hope that will pull up my click-through rate a bit... :D

*installed*

PolyMarauder 01-05-2006 03:20 PM

Brilliant? Absolutely Brilliant?

Cheers! (installed)

Here is my thank you? enjoy ;)

http://img313.imageshack.us/img313/6...n392x727xa.jpg

lochie 01-05-2006 10:31 PM

Does this deffinetly work with 3.5.3? I've installed it and it doesn't appear at al;l no matter which of the 2 postbits I put the code in. I'm having some issues with my skin since upgrading and not sure if this is all connected.

I know it's for 3.5.2 but wasn't sure if it's just not compatible with my version or caused by my other issues.

PolyMarauder 01-06-2006 12:16 PM

I usually just do the patches and wait a week or so to see if there are any issues like this. I have to admit though with the new plugin system it will be a lot easier to do a global update. For me now its not a matter of reinstalling my hacks itÂ’s more of will they work with the next version. Anyway I too would like to know if anyone else is having an issue.

neutek 01-10-2006 02:56 PM

thanks 1st of all
this works fine for me to show to everyone - i can see ads

but doesnt work for me when i change to this - (so usergroups cannot see)

Code:

<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0 && is_member_of($bbuserinfo,array(1,2,3))">


my code:
Code:

<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" align="left">Sponsored Links</td>
</tr> <tr>
        <td class="alt1" align="center">
<!-- MY AD CODE HERE -->
        </td>
</tr>
</table>
</div>
$spacer_close
</if>

i would really like some help
just want certain usergroups not to be able to see

TitanJeff 01-13-2006 02:25 PM

Just installed and lovin' it. Mine also needed to go to the postbit-legacy.

I do have one question. I have a space below my ad and my other posts don't have that. If possible, I would like to remove that space below my ad. Anyone know how?

adobepoint 01-14-2006 04:01 PM

Is there a way to post the ads on top of the first post?

PolyMarauder 01-15-2006 05:40 AM

Quote:

Originally Posted by TitanJeff
I have a space below my ad and my other posts don't have that. If possible, I would like to remove that space below my ad. Anyone know how?

I don't know for sure but I think if you remove the "$spacer_close" part at the end of the code that will get rid of the space.

TitanJeff 01-15-2006 01:19 PM

A little help for a newbie.

I got this working great and then wanted to set it up to show up only for guests, etc.

I got this error after making the change:
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jfuqua/public_html/goForum/includes/adminfunctions_template.php(3532) : eval()'d code on line 223

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Here's what I added:
<!-- / post #$post[postid] -->
<if condition="is_member_of($bbuserinfo,array(2,5,6,7) )">
<if condition="$GLOBALS['adsense_position'] == $post['postcount'] && $GLOBALS['adsense_position'] > 0">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">

My goal is for groups 2,5,6,7 to not see the ads.

Where did I goof? Thanks.

TitanJeff 01-15-2006 03:12 PM

Quote:

Originally Posted by PolyMarauder
I don't know for sure but I think if you remove the "$spacer_close" part at the end of the code that will get rid of the space.

Thanks but that didn't take care of it for me.


All times are GMT. The time now is 10:50 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.01242 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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