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)

Dave-M 11-12-2007 11:24 PM

Hi,

Thanks for this :)

When I have the plugin enabled, my forums disappear, and I get this error on a white screen.
PHP Code:

Parse errorsyntax errorunexpected $end in /mysite.com/forums/includes/vb_ad_management/global_start.php on line 331 

Would you have any idea what I might have done wrong?

I have re-uploaded everything, but to no avail.

Only issues when installing the template hacks were that I'm using a custom skin, so didnt have the
PHP Code:

&nbsp

in my header, so I put it above $spacer_open.

Any help would be greatly aprreciated :)

Thanks.

Dave.

RedTyger 11-13-2007 08:43 AM

Quote:

Originally Posted by saintcjh (Post 1381159)
Hello,

I've installed this mod, however its not showing any adverts at all.

Can you please advise me what to do? I've done everything as susgested in other threads of the forum, but with no luck whatsoever.

Kind Regards
Charlie

It must be set up incorrectly somehow, check your settings, template edit, change the advertisment code to plain text to check it.

Quote:

Originally Posted by razvans (Post 1381377)
The mod works very good with old versions of adsense codes. not it works very good. if i am switching back to the new type of adsense code the ads are not showing
Thank you for your reply

I tried the new adsense code and while no advertisements appear, a blank space appears of the size where the advertisement should be. I can't tell you what the issue is I'm sorry to say, but the modification is working correctly.

Quote:

Originally Posted by Dave-M (Post 1381396)
Hi,

Thanks for this :)

When I have the plugin enabled, my forums disappear, and I get this error on a white screen.
PHP Code:

Parse errorsyntax errorunexpected $end in /mysite.com/forums/includes/vb_ad_management/global_start.php on line 331 

Would you have any idea what I might have done wrong?

I have re-uploaded everything, but to no avail.

Only issues when installing the template hacks were that I'm using a custom skin, so didnt have the
PHP Code:

&nbsp

in my header, so I put it above $spacer_open.

Any help would be greatly aprreciated :)

Thanks.

Dave.

Have you redownloaded the files from here, then overwritten? It sounds like global_start.php has been edited somehow.

conimus 11-13-2007 09:58 AM

When I visit my board as a guest, I can not see any banner or ad. But as soon as I log in as a registered user, I see all the banners.

How can I change this so that every visitor can see the banners?

RedTyger 11-13-2007 10:01 AM

Guests are usergroup 1, add this to your usergroup settings in Global Settings.

conimus 11-13-2007 10:19 AM

Quote:

Originally Posted by RedTyger (Post 1381640)
Guests are usergroup 1, add this to your usergroup settings in Global Settings.


Sorry, but I don't understand...

Dave-M 11-13-2007 12:31 PM

Quote:

Originally Posted by RedTyger (Post 1381619)
Have you redownloaded the files from here, then overwritten? It sounds like global_start.php has been edited somehow.

I downloaded the files from here, did the edit of the files in wordpad (that ok?), upped the files to the server in "auto" mode (could this be it?).

I will redownload and start a fresh and see what happens :)

RedTyger 11-13-2007 01:17 PM

Oh, you edited the file? There's your problem then. Your editing is incorrect.

Dave-M 11-13-2007 02:47 PM

Yes, sorry, have I misunderstood the instructions?

Wasn't there any need to follow the "How to add your own custom adcode blocks in 3 minutes" part?

Should I just reupload the unedited files then?

Thanks for your patience :)

Edit 1: fixed, all my fault :)

Edit 2: can I ask a noob question while I'm here as well please?

If I am using adsense javascript ads, and the are aligning left, what would be the correct way of centering the ads without murdering my skin's layout. If I use
PHP Code:

<div align="center"

before the
PHP Code:

<script type="text/javascript"><!-- 

part of the adsense code, it looks fine in firefox, but it sends my custom skin all out of line in IE.

Any pointers would be great :)

class101 11-14-2007 05:39 AM

I'd like to see on the futur version this type of random ads box build in a iframe/flash look, like on this forum on the top:

http://www.psicofxp.com/forums/

The visitors dont have to refresh that they have already seen tons of ads , I'd like to see this as an optional box like you made for static and random codes /per refresh, that would be so much kickass.

DAdiguzeL 11-14-2007 09:24 PM

It's really good but i can't do banner rotation to left and right side of the forum without coloumns. I did with coloumns and that was not looking so good. Will anyone help me please?

RedTyger 11-14-2007 10:18 PM

Quote:

Originally Posted by iogames (Post 1380991)
Hi Tyger! doe the new version will be my Birthday's present or my Xmas'? :D


Happy Christmas.

vB Ad Management 4.00 Beta released.

When any problems are dealt with, it will be released here. In the meantime, it is a test version and anyone is welcome to try it. Let me know how you get on.

DarthCoder 11-14-2007 10:23 PM

redtyger, how can I display ads before first post. I did it once but after re installing vb i forgot how.

DAdiguzeL 11-14-2007 10:42 PM

Hi RedTyger again me.
How can i remove the red things in my attachment?

here's my forums test preview:
please check my attachment and pls help me.

class101 11-15-2007 08:06 AM

You must define the table data <td> where is the banner as a height="100%", I think the height is missing but haven't tested cos I do'nt use column ads

RedTyger 11-15-2007 09:51 AM

Quote:

Originally Posted by DAdiguzeL (Post 1382668)
Hi RedTyger again me.
How can i remove the red things in my attachment?

here's my forums test preview:
please check my attachment and pls help me.

Sorry, I couldn't tell you with a custom theme. The columns are something that I can only really set to work with the default theme out of the box, anything else may need customising to fit. The code it searches for is in the global_start.php file.

Quote:

Originally Posted by DarthCoder (Post 1382663)
redtyger, how can I display ads before first post. I did it once but after re installing vb i forgot how.

In the postbit section of the settings is an option called "Display ads with first post". Set it to yes. :)

DAdiguzeL 11-15-2007 10:10 AM

Quote:

Originally Posted by RedTyger (Post 1382891)
Sorry, I couldn't tell you with a custom theme. The columns are something that I can only really set to work with the default theme out of the box, anything else may need customising to fit. The code it searches for is in the global_start.php file.

Thanks for the reply but how can i remove the borders? From global_start.php file or some different way?

directprint 11-15-2007 03:02 PM

Can this mod also place the advert after the last post instead of the first post?

calbano_18 11-15-2007 06:22 PM

Amazing add-on! Please help me through this speed bump. I'm trying to install this and i have a different forum theme. Currently my forum only displays header ads to the admin! Where exactly should i place the $header_advertisement in my header?


PHP Code:

<!-- logo -->
<
a name="top"></a>

<!-- 
this the header areaincluding the top right navigation -->
<
div id="header">
<
div id="logo" ><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="images/forumheaven/main/top_a.gif" alt="$vboptions[bbtitle]/></a></div>
<
div id="navigation"><span id="subnavi"><span class="navigation">
<
a href="index.php">Home</a>&nbsp;
<
a href="memberlist.php">Members</a>&nbsp;
<
a href="calendar.php$session[sessionurl_q]">Events</a>&nbsp;
<
a href="faq.php">Help</a>&nbsp;

</
span></span>
<
div id="search"><form action="search.php?do=process" method="post"><input type="hidden" name="do" value="process" /><input type="hidden" name="quicksearch" value="1" /><input type="hidden" name="s" value="$session[sessionhash]/><input style="border:0px;border-right:1px solid #f7edce;border-bottom:1px solid #f7edce;font-size:10px;" type="text" class="bginput" name="query" size="20" value="$vbphrase[search_forums]tabindex="1001" /> &nbsp; <input type="image" src="images/forumheaven/main/search.gif" class="button" value="$vbphrase[go]tabindex="1004" /></form></div>
</
div>
</
div>

<!-- 
this is the area below the headerincluding the member/login stuff -->

<
div id="highlights_container">
<
div id="highlights_a"><if condition="$show['member']"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img src="images/forumheaven/main/highlights_a.gif" alt="$vbphrase[new_posts_nav]/></a><else /><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img src="images/forumheaven/main/highlights_a.gif" alt="$vbphrase[todays_posts]/></a></if></div>
<
div id="highlights_b"><if condition="$show['registerbutton']"><a href="register.php$session[sessionurl_q]rel="nofollow"><img src="images/forumheaven/main/highlights_b.gif" alt="$vbphrase[register]/></a><else /><a href="usercp.php$session[sessionurl_q]"><img src="images/forumheaven/main/profile.gif" alt="$vbphrase[user_cp]/></a></if></div>
<
div id="highlights_c">
<
form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
        <
script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<
span id="member"><if condition="$show['member']"><strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br /><if condition="$show['pmmainlink']"><phrase 1="$vbphrase[unread_x_nav_compiled]2="$vbphrase[total_x_nav_compiled]3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if 
condition="$show['pmwarning']"><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if><else />
&
nbsp; <label for="navbar_username"><input type="text" class="bginput" style="font-size: 10px;background-color:#7b7b7b;border-top:1px solid #6d6d6d;border-left:1px solid #6d6d6d;border-right:1px solid #8b8b8b; border-bottom:1px solid #8b8b8b;color:white;" name="vb_login_username" id="navbar_username" size="12" accesskey="u" tabindex="101" value="$vbphrase[username]onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></label> &nbsp; <label for="navbar_password"><input type="password" class="bginput" style="font-size: 10px;background-color:#7b7b7b;border-top:1px solid #6d6d6d;border-left:1px solid #6d6d6d;border-right:1px solid #8b8b8b; border-bottom:1px solid #8b8b8b;color:white;" name="vb_login_password" id="navbar_password" size="12" tabindex="102" /></label> &nbsp; <input type="image" src="images/forumheaven/main/go.gif" class="button" value="$vbphrase[log_in]tabindex="104" title="$vbphrase[enter_username_to_login_or_register]accesskey="s" /><br />

&
nbsp; <label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label>
        <
input type="hidden" name="s" value="$session[sessionhash]/>
        <
input type="hidden" name="do" value="login" />        
        <
input type="hidden" name="vb_login_md5password" />
        <
input type="hidden" name="vb_login_md5password_utf" />
        


</if></
span></form>



</
div>
</
div>
<!-- /
logo -->



<!-- 
content table -->
$spacer_open
$leftcolumn_advertisement

$_phpinclude_output 


RedTyger 11-15-2007 08:10 PM

Quote:

Originally Posted by DAdiguzeL (Post 1382902)
Thanks for the reply but how can i remove the borders? From global_start.php file or some different way?

I'd really ask the person who designed your style, they'd know best. In the global_start.php are two lines with the left/right_column bits of code (its obvious where they are) with some HTML which is what is added to the style.

Quote:

Originally Posted by directprint (Post 1383074)
Can this mod also place the advert after the last post instead of the first post?

Yes, it's just an on/off button.

Quote:

Originally Posted by calbano_18 (Post 1383243)
Amazing add-on! Please help me through this speed bump. I'm trying to install this and i have a different forum theme. Currently my forum only displays header ads to the admin! Where exactly should i place the $header_advertisement in my header?

Not to sound unhelpful, but you can put it anywhere you like. If it doesn't look right, just move it until it does. :) Sounds like you may not have changed the Usergroup setting in Global Settings yet, all ads show to the admin only by default.

Paradise-Bodies 11-15-2007 08:51 PM

Hi,

how do i setup this to show special Banners (Advertisers/Zones/Champaignes) from openads on special forums (id's). I use just the Header.

calbano_18 11-15-2007 09:42 PM

Thank you:up:

elitemerlin 11-17-2007 10:27 AM

Code:

Warning: include() [function.include]: Unable to access /home/merlin/public_html/forums/includes/vb_ad_management/cache_templates.php in /global.php(341) : eval()'d code on line 86

Warning: include(/home/merlin/public_html/forums/includes/vb_ad_management/cache_templates.php) [function.include]: failed to open stream: No such file or directory in /global.php(341) : eval()'d code on line 86

Warning: include() [function.include]: Failed opening '/home/merlin/public_html/forums/includes/vb_ad_management/cache_templates.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /global.php(341) : eval()'d code on line 86

Any idea to why i would be receiving these errors?

youradhere4222 11-17-2007 10:56 PM

I'm receiving the following error:

Quote:

Warning: Unknown: failed to open stream: No such file or directory in /global.php(341) : eval()'d code on line 173

Warning: Unknown: Failed opening '/home/popcorno/public_html/forum/includes/vb_ad_management/cache_templates.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /global.php(341) : eval()'d code on line 173

xcingix 11-18-2007 04:30 PM

its simply not working
i configured it all
is this because im using vbseo and the vbseo style??
if so, how would i fix it?

RedTyger 11-18-2007 06:25 PM

The "Warning:" errors are because the upload files have not been uploaded correctly in some way. Check that they are in the correct location on your server before trying to use the modification.

xcingix double check your settings, the modification works fine with vB SEO.

xcingix 11-18-2007 07:03 PM

Please look at my screen-shots.
http://www.ny-dev.com/forums/gallery.../settings1.gif

http://www.ny-dev.com/forums/gallery.../settings2.gif

http://www.ny-dev.com/forums/gallery.../settings3.gif

http://www.ny-dev.com/forums/gallery.../settings4.gif

eJM 11-18-2007 08:46 PM

You linked to the same size images as your thumbnails. How 'bout something we can actually see?

Jim

RedTyger 11-18-2007 08:51 PM

Voila, for my own reference. 9/10 times just removing the /thumbs/ part of the URL will do the trick. :D

Edit: The problem appears to be that you have all postbit advertisements turned off. In the postbit options section are options to turn them on for announcements, private messages and posts. Pick one. :)

xcingix 11-18-2007 09:09 PM

Please review my attachments.
I have tried 1,2 and 3 and they still don't work.
Can i give u admin access or something?

RedTyger 11-18-2007 09:18 PM

You are definitely using postbit_legacy on your forum? Your settings all look correct (including 3).

Unfortunately now there are so many users I can no longer personally check people's forums to help. Victim of its own success.

xcingix 11-18-2007 09:22 PM

Quote:

Originally Posted by RedTyger (Post 1385190)
You are definitely using postbit_legacy on your forum? Your settings all look correct (including 3).

Unfortunately now there are so many users I can no longer personally check people's forums to help. Victim of its own success.

I am using postpit legacy.
http://www.ny-dev.com/forums/f289/as...ft-access-238/

powerful_rogue 11-18-2007 10:08 PM

Just been looking at version 4.00 Beta and it looks amazing. Looking to install in tomorrow, but just a couple of questions!

Is it possible to have two random banners displaying next to each other in the footer? Below is what I currently have, but would be nice to use your mod rather then the mish mash of code im using at present.

Ive also got Forum Sponsor currently installed - Im presuming i'll gave to uninstall this, but prior to that, does your forum sponsor part of the mod work the same way?

https://vborg.vbsupport.ru/external/2007/11/28.jpg

(I hope this was the right place to ask, I did try to reply on your site but it wasnt allowed. Apologies if im in the wrong place)

youradhere4222 11-19-2007 12:00 AM

I have the "vb_ad_management" folder inside of my "Includes" folder. Is this correct?

xcingix 11-19-2007 12:26 AM

Can anyone help me with my issue?

bchertov 11-19-2007 04:45 AM

Can someone tell me how this compares to OpenAds? I'm not so much asking about a feature comparison (although I'd be interested in that as well), but does it address the same need? Would I use one or the other but not both? If they do different things could your please give me an overview of what role each one plays?

Thanks!
Barry

gforce75 11-19-2007 04:56 AM

4.0 Beta? Woot, gotta check this :p

RedTyger 11-19-2007 06:00 AM

Quote:

Originally Posted by youradhere4222 (Post 1385255)
I have the "vb_ad_management" folder inside of my "Includes" folder. Is this correct?

Yes. :) If it is in the wrong place then you'll see error messages anyway.

Quote:

Originally Posted by powerful_rogue (Post 1385213)
Is it possible to have two random banners displaying next to each other in the footer? Below is what I currently have, but would be nice to use your mod rather then the mish mash of code im using at present.

Yes. There's one footer-specific section and you can add an additional custom section to the footer as well from the AdminCP.

Quote:

Originally Posted by powerful_rogue (Post 1385213)
Ive also got Forum Sponsor currently installed - Im presuming i'll gave to uninstall this, but prior to that, does your forum sponsor part of the mod work the same way?

If you have a lot of forums, you may find it painful to do the same with my modification as it would require a template conditional for each for you wanted to do it for, although its perfectly possible. Its much more "hands on" in exchange for flexibility. The sponsors section on mine has a different purpose (box of sponsors in the footer) so it may not suit you anyway.[/QUOTE]



Quote:

Originally Posted by xcingix (Post 1385259)
Can anyone help me with my issue?

I'm out of ideas I'm sorry to say. You seem to be doing nothing wrong. You could try disabling all other plugins to make sure there's no conflict, trying another advertisement section like the header to see if its a problem specific to the postbit advertisement, substituting the javascript ad for plain text for testing or trying the beta of the next version and seeing if that works for you (link at the top of the first post).

Quote:

Originally Posted by bchertov (Post 1385330)
Can someone tell me how this compares to OpenAds? I'm not so much asking about a feature comparison (although I'd be interested in that as well), but does it address the same need? Would I use one or the other but not both? If they do different things could your please give me an overview of what role each one plays?

Thanks!
Barry

They're two very different things, people commonly use the two together. OpenAds provides the advertisements, vB Ad Management lets you manage them specifically within your forum, broadly speaking.

http://www.openads.org/quicktour
http://redtyger.co.uk/manual.php?pro...sion=4.00+Beta

xcingix 11-19-2007 12:18 PM

Beta works, but when i click adsharing it shows
Code:

Invalid argument supplied for foreach() in /admincp/vb_ad_management.php on line 138
Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

                SELECT text
                FROM phrase
                WHERE languageid = 0
                AND fieldname = 'cprofilefield'
                AND varname
                        IN ()
                ORDER BY varname;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
                ORDER BY varname' at line 6
Error Number : 1064
Date        : Monday, November 19th 2007 @ 07:17:56 AM
Script      : http://www.ny-dev.com/forums/admincp/vb_ad_management.php?do=adintegrate_sharing
Referrer    : http://www.ny-dev.com/forums/admincp/index.php?do=nav
IP Address  :
Username    : danny.michel
Classname    : vb_database


youradhere4222 11-19-2007 07:27 PM

My ads aren't showing up at all...

Is the BETA working fine?

xcingix 11-19-2007 07:31 PM

Quote:

Originally Posted by youradhere4222 (Post 1385796)
My ads aren't showing up at all...

Is the BETA working fine?

the regular version doesn't work, but beta does work... almost.


All times are GMT. The time now is 06:49 AM.

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.04410 seconds
  • Memory Usage 1,952KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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