forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: foulu on January 23, 2011, 03:05:52 am

Title: Copper Ads Plugin for Coopermine Version 1.5.x
Post by: foulu on January 23, 2011, 03:05:52 am
Base on work in this topic:

http://forum.coppermine-gallery.net/index.php?topic=69973.new;topicseen#new

Plugin Information is in there:

http://forum.coppermine-gallery.net/index.php/topic,33151.html
Title: Re: Copper Ads Plugin for Coopermine Version 1.5.x
Post by: Forgottenmem on March 16, 2011, 09:46:43 pm
I dont understand what you mean when you say comment
Code: [Select]
1.open helpers/codebase15x_helper.php and comment Line 30~69
Title: Re: Copper Ads Plugin for Coopermine Version 1.5.x
Post by: Forgottenmem on March 16, 2011, 09:53:14 pm
Parse error: syntax error, unexpected '(', expecting '}' in /xxxxxxxxx.com/html/plugins/copperads/helpers/codebase15x_helper.php on line 83

This is  the error I am getting, I'm running the latest version.
Title: Re: Copper Ads Plugin for Coopermine Version 1.5.x
Post by: dimo78 on September 30, 2011, 12:00:48 pm
To fix plugin you should make two replacements in the code of copperads/helpers/codebase15x_helper.php file:

1. replace on line 83

Code: [Select]
    if ($stop) {
    echo <<< EOT
        <form action="{$superCage->server->getEscaped('REQUEST_URI')}" method="post">

with

Code: [Select]
    $action_uri = $superCage->server->getEscaped('REQUEST_URI');
    if ($stop) {
    echo <<< EOT
        <form action="{$action_uri}" method="post">



2. replace on line 138

Code: [Select]
    if ($action === 1) {
        echo <<<EOT
<form action="{$superCage->server->getEscaped('REQUEST_URI')}" method="post">

with

Code: [Select]
    $action_uri = $superCage->server->getEscaped('REQUEST_URI');
    if ($action === 1) {
        echo <<<EOT
<form action="{$action_uri}" method="post">

I've attached already fixed file too. Extract in copperads/helpers folder and run installation process.

Regards
Dimo Todorov
Title: Re: Copper Ads Plugin for Coopermine Version 1.5.x
Post by: whats_up_skip on April 24, 2015, 03:06:04 am
Is anyone still using this plugin?

Could they put a link to their active site?