Welcome to Geeklog, Anonymous Monday, November 25 2024 @ 11:37 pm EST

Geeklog Forums

Making phplinks links show up in What's New block


Status: offline

rv8

Forum User
Regular Poster
Registered: 10/10/02
Posts: 105
Location:Ottawa, Canada

I recently installed phplinks on my RV-8 aircraft construction site - everything went smoothly, except I was getting parse errors when I made the changes to make the phplinks links show up in the What's New block. I eventually tracked the problem down to my misinterpretation of the integration directions.

The parse errors looked like:

Parse error: parse error, unexpected $ in /Library/WebServer/Documents/lib-common.php on line 4147
Fatal error: Cannot instantiate non-existent class: template in /Library/WebServer/Documents/lib-common.php on line 607

Step 7 in the README directs you to make a number of changes to lib-common.php. A file is provided with a bunch of code to replace everything after the "// Get newest links" comment in the "COM_whatsNewBlock". Well, I did that, and I kept getting the parse errors. I finally figured out that you don't want to quite replace all the code. Specifically, you must not replace the following lines at the end of the COM_whatsNewBlock:

Text Formatted Code
$retval .= COM_endBlock( COM_getBlockTemplate( 'whats_new_block', 'footer' ));

    return $retval;
}
 

I think the source of the problem is that Squatty had inserted a new file management section in the "COM_whatsNewBlock" in his lib-common.php. His file management code went between the newest links code, and the the lines I mention, so he overlooked them when he wrote the directions.

Other than this small glitch, phplinks integrated into GL without any problems. Thanks Squatty!


Kevin Horton
 Quote

All times are EST. The time is now 11:37 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content