Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 10:52 am EDT

Geeklog Forums

Newbie help!


Status: offline

sjstill

Forum User
Newbie
Registered: 12/10/05
Posts: 8
Good afternoon! Brand new to Geeklog here and have the following parse error from a static page
Parse error: parse error, unexpected '/' in /home/cpsc445/public_html/staticpages/index.php on line 112.

The code in question is as follows:

if ($_CONF['hideprintericon'] == 0) {
$retval .= ' ';
}

Thanks a lot,

sjs
 Quote

Status: offline

vadertech

Forum User
Full Member
Registered: 05/26/03
Posts: 329
Your missing alot of info in that code. Try recopying the file to the server.
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
 Quote

Status: offline

sjstill

Forum User
Newbie
Registered: 12/10/05
Posts: 8
Here is the snippet of code that I need help with. Line 112 starts on the second line of this where it says $retval :

if ($_CONF['hideprintericon'] == 0) {
$retval .= ' ';
}
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
In case you haven't noticed by now: Geeklog removes some HTML from your posts. If you want to post HTML or PHP code, use the [ CODE ] button in the forum's editor.

Having said that: Try what vadertech suggested. Line 112 is a pretty long line - it may have been corrupted when you uploaded the file the first time around.

bye, Dirk
 Quote

Status: offline

sjstill

Forum User
Newbie
Registered: 12/10/05
Posts: 8
Sorry about that, guys. The line I'm trying to fix looks like this:

$retval.='<a href="'./construction.htm/staticpages/index.php?page.$page. '&. mode = print.'"><img src ="'.$CONF['layout_url'] .'/images/print.gif'" alt="'.$LANG01[65]."'title="'.$LANG_STATIC['printable_format']."'border="0"></a>';
 Quote

Status: Banned

machinari

Forum User
Full Member
Registered: 03/22/04
Posts: 1512
ouch Shocked
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by sjstill: The line I'm trying to fix looks like this:

Why are you even editing this file? You only have to change your paths in config.php (and make that one change in lib-common.php) and Geeklog will pick up everything from there automatically.

bye, Dirk
 Quote

sjstill

Anonymous
Dirk,

Thanks for the help, but I'm really stupid here on Geeklog. I have spent one entire afternoon looking through files trying to complete a school project before Sunday night and not getting anywhere. Can you point to where in those files to look? Please and thank you.
sjs
 Quote

Status: offline

vadertech

Forum User
Full Member
Registered: 05/26/03
Posts: 329
here
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
 Quote

sjstill

Anonymous
Vadertech,

Thanks,

sjs
 Quote

All times are EDT. The time is now 10:52 am.

  • 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