SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Ex-SitePointer silver trophy
    iFroggy's Avatar
    Join Date
    Oct 2000
    Location
    Harbinger, NC, U.S.A.
    Posts
    4,126
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I really know nothing about PHP, but I am able to install phpBB hacks and install phpBB's (Thanks Matt lol).

    I am trying to install a hack but on this particular one I keep getting a parse error. Here is the hack (what I'm trying to install): http://www.freedomlist.com/test/hack/#cat1_5

    It says parse error on line 72.

    I believe this is line 72 (and also where I think the problem is):

    Code:
    	    $last_post_time = mktime($hour, $min, 0, $month, $day, $year); $image='/images/header.jpg'; 
    if($last_post != "No posts") $last_post="<a href="viewtopic.$phpEx?from=$pagetype&topic=$myrow[topic_id]"><img src="/$image/" border=0> ".$last_post_datetime. "</a><br>by $null";
    If anyone could advise me as to any possible reasons for this, I would appreciate it. Thank you for your time.

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not sure if this forum will display the escaped quotes if there ever were any, if not that is the problem and this line
    PHP Code:
    if($last_post != "No posts"$last_post="<a href="viewtopic.$phpEx?from=$pagetype&topic=$myrow[topic_id]"><img src="/$image/" border=0> ".$last_post_datetime"</a><br>by $null"
    Should be changed to
    PHP Code:
    if($last_post != "No posts"$last_post='<a href="viewtopic.'.$phpEx.'?from='.$pagetype.'&topic='.$myrow[topic_id].'"><img src="/'.$image.'/" border=0> '.$last_post_datetime'</a><br>by '.$null
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •