Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:23 pm EST

Geeklog Forums

cofig.php issues!


rookie

Anonymous
confused
I'm using the professional template. In the config.php, for the site slogan:

$_CONF['site_slogan'] = 'Were Downriver';

If I try and put a hyphen in between: 'We're Downriver';
I get a syntax error! Any way I can correct this?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Add a backslash before the apostrophe or put the entire slogan in double quotes:

$_CONF['site_slogan'] = 'We\'re Downriver';

or

$_CONF['site_slogan'] = "We're Downriver";

bye, Dirk
 Quote

rookie

Anonymous
Dirk,
It won't work! Why?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Because you made a mistake?
 Quote

rookie

Anonymous
No. I did it exactly as you said. I don't get an error. But the apostrophe doesn't show.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Are you sure you uploaded config.php after you edited it? And to the correct directory?

bye, Dirk
 Quote

rookie

Anonymous
embarrassed
Thanks! My error! I was putting config.php into the public_html directory... :banana:
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: rookie

Thanks! My error! I was putting config.php into the public_html directory... :banana:

Make sure you delete it from public_html!
 Quote

All times are EST. The time is now 09:23 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