![]() |
Thanks bmurray ! Your method works.
Do you think this would cause an big extra load on my NT server by doing this on the home page? |
It displays fine:
(look to the lower right for a ruff test) http://www.clubfreestyle.com/newdefault.php the problem is...when you click on a user..The url os a dead link because it tries to go to: http://www.clubfreestyle.com/member....tinfo&userid=2 instead of the correct link: http://www.clubfreestyle.com/forum/m...tinfo&userid=2 |
how did you get that?
|
Bmurray..I just realized that if you are not logged into the system..and you go to that page..
It actually gives an error. Please check. How can we avoid that? |
To get correct links, you will have to use a different template in the code on the main page. Create a template called "loggedin_new" (or anyname you prefer), and change the link so that it puts a forum/ in it.
Add template - loggedin_new Code:
<a href="forum/member.php3?action=getinfo&userid=$userid">$username</a> Let me know how that works [edit] Hmm...I'll have to check that out regarding the not logged in error...I'll get back to you [/edit] |
I think it is trying to create cookies, but the code is being executed in the incorrect order in relation to the rest of the page.
I'm not sure how you have the PHP page set up currently, but try putting this part: Code:
<?php Code:
echo $loggedinusers; Code:
<?php Unfortunately I'm at work and have no way to test to see if this works before posting. Let me know what happens |
Good Job! I can now see whos online without being loged in!
Next i will try to fix the hyerlink problem. i will keep you posted. Many Many Thanks! |
Ben,
Everything you suggested works fine! Check it: http://www.clubfreestyle.com/newdefault.php (keep in mind that you might see some broken images, etc.. That page is just a test page so please disreguard it's appearance.) You Da Man! Please keep in touch. |
please look at:
http://www.halflifeworld.net and tell me what im doing wrong. The Red and yellow table sholdnt be there, and the $loggedin_new is not showing up. |
MonkeyManx - it appears you need to move the code to the beginning of your index file. To make it simpler and because this has changed since my first post with info, I redid the instructions for getting this to work and put it in a text file:
loggedin.txt After some trial and error, this should contain what is needed to get it work properly. Keep in mind this isn't a "hack" so to speak, and at some point when I have time I am going to try to refine it a little bit to work more efficiently. |
All times are GMT. The time now is 07:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|