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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
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 03:14 Go to next message
hvacol is currently offline  hvacol
Messages: 12
Registered: April 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 05: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 04:29 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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] Sun, 25 October 2009 23:56 Go to previous messageGo to next message
hvacol is currently offline  hvacol
Messages: 12
Registered: April 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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] Mon, 02 November 2009 21:45 Go to previous message
hvacol is currently offline  hvacol
Messages: 12
Registered: April 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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,
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Start From Scratch?
Next Topic: Where header template
Goto Forum:
  

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

Current Time: Mon Oct 16 19:55:56 EDT 2017

Total time taken to generate the page: 0.00672 seconds