Quote:
Originally Posted by GoTTi
i started getting a error when i installed this mod on my online.php page.
error:
|
That error is because there is a ' that isn't escaped... Simply replace this:
Code:
<plugins>
<plugin active="1" executionorder="5">
<title><![CDATA[vB eBay WOL Part 2]]></title>
<hookname>online_location_process</hookname>
<phpcode><![CDATA[if ($filename == 'vbebay.php'){
$userinfo['activity'] = 'vbebay';
}
]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title><![CDATA[vB eBay WOL Part 1]]></title>
<hookname>online_location_unknown</hookname>
<phpcode><![CDATA[if ($userinfo['activity'] == 'vbebay'){
$handled = true;
$userinfo['action'] = 'Viewing a member's auctions';
$userinfo['where'] = "<a href=\"vbebay.php?{$vbulletin->session->vars['sessionurl_q']}\">vB eBay</a>";
}
]]></phpcode>
</plugin>
</plugins>
With this:
Code:
<plugins>
<plugin active="1" executionorder="5">
<title><![CDATA[vB eBay WOL Part 2]]></title>
<hookname>online_location_process</hookname>
<phpcode><![CDATA[if ($filename == 'vbebay.php'){
$userinfo['activity'] = 'vbebay';
}
]]></phpcode>
</plugin>
<plugin active="1" executionorder="5">
<title><![CDATA[vB eBay WOL Part 1]]></title>
<hookname>online_location_unknown</hookname>
<phpcode><![CDATA[if ($userinfo['activity'] == 'vbebay'){
$handled = true;
$userinfo['action'] = 'Viewing a member\'s auctions';
$userinfo['where'] = "<a href=\"vbebay.php?{$vbulletin->session->vars['sessionurl_q']}\">vB eBay</a>";
}
]]></phpcode>
</plugin>
</plugins>
Also, if you want to integrate eBay's Partner Network with this, simply search&replace
With
Code:
http://WHATEVER-YOUR-CAMPAIGN-URL-IS-FROM-EPN=http://
For example:
Code:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=3&campid=5335851551&toolid=10001&mpre=http://
Final url will look like this:
Code:
http://rover.ebay.com/rover/1/711-53200-19255-0/1?type=3&campid=5335851551&toolid=10001&mpre=http://my.ebay.com/ws/eBayISAPI.dll?MyeBay
**installed on 3.7.2 PL1**