Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 07:01 am EST

Geeklog Forums

Code Help...


Status: offline

D1

Forum User
Chatty
Registered: 08/27/03
Posts: 55
What other function like phpblock_whosonline can I aply to my site. For eaxample, I tried phpblock_whosnew, but it I get an error code, anything special?
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You can write your own functions or download them (from here or from other sites). The code for the Who\'s New function can be found here. bye, Dirk
 Quote

Status: offline

D1

Forum User
Chatty
Registered: 08/27/03
Posts: 55
Thanks. I have copied the codes. Under What directory do I put the file? Regards
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by D1:Under What directory do I put the file?
The code should go into the lib-custom.php. cf. What are the different block types for? bye, Dirk
 Quote

Status: offline

D1

Forum User
Chatty
Registered: 08/27/03
Posts: 55
Got erro code. And below is what I got: Parse error: parse error in /home/niwdacom/public_html/system/lib-custom.php on line 84 Warning: Cannot modify header information - headers already sent by (output started at /home/niwdacom/public_html/system/lib-custom.php:84) in /home/niwdacom/public_html/system/lib-sessions.php on line 180 Warning: Cannot modify header information - headers already sent by (output started at /home/niwdacom/public_html/system/lib-custom.php:84) in /home/niwdacom/public_html/system/lib-sessions.php on line 192
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The line containing DB_query should look like this:
Text Formatted Code
$result = DB_query("SELECT uid,username,photo FROM {$_TABLES['users']} ORDER BY regdate DESC limit $numToShow");
Then it should work. bye, Dirk
 Quote

Status: offline

D1

Forum User
Chatty
Registered: 08/27/03
Posts: 55
Thanks Dirk, that fits perfectly well.. You are doing a great job pal... Thanks a lot.
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
 Quote

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