Coding-Spot

You are not connected. Please login or register

Go to page : 1, 2  Next

 
 
 

url/link of the log in/log out button

Message (Page 1 of 2)

#1

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 5:28 pm

 
so let's say if i wanted to make an navigation, that isn't the original one.. like if i put the code in overall_body.
and i wanted to make an log in/out button, what would be the url to but there? cuz if i copy the url of the log out button, that doesn't work :/





#2

Mark

Mark
 
Administrator
Administrator

Posted June 22nd 2013, 6:32 pm

 
Use this one: /login?logout



https://coding-spot.darkbb.com


#3

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 6:36 pm

 
okay that works for the log out, but when i'm logged out and i click it, it just redirects back to the home page.





#4

Mark

Mark
 
Administrator
Administrator

Posted June 22nd 2013, 6:40 pm

 
Provide me the code of your own navigation. Happy



https://coding-spot.darkbb.com


#5

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 6:51 pm

 
Code:
<div class="buttonsbg"><table><tr><td><div class="button"><a href='/'>home</a></div></td><td><div class="button"><a href='profile?mode=editprofile'>profile</a></div></td></tr><tr><td><div class="button"><a href='memberlist'>members</a></div></td><td><div class="button"><a href='groups'>groups</a></div></td></tr><tr><td><div class="button"><a href='/privmsg?folder=inbox'>mailbox</a></div></td><td><div class="button"><a href='/login?logout'>log in/out</a></div></td></tr><tr><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/t2-the-rules'>rules</a></div></td><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/t8-opisni-obrazec'>application</a></div></td></tr><tr><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/f32-claims'>claims</a></div></td><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/f8-wanted-adds'>wanted adds</a></div></td></tr></table></div>

here it is Happy





#6

Mark

Mark
 
Administrator
Administrator

Posted June 22nd 2013, 6:56 pm

 
Use this one instead:
Code:
<div class="buttonsbg"><table><tr><td><div class="button"><a href='/'>home</a></div></td><td><div class="button"><a href='profile?mode=editprofile'>profile</a></div></td></tr><tr><td><div class="button"><a href='memberlist'>members</a></div></td><td><div class="button"><a href='groups'>groups</a></div></td></tr><tr><td><div class="button"><a href='/privmsg?folder=inbox'>mailbox</a></div></td><td><!-- BEGIN switch_user_logged_in --><div class="button"><a href='/login?logout'>log out</a></div><!-- END switch_user_logged_in --> <!-- BEGIN switch_user_logged_out --><div class="button"><a href='/login'>log in</a></div><!-- END switch_user_logged_out -->  </td></tr><tr><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/t2-the-rules'>rules</a></div></td><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/t8-opisni-obrazec'>application</a></div></td></tr><tr><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/f32-claims'>claims</a></div></td><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/f8-wanted-adds'>wanted adds</a></div></td></tr></table></div>



https://coding-spot.darkbb.com


#7

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 6:58 pm

 
doesn't work :/ i mean the button just disappears





#8

Mark

Mark
 
Administrator
Administrator

Posted June 22nd 2013, 7:04 pm

 
What's your forum url?



https://coding-spot.darkbb.com


#9

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 7:10 pm

 
well right now i'm testing stuff on this one http://testing-graphics.slovenianforum.com/
but it will be used on this one http://clippertonisland.slovenianforum.com/





#10

Mark

Mark
 
Administrator
Administrator

Posted June 22nd 2013, 7:11 pm

 
By any chance did you put it on Homepage Message?
Try putting it on a template.



https://coding-spot.darkbb.com


#11

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 7:13 pm

 
it is in a template, in overall_header Happy





#12

Mark

Mark
 
Administrator
Administrator

Posted June 22nd 2013, 7:22 pm

 
Ok. Try this one:
Code:
<div class="buttonsbg"><table><tr><td><div class="button"><a href='/'>home</a></div></td><td><div class="button"><a href='profile?mode=editprofile'>profile</a></div></td></tr><tr><td><div class="button"><a href='memberlist'>members</a></div></td><td><div class="button"><a href='groups'>groups</a></div></td></tr><tr><td><div class="button"><a href='/privmsg?folder=inbox'>mailbox</a></div></td><!-- BEGIN switch_user_logged_in --><td><div class="button"><a href='/login?logout'>log out</a></div></td><!-- END switch_user_logged_in --> <!-- BEGIN switch_user_logged_out --><td><div class="button"><a href='/login'>log in</a></div></td><!-- END switch_user_logged_out --></tr><tr><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/t2-the-rules'>rules</a></div></td><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/t8-opisni-obrazec'>application</a></div></td></tr><tr><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/f32-claims'>claims</a></div></td><td><div class="button"><a href='http://clippertonisland.slovenianforum.com/f8-wanted-adds'>wanted adds</a></div></td></tr></table></div>



Last edited by Mark on June 22nd 2013, 8:13 pm; edited 1 time in total



https://coding-spot.darkbb.com


#13

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 7:30 pm

 
nope, it still doesn't show





#14

Mark

Mark
 
Administrator
Administrator

Posted June 22nd 2013, 8:13 pm

 
Wrong type, sorry, check again the code on post #12.



https://coding-spot.darkbb.com


#15

novacane.

novacane.
 
Advance Member

Posted June 22nd 2013, 8:20 pm

 
still the same actually :/





#16

Sponsored content


 

Posted

 





Message (Page 1 of 2)

Permissions in this forum:
You cannot reply to topics in this forum

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None