Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 12:44 pm EST

Geeklog Forums

Customize Login block


Epiz

Anonymous
Hi,

Which file I need to edit to customize the look for the login box block on the left page?
Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
loginform.thtml

bye, Dirk
 Quote

Epiz

Anonymous
Opss..my mistake..
Thx Dirk,

One more Q, how do I use PHP in static pages, is there any help then can guide me step by step how to do it. Can't find one that I can understand. Most documentation I read is they documented it as I was a pro in geeklog. Big Grin
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You need to enable it first. Then you just write the PHP code into the static page, but without the <?php and ?> tags. There are two modes - one expects your PHP code to end with a return statement that passes the static page's content back to Geeklog, the other lets you use output stuff directly, using echo.

bye, Dirk
 Quote

Epiz

Anonymous
Hi,

Done that but end up with error. I enable it and try using the example given in documentation file

echo "Hello"; ?>, <b>world</b>, <?php echo "how are you?";

the error as below

Parse error: syntax error, unexpected '<' in /xxx/xxx/xxx/plugins/staticpages/functions.inc(1185) : eval()'d code on line 1

Any mistake I made?
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If that's the only line in your static page's content, it should work. I just tried it (copy&paste from your post above) and it worked for me ...

bye, Dirk
 Quote

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