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)

avatar
 
Advance Member

Posted on Sat Jun 22, 2013 10:28 am

 
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 :/



View user profile


avatar
 
Administrator
Administrator

Posted on Sat Jun 22, 2013 11:32 am

 
Use this one: /login?logout



View user profile http://coding-spot.darkbb.com


avatar
 
Advance Member

Posted on Sat Jun 22, 2013 11:36 am

 
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.



View user profile


avatar
 
Administrator
Administrator

Posted on Sat Jun 22, 2013 11:40 am

 
Provide me the code of your own navigation. Happy



View user profile http://coding-spot.darkbb.com


avatar
 
Advance Member

Posted on Sat Jun 22, 2013 11:51 am

 
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



View user profile


avatar
 
Administrator
Administrator

Posted on Sat Jun 22, 2013 11:56 am

 
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>



View user profile http://coding-spot.darkbb.com


avatar
 
Advance Member

Posted on Sat Jun 22, 2013 11:58 am

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



View user profile


avatar
 
Administrator
Administrator

Posted on Sat Jun 22, 2013 12:04 pm

 
What's your forum url?



View user profile http://coding-spot.darkbb.com


avatar
 
Advance Member

Posted on Sat Jun 22, 2013 12: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/



View user profile


avatar
 
Administrator
Administrator

Posted on Sat Jun 22, 2013 12:11 pm

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



View user profile http://coding-spot.darkbb.com


avatar
 
Advance Member

Posted on Sat Jun 22, 2013 12:13 pm

 
it is in a template, in overall_header Happy



View user profile


avatar
 
Administrator
Administrator

Posted on Sat Jun 22, 2013 12: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 Sat Jun 22, 2013 1:13 pm; edited 1 time in total



View user profile http://coding-spot.darkbb.com


avatar
 
Advance Member

Posted on Sat Jun 22, 2013 12:30 pm

 
nope, it still doesn't show



View user profile


avatar
 
Administrator
Administrator

Posted on Sat Jun 22, 2013 1:13 pm

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



View user profile http://coding-spot.darkbb.com


avatar
 
Advance Member

Posted on Sat Jun 22, 2013 1:20 pm

 
still the same actually :/



View user profile


#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