vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

RedTyger 12-14-2007 12:46 PM

The method for adding a column was changed in this version to speed it up slightly. Open up global_start.php.

FIND:
Code:

                                                $spacer_open = '<table width="'.$stylevar['outertablewidth'].'" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td valign="top">'.$spacer_open;
                                                // Legacy column insertion. If you're having trouble adding your column in the right place, comment out the line
                                                // above (add // in front of it), uncomment the 2 lines below and change '$spacer_open' to something else in your header template to do a search-and-add on.
                                                // $rc_str_replace = '<table width="'.$stylevar['outertablewidth'].'" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td valign="top">';
                                                // $vbulletin->templatecache['header'] = str_replace('$spacer_open', $vbulletin->db->escape_string($rc_str_replace).'$spacer_open', $vbulletin->templatecache['header']);

REPLACE WITH:
Code:

                                                // $spacer_open = '<table width="'.$stylevar['outertablewidth'].'" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td valign="top">'.$spacer_open;
                                                // Legacy column insertion. If you're having trouble adding your column in the right place, comment out the line
                                                // above (add // in front of it), uncomment the 2 lines below and change '$spacer_open' to something else in your header template to do a search-and-add on.
                                                $rc_str_replace = '<table width="'.$stylevar['outertablewidth'].'" border="0" cellpadding="0" cellspacing="0" align="center"><tr><td valign="top">';
                                                $vbulletin->templatecache['header'] = str_replace('$spacer_open', $vbulletin->db->escape_string($rc_str_replace).'$spacer_open', $vbulletin->templatecache['header']);


That should just put it back the way it was before, I don't recall changing what I replaced.

tekguru 12-14-2007 01:07 PM

My thanks that has fixed it nicely :)

netcommander 12-14-2007 01:14 PM

Quote:

Originally Posted by RedTyger (Post 1400847)
Unfortunately I can only understand English. :( I'm not sure a translation would be enough, but if anyone gets it in English I'll deal with it.

I will add new atachment for you

error code is invalid character if I've close adsense everything is good I dont see error message ? how can I do.?

bjpembo 12-14-2007 02:06 PM

Quote:

Originally Posted by Howell
Just installed 4.02 and i'm now getting the following at the top of my showthread.php pages???

Warning: mt_rand() expects parameter 2 to be long, string given in /includes/vb_ad_management/functions_vb_ad_management.php on line 139
I'm having the same issue, upgraded from 3.14 to 4.02

bjpembo 12-14-2007 03:48 PM

I've tried to search for the answer to this but i havent really found what I'm looking for, only a way to completely remove the link instead of modifying where it points.

right now when you click on the "remove ads" link it directs you to register.php, how do i change it to direct to payments.php? the way my site is set, buying a premium subscription removes the ads, not simply registering.

Thanks for your help.

bjpembo 12-14-2007 03:51 PM

Quote:

Originally Posted by bjpembo (Post 1400995)
I'm having the same issue, upgraded from 3.14 to 4.02

just found that this has something to do with the ad refresh option, i turned that part off and the issue went away.

understyle 12-14-2007 03:57 PM

work perfect but

in admincp say this

Quote:

Warning: Invalid argument supplied for foreach() in /admincp/vb_ad_management.php on line 346
help ?

Slingblade61 12-14-2007 04:11 PM

My admin cp is malfuctioning.

The menu reads like this....

Quote:

vB Ad Management
*[setting_adintegrate_global]*
*[setting_adintegrate_ad_sharing]*
*[setting_adintegrate_headernavbar]*
*[setting_adintegrate_leftright]*
*[setting_adintegrate_postbit]*
*[setting_adintegrate_forumbitthreadbit]*
*[setting_adintegrate_footersponsors]*
*[setting_adintegrate_fullpage]*
*[setting_adintegrate_archive]*
*[setting_adintegrate_custom]*

redlabour 12-14-2007 05:20 PM

Quote:

Originally Posted by redlabour (Post 1400848)
Thats what i did.

See here (Settings are after every 4 Post - before Update it only shows them on the first Page - now not on any Page) :

http://www.politikstube.de/forum/fun...t_haetten.html

Anything new about this Bug ?

Think you have only to check the parts again you edit at last Update for Postbit.

Quote:

Originally Posted by Slingblade61 (Post 1401030)
My admin cp is malfuctioning.

The menu reads like this....

Read the Instructions.:rolleyes:

Slingblade61 12-14-2007 05:40 PM

Quote:

Read the Instructions.
Funny.

I did read them. I uninstalled an earlier version first and followed the install instructions.

Perhaps you could be more specific

never mind...... corrupted upload

Subah 12-14-2007 05:57 PM

Thank you for the update , but where is the screenshots :)

bosal 12-14-2007 05:59 PM

I get this type of error

Quote:

SELECT moderator.userid, moderator.forumid, user.usergroupid, userfield.field20
FROM moderator
SELECT post . * , post.username AS postusername, post.ipaddress AS ip,
IF (
post.visible =2, 1, 0
) AS
the update fix it ? becouse my whole forum is not working becouse of that.
This script has support for memcache ?

redlabour 12-14-2007 08:12 PM

Quote:

Originally Posted by Slingblade61 (Post 1401078)
Funny.

I did read them. I uninstalled an earlier version first and followed the install instructions.

No you did not. You did not Import the Language Product (Yes i agree - a Languagefile via Product is strange! ;) )

jnrdavo 12-14-2007 08:15 PM

ok, all the above is good, but has anybody managed to fix the problem (or advise what I am doing wrong) because all I see is blank menu options for vbadmgt...

Khashayar581 12-14-2007 08:56 PM

good job, installed and work smooth.

lordtopcat 12-14-2007 09:34 PM

Hi there,

I have installed this modification, but none of the ads ever show? Auto insertion or me placing the code in the templates, they don't show. I am using AdSense.

netcommander 12-14-2007 10:04 PM

I've add one image
https://vborg.vbsupport.ru/
https://vborg.vbsupport.ru/
I've use firebug and you will see error code.
what is gif89 ?
intresting
take care
cheers

grahamsmythe 12-14-2007 11:31 PM

Wow - I'm having a complete nightmare trying to get things working properly, and wondered if anyone could help me - because I'm at the end of my know-how!

As I mentioned in a previous post, we tried to install a custom style to our forum in order to get things looking a bit more 'Christmasy', but where everything was working great before, when we installed the new style, vB Ad Management wouldn't show when we selected the new style, although it worked OK when we switched back to the original style.

In order to overcome this problem, we tried completely deleting vB Ad Management and the custom style, and starting from scratch.

We re-installed the new style, and told it the parent style was the one that worked already, so no problems there.

We then installed vB Ad Management again from scratch.

We now have two problems...

1. vB Ad Management STILL doesn't show in the new style!

2. We have four banner ads that should show on our header, and we've got it set to rotate to a new ad after ten seconds, but after ten seconds, instead of a new ad appearing, the active banner just disappears and nothing replaces it.

I've got a very basic understanding of vBulletin, so if you are able to offer me any help, instructions in 'idiot' language would be much appreciated.

xcesiv 12-14-2007 11:31 PM

How do i remove the " Remove advertisements" Link

xcesiv 12-15-2007 12:11 AM

Below is the code i have put into my nav bar section

http://forum.teamillusiv.com
Code:

<img src="http://forum.teamillusiv.com/images/ads/xcesiv_500.gif" /> | $vbphrase[two] <if condition="is_member_of($bbuserinfo, 1,2,3)"> | <img src="#field3#.jpg" /></if>
<img src="http://forum.teamillusiv.com/images/ads/Spoton_500.jpg" /> | $vbphrase[two] <if condition="is_member_of($bbuserinfo, 1,2,3)"> | <img src="#field3#.jpg" /></if>

1) When it refreshes a few times now and then there is no add.

I grabbed the code from the example in the back end. Can someone explain what could the problem be.

Basically all i want is for the add to pick randomly between a few banners. All members, all screens

2) how do i make the banners linkable (A link for each banner).

Sevo 12-15-2007 02:57 AM

First I would like to say great mod...

I have a question about SWF/ flash banners.

First, how do i get them to show up with this mod.

Second, I thought I could just uplaod it to a site and then paste the link but i dont know the proper code to get it to show ie (<img src="one.jpg" />)

any help is appreciated

again thank you for the great mod

StreetTriple 12-15-2007 06:23 AM

i can't upload the leanguage file.... it's "not valid file"... How can i do? My ACP managment isn't translate....

redlabour 12-15-2007 07:34 AM

Quote:

Originally Posted by xcesiv (Post 1401244)
How do i remove the " Remove advertisements" Link

@xcesiv - search for the Phrase and remove the Text. There is no ACP Option to stop it for Usergroups.

@RedTyger - as you can see nobody is happy with this Solution. ;)
Please give us a ACP Function to stop this Link and Ads for certain Usergroups. Then it makes Sense. I read your last Description about this but i am still not understand the sense of your Descision and this Link if is not customisable.

What about the Postbit Bug?

RedTyger 12-15-2007 08:46 AM

Quote:

Originally Posted by netcommander (Post 1401199)
I've add one image
http://img522.imageshack.us/img522/6...7015927ct5.jpg
http://img522.imageshack.us/img522/6...523713f920.jpg
I've use firebug and you will see error code.
what is gif89 ?
intresting
take care
cheers

I see now, thank you. GIF89 is a .gif image. Could you let me know what adcode you are using and in what template please, either on here or by PM. :)

Quote:

Originally Posted by grahamsmythe (Post 1401243)
I've got a very basic understanding of vBulletin, so if you are able to offer me any help, instructions in 'idiot' language would be much appreciated.

PM me an AdminCP login please and I'll have a look.

Quote:

Originally Posted by xcesiv (Post 1401254)
Below is the code i have put into my nav bar section

http://forum.teamillusiv.com
Code:

<img src="http://forum.teamillusiv.com/images/ads/xcesiv_500.gif" /> | $vbphrase[two] <if condition="is_member_of($bbuserinfo, 1,2,3)"> | <img src="#field3#.jpg" /></if>
<img src="http://forum.teamillusiv.com/images/ads/Spoton_500.jpg" /> | $vbphrase[two] <if condition="is_member_of($bbuserinfo, 1,2,3)"> | <img src="#field3#.jpg" /></if>

1) When it refreshes a few times now and then there is no add.

I grabbed the code from the example in the back end. Can someone explain what could the problem be.

Basically all i want is for the add to pick randomly between a few banners. All members, all screens

2) how do i make the banners linkable (A link for each banner).

The example was just that, an example. You shouldn't use it. Try this code instead, I've made the banners into links, just replace http://www.example.com with where you want them to go.

[code]
Code:

<a href="http://www.example.com"><img src="http://forum.teamillusiv.com/images/ads/xcesiv_500.gif" /></a> |
<a href="http://www.example.com"><img src="http://forum.teamillusiv.com/images/ads/Spoton_500.jpg" /></a>

Quote:

Originally Posted by StreetTriple (Post 1401353)
i can't upload the leanguage file.... it's "not valid file"... How can i do? My ACP managment isn't translate....

What is the exact error message? If it needs translating into English I'd be grateful if you could have a go. :)

Quote:

Originally Posted by redlabour (Post 1401386)
What about the Postbit Bug?

I'm waiting for other reports at the moment to confirm it's a widespread bug. That nobody else has reported it yet makes me wonder if it is a vBSEO bug or specific to your forum somehow. I haven't forgotten you. :)

bosal 12-15-2007 09:40 AM

What about my error ?

maroceve 12-15-2007 10:29 AM

Just installed 4.02 and i'm now getting the following at the top of my showthread.php pages???

Warning: mt_rand() expects parameter 2 to be long, string given in /includes/vb_ad_management/functions_vb_ad_management.php on line 139

same bug ..any ideas ?

RedTyger 12-15-2007 11:16 AM

Quote:

Originally Posted by bosal (Post 1401446)
What about my error ?

I'll need the full error message, not half of it.

bosal 12-15-2007 11:52 AM

It's not so simpe, i try. The thing is i have a RL big forum: http://forum.tibia.pl And it uses memceche (i'm turning this in config.php file of vB). This thing is caching all querys in RAM. Normally query is readed directly from Database.

When i'm turning Ad Managment, the whole forum stops, becouse whole database locks itself.

StreetTriple 12-15-2007 01:35 PM

the error is .... ACP NOT TRANSLATION!
see this image ...

https://vborg.vbsupport.ru/

Howell 12-15-2007 02:09 PM

Quote:

Originally Posted by Howell (Post 1400658)
Just installed 4.02 and i'm now getting the following at the top of my showthread.php pages???

Warning: mt_rand() expects parameter 2 to be long, string given in /includes/vb_ad_management/functions_vb_ad_management.php on line 139

I have disabled the postbit adverts for the time being. :)

I have set the Postbit advertisement refresh function to Disabled and the error has now gone. Worth looking into RedTyger. ;)

RedTyger 12-15-2007 02:35 PM

Quote:

Originally Posted by bosal (Post 1401490)
It's not so simpe, i try. The thing is i have a RL big forum: http://forum.tibia.pl And it uses memceche (i'm turning this in config.php file of vB). This thing is caching all querys in RAM. Normally query is readed directly from Database.

When i'm turning Ad Managment, the whole forum stops, becouse whole database locks itself.

It's not a case of all pages appearing blank is it? Otherwise, I just need the full text of the error. I have no idea if it causes memcaching problems as I don't have any way of testing it, but I can at least see if it is an error with the query itself.

Quote:

Originally Posted by StreetTriple (Post 1401536)
the error is .... ACP NOT TRANSLATION!
see this image ...

http://img252.imageshack.us/img252/756/acpaw5.jpg

You have not uploaded the language product.

Quote:

Originally Posted by Howell (Post 1401550)
I have set the Postbit advertisement refresh function to Disabled and the error has now gone. Worth looking into RedTyger. ;)

Will do.

netcommander 12-15-2007 03:43 PM

RedTyger I've sent a pm could you look me my board

StreetTriple 12-15-2007 05:06 PM

the lenguage product isn't valid....

maroceve 12-15-2007 06:02 PM

REdtyger, I have that Blank Page problem.

http://www.maroceve.com/index.php?page=nightlife

Please let me know if you have a fix.

Sevo 12-15-2007 07:23 PM

any one able to help me on inserting the flash banners?

i just need the code, not sure how to get it to work

thanks

jnrdavo 12-15-2007 08:51 PM

Hey RedTyger, I've asked a couple of times now, but haven't seemed to get a reply, except for you asking for a login etc...I've PM'd you twice as requested.

Is there a fix for the problem I am experiencing. I am getting a blank screen when I click on the menu options when uinsg 4.01 or 4.02... I have uploaded the language file.

Please, if ANYBODY knows a solution, it would be greatly appreciated.

maroceve 12-15-2007 11:08 PM

it seems like a lot of us are getting blank screens.

Sandy-XXX 12-16-2007 03:26 AM

Quote:

With this new version I can add different ads, ?how?

Example, In my forum I have a xxx zone. I want xxx advertisement on xxx forums, and normal advertisement on the other forums.
Quote:

Originally Posted by RedTyger (Post 1394539)
1) You can use template conditionals, there's a bit about what they are and how they work here. In your case, your adcode would look like this:

Code:

<if condition="in_array($forum, array(1,2,3)">
xxx adverts go here
<else />
all other ads go here
</if>

Just change 1,2,3 to the forum IDs of your xxx forums. You can add or take away as many as you like.


Hi,

I try this code today and dont work.

I use this in the Postbit adcode:

Code:

<if condition="in_array($forum, array(3,37,22,23,24,25,38,26,43,44,45,46))">
xxx add 1|
xxx add 2|
xxx add 3|
xxx add 4
<else />
normal add 1|
normal add 2|
normal add 3
</if>

And this in the Header adcode:

Code:

<if condition="in_array($forum, array(3,37,22,23,24,25,38,26,43,44,45,46))">
xxx add 1|
xxx add 2|
xxx add 3|
xxx add 4
</if>

With this 2 codes, I dont get any header add on my forum, and with the postbit only shows the normal adds (also in the xxx forums only show normal adds).

I try to change the code "$forum" to "$forumid", but still the same.

"3,37,22,23,24,25,38,26,43,44,45,46" this are the ids of my xxx forums, I want xxx adds on that forums, and in the rest normal adds...

I have 4.02 version working on 3.6.8 Level 2.

redlabour 12-16-2007 07:00 AM

Quote:

Originally Posted by RedTyger (Post 1401430)
I'm waiting for other reports at the moment to confirm it's a widespread bug. That nobody else has reported it yet makes me wonder if it is a vBSEO bug or specific to your forum somehow. I haven't forgotten you. :)

Hi,

1. I dont think many are using this Postbit Ads.

2. Maybe anything goes in Trouble because of the Deinstallation of 3.x ?

x-land 12-16-2007 08:33 AM

I make update from 4.01 to 4.02 and now dont work in first page next advertisments: "Display advertisement after X post on a page?" and "Display advertisement after last post on a page?" in Postbit section.
Work well in Announcements, Private messages and next pages from thread, only on first page dont apear.


All times are GMT. The time now is 04:31 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.08670 seconds
  • Memory Usage 1,866KB
  • 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
  • (8)bbcode_code_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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