vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - The second post is advertising (https://vborg.vbsupport.ru/showthread.php?t=239981)

Asterix_ita 11-14-2011 04:57 PM

hi

Quote:

Can you change the avater for a ad?
there is avatar field, but it applies to all ads

Quote:

Any advise of how to add the ad to the last post?
watch: https://vborg.vbsupport.ru/showpost....&postcount=143

regards

karlm 11-22-2011 05:10 AM

Appears to work in a fresh install of 4.1.8 :)

Asterix_ita 12-09-2011 02:18 PM

fixed a small bug in the post template

activated the maxversion="4.1.9"

stangger5 12-28-2011 06:46 AM

Quote:

Originally Posted by Taurus1 (Post 2225196)

EDIT: I would also like to bring the ad inside the post a bit down please. It is right at the top. Is it possible to have it completely in the center. From left to right and bottom to top. Thanks.

EDIT AGAIN: Sorry, disregard the above. I managed to get it done myself. Thanks again!

Attachment 131403

How did you get it to valign middle ??

Luca_ITA 12-31-2011 10:19 AM

Great mod! Installed on 4.1.9.
This mod also works with iquote
Asterix sul tuo sito ti ho scritto un mess ;)

Ricsca 01-08-2012 12:18 PM

Ho istallato il 2.0.6 ma se provo ad istalalre sovrascrivendo il 2.0.7 ho questo erroe:

Quote:

Le seguenti dipendenze non corrispondono:

Questo prodotto non ? compatibile con la versione 4.1.9 di vBulletin. (Compatibile a partire dalla 4.0.0 / Incompatibile con 4.1.9 e maggiori)

Asterix_ita 01-08-2012 03:45 PM

Open file product_second_post_ads.xml

serch

PHP Code:

<dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="4.1.9"/> 

change to

PHP Code:

<dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="4.1.11"/> 


jerseyda6 01-08-2012 06:50 PM

can not load to 4.1.9

I am getting a error

Ricsca 01-09-2012 11:19 AM

Ok fatto ma questa modifica sarebbe da fare anche nel file da scaricare...

Ciao

karlm 01-22-2012 12:13 PM

I downloaded 2.0.7.zip and followed all instructions (including editing for version number in post 167). It did not show up at all in the Admin CP. I realised that the uploaded xml file was placed in the 'includes' folder and not 'includes/xml'. I deleted it from the includes and moved it to the includes/xml and now it works..

So.. just letting the coder know, the upload folder needs an xml folder too.


Sadly though, this does not seem to work at all on VB 4.1.10 :(

Asterix_ita 01-22-2012 04:43 PM

Thanks to all

2.0.8 fix dependency version - add two phrases - fix folder upload

The version 2.0.7 works to vb 4.1.10, check the options

Regards

m!dn!ght 02-09-2012 04:44 PM

hello
it's working perfect with vb default style, but it's not working with my custom Style
i don't want revert my postbit_legay it's highly customized
what can i do ?
thanks

Asterix_ita 02-09-2012 06:44 PM

I'm sorry

I use this hook template_hook.postbit_end (to the end of postbit_legacy) to enter the second post.

verify the presence of postbit_legacy_ads_ct_2th template on your style.

Regards

m!dn!ght 02-10-2012 12:13 PM

Quote:

Originally Posted by Asterix_ita (Post 2298023)
I'm sorry

I use this hook template_hook.postbit_end (to the end of postbit_legacy) to enter the second post.

verify the presence of postbit_legacy_ads_ct_2th template on your style.

Regards

now it's working perfect :up:
thank you :)

androidia 05-09-2012 11:48 PM

Is there anyway to change the joindate and post count etc?

Asterix_ita 05-10-2012 05:52 PM

Hi

joindate is a phrase ----- ads_ct_joindate
age -- you can change template postbit_legacy_ads_ct_2th or postbit_ads_ct_2th
posts count is a phrase ----- ads_ct_npost

the information is divided between phrases and templates

Regards

Asterix

BF777 05-11-2012 10:15 PM

Great mod. It's working perfectly on our site, www.fightfanatics.com

We have the ads running for guests only.

dilbert 05-25-2012 05:53 PM

Is this 4.2 compatible?
Thanks

iask 05-30-2012 02:39 PM

This product is not compatible with version 4.2.0 of vBulletin. (Compatibel beginnen met 4.0.0 / Incompatible with 4.2.00 and greater)

Asterix_ita 05-30-2012 06:31 PM

it should work

you see this https://vborg.vbsupport.ru/showpost....&postcount=167

you can change maxversion to maxversion="4.2.9"

regards

KEKforce 05-30-2012 08:14 PM

works on 4.2.x with the adjustment above

Littlerocket 06-05-2012 07:14 PM

Not appearing in AdminCP for me 4.1.5. I have moved the xml into its own xml folder within includes.

97lt1ta 06-05-2012 11:10 PM

Instead of the second post is there a way to make it the last post ?

Asterix_ita 06-06-2012 04:27 PM

for last post: open template postbit_legacy_ads_ct_2th or postbit_ads_ct_2th

find

PHP Code:

<vb:if condition="!$GLOBALS['FIRSTPOSTID']"

replace width

PHP Code:

<vb:if condition="$post[islastshown]"

regards

shiraz sat 06-07-2012 05:54 AM

This product is not compatible with version 4.2.0 vBulletin. (Starting with the 4.0.0 compatible / incompatible with 2.4.00 and higher)

Asterix_ita 06-07-2012 08:50 AM

Read this https://vborg.vbsupport.ru/showpost....&postcount=180

realdiegodias 06-14-2012 12:08 AM

unfortunately does not work in version 4.2

Asterix_ita 06-14-2012 11:06 AM

on my test forum work fine, to install:

Open file product_second_post_ads.xml

serch

PHP Code:

<dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="4.1.9"/> 

change to

PHP Code:

<dependency dependencytype="vbulletin" minversion="4.0.0" maxversion="4.2.99"/> 


egyptsons 06-22-2012 01:23 PM

Works fine with vb 4.2.0
:)

karlm 07-13-2012 01:46 PM

Quote:

Originally Posted by Asterix_ita (Post 2298023)
I'm sorry

I use this hook template_hook.postbit_end (to the end of postbit_legacy) to enter the second post.

verify the presence of postbit_legacy_ads_ct_2th template on your style.

Regards

I'm using a custom set of styles of my 4.2.0 board and not using the legacy (I use it on my other forum, which works fine). As I'm using the newer postbit, the ads don't show for me... I would follow the above instructions but have no idea what you've said.

Asterix_ita 07-13-2012 05:14 PM

My addon use this hook vbulletin template_hook.postbit_end

look in your postbit template if there is this string to the end

{vb:raw template_hook.postbit_end}

regards

karlm 07-13-2012 07:20 PM

Quote:

Originally Posted by Asterix_ita (Post 2347651)
My addon use this hook vbulletin template_hook.postbit_end

look in your postbit template if there is this string to the end

{vb:raw template_hook.postbit_end}

regards

OK, and once I locate the text you've highlighted.. .what do I do with it?

What if I can't locate it?

ETA, reading your original post again, am I meant to add it to the "postbit_legacy_ads_ct_2th" after or before or somewhere else?

Asterix_ita 07-14-2012 04:45 AM

the code that I have reported must be present at the end of your pobit and not in my template, I add my code to that hook vbulletin.

Watch the postbit of the default theme, for example.

regards

muffel 07-15-2012 08:14 AM

Thank you very much for this mod.

But I have a question - is there a similar mod to this, where I can put different advertising for each sub-forum?

karlm 07-15-2012 12:53 PM

Right.. the code is there as you said...

But what am I meant to do with it? The code is present but still no second post ad?

princesspepper 07-19-2012 05:43 PM

For some reason my second ad is not showing... just the first in the centre. Any ideas why? I'm running VB4.2 PL2

:)

Asterix_ita 07-20-2012 04:23 AM

You can bring a stamp of settings page

regards

zakonline 07-31-2012 08:38 AM

Great Mod, Works Perfect!!! Thanks for the contribution.

Naijasite 10-02-2012 05:46 PM

nice mode

Nirjonadda 11-24-2012 02:15 PM

Can you add Option "Option based on Post Count" usergroups that cannot see The second post is advertising ?


All times are GMT. The time now is 03:12 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.02357 seconds
  • Memory Usage 1,802KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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