Posts Tagged awpcp

AWPCP web link bug fix

Another WP Classifieds Plugin v 1.06 contains a bug such that the web links do not get displayed. The fix is descibed in the Comments to this post, the one dated May 16, 2010:

http://www.awpcp.com/announcements/another-wordpress-classifieds-plugin-version-1-0-6-released/

holywebmaker says:

After updating to 1.0.6.7 it appears the “visit website” link has disappeared.

Looks like $awpcpvisitwebsite is missing in a couple spots.

I seemed to fix it, but I am sure it is not perfect….

in awpcp.php I added the following after line 11121
$awpcpshowtheadlayout=str_replace(“\$awpcpvisitwebsite”,”$awpcpvisitwebsite”,$awpcpshowtheadlayout);

and after 11157 (probably a better spot than this)

$awpcpvisitwebsite

Note how the comments in line 11122 are PHP comments / / and on line 11158 are html comments < !–

Then I added the same $awpcpvisitwebsite to my Listing Settings Page to control layout of single ad view page

i.e. You add the variable $awpcpvisitwebsite into the Classified Settings / General Settings / Ad Listing Settings page as per this image. The variable gets converted into the link.

This shows how to add it into the single ad view, but you could also add it into the Listing view which is just above this text box.

Thanks,
Brad

NOTE: To make the links open in a new window, change the target within the <a > tag on line 11040 as per:

Tags: , ,

AWPCP web link bug fix – for the EAC Projects site

Another WP Classifieds Plugin v 1.06 contains a bug such that the web links do not get displayed. The fix is descibed in the Comments to this post, the one dated May 16, 2010:

http://www.awpcp.com/announcements/another-wordpress-classifieds-plugin-version-1-0-6-released/

holywebmaker says:

After updating to 1.0.6.7 it appears the “visit website” link has disappeared.

Looks like $awpcpvisitwebsite is missing in a couple spots.

I seemed to fix it, but I am sure it is not perfect….

in awpcp.php I added the following after line 11121
$awpcpshowtheadlayout=str_replace(“\$awpcpvisitwebsite”,”$awpcpvisitwebsite”,$awpcpshowtheadlayout);

and after 11157 (probably a better spot than this)

$awpcpvisitwebsite

Note how the comments in line 11122 are PHP comments / / and on line 11158 are html comments < !–

Then I added the same $awpcpvisitwebsite to my Listing Settings Page to control layout of single ad view page

i.e. You add the variable $awpcpvisitwebsite into the Classified Settings / General Settings / Ad Listing Settings page as per this image. The variable gets converted into the link.

This shows how to add it into the single ad view, but you could also add it into the Listing view which is just above this text box.

Thanks,
Brad

NOTE: To make the links open in a new window, change the target within the <a > tag on line 11040 as per:

Tags: , ,