Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
function Debug
01-18-2010, 10:04 AM
Post: #1
function Debug
Hi,

i was trying to write a plugin for wordpress for easy implementation of MSA. While js and remote php invocation code is already running i cant get the php insert code to work.

The problem is function Debug in mysimpleads.php as it colides with the function debug from rss.php (MagpieRSS) in Wordpress (PHP Fatal error: Cannot redeclare debug() (previously declared in G:\web\xxxx\wp-includes\rss.php:1373) in G:\web\xxx\mysimpleadds_170\mysimpleads.php on line 2).

Wouldnt it be a good idea to name application specific functions according to the application it belongs to? e.g. function msa_debug (of course this counts for MagpieRSS as well). I would have tried that myself so send you the new code but for what reason ever there are no CRs and/or LFs in mysimpleads.php so it is nearly impossible to read.

Any chance this can be done with the next update?

Regards

Michael
Find all posts by this user
Quote this message in a reply
01-18-2010, 10:34 AM
Post: #2
RE: function Debug
That was done with the variables in mysimpleads.php, but, yes, not the debug function. That function actually should be removed in the next version.

If you would like, shoot an email to support-at-clippersoft.net and I'll send you a mysimpleads.php with the debug function renamed.

Thanks.
matt
http://www.clippersoft.net

ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-18-2010, 12:29 PM (This post was last modified: 01-18-2010 12:46 PM by ntrast.)
Post: #3
RE: function Debug
(01-18-2010 10:34 AM)ClipperSoft Wrote:  That was done with the variables in mysimpleads.php, but, yes, not the debug function. That function actually should be removed in the next version.

If you would like, shoot an email to support-at-clippersoft.net and I'll send you a mysimpleads.php with the debug function renamed.

Thanks.
matt
http://www.clippersoft.net

Icon_eek Matt you never get sleep dont you? Thanks again for your fast reply. I will drop you a note in the next days (will be on travel till friday).

I attach the 1st beta of mySimpleAds for Wordpress Plugin. Everyone is welcome to test it. Matt you can offer it as free contribution to mySimpleAds (and drop me a note if you want some renaming to keep up with your corporate identity)

As for 0.1alpha it installs like any other WP plugin. Included is a small admin panel to set the URL/FQDN of the mySimpleAds Server to use. The code used behind is equal to the "PHP Remote Read Code By Itself". So for the moment you can only display ads by id (not group, that will be added in a later version).

The main benefit of this plugin is to avoid the usage of exec_php and to overcome js limitations (cant show js ads) as well as to have only small code tags.

To place an ad in a post, page or the text widget simply put {msa:id} (where id is the number of the ad you see in the Ad-Listing under the Ad-Tab in mySimpleAds) where the ad should be displayed. E.g. use {msa:1} to display your ad number 1.

I will add this plugin to the WP repository as soon as i got 20 positive feedbacks. Your feedback is welcome.

Regards

Michael


Attached File(s)
.zip  mysimpleads.zip (Size: 2.4 KB / Downloads: 0)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: