Welcome to Geeklog, Anonymous Thursday, October 31 2024 @ 11:32 pm EDT
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.
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
8
5
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
6
5
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
6
5
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.
What an old man can see, a young man will never see even though he is standing at the top of the highest mountain.
5
9
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:
Then it should work.
bye, Dirk
Text Formatted Code
$result = DB_query("SELECT uid,username,photo FROM {$_TABLES['users']} ORDER BY regdate DESC limit $numToShow");
9
7
Quote
All times are EDT. The time is now 11:32 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