vb.org Archive

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

RaceJunkie 02-04-2009 03:09 PM

Quote:

Originally Posted by RedTyger (Post 1734302)
It is unlikely to be supported. Last time it became so popular I couldn't possibly deal with everyone who wanted help and I have less time now.

What support do you require? You're unlikely to need help getting it working (notice the lack of people asking what to do, the manual is substantial and the menus fully explanatory) and I intend to support it in the sense of making sure the latest version is free of bugs and other issues.

Oh I have no problem getting it up and running, matter a fact I used the last one up until it stopped working and you went MIA. :eek:

junaid 02-04-2009 04:56 PM

Installed work fine
but footer module I canot save new adcode
canot save the setting even canot off and ON

Howell 02-04-2009 05:20 PM

Am I right in thinking the option to show an advertisement underneath the last post is no longer available?

Thanks.

RedTyger 02-04-2009 08:33 PM

Yep, it's there in the changelog. The reason was that none of the other sections had a similar option and I decided it was a lot simpler and more consistent to just remove it. I'm not convinced it was a good idea but I've had no complaints as yet.

snotek 02-05-2009 01:49 AM

Cannot use this product -- vB 3.8.1, vBSEO, and a few other plugins/products.

When product is installed most AJAX functions cease to work. Inline editing of posts is probably the most annoying of the loses. Simply uninstalling the product fixes the issue. I have repeated this modification several times each time beginning and ending with the same results.

junaid 02-05-2009 03:49 AM

Older one is more easy and work good

s-ps3 02-05-2009 07:15 AM

Quote:

Originally Posted by Howell (Post 1734435)
Am I right in thinking the option to show an advertisement underneath the last post is no longer available?

Thanks.

Is there a workaround? Or maybe there is a way to get this option back with the next update?

RedTyger 02-05-2009 07:19 AM

Quote:

Originally Posted by s-ps3 (Post 1734938)
Is there a workaround? Or maybe there is a way to get this option back with the next update?

Yes, I'll put the option back if enough people are bothered by it being missing.

You should be able to replicate it by adding a custom block, setting it to use the SHOWTHREAD template and then inserting it above Quick Reply. Same goes for the other places where a "Display with last" option would be useful, so it's probably a better option overall, if less convenient.

Quote:

Originally Posted by snotek (Post 1734802)
Cannot use this product -- vB 3.8.1, vBSEO, and a few other plugins/products.

When product is installed most AJAX functions cease to work. Inline editing of posts is probably the most annoying of the loses. Simply uninstalling the product fixes the issue. I have repeated this modification several times each time beginning and ending with the same results.

Could you file a bug, make it private and include an admin login please. I don't have vBSEO so I'd need someone's forum to look at if that's OK.

junaid 02-05-2009 07:41 AM

my forum installed vbseo only header work fine
all other modules canot work

AliMadkour 02-05-2009 07:59 AM

great mod,

redlabour 02-05-2009 03:54 PM

Quote:

Originally Posted by snotek (Post 1734802)
Cannot use this product -- vB 3.8.1, vBSEO, and a few other plugins/products.

When product is installed most AJAX functions cease to work. Inline editing of posts is probably the most annoying of the loses. Simply uninstalling the product fixes the issue. I have repeated this modification several times each time beginning and ending with the same results.

Same for me - Editbutton ist broken (but works if you click him twice) and https://vborg.vbsupport.ru/external/2011/07/26.gif Button in Editor.

But there is no need to uninstall - deactivating does the same till there is a Fix.

:(

Opened a Thread at vBSEO Support - in most Cases they can help.

RaceJunkie 02-05-2009 04:50 PM

1 Attachment(s)
IS it possible to add an advertisement on the first post like attached image?

angeldevil 02-05-2009 09:54 PM

Great Mod This is a Must mod nominated for MOTM .Thank you for ur good work Redtyger

Battle_Ring 02-06-2009 02:12 AM

please be back add after last post

RedTyger 02-06-2009 05:42 AM

Quote:

Originally Posted by redlabour (Post 1735281)
Same for me - Editbutton ist broken (but works if you click him twice) and https://vborg.vbsupport.ru/external/2011/07/26.gif Button in Editor.

But there is no need to uninstall - deactivating does the same till there is a Fix.

:(

Opened a Thread at vBSEO Support - in most Cases they can help.

It's good of them to take a look, but it's almost certainly something for me to deal with. Let me know how you get on.




Quote:

Originally Posted by RaceJunkie (Post 1735336)
IS it possible to add an advertisement on the first post like attached image?

Of course!

Search for $ad_location[ad_showthread_firstpost_start] in the postbit template and after it add $vbam_location[post_message] (note at the end). Set your ads to display every 1 post, choose the post_message template hook from the menu and for your adcode use this:

Code:

<if condition="$GLOBALS[post][postcount] % $vboptions[maxposts] == 1">
<div style="float:right;margin-left:1em;margin-bottom:1em;">
YOUR ADVERTISEMENT
</div>
</if>


The conditional is what restricts it from really appearing every 1 posts so if you're using other postbit adcode you'll have to work conditionals around it.

While I'm on the subject, if anyone wants to include an advertisement with the last post before/if the option is added back in, just use this conditional:

Code:

<if condition="$GLOBALS[post][islastshown]">
Everything here will be shown with the last post only.
</if>


* Unfortunately, vBulletin's use of ad_location hooks prevents anyone else using them unless I've included a specific workaround, which I haven't for that one. So unfortunately you have to make your own. I'll probably just remove ad_location hooks entirely.




Quote:

Originally Posted by angeldevil (Post 1735576)
Great Mod This is a Must mod nominated for MOTM .Thank you for ur good work Redtyger

Very kind, glad it's helpful.

Vinyljunky 02-06-2009 11:59 AM

Glad to see you back RedTyger :up:

Will install this as soon as it works with VBSEO :)

morrow 02-06-2009 03:03 PM

I've installed this and am using it in my header. As said, gotta hit edit twice... Not a show stopper for me but would be nice to have fixed.

My other question... I believe it was this modification that previously allowed me to include an ad after every X post and after X threads, etc... Very flexible. I see all of that was removed (unless I'm thinking of another mod). Any way to put these back, I thought they were great.

RedTyger 02-06-2009 05:35 PM

Quote:

Originally Posted by morrow (Post 1736193)
My other question... I believe it was this modification that previously allowed me to include an ad after every X post and after X threads, etc... Very flexible. I see all of that was removed (unless I'm thinking of another mod). Any way to put these back, I thought they were great.

Before it had "with X posts" and "every X posts". With this version it was added to thread and forum lists as well.

sojobo 02-06-2009 08:05 PM

The auto-refresh feature doesn't seem to be working for me, is that a known bug or is something else the cause?

morrow 02-06-2009 08:52 PM

Quote:

Originally Posted by sojobo (Post 1736453)
The auto-refresh feature doesn't seem to be working for me, is that a known bug or is something else the cause?

Doesn't work for me either.

Also, left/right columns don't show up on the right or left, but rather on the bottom.

Where can I have the ads displayed between ever X thread/post/etc...?

morrow 02-06-2009 10:33 PM

Think I found another bug.

If I'm writing a PM to someone and a google ad is appearing in my header, I get "Page loaded but with errors" and the message wont send. I have a regular OpenAd which rotates with the google ad. If the Open Ad is showing, I receive no errors and the PM sends with no problem.

Icy 02-07-2009 04:48 AM

1 Attachment(s)
After installing this my showthred page messed up. Also the header adcode not working. In ACP the preview works just fine but in forum there is nothing!

Without vBAM:

Attachment 94313

With vBAM:

Attachment 94314

P.S. For testing I've enabled this in my dev forum with almost free of hack & disabled in my live forum.

bluecolored 02-07-2009 12:12 PM

Quote:

Originally Posted by RedTyger (Post 1735820)
It's good of them to take a look, but it's almost certainly something for me to deal with. Let me know how you get on.

Quote:

Originally Posted by Vinyljunky (Post 1736024)
Glad to see you back RedTyger :up:

Will install this as soon as it works with VBSEO :)

Anything new about a fix or excluding Rule for vBSEO? :(

RaceJunkie 02-07-2009 12:48 PM

Quote:

Originally Posted by Icy (Post 1736780)
After installing this my showthred page messed up. Also the header adcode not working. In ACP the preview works just fine but in forum there is nothing!

Without vBAM:

Attachment 94313

With vBAM:

Attachment 94314

P.S. For testing I've enabled this in my dev forum with almost free of hack & disabled in my live forum.

There are a few issues with sites running vBSeo. Look back a couple pages and see if you are affected as well.

Icy 02-07-2009 03:50 PM

I don't have vBSEO in my test forum :rolleyes:

bposner 02-07-2009 06:19 PM

I tried installing this. Immediately after loading the xml file I got these errors:
Warning: include_once([path]/includes/vbam_functions.php) [function.include-once]: failed to open stream: No such file or directory in [path]/global.php(400) : eval()'d code on line 2

Warning: include_once() [function.include]: Failed opening '[path]/includes/vbam_functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/global.php(400) : eval()'d code on line 2

Fatal error: Class 'vbam' not found in /home5/stangsof/public_html/forum/global.php(400) : eval()'d code on line 3

bluecolored 02-08-2009 08:19 AM

Quote:

Originally Posted by RedTyger (Post 1735820)
It's good of them to take a look, but it's almost certainly something for me to deal with. Let me know how you get on.

Tested it with vBSEO and with vBSEO temporarily disabled. Makes no chance. Problems still exists.

BTW - i tested it with the vbSEO 3.3 PR and the actually Stablerelease.

If it has still something to do with vBSEO it could be only the .htaccess:

Quote:

*CODE REMOVED*
RedTyger - there must be something different to your old Release. The old one works with vBSEO.

RedTyger 02-08-2009 10:21 AM

Everything is different, I rewrote the entire thing. You can remove the above code, I've made a note of it for testing. I don't see anything obvious, but regular expressions often aren't.

bluecolored 02-08-2009 11:39 AM

Update - i tested it without the .htaccess - Problems have nothing to do with vBSEO in any way.

sub_ubi 02-08-2009 12:20 PM

Great mod! Thank you so much for your work.

One bug we've run across, the option Allow HTML in shared adcode does not work when set to YES, as HTML is not parsed. I have a small team of creative people I trust, so security is not a problem for this usergroup and it would be nice to give them some freedom.

bluecolored 02-08-2009 04:16 PM

Fix/Solution for vBSEO Problem:

Quote:

Originally Posted by vBSEO Support
OUt of curiosity, I've checked the vB ad mod code and after changing this line in "ajax_start" hook:
if ($vbam->do['createad'] !== false)
to:
if ($vbam->do['createad'] != false)

it started working (not sure if that's the best way to resolve the issue in that mod though).

:D

THIS WORKS!!!

Riccardo83 02-09-2009 06:18 AM

Hey guys, I get this:

Quote:

Fatal error: Class 'vbam_forum' not found in /home/riccardo/domains/alizee-forum.com/archive/index.php(267) : eval()'d code on line 8
What is this about?

RedTyger 02-09-2009 10:00 PM

Quote:

Originally Posted by bluecolored (Post 1737846)
THIS WORKS!!!

Ah, good for them. Odd little problem.

Quote:

Originally Posted by Riccardo83 (Post 1738446)
What is this about?

That's from the forum module, or should be. It means the file that goes in the includes folder is missing.

Quote:

Originally Posted by sub_ubi (Post 1737712)
Great mod! Thank you so much for your work.

One bug we've run across, the option Allow HTML in shared adcode does not work when set to YES, as HTML is not parsed.

"Does not work" is a small understatement, I forgot to put the code back in for it. Duly noted for the next update.

Jon Tolzien 02-09-2009 10:10 PM

For some reason my edit button would not work any more, until i disabled this mod. Any ideas???

GoTTi 02-10-2009 01:59 AM

dunno if im doing something wrong or dont understand this thing....

i just installed this, put the ad in the header, enabled the header ad, and nothing is showing. am i suppose to do something special? put a $header_ad or something in a template or is this auto insert?

i tried it in the header, didnt work. i tried it with PM's and nothing as well.

ppriyaraju 02-10-2009 03:19 AM

How to display adsense after first post

Please help me

bluecolored 02-10-2009 04:09 AM

Quote:

Originally Posted by Jon Tolzien (Post 1739127)
For some reason my edit button would not work any more, until i disabled this mod. Any ideas???

https://vborg.vbsupport.ru/showpost....6&postcount=71

Bravo 02-11-2009 01:29 AM

The auto refresh doesnt work, and on IE on the bottom left is shows errors so I searched the lines that were causing errors (3 of them) it states it as a syntax error

Code:

<script type="text/javascript">setInterval(function(){recreatead("header", "ajax.php", , "header")}, 10190)</script>
it appears to have to do with the auto refresh, which explains why it dont refresh.

so I found the code in the php file but not sure how to fix it

Code:

return '<script type="text/javascript">setInterval(function(){recreatead("'.$adcode_name.'", "'.$file.'", '.(string) $is_bit.', "'.$setting_name.'")}, '.$refresh.')</script>';
or could it be the
Code:

function recreatead(id, file, is_bit, setting_id)
thats in the .js file?

Can you double check if its the code or a setting that went wrong?

Thanks

RedTyger 02-11-2009 05:58 AM

Excellent detective work, that certainly is the problem. Try this, I can't test it at the moment:

FIND:
Code:

function refreshad_js($adcode_name, $file, $is_bit = false, $setting_name = '')

REPLACE WITH:
Code:

function refreshad_js($adcode_name, $file, $is_bit = 'false', $setting_name = '')

FIND:
Code:

// Avoid getting stuck in a loop if the value is no good.
if ($vbulletin->options['vbam_'.$setting_name.'_refresh'] < 10)
{
        return false;
}


BELOW, ADD:
Code:

// Force boolean string conversion more effectively.
if ($is_bit !== 'false')
{
        $is_bit = 'true';
}


FIND:
Code:

'.(string) $is_bit.'

REPLACE WITH:
Code:

"'.$is_bit.'"

Bravo 02-11-2009 10:43 AM

Hehe it is my field of interest :)

anyway that did fix the syntax errors , now it does refresh but the new problem is that when it refreshes it just disappears so for example I see the first ad for 10 seconds and then it goes away, and I am separating the ads using the "|" delimiter.

Any clue?

Thanks


All times are GMT. The time now is 01:04 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.01544 seconds
  • Memory Usage 1,849KB
  • 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
  • (11)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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