vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   phpAdsNew Banner Ads integration (advertisements, classified ads, Adsense, etc.) (https://vborg.vbsupport.ru/showthread.php?t=100229)

Pulsorock 02-06-2006 06:50 PM

Just in case anyone using MaxMediaManager is interested. I tried to use this plugin with MaxMediaManager 0.1.x (based mostly on phpAdsNew). It didn't work, but at least I got no error message.

I installed the plugin and edited the path in the settings. I created a zone in MMM and in the invocation code was:
PHP Code:

<?php
    
if (@include(getenv('DOCUMENT_ROOT').'/maxmediamanager/phpadsnew.inc.php')) {
        if (!isset(
$phpAds_context)) $phpAds_context = array();
        
$phpAds_raw view_local (''2100'_blank''''0'$phpAds_context);
        echo 
$phpAds_raw['html'];
    }
?>

Then on one of my templates I added the following code:
Code:

<ad what="zone:21" />
Where 21 was the zoneid of this new zone I created.

When I go to the page, this is what I see:
http://img405.imageshack.us/img405/1...eenshot7rp.gif

Anf if I look at the resulting HTML code, this is what I see:
Code:

<!-- BEGIN ad 1685741398 -->http://www.pulsorock.com/banners/mediumrectangle_hrc_corporate_youknow.jpg?8a4481c4dc<!-- END ad 1685741398 -->
So in conclusion, at the moment the plugin does not work on MMM...

I think I'll continue using the JS invocation. If anyone has any other idea, feel welcome to share it. ;)

cmiller1014 02-11-2006 05:23 AM

Same problem as these guys.... is there a fix?

Quote:

Originally Posted by shunx91
Hi Guys,

I got this message when I tried to modify my templates:

Warning: view_ad(/home/web/clubwrx.net/public_html/forums/includes/lib-xmlrpc-class.inc.php): failed to open stream: No such file or directory in /includes/init.php(292) : eval()'d code on line 68

Can someone please help me out? I tried to upload those two files in the directory but I got a "permission denied" message.


Exernon 02-11-2006 12:16 PM

Installed and rated it 5 star!

Absolutely a great hack!

Pulsorock 02-11-2006 01:26 PM

It would be possible to make a similar hack like this that works correctly with MaxMediaManager 0.1.x?

Thanks! :)

ianskate 02-12-2006 09:46 PM

I just tried it on 3.5.3, and had no luck. I get a blank page when trying to save the template, but it never actually saves it. I tried a few times with other options enabled and disabled. I tried changing the path to both the absolute path and path with my hostname as a URL instead.

When I tried the hostname and URL, I got the error above, that the others have been describing. When I use local, I get no error, but I am spit to a blank page with no data, and the template is obviously not saved. (Viewing history and page source)

Could that be a possible problem that I'm using 3.5.3? Is it supposed to be supported, or will it be soon?

DannyITR 02-13-2006 02:13 PM

I have a question not immedaitely related to this hack but I cannot track clicks with a flash banner and phpadsnew even if I select the option to check for hard-coded links inside the Flash file. I get skewed results and something like 1/10th of the clicks are actually recorded. Is this related to the banner code itself?

dutchbb 02-13-2006 10:18 PM

I have discovered a problem. The ads show but the target URL directs to: "http://forum.mydomain.com/adscript"

instead of "http://www.mydomain.com/adscript" where it should go.

Any way to fix this problem?

nexus851 02-14-2006 02:48 AM

How do you uninstall this? because there is no uninstall code in the product manager section...

Im moving my server and this hack is what is causing problems with my server move, so anyone know how to uninstall this without causing any vb errors?

nexus851 02-14-2006 08:40 AM

How the hell do u uninstall this???????? crashed by board with a FATAL ERROR when you uninstall this... anyone, please help..

PHP Code:

Fatal errorCall to undefined function: view_ad() in /home/lendinge/public_html/forum/global.php(528) : eval()'d code on line 6 


Pulsorock 02-14-2006 01:34 PM

I think you can uninstall it in the same place you installed it. Control Panel > Plugin System > Manage Products. There you can delete it.


All times are GMT. The time now is 03:54 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.01562 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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
  • (10)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