Free Press Release Submission




MB Publishing Webmaster Resource ::
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 


Populate Add Link With Username

 
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> Nuke Modules
View previous topic :: View next topic  
Author Message
Colocation
Site Admin
Site Admin


Joined: Jan 07, 2004
Posts: 412

PostPosted: Fri Jul 22, 2005 10:00 am    Post subject: Populate Add Link With Username Reply with quote

Regarding the add link function code from /modules/Web_links/index.php

What edits can be made to populate this form with the username that is currenty logged in.

The anonaddlinklock is active so a user must be logged in to even get to that page and add a link, though we need this tied in to the actual username rather than offer the user to add a name and e-mail address.

For some reason the code could not be added into
Code:
quotes.
Back to top
View users profile Send private message Visit posters website Yahoo Messenger
flann
Newbie
Newbie


Joined: Jul 13, 2005
Posts: 35

PostPosted: Mon Aug 01, 2005 1:03 pm    Post subject: Reply with quote

I'm more familiar with asp.net, in fact I've never used php. If it is logic you are looking for, perhaps I can help. If you pass the user name from page to page using a cookie, then when that add link page loads, grab that username from the cookie.

If you check the username against the database, then you can populate the field that way. I look at .php to see how it could be done.
Back to top
View users profile Send private message Visit posters website
flann
Newbie
Newbie


Joined: Jul 13, 2005
Posts: 35

PostPosted: Mon Aug 01, 2005 1:07 pm    Post subject: Reply with quote

maybe this would work

'<input type='text' name='<?php variableThatHoldUserName; ?>' />
Back to top
View users profile Send private message Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    MB Publishing Webmaster Resource Forum Index -> Nuke Modules All times are GMT + 1 Hour
Page 1 of 1

 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Home | News Feeds | Release Archive | Web Marketing | Weight Loss | Publish Your Links | Press Release Topics | Free Downloads | Press FAQs | AvantGO | Amazon Store
Webmaster Forums | Search Releases | Press Topics | Feedback | Submit Press Release | Webmaster Surveys | Recommend | Top | Account | PM | Prweb | Free Link Submission | Add Downloads | New Media | Audio School | TOS

The comments are property of their posters, all the rest 2004 - 2008 by MB
Audana Ltd
You can syndicate our news using the file backend.php
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.967 Seconds. -