View Single Post
  #2 (permalink)  
Old 10-15-2006, 11:26 AM
The Humanaught The Humanaught is offline
Casual Pligger
 
Join Date: Jun 2006
Posts: 86
Thanks: 8
Thanked 12 Times in 6 Posts
Thumbs up Wait... wait... I figured it out.

Hey, so if you're having problems with this too... here are the things I had to do to get Trackbacks working on my site - installed with v8.1.0.0.010.01.1.11.2.3.4..5.4 (alright... I made up everything after the 8.1.0 part... c'mon guys... get the darn thing out of Beta!).

1) In LIBS/TRACKBACK.PHP: I read someplace else that I needed to add
Code:
global $trackbackURL;
in around line 71 of libs/trackback.php.

Before:
PHP Code:
// Send a Trackback
    
function send() {
        if (empty(
$this->url))
                return; 


After:
PHP Code:
// Send a Trackback
    
function send() {
        global 
$trackbackURL;
        if (empty(
$this->url))
                return; 


2) In LIBS/UTILS.PHP: This was what was catching me up in the post above. #1 will get it so the trackbacks are sent to the source site, but if you're Pligg is installed in a subdir on your site, the linkback URLs will be wrong.

So, after staring at the computer and begging it to just work for hours... finally I followed the wires back to their sources and realized I just needed to change the permalink setting in the libs/utils.php file (in around line 162/163).

Before:
PHP Code:
function get_permalink($id) {
    return 
"http://".get_server_name()."/story/$id/";



After:
PHP Code:
function get_permalink($id) {
    return 
"http://".get_server_name()."/YOURPLIGGSUBDIR/story/$id/";



I've tested it on my site (see sig.) and it works. Hope that helps anyone else that might be staring at their monitor trying to fix this, and only getting a silent hum in return.
__________________
The Hao Hao Report: The Best Stories About China
Reply With Quote
The Following 2 Users Say Thank You to The Humanaught For This Useful Post: