Get support from Xavier Media
It is currently Sun Dec 08, 2013 7:37 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Recalling USERNAME from the database
PostPosted: Thu May 24, 2007 11:05 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
How do I put: "Hello Dude" (Dude being in this case, the USER) in my page?

Thank you.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Fri May 25, 2007 12:20 am 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
You would need to connect to the database and run a query to print the value of username. That depends heavily on your code.

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Fri May 25, 2007 4:03 am 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
Use something like this:
Code:
if ($loginname != "")
  echo "Hello ". $loginname;
else
  echo "Hello ". $loginuser;

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Sat May 26, 2007 11:35 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
bylla wrote:
Use something like this:


Thank you.

Something else. Could you go to my site, the domain in the e-mail you have for me, and check this:

When you attempt to log in in the form, it accepts and will redirect correctly to the intended page.

BUT, when guest users click one of the psp pages that is linked to - which should redirect people to the "LOG IN," instead of processing the request, it gives this page:

Quote:
This site do not have a valid license key for Cookie Password Protection because of:

* [licence key removed] is not a valid licence key for this software

Please contact the site owner for more information.


Again, it works when you hit enter in the form, but when the page is linked to, my potential clients see a link to Xavier. And English that looks like it was written by cuzin Jethro.

Shit. Sorry. Help?

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Sun May 27, 2007 2:00 am 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
I'll have a look, I've not heard from bylla in a couple of days...

If you are linking to the page (the one that the user is taken to after logging in), make sure you have ?action=login in the URL.

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon May 28, 2007 6:08 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
Upload unlock.php to your server, visit it with your web browser and remove the file later. That should do the trick!

/Andreas

PS. I've been in Stockholm :D

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed May 30, 2007 10:59 am 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
[license key removed]

Sorry.

So anyway, I don't think I have the unlock.php file. Is that new in 2.9? I should upgrade, then?

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed May 30, 2007 12:56 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
bylla wrote:
Upload unlock.php to your server, visit it with your web browser and remove the file later. That should do the trick!


It did do a trick. It replaced my database entry for the Login page code. People should know to back that up!!

It changed one thing. Tell me how the difference was significant:

First, the Form Method line was tweaked:
Code:
<FORM METHOD="post" ACTION="%page%?action=login">


became:

Code:
<FORM METHOD=post ACTION="%page%?action=login">



I'm confused. And not thrilled to have lost my code for the generic login.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed May 30, 2007 1:17 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
Yup. That was exactly it. That simple. The unlock thing didn't mess up anything else, did it?

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed May 30, 2007 3:16 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
kcsteve wrote:
It changed one thing. Tell me how the difference was significant:

First, the Form Method line was tweaked:
Code:
<FORM METHOD="post" ACTION="%page%?action=login">


became:

Code:
<FORM METHOD=post ACTION="%page%?action=login">



I'm confused. And not thrilled to have lost my code for the generic login.
It shouldn't be any diffrence at all between "post" and just post.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed May 30, 2007 3:17 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
kcsteve wrote:
The unlock thing didn't mess up anything else, did it?
Nope!

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Thu May 31, 2007 3:55 am 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
bylla wrote:
It shouldn't be any diffrence at all between "post" and just post.


I swear, I just switched that code out of the original login page after comparing everything to the letter (I had a backup). The post quotes were the only thing different and now it's not whining and spitting out my product key to everyone :-)

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Registered users: No registered users


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]