FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to display the logined users' name in forum?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How to display the logined users' name in forum? [message #160782] Fri, 23 October 2009 07:14 Go to next message
hvacol is currently offline  hvacol
Messages: 12
Registered: April 2009
Karma: 0
Junior Member
hi,professionals:

i want to display the logined users' name in forum ,just like in forum/index.php interface.

and i put the {REF: logedin.tmpl} under the

{PHP_FILE: input: xxxx.php.t; output: xxxx.php;}

sentence (in thread.tmpl (or threadt.tmpl) )

and put the sentence

{TEMPLATE: loged_in_list} in thread.tmpl (or threadt.tmpl)

but when i rebuild the theme (rebuild is ok),the thread.php (or the threadt.php) cannot work.

please tell me how to do it ?

Many thanks!

[Updated on: Fri, 23 October 2009 09:33]

Report message to a moderator

Re: How to display the logined users' name in forum? [message #160817 is a reply to message #160782] Sun, 25 October 2009 08:29 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
These templates weren't designed to be used together.

Tip: It won't be too difficult to fix. Both uses $last_msg_id. You need to change this variable's name in one of the template's src files.
icon14.gif  first,thank you very much!!! [message #160828 is a reply to message #160817] Mon, 26 October 2009 03:56 Go to previous messageGo to next message
hvacol is currently offline  hvacol
Messages: 12
Registered: April 2009
Karma: 0
Junior Member
first,thank you very much!!!

"Both uses $last_msg_id. You need to change this variable's name in one of the template's src files."

I will do my best try to fix this "$last_msg_id" in thread.php.t(or threadt.php.t)(poor of mysql),

thank naudefj very very much!

Best regards,
naudefj ,are you the god? [message #160855 is a reply to message #160817] Tue, 03 November 2009 02:45 Go to previous message
hvacol is currently offline  hvacol
Messages: 12
Registered: April 2009
Karma: 0
Junior Member
Thank you very much first!

i donot know how to write the code of accessing mysql to get " $last_msg_id"

but I set $last_msg_id = "0" mannul in file .php.t

rebuilt theme,the file .php is working ...

fudforum.org cannot access recently.so my thanks is late.

thank you!

Best regards,
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Start From Scratch?
Next Topic: Where header template
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 01:46:16 GMT 2024

Total time taken to generate the page: 0.02509 seconds