vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Moving the Login (https://vborg.vbsupport.ru/showthread.php?t=85038)

imported_JakeC 10-21-2002 12:43 AM

Moving the Login
 
Ok, I am pretty new to this so bare with me. Can someone give me a quick rundown on how to move my login form from the bottom of the page to a table that I already have set up and waiting for it in my header? I'm familiar with modifying templates to change appearances, but I have not got the knack of manipulating the location of templates on the forum home page. Any help you could give would be very much appreciated.

Thanks

JakeC

Cypher720 10-21-2002 02:21 AM

i think you just add $logincode where you want it

Tony G 10-21-2002 05:17 AM

Find this in forumhome:

<td align="right">$logincode</td>

Delete it, and then put the variable ($logincode) into the table.

imported_JakeC 10-21-2002 02:46 PM

Ok, I gave the above suggetion a try and here is what happened:

In the header template I changed the code for the table I want the login to be in to this:

<table background="images/loggin.jpg" cellpadding="0" cellspacing="0" border="0" width="222" height="27">
<tr>
<td align="right">$logincode</td>
</tr>
</table>

Next I deleted this from the forum home template:

<td align="right">$logincode</td>

After saving the changes I went into the forum and refreshed. Nothing happened except the login at the bottom was deleted. Nothing was put into the desired table in the header. When I viewed the source code this is what it is showing for the table in the header:

<table background="images/loggin.jpg" cellpadding="0" cellspacing="0" border="0" width="222" height="27">
<tr>
<td align="right"></td>
</tr>
</table>

Nothing is showing up in the <td></td>

Any help you could give would be much appreciated.

Thanks

JakeC

Tony G 10-22-2002 05:11 AM

Did any other text appear? Did you try to view it when you were logged out?

imported_JakeC 10-22-2002 02:13 PM

No, no other text appeared. I went ahead and reverted to the original in both the header template and the forumhome template to get the login box to show back up. Unfortunately when I reverted back to the originals the login box did not show up at all. I am scratching my head here because it seems to me that if I deleted the $logincode out of the forumhome template, if I reverted to the original it should come back. Hmm. I even tried adding the $logincode to the forumhome template to see if it would show up and it does not. Any idea what might be going on here? I really need help with this. Thanks in advance.

JakeC

imported_JakeC 10-22-2002 02:19 PM

Whoops, I'm a bone head. I logged out and it showed up in the reverted template. Now I am going to go back and change the templates back and see if when I log out if it will show up in the desired location. I guess that brings me to another question. Is it possible to replace the login code with the logout link when the person is logged in? That way I will have the login showing until they log in at which time they go to the same place to log out. Any thoughts?

JakeC

imported_JakeC 10-22-2002 02:39 PM

Well, back to square one. I changed the header template back to the modified version. I inserted the $logincode into the table that I want it to go, and nothing is happening. I tried to insert into another table in the header and nothing happened. Next I inserted it elsewhere into the forum home and it shows up no problem. Any other ideas?

JakeC

Ps. when I view the source for the homepage the only thing that is changed is that $logincode disappears. It's in the template but disappears in the source code.

imported_JakeC 10-25-2002 03:02 PM

Ok, I got it, thanks for the help.

JakeC


All times are GMT. The time now is 07:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01037 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete