Jump to content
xisto Community
Sign in to follow this  
saxsux

PHP-Nuke Help usernames

Recommended Posts

Since everyone here are geniuses and I'm a bit of a n00b, this should be easy...All i need is some PHP that will find the current logged in user's username and put it in a textbox. I need to be able to apply formatting, etc to the textbox, and the textbox will be used as part of a form.Could you help me? Please?

Share this post


Link to post
Share on other sites

Try searching for PHP-Nuke mods - there surely are plenty of them which does this job.. Other than than most details about users are available in the form of variables like {username}, {gender} etc - that's how it works out in Mambo CMS too.. you can insert these directly into text and the values will dynamically change depending upon the current user...Regards,m^e

Share this post


Link to post
Share on other sites

I am no genius, but I do know where to find certain things about PHP-Nuke ever sice I was a NewBee I wanted all I could find out about the CMS.

Here Is some themes from Nuke Resources and you can go to this site also, they love making themes at this site for PHP-Nuke Nuke Code Theme Preview Page. Hope that helps you in a search for themes and if you want some MODs that work with your forums my site NukeXtra offers MODs that work with the PHP-Nuke Version of phpBB2. You can also try Ported Mods

Share this post


Link to post
Share on other sites

All you have to do is is use the following code to get the textbox:

<?phpglobal $cookie;echo($cookie['1']);?>

That is all you have to do for PHP-Nuke to display the currently logged in user name!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.