disabeling the user login in the header section of my site

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   disabeling the user login in the header section of my site
cybershot
CZ Super Newbie
cybershot has been a member for over 17 year's 17 Year Member
usa.gif oregon.gif
Gender: Male
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
I have a username and password login on my site in the header, i want it to go away because i have an alternate method for people to login that is better. i found the code but i am having trouble getting it to go away. If i try to comment out the code then all i get is a black screen. the theme doesn't show up, or the site.

Here is the code

$username = $cookie[1];
    if ($username == "") {           
echo "<form onsubmit=\"this.submit.disabled='true'\" action=\"modules.php?name=Your_Account\" method=\"post\">"
."                  <input type=\"text\" name=\"username\" size=\"10\" value=\"Username\" maxlength=\"25\">"
."                  <br>"
."                  <input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\">"
."                  <br>"
."                  <input type=\"hidden\" name=\"op\" value=\"login\">"
."                  <input type=\"submit\" value=\""._LOGIN."\"></form>      "
."            </form>";
}

What do i do to make it go away? thank you


Back to top Reply with quote
#2   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
You need to find the display part of that script in your theme. More than likely it's in themes/YOUR THEME/header.html. The script you posted looks like it's in Your Account scripts and it part of the engine that runs cookies for logins...not the display of the login blocks you're wanting to delete. Find what makes the login part show up in your theme and comment it out using <!-- and --> tags before and after the script or back up your file and delete the lines that look like they are the ones displaying login blocks in the header. Every theme is different and displays the log in part in different ways so just play with it until you find out how to make your theme look the way you want.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   re: disabeling the user login in the header section of my si
cybershot
CZ Super Newbie
cybershot has been a member for over 17 year's 17 Year Member
usa.gif oregon.gif
Gender: Male
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
that was the right code



Back to top Reply with quote
#4   re: disabeling the user login in the header section of my si
cybershot
CZ Super Newbie
cybershot has been a member for over 17 year's 17 Year Member
usa.gif oregon.gif
Gender: Male
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
i have attached the file



Attached Files
header.txt (2.46 KB, Downloaded: 5237 Time(s))


Back to top Reply with quote
#5   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
I'm not able to download the attachment. try zipping it up. The point is tho...the code you posted is part of the php engine that runs logins and not the display part of logging in that you wish to remove.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#6   re: disabeling the user login in the header section of my si
cybershot
CZ Super Newbie
cybershot has been a member for over 17 year's 17 Year Member
usa.gif oregon.gif
Gender: Male
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
i added a one to one of the tables borders and it bordered the info i want to remove. so i am sure i have the right code. you can view my page at [ Register or login to view links on this board. ] i will put the code there for you to download. give me a second.



Back to top Reply with quote
#7   re: disabeling the user login in the header section of my si
cybershot
CZ Super Newbie
cybershot has been a member for over 17 year's 17 Year Member
usa.gif oregon.gif
Gender: Male
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
try this [ Register or login to view links on this board. ]



Back to top Reply with quote
#8   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Back up your file and in that file you sent find this and delete it.

if ($username == "") {           
echo "<form onsubmit=\"this.submit.disabled='true'\" action=\"modules.php?name=Your_Account\" method=\"post\">"
."                  <input type=\"text\" name=\"username\" size=\"10\" value=\"Username\" maxlength=\"25\">"
."                  <br>"
."                  <input type=\"password\" name=\"user_password\" size=\"10\" maxlength=\"20\">"
."                  <br>"
."                  <input type=\"hidden\" name=\"op\" value=\"login\">"
."                  <input type=\"submit\" value=\""._LOGIN."\"></form>      "
."            </form>";
}




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#9   re: disabeling the user login in the header section of my si
cybershot
CZ Super Newbie
cybershot has been a member for over 17 year's 17 Year Member
usa.gif oregon.gif
Gender: Male
Website:
Status: Offline
Joined: Jan 31, 2007
0.01 posts per day
Posts: 75
Points: 25
   
i have tried that. all i get is a black screen. the theme doesn't initialize fully
but i will try it again just for you



Back to top Reply with quote
#10   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 20 year's 20 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Lookin good so far




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum