109 pointsSerious WPMU DEV-sterI'm new here
GhostPool
Member
—
4th July 2009
Re: The Ad-sharing plugin
Would I be able to center align the ad code that is posted. I don't want to insert the <center> tags in the ad code boxes as not all members will do that - I want to insert it into ad-sharing.php file so ads are centred automatically. The problem is I can't find where to insert it in the file?
Would I be able to center align the ad code that is posted. I don't want to insert the <center> tags in the ad code boxes as not all members will do that - I want to insert it into ad-sharing.php file so ads are centred automatically. The problem is I can't find where to insert it in the file?
I think somebody brought this up before and it had been fixed, however I'm using version 1.0.4 of the Ad Sharing plugin and still have this problem. When I leave one of the post ad code box's empty it adds the text "empty" to my post page.
Responses (11)
Erstwhile founder — 4th July 2009 #
There are four lines in the ad_sharing_output function that look something like this:
$content = ad_sharing_get_ad_code('before') . $content;
Just update them like so:
$content = '<center>' . ad_sharing_get_ad_code('before') . '</center>' . $content;
Thanks,
Andrew
Member — 4th July 2009 #
Thanks Andrew.
Member — 16th August 2009 #
I think somebody brought this up before and it had been fixed, however I'm using version 1.0.4 of the Ad Sharing plugin and still have this problem. When I leave one of the post ad code box's empty it adds the text "empty" to my post page.
Erstwhile founder — 16th August 2009 #
We'll take a look at this tomorrow and release a new version.
Thanks,
Andrew
Member — 17th August 2009 #
Thanks Andrew. Hope it fixes the problem.
Erstwhile founder — 17th August 2009 #
Hiya.
Which page are you having this problem with (site admin page or blog page)?
Thanks,
Andrew
Member — 17th August 2009 #
The blog page. The text "empty" shows where the ads would be displayed.
Erstwhile founder — 17th August 2009 #
Last question. Are you referring to the frontend blog page or the backend blog page where users can configure their ads?
Thanks,
Andrew
Member — 17th August 2009 #
The front end, the "empty" text is viewable to any who visits the site.
Erstwhile founder — 17th August 2009 #
Hiya,
Ad sharing 1.0.5 is now available. Give a try and let me know how it goes.
Thanks,
Andrew
Member — 17th August 2009 #
That's fixed it. Thank you.
Become a member