PDA

View Full Version : Mini Mods - The second post is advertising


Asterix_ita
04-06-2010, 10:00 PM
I know that there are many addons but I like the special needs, sorry for my bad English

With this addon the second post is not necessarily a post Google Adsense ADS as to release the users was chosen to allow free insertion of HTML Ads.

The addon has the following functions:

1) automatically uses the style of postboard (postbit o postbit_legacy)
2) it is possible to exclude some forum posts from viewing ads
3) it is possible to exclude some groups of users from viewing post ads
4) it is possible to exclude some discussions based on prefix
5) it is possible to customize the user profile virtual ads - nickname and avatar
(usertitle ? Location - Join Date ecc. need to modify the phrase)

I hope it will be useful to some of you.


Regards

Install:

Import product_second_post_ads.xml
Configure in vBulletin Options -> Ads Second Post


This plugin adds:

2 template
postbit_ads_ct_2th
postbit_legacy_ads_ct_2th

2 plugin
Second Post ADS
Cache template
10 phrase

Changelog

2.0.0 only post nr.2 is ads
2.0.1 Added option on every page is the second post ads (post 11 (https://vborg.vbsupport.ru/showpost.php?p=2017496&postcount=11))
2.0.2 fixed two error template postbit_legacy - change admin option
2.0.3 fix the code for compatibility vb. 4.0.4 or higher
2.0.4 add option align post ads
2.0.5 correct a little imperfection template
add possibility of using a second circuit Ads

the second option ads is strongly bound by the general filters: Forums to be Excluded

2.0.6 fix inline mod select/deselect all
2.0.7 fix mini bug
2.0.8 fix dependency version - add two phrases - fix folder upload
2.0.9 fix bug option exclude prefix - fix ads on pm - change dependency version


Translations

Italian Collectiontricks.it (http://www.collectiontricks.it/forum/showthread.php?t=1486)
Arabic - Dr.osamA (https://vborg.vbsupport.ru/showpost.php?p=2040920&postcount=40) (vers. 2.0.2)
German - Igel1 (https://vborg.vbsupport.ru/showpost.php?p=2072095&postcount=63) (vers. 2.0.3)


Click to Mark Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=239981).

haXan
04-07-2010, 12:07 PM
Where is product ?

Asterix_ita
04-07-2010, 12:14 PM
Sorry

Dr.osamA
04-07-2010, 12:51 PM
good work man

thank you

installed + 5 stars + translate to Arabic

i think we need some changes with template postbit_legacy :rolleyes:

hiker
04-07-2010, 12:55 PM
Will this place ads from this time on, or will it go back and insert ads into old threads?

Thanks.

sKippah
04-07-2010, 01:04 PM
Very Nice. Could u add a refresh?

Dr.osamA
04-07-2010, 01:04 PM
Will this place ads from this time on, or will it go back and insert ads into old threads?

Thanks.

no man

everything well be automatically changed everywhere

Asterix_ita
04-07-2010, 01:13 PM
The only limitations are those set in the options, so if you leave all the default second post ads appear on all Threads indiscriminately by Date Added

@Dr.osamA thanks

Dr.osamA
04-07-2010, 01:18 PM
Sorry Asterix

you are welcome man

Amr-Director
04-07-2010, 03:23 PM
thank you very much, but , Unfortunately, however, there is a problem in the bottom of the page background Style

Begin from Quick Reply and ends at the footer and you can see it here in this form

http://www.rise4islam.com/vb/showthread.php?t=8417

With thanks.

junaid
04-07-2010, 03:48 PM
Is it possible to add every page second post have this options to view ads

Mike_K
04-07-2010, 05:30 PM
On each site the advertising would be very nice.

Asterix_ita
04-07-2010, 05:44 PM
Is it possible to add every page second post have this options to view ads

the condition vb template is the following

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">

I understand how to integrate well into the addon so that the admin to choose whether to use only post no. 2 or the second of each page

:bai

iguano
04-07-2010, 05:49 PM
very nice, thanks :-)

Mike_K
04-07-2010, 06:11 PM
Sorry, where have it to put this condition in?

Asterix_ita
04-07-2010, 06:20 PM
I changed the plugin to meet the request made to the post 11

Mike_K
04-07-2010, 06:49 PM
Very good. Thank you.

adom7
04-07-2010, 06:57 PM
nice work got it to work.

junaid
04-07-2010, 07:21 PM
Thanks for your updating
Also is it possible to add options to remove post information like avatar username and locations and that row totally

Also have options to add random ads support

This is very important those who want sell ads locations
If you want put your brand you can put # ADS locations or Time printing locations
Date and time is not important in that place it is nice you can replace link options to payment gate way like Advertise on this place like that or can place remove this ads

Thanks
Junaid

guvner
04-07-2010, 07:27 PM
Nice hack - thank you! :)

brz299
04-07-2010, 10:03 PM
I put the code is not see nothing

https://vborg.vbsupport.ru/external/2010/04/77.png

Asterix_ita
04-08-2010, 04:57 AM
@brz299

Very strange, because the field is a simple textarea, the input code is shown in the template

Are you sure that this is an accepted code from templates vbulletin? eg php codes are not accepted

for my testing I tried to use pure HTML and banner with iframe and google adsense script

@ junaid

I think a bit as for the random banner and ads naked, there are already other similar addon

junaid
04-08-2010, 07:24 AM
yeah Redtiger i think
but he is not release VB4
what about other request?

Winter Sonata
04-08-2010, 08:48 AM
Hello, IS it ok with Adsense TOS

Winter Sonata
04-08-2010, 05:18 PM
Hello, IS it ok with Adsense TOS

brz299
04-08-2010, 06:11 PM
@brz299

Very strange, because the field is a simple textarea, the input code is shown in the template

Are you sure that this is an accepted code from templates vbulletin? eg php codes are not accepted

for my testing I tried to use pure HTML and banner with iframe and google adsense script

@ junaid

I think a bit as for the random banner and ads naked, there are already other similar addon

Using the same code I have in the web is HTML code on the web if you visualize but the hack does not

Gn_Snake
04-08-2010, 06:36 PM
Good Work Asterix...thanks

Asterix_ita
04-08-2010, 07:10 PM
@brz299
I'm sorry but it is a normal adsense code, I tried your code on my site and works well. Try removing and reinstalling the addon.

Winter Sonata
04-08-2010, 07:40 PM
mark as installed, thanks

Sagua
04-09-2010, 12:14 AM
installed, thanks :up:

vicelover
04-09-2010, 03:42 PM
nice mod, tagged.
5 stars

tomshawk
04-09-2010, 04:49 PM
Nice mod, thank you, but, Question

If I want to remove this part

"Circuito Google Adsense"

How do I do that?

Again, Thank you, nice mod :up:

Asterix_ita
04-10-2010, 07:23 AM
If I want to remove this part

"Circuito Google Adsense"

How do I do that?

Again, Thank you, nice mod :up:

And a little bug of the various tests made by me, you must delete the phrase from the template - postbit_legacy_ads_ct_2th

tomshawk
04-10-2010, 09:41 PM
I found it, thank you

changed it to Tech-Unity Google Ad

;)

marshal_ramdev
04-21-2010, 04:40 AM
thanks :) ..

biosclan
05-07-2010, 03:30 PM
tagged for later

egyptsons
05-12-2010, 04:01 PM
Using the same code I have in the web is HTML code on the web if you visualize but the hack does not
brz299
Be sure that u don't have more than 3 AdSense unite in the same page

Kendothpro
05-18-2010, 03:46 PM
You need to remove a </div> before the "<div class="cleardiv">" , or this mod will mess up your style

Asterix_ita
05-18-2010, 04:17 PM
Fixed two error to template postbit_legacy

1 error

<div class="postrow>

2 error

<div class="content>

missing the tips of closed

Dr.osamA
05-21-2010, 01:51 AM
thanxx for update man

here is new translation to Arabic for product_second_post_ads_2_0_2

7thSENSE
06-29-2010, 08:32 AM
Seems to not work with 4.0.4 PL1?

I just installed your mod, no group is excluded, no forum is excluded, the input field have the standard content - but there is no additional post row shown in the frontend.

Or do I have to activate the ads somewhere?

Greetings

Asterix_ita
06-29-2010, 01:34 PM
Thanks for the alert, in the coming days I will try to understand where the problem is and what changed from the 4.0.3

I ran tests on two environments vb 4.0.4 pl1 not work on first, second works fine, I can not see any reasons for such different behaviors.

await further deferred on board 4.0.4 pl1

Dr.osamA
07-01-2010, 10:59 AM
i don't know what is the problem
but it working for me on board 4.0.4 pl1 very good

thanxx Asterix_ita

Igel1
07-01-2010, 09:54 PM
thanks .. :)

it works good for me under 4.0.4 PL1

here is new translation to German for product_second_post_ads_2_0_2_DE

Asterix_ita
07-02-2010, 03:15 AM
thanks for the reply

add link to German translation

hiker
07-02-2010, 07:23 PM
Is there a way to change the username of the google adsense? Does it become a user that we could change the username on like a normal user?

Asterix_ita
07-03-2010, 03:26 AM
The options are the parameter Nickname

hiker
07-04-2010, 05:01 AM
Installed, working great. Example:
http://www.bogley.com/forum/showthread.php?39841-Windows-Live-Movie-Maker-produce-HD-.mp4-footage

I've currently set it so only guests are seeing the ads. Thanks for the mod.

Shadown
07-09-2010, 05:06 PM
Not Working 4.0.4 version?

Braincrusher
07-10-2010, 07:51 PM
Not Working 4.0.4 version?


Same here. Successful installed and configured but no showing ads / column.

Igel1
07-10-2010, 09:22 PM
Sorry but it works good under 4.0.4 and 4.0.4PL1 for me.

Asterix_ita
07-11-2010, 07:38 AM
hi

in order to understand this difference in behavior you wonder if this is new install or upgrade.

Recheck the code in the coming days although it seems correct

thanks

Shadown
07-11-2010, 01:58 PM
I have two vBulletin install: Fresh suite install where is CMS disable and old suite install where is CMS is enable. To both plugin not show nothing.

Asterix_ita
07-13-2010, 01:53 PM
An examination I found that version 4.0.4 the variable $ vbulletin-> options in some situations is not powered.

Try this beta version only for vb 4.0.4 or vb 4.0.4 pl 1

expect from you, thanks

Shadown
07-13-2010, 03:29 PM
Not Working, BUT now show something:
http://www.consoleforums.net/showthread.php?8921-Custom-IOS-Installer-ongelma

prova ctads['ok'] =
ctads['groups'] =
ctads['forums'] =
ctads['prefix'] =
ctads['code'] =
ctads['avatar'] =
ctads['nickname'] =
ctads['chosepost'] =
ctads['template'] =

Asterix_ita
07-13-2010, 04:28 PM
I'm sorry I uploaded the test file and not the other, trying to re-download link (https://vborg.vbsupport.ru/attachment.php?attachmentid=119598&d=1279042055)

Shadown
07-13-2010, 05:05 PM
Now it is working. :)

http://www.consoleforums.net/showthread.php?8921-Custom-IOS-Installer-ongelma

Thanks!

Asterix_ita
07-13-2010, 05:08 PM
thanks for the feedback and sorry for the previous mistake.

7thSENSE
07-20-2010, 07:59 AM
Thanks! Works fine now with 4.0.5. :)

draver
07-20-2010, 01:33 PM
How can i placed the ad not in the middle. I need the ad on the left side.

7thSENSE
07-20-2010, 01:44 PM
Just delete the "<center>" and "</center>" around your code.

Asterix_ita
07-20-2010, 02:00 PM
To template postbit_ads_ct_2th or postbit_legacy_ads_ct_2th

find

<div align="CENTER">
{vb:raw ctads.code}
</div>


replace

<div align="left">
{vb:raw ctads.code}
</div>

Igel1
07-20-2010, 04:59 PM
Hello Asterix_ita,

here are the German translation of "The second post is advertising"

Translation install
To import the translation goes as follows:

Admincp => Languages & Phrases download => Languages / upload => Click on "EITHER upload the XML file from your computer" click Browse and select the translation from => at "Language Override chooses her German => Import => Done

Excuse me but at the first translation, I knew not how I still can only produce the language pack. I switched recently to VB.

bhanuprasad1981
07-20-2010, 05:02 PM
useful mod for me thanks :D

hiker
07-22-2010, 04:17 PM
Has anybody had problems with Firefox addon "adblocker" and your site after adding this mod? I've had member complaints right around the same time I put this in. They can only see the header and footer of my forum site.

hiker
07-22-2010, 04:42 PM
Nevermind. It's Firefox's Adblock Plus that's the problem, and it has nothing to do with this modification.

Asterix_ita
07-22-2010, 05:04 PM
The addon works only on postbits template

ABP blocks another script of your forum, Unfortunately, I unlocked and now can not recover

Bankfodder
08-12-2010, 07:44 AM
Nice addon. Thanks.

Here are some requests:-

Be nice also to be able to exclude or include viewers by post count
Be nice to configure several ads so that different ads could be presented to different categories of viewer.
Be nice to be able to have a quick activate/deactivate button
Be nice to be able to have a global check on/off of excluded/included usergroups
Be very nice to be able to produce random ads which change on each page refresh

Asterix_ita
08-16-2010, 03:25 PM
Be nice also to be able to exclude or include viewers by post count

you can 'get it through the option excluded usergroups


Be nice to configure several ads so that different ads could be presented to different categories of viewer.

the addon is not a manager ads but a container for ads

Be nice to be able to have a quick activate/deactivate button

option is not present in dell'addon settings, but I think it is more correct to disable the plugin directly from plugins and products

Be nice to be able to have a global check on/off of excluded/included usergroups

sorry I do not understand the request, the options will immediately see which groups are excluded and therefore no such

Be very nice to be able to produce random ads which change on each page refresh

as mentioned earlier is not a manager Ads

Bankfodder
08-16-2010, 03:44 PM
Thanks.

In that case it would be nice if it could be a manager for ads as well.

najaru
08-20-2010, 11:36 AM
installed. but dont work in cielo skin of skinbox :(

Asterix_ita
08-21-2010, 05:31 PM
I ran tests on new installations and upgrades Forums 4.0.6. ok.

Verify the presence of two templates ads, other controls do if the plugins are active.

Wayne@R32oc
08-24-2010, 01:41 PM
hi. Good mod thank you. Ive installed it. :

ChaFF
08-26-2010, 06:19 PM
Great job. Thanks a lot.
Would be cool to add options post different ads for different forums. And also to have control of what group can be excluded from seing adverts, for example subsribed users, or premium users (or those who have 1000 posts on forum, etc)

BlueCheri
08-28-2010, 11:51 AM
Very nice, installed.

Thanx.

sticky
09-21-2010, 10:41 AM
Is it possible to have different forums show different ads?

For example, sub forum 1 shows only ad 1 in second post.

Sub forum 2 shows only ad 2 in second post.

This would make it easy for vendors to sponsor certain sections to show additional banners.

Asterix_ita
09-24-2010, 07:45 AM
since version 2.0.5 you can use a second circuit Ads in certain forums

jojojijijojo1
09-29-2010, 02:56 PM
After installing this mod on my vbulletin 4.0.5 all my forum threads and posts were mass moved to the my first forum "News and announcement", how is that possible? I had to restore the database to fix the problem.

Asterix_ita
09-29-2010, 04:04 PM
I'm sorry but I honestly can not imagine how this could have happened I do not perform any write if not for the options in the admin panel in the table settings.

This mod creates two templates and powers of the variables through simple if.

Are you sure you did not run other operations?

TheLastSuperman
09-29-2010, 04:13 PM
Wow!

I searched and searched and searched not too long ago under many keywords and never found this, I coded up my own so it's slightly different, feel free to check it out Asterix and utilize any part of it ;).

https://vborg.vbsupport.ru/showthread.php?t=249274

icona
10-29-2010, 08:21 AM
perfect on vb4.0.8

mark installed + 5 stars ;)


ico

sadiq6210
10-29-2010, 09:47 AM
Aweeeeeeeeesome =) Thanks

Installed & 5 stars

Popa Andrei
11-23-2010, 03:41 PM
i have after the first post the normal add but after the second post another post from the plugin but without the ad.

Asterix_ita
11-23-2010, 06:14 PM
hello

You tried to insert a simple text and see if it appears.

your code is adsense

adamenty
12-28-2010, 04:41 AM
Not working for me

http://screensnapr.com/v/vjni82.jpg

Asterix_ita
12-28-2010, 01:02 PM
I read your pm and unfortunately I do not know the circuit BidVertiser, if it is the simple html code you should not experience problems.

I understand how you compiled the addon options, you can attach a stamp obscuring the customer code BidVertiser

thanks

VAG
01-02-2011, 08:43 PM
How can I enter text in the header of the post ? Something like: Please register to remove these ads.

Thanks for your help.

Asterix_ita
01-03-2011, 06:42 AM
you can edit the template postbit_legacy_ads_ct_2th or postbit_ads_ct_2th

for eg.

find

<span class="nodecontrols">
<span class="postcounter"> # ADS</span>
</span>


add before

your text.

fabioski
01-03-2011, 06:18 PM
Does it work for the 4-1-0 version?

demonfatal
01-03-2011, 09:18 PM
Does it work for the 4-1-0 version?

Better to test it to know ;)

tanand79
01-14-2011, 12:43 PM
i want this one for vb 3.8...

Asterix_ita
01-15-2011, 02:35 PM
@Tanand79

version for vb 3.8.X : The second post is advertising

remember to mark as installed

altafali
01-15-2011, 05:52 PM
Does it work for the 4-1-1 version?

rob01
01-15-2011, 11:49 PM
it dosnt work for vb 4.1.1 right?

john h
01-16-2011, 01:53 AM
working on 4.1.1

rob01
01-16-2011, 02:02 AM
is possible to add a user title to the bot?

and change the past date ( Thu 12/02/2010, 10:56 PM) to example: this is a ads post or something like this?

Asterix_ita
01-17-2011, 03:56 PM
is possible to add a user title to the bot?


there is already: Circuit advertisement , the title is managed by the phrase ct_ads_usertitle


and change the past date ( Thu 12/02/2010, 10:56 PM) to example: this is a ads post or something like this

it should not lead to many changes to the code, I check

it dosnt work for vb 4.1.1 right?

work fine

caciocode
01-19-2011, 01:49 AM
Tagged...

depalaza
02-18-2011, 01:50 AM
i have several bug i think

when i activated this mods i can't use inline mod like select all and deselect all the post after the ads didn't glow but the check box already checked

Asterix_ita
02-18-2011, 08:53 AM
fix template, remember to mark as install

http://www.youtube.com/watch?v=bIeY9uUZAUw

thanks

depalaza
02-18-2011, 09:06 AM
Still same to my forum using Vb 4.1.1

Asterix_ita
02-18-2011, 10:33 AM
the test on the video is on a vb 4.1.1.

do you use the postbit or postbit_legacy template?
do you have tried uninstalling and reinstalling the addon?

depalaza
02-19-2011, 12:00 AM
sorry about that
i have a mistake from the previos version i changed the posbit_legacy_ads_ct_2th templates and that make some error

Fixed and Nice Addons :D

Installed

Alecsmith
02-19-2011, 03:13 AM
Installed working perfectly on VB 4.1.2 :)

Voted + Click installed and nominated :)

GONUMBER6
02-21-2011, 10:09 PM
Works perfectly- great mod.

digitaldome
02-24-2011, 07:34 AM
i can't see the menu in my adminCP :(


i'm using vb 4.1.1
the template working fine only can't see the menu in my admincp

Asterix_ita
02-24-2011, 12:51 PM
hello

do you have uploaded the file cpnav_ads_ct.xml ?

digitaldome
02-25-2011, 09:23 AM
yes. already upload the file , i try so many time uninstall and installl but still the same. is the conflit with other mod ?

Asterix_ita
02-25-2011, 12:11 PM
Sorry

the file path is not \includes but \ includes\xml

digitaldome
02-25-2011, 12:36 PM
thanks..working fine now

lodos0677
02-25-2011, 07:32 PM
İnstalled.Thank you.

axix20xx
03-02-2011, 05:19 AM
thanks for update by the way how can i put 2 ads with 2 different links that randomly change when user refresh the pages
thanx

Asterix_ita
03-02-2011, 06:42 AM
I'm sorry, the requirements is not provided in the addon.

Ravitejag
03-04-2011, 11:16 AM
Hello

I've installed the mod and it works fine

I wanted to know if there is a way to edit the join date, no. of posts etc.
And also is it possible that when we click on the username of the second post it gets directed to a desired thread.

Hope you understood what I am trying to express

Regards

seajay
03-04-2011, 12:13 PM
tagged tyvm

Asterix_ita
03-04-2011, 12:21 PM
Hi

some values are phrases, others you have to change the template postbit_ads_ct_2th or
postbit_legacy_ads_ct_2th

And also is it possible that when we click on the username of the second post it gets directed to a desired thread.

you have to change the template.

i remember you to Click Mark as Installed.

:bai

DigitalDark
03-26-2011, 12:45 PM
Hi! First of all, thanks for this great mod!

I've a question. It's possible to change the localitation of the ads post?

I would like to change before the 1st Post instead after 1st post.
It's possible? What code I've to change?

Thank you!

Thanks

BadgerDog
03-27-2011, 01:02 PM
Installed with thanks for testing on 4.04 ... :)

Regards,
Doug

BadgerDog
03-27-2011, 01:14 PM
Un-installed .... :down:

Doesn't handle usergroup exclusion well ....

Should just key on Primary UserGroup for exclusions, but instead excludes any usergroup checked. So, if a forum uses secondary user groups for any purpose, makes the option to choose excluded usergroups in this mod not functional ...

Fix the above problem and we could use it... appreciate the effort to write this .. :up:

Regards,
Doug

Asterix_ita
03-28-2011, 12:04 PM
from my point of view is correct to not distinguish between primary and secondary groups

If I decide that the components of the group “A” are excluded, they must be excluded independent primary or secondary group

Regards
Asterix

BadgerDog
03-28-2011, 12:18 PM
from my point of view is correct to not distinguish between primary and secondary groups

If I decide that the components of the group “A” are excluded, they must be excluded independent primary or secondary group

Regards
Asterix

Could be, but in our opinion and the way most add-mods that we currently use treat UserGroup inclusion or exclusion, is when you select a group to exclude, it should not also require the us to select ALL other secondary groups that may be involved. The one selection should suffice.

For example, I want to exclude Admins, but with this mod, unless I also exclude other secondary UserGroups that Admins belong to, then the result of just excluding anyone belonging to the single Admin usergroup on its own is pointless and it doesn't work because the mod wants ALL of them checked or unchecked. ;)

Many sites use secondary usergroups to identify things like contributing members etc, so their use that way conflicts with how this mod is coded.

Anyway, again... nice effort on behalf of the coder and we appreciate his work, but for us it won't work without a more traditional approach to handling user group exclusions.

Regards,
Doug

Asterix_ita
03-28-2011, 12:55 PM
Hello

maybe I did not understand the problem, due to my bad English

it should not also require the us to select ALL other secondary groups that may be involved

does not require the selection of others.

I have excluded the admin group.
my account have as primary group admin
as secondary staff (not excluded)

and the ads do not see


I have change excluded staff group
my account have as primary group admin (not excluded)
as secondary staff

and the ads do not see it properly


the instruction I used to check the group is as follows:

if (is_member_of($this->registry->userinfo,$ctads['groups'])) {

I feel the same used in other addon, I can signal an addon that verifies


thanks

BadgerDog
03-28-2011, 01:47 PM
I have excluded the admin group.
my account have as primary group admin
as secondary staff (not excluded)

and the ads do not see


My apologies as I only speak English, but let's try this ...

You have an option that says:

Select the Usergroup to be excluded from ads second post.

If I check ALL the boxes but NOT the one that says Administrator, then according to your option, the Administrator group ONLY should be able to view the ads.

On our site, any member who belongs to the group Administrator DOES NOT SEE ads. They do not see ads because an Administrator on our site also belongs to other user groups as well, which are checked. So, because those other user groups are checked and kind of process logic you're using, it just doesn't work for us...

Thanks for your efforts ... :)

Rergards,
Doug

Asterix_ita
03-28-2011, 02:11 PM
If I check ALL the boxes but NOT the one that says Administrator, then according to your option, the Administrator group ONLY should be able to view the ads.

certainly, if the administrator is not covered by other groups with the restriction, the addon follow the stricter rules

in your case probably should create a group no-ads, exclude this, and assigned to admin the secondary group no-ads

BadgerDog
03-28-2011, 02:28 PM
in your case probably should create a group no-ads, exclude this, and assigned to admin the secondary group no-ads

It would be easier to have the check box group option changed to be:

Select the Usergroup to be INCLUDED (permitted) to view ads second post.

Then, only members belonging to whatever usergroup is checked would see the ads.

Solves the problem for us ... ;)

Regards,
Doug

Asterix_ita
03-28-2011, 03:55 PM
hi
should be sufficient to make this

admincp ->Plugins & Products ->Plugin Manager search Second Post ADS (press edit)

seach this code


if (is_member_of($this->registry->userinfo,$ctads['groups']))
{
$ctads['ok'] = false;
}


change to


if (!is_member_of($this->registry->userinfo,$ctads['groups']))
{
$ctads['ok'] = false;
}


Search this phrase

$vbphrase[setting_ads_ct_groups_title] on english traslate set: Select the Usergroup to be INCLUDED (permitted)
$vbphrase[setting_ads_ct_groups_desc] on english traslate set: only groups check show the second post ads

let me know if it works

Regards,

Asterix

DigitalDark
03-28-2011, 04:58 PM
Hi! First of all, thanks for this great mod!

I've a question. It's possible to change the situation of the ads post?

I would like to change before the 1st Post instead after 1st post.
It's possible? What code I've to change?

Thank you!

Thanks

Any one? Thank you

Asterix_ita
03-28-2011, 05:13 PM
hi

I checked quickly, your request requires the variation of one plugin and one or two template

admincp ->Plugins & Products ->Plugin Manager search Second Post ADS (press edit)

seach this code

if ($ctads['ok'] && $ctads['template'] == 0)
{
$templater = vB_Template::create('postbit_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$template_hook['postbit_end'] .= $templater->render();
}
if ($ctads['ok'] && $ctads['template'] == 1)
{
$templater = vB_Template::create('postbit_legacy_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$template_hook['postbit_end'] .= $templater->render();
}

replace with
if ($ctads['ok'] && $ctads['template'] == 0)
{
$templater = vB_Template::create('postbit_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$ctads['template'] .= $templater->render();
}
if ($ctads['ok'] && $ctads['template'] == 1)
{
$templater = vB_Template::create('postbit_legacy_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$ctads['template'] .= $templater->render();
}

vB_Template::preRegister('postbit',array('ctads' => $ctads));
vB_Template::preRegister('postbit_legacy',array('c tads' => $ctads));

Search postbit or postbit_legacy template and add on top this {vb:raw ctads.template}

I have not tested but should work

Regards
Asterix

DigitalDark
03-28-2011, 05:21 PM
Nice, nice nice!! Worked.

This will help a lot, because the human eye looks first at the first content in the screen.

Thank you!

PD: It's appearing "0 0 0" before the ads

example (http://www.emudigital.net/foro/presentaciones-y-despedidas/27630-nadie-me-conoce-xd.html)

BadgerDog
03-28-2011, 06:08 PM
let me know if it works

Regards,

Asterix

Worked perfect .... :up:

Ads ONLY appear for selected usergroup membership.

Thank you very much for the customization ....

Can I assume the Forum Exclude can be reversed in a similar way?

Regards,
Doug

Asterix_ita
03-28-2011, 06:30 PM
Can I assume the Forum Exclude can be reversed in a similar way?


Yes, it is similar.

Asterix_ita
03-28-2011, 07:06 PM
@Digital

sorry my mistake, try this

admincp ->Plugins & Products ->Plugin Manager search Second Post ADS (press edit)

seach this code

if ($ctads['ok'] && $ctads['template'] == 0)
{
$templater = vB_Template::create('postbit_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$template_hook['postbit_end'] .= $templater->render();
}
if ($ctads['ok'] && $ctads['template'] == 1)
{
$templater = vB_Template::create('postbit_legacy_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$template_hook['postbit_end'] .= $templater->render();
}

replace with
if ($ctads['ok'] && $ctads['template'] == 0)
{
$templater = vB_Template::create('postbit_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$ctads['template1'] = $templater->render();
}
if ($ctads['ok'] && $ctads['template'] == 1)
{
$templater = vB_Template::create('postbit_legacy_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$ctads['template1'] = $templater->render();
}

vB_Template::preRegister('postbit',array('ctads' => $ctads));
vB_Template::preRegister('postbit_legacy',array('c tads' => $ctads));

Search postbit or postbit_legacy template and add on top this {vb:raw ctads.template1}

BadgerDog
03-29-2011, 10:21 AM
Yes, it is similar.

Thanks .. :)

So, I changed this:

if (in_array($thread['forumid'],$ctads['forums']))
{
$ctads['ok'] = false;
}

to this:

if (!in_array($thread['forumid'],$ctads['forums']))
{
$ctads['ok'] = false;
}

... which should make the mod only INCLUDE any forums checked in either place?

Thanks ..

Regards,
Doug

Asterix_ita
03-29-2011, 10:52 AM
the change applied says: in all forums that are not reported here denies viewing

I sincerely leave ads in all forums and select the excluded, that variable should act on the second ads.

Warning:

All the plugin code is linked and changing one part may create problems in other options

BadgerDog
04-17-2011, 04:03 PM
Here's an odd request, but feedback with advice from anyone would be appreciated ... :up:

If I wanted to execute the following conditional so that this excellent mod ONLY displayed the ads on the second post under those conditions specified, where in the plugins would I put it? I've tried everywhere including the template and it always seems to still interact with the mod's own settings, or prevents elements of the postbit_legacy bottom bar from displaying properly.

<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,13,17) || in_array($bbuserinfo['userid'],array(2,5539))">

Execute Ads in Second Post Mod

</vb:if>

Would appreciate any advice ... :)

Regards,
Doug

Asterix_ita
04-18-2011, 04:47 AM
Hi

you could try changing the plugin "Second Post ADS, in it there are all conditions

or set no exclusion in the options plugin and act in templates postbit_legacy_ads_ct_2th or postbit_ads_ct_2th

Regards

Asterix

BadgerDog
04-18-2011, 09:47 AM
Hi

you could try changing the plugin "Second Post ADS, in it there are all conditions

or set no exclusion in the options plugin and act in templates postbit_legacy_ads_ct_2th or postbit_ads_ct_2th

Regards

Asterix

Thank you Sir .. :)

I did try all those without any success.....

I have added a new usergroup which combined with the customization for "including" usergroups you kindly gave me earlier, I think will work. Still have to test it though.

Nice mod.... do you do paid customization work on this for a fee?

Regards,
Doug

Ricsca
04-23-2011, 09:50 AM
How can you place the ad under the first post and sottol'ultimo post?

Asterix_ita
04-24-2011, 05:41 AM
Hi Ricsca

should be sufficient to change the template or postbit_ads_ct_2th postbit_legacy_ads_ct_2th

find

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">

Replace with

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1 || $post[islastshown]">

let me know

Regards

Asterix

sticky
07-10-2011, 04:18 AM
Can I have different ads in different forums for the second post?

For example, forum A has ad X as second post and forum B has ad Y as second post?

Asterix_ita
07-10-2011, 11:58 AM
Sorry but the request requires a completely different structure, at the moment you can only have two ads.

maneri
07-11-2011, 08:33 PM
Hi Asterix:

First, thanks for the mod.

I would like to set $post[islastshown] as in post 139, is it posible to show $post[islastshown] just in case of thread with more than 5 replies ?

I mean, I do not want a thread with just 3 answers and 2 ads, I would like to set the minimum of 5 answers in order the last ad, included in $post[islastshown], to be shown.

Grazie!

Asterix_ita
07-19-2011, 05:17 PM
Hi

change template postbit or postbit_legacy

find:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">

replace with:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1 || ($post[postcount] % $vboptions[maxposts] >= 5 AND $post[islastshown])">

for Italian users is possible see other options here (http://www.collectiontricks.it/forum/webmania/Ct3409-addon-second-post-advertising-modifiche-applicabili.html)

regards

paolpepas
07-23-2011, 06:49 AM
Hello, I added ADS so long time in some sections.
Now I would like to place an ADS in a new section, keeping even the old ADS.
It's possible?

If I set “yes” in the “Activate the second Ads”
The old ads will disappear and only see the new.
Thank’s

I use the version 2.0.6

Asterix_ita
07-23-2011, 06:59 AM
you can only see one AD for section, you can choose between two scripts, but only one is visible

paolpepas
07-23-2011, 07:35 AM
you can only see one AD for section, you can choose between two scripts, but only one is visible


Ok thank's ;)

maneri
07-25-2011, 10:13 AM
find:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">

replace with:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1 || ($post[postcount] % $vboptions[maxposts] >= 5 AND $post[islastshown])">


Hi Asterix_ita,

Thanks so much for your answer!

RedPoint
07-26-2011, 06:16 AM
Hi and thanks for the wonderfull mod.
I use for all my sites a central adserver, the OpenX and this mod dont show the openX banners, the code from openX is:

<script type='text/javascript'><!--// <![CDATA[
OA_show(5);
// ]]> --></script>

Any idea for this possibility to run openX banners in this mod?

Asterix_ita
07-26-2011, 10:38 AM
I do not know the circuit and I can not do the tests

I suggest trying the following code


<script type='text/javascript'>
OA_show(5);
</script>

Taurus1
07-26-2011, 01:46 PM
Awesome mod! Thank you very much. I would like to remove the following parts please:

131402

Is it possible?

Thank you!

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!

131403

RedPoint
07-26-2011, 02:20 PM
I do not know the circuit and I can not do the tests

I suggest trying the following code


<script type='text/javascript'>
OA_show(5);
</script>


dont work for me :(

Asterix_ita
07-26-2011, 04:33 PM
I'm sorry but I do not know the circuit, I could return the entire code that currently uses to insert the ads in vbulletin

In this way I can try to my test vbulletin

Thanks

MalluParadise
10-23-2011, 11:38 PM
is this working in 4.1.7 ?

sticky
10-24-2011, 07:03 AM
This really is a great mod. The only thing missing is the ability to have a different second post add in every forum.

For example, Add X in Forum X. Add Y in Forum Y. Add Z in Forum Z.

sticky
10-24-2011, 07:09 AM
Does not work right with 4.1.7... needs to be updated.

Asterix_ita
10-24-2011, 03:03 PM
On my test forum the addon works fine with vbulletin 4.1.7

Regards

sticky
10-24-2011, 11:16 PM
On my test forum the addon works fine with vbulletin 4.1.7

Regards
Then looks like I have a conflict with another mod, wish I knew what it was.

Iquote for example doesn't work for me with it...

Asterix_ita
10-25-2011, 05:58 AM
Iquote for example doesn't work for me with it...

I have seen no conflicts with other mods, but so are many
you can try to disable or remove my addon and see if iquote works on 4.1.7

regards

sticky
10-25-2011, 08:12 AM
I have seen no conflicts with other mods, but so are many
you can try to disable or remove my addon and see if iquote works on 4.1.7

regards
Yes, once I disabled this mod everything worked as it should.

prado.boris
11-13-2011, 07:31 PM
Great Plugin!!

I have some questions

1. Can you change the avater for a ad?

2. Any advise of how to add the ad to the last post?

You can see the example of what i need to do in this url: http://anabolicminds.com/forum/supplements/186612-daa-erase-anabeta.html

Look the second and last post (the avatar is a ad)

Asterix_ita
11-14-2011, 04:57 PM
hi

Can you change the avater for a ad?

there is avatar field, but it applies to all ads

Any advise of how to add the ad to the last post?

watch: https://vborg.vbsupport.ru/showpost.php?p=2222494&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
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!

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:


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

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

change to

<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
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.php?p=2285246&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

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

replace width

<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.php?p=2334788&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

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

change to

<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
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
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 ?

SWSUSA
12-31-2012, 11:58 AM
Can you help here (https://vborg.vbsupport.ru/showthread.php?p=2393763#post2393763)?

hugh_
03-02-2013, 11:10 AM
Asterix,

I love this mod but on my board it conflicts with DBTECH's Ajax threads whereby it tries to display the ads after each dynamic post (although fails and just displays an empty post which disappears with a real page reload).

Is this something you could look into?

https://vborg.vbsupport.ru/showthread.php?t=271205

Internetcafe
03-02-2013, 04:17 PM
How can I change the "Circuit advertisement" shown on every ad ?

Asterix_ita
03-02-2013, 04:55 PM
the written Circuit advertisement is a phrase.

to change it you have to go on phrases management and search it.

:bai

Asterix_ita
03-02-2013, 04:57 PM
Asterix,

I love this mod but on my board it conflicts with DBTECH's Ajax threads

I have to check and reproduce the event to understand how to solve

Internetcafe
03-02-2013, 05:21 PM
the written Circuit advertisement is a phrase.

to change it you have to go on phrases management and search it.

:bai

Thanks for the quick response .. found it :up:

hugh_
03-03-2013, 12:06 AM
I have to check and reproduce the event to understand how to solve

Thank you!

Asterix_ita
03-05-2013, 11:47 AM
@hugh

Hello

test with this version

you also need to change the template manually

open postbit or postbit_legacy

find

{vb:raw template_hook.postbit_end}

add first

{vb:raw ct_ads_adv}

await your feedback

Regards

hugh_
03-06-2013, 07:42 AM
That seems to have worked, thank you!

imported_stefan
03-28-2013, 02:27 PM
Please I want to use this only for the mobile area. Is that possible?
Show only for the mobile template.

Thank you so much for answering.

Asterix_ita
03-30-2013, 08:54 AM
Hi imported_stefan

you can try with this version https://vborg.vbsupport.ru/showpost.php?p=2408024&postcount=208

you put this {vb:raw ct_ads_adv} only mobile template

regards

thang28101993
04-09-2013, 05:12 AM
Great Mod! It is working for my forum VBB v4.2 Pl3

BUDIMAN
04-27-2013, 08:08 AM
The Best Mod !! Installed VB 4.2.1

mradlin
05-11-2013, 01:54 PM
Installed!!
Thanks

Taurus1
05-26-2013, 11:17 AM
After upgrading to latest version nothing is showing. Please advise!

Paolitus
06-05-2013, 01:03 PM
Installed..!!
I want center the avatar...is possibile..??
Ciao
grazie

fxdigi-cash
06-06-2013, 06:58 PM
Installed..!!
I want center the avatar...is possibile..??
Ciao
grazie


which avatar are you referring to? can post a link to what you mean because I'm not sure which div you should add some css style to ...

Asterix_ita
06-11-2013, 10:25 AM
You can edit postbit_ads_ct_2th or postbit_legacy_ads_ct_2th.
the two templates are similar to those of standard vb, so if you have centered the avatar in the standard templates should also report your changes to those used by me

regards

kandhro
08-22-2013, 09:42 PM
Great mod
working fine
marked as installed
also nominated for NOM

thanks for the Great mod

tanzeelniazi
10-03-2013, 09:43 PM
I install but have a problem my ads are not showing :( help please

tanzeelniazi
10-03-2013, 09:43 PM
Still see a ads block but empty ads are not showing

Asterix_ita
10-05-2013, 05:39 AM
Use adsense as circuit

what code do you use?

celisto
11-15-2013, 10:04 AM
does the addon just changes the template-hooks or will it make a "hard-posting" with the advertisement to the database?

im asking because i want to show advertisement-postings also to tapatalk users, therefore the advertisement-postings needed to be a "normal" reply...

Asterix_ita
11-15-2013, 01:59 PM
nothing will be recorded in the database, you do not see in tapatalk.

regards

carsafety
04-24-2014, 07:13 PM
Upgraded my 3.8.7 forum to 4.2.2.

Upgraded/Overwrite CT Second Post ads plugin. No other plugins active except for Skimlinks.

Using Default style with minimal edits.

Copied settings from CT Second Post Ads on 3.8.7.

Ads only appear in linear display mode. They do not appear in hybrid or threaded display modes like they did in 3.8.7.

Uninstalled. Re-installed. Copied settings. Same issue, only works in Linear Mode Display.

Any ideas how to fix to make it work in ALL Display modes like it did in 3.8.7?

Asterix_ita
04-25-2014, 03:10 PM
hi carsafety

go to template postbit_legacy_ads_ct_2th or postbit_ads_ct_2th

find

<vb:if condition="!$GLOBALS['FIRSTPOSTID'] AND THIS_SCRIPT != 'private'"> (first line)

and replace with

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">

regard

carsafety
04-25-2014, 04:10 PM
Seems to be working now, thank you very much for the quick support! That placement is one of my best ones so getting it to work in all modes is great.

carsafety
04-29-2014, 08:07 PM
How do you adjust the width of the left column for the Avatar Where it says "circuit advertisement". I can't seem to find a width setting in the template or stylevars css area. I would like to make it narrower like the one in your mod for 3.8.7.

biftek
04-30-2014, 02:16 AM
getting the ads showing up as every 2nd post , have tried changing the settings and looking at the threads , trying to make it show 2nd post on the page not every 2nd post

winky8300
04-30-2014, 02:39 PM
hello
thank you for this mod
I have a problem with this mode there is no time, some subjects can not be deleted, you must disable the mod to remove them.
do you have a solution please

Asterix_ita
05-03-2014, 05:16 AM
@carsafety
I used the same style var of template vbulletin, if vbulletin does not provide this option you can not do what is required. The template are not independent.

@winky8300
for delete delete graphical objects you can delete code from template postbit_legacy_ads_ct_2th or postbit_ads_ct_2th

winky8300
05-03-2014, 05:19 PM
@carsafety
I used the same style var of template vbulletin, if vbulletin does not provide this option you can not do what is required. The template are not independent.

@winky8300
for delete delete graphical objects you can delete code from template postbit_legacy_ads_ct_2th or postbit_ads_ct_2th

hello
thank you for your reply, but I did not understand what I have deleted from the template.
a further explanation please

digitaldome
06-04-2014, 04:26 AM
after upgrade to 2.0.9 , i can't see ads second post option in my vb admin. please help. i'm using vb 4.2.0

Asterix_ita
06-06-2014, 04:30 AM
@digitaldome

If you had 2.08 before you can reinstall that, the changes are minimal. I check the code of 2:09
I use 2.09 on vb. 4.2.1 and it works fine

regards

digitaldome
06-06-2014, 11:04 AM
@digitaldome


If you had 2.08 before you can reinstall that, the changes are minimal. I check the code of 2:09
I use 2.09 on vb. 4.2.1 and it works fine


regards

i got this msg when try to reinstall 2.0.8

The following dependencies were not met:

This product is not compatible with version 4.2.0 of vBulletin. (Compatible starting with 4.0.0 / Incompatible with 4.2.00 and greater)

Asterix_ita
06-08-2014, 06:08 PM
You can open the xml file and change the maxversion

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

Regards