Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-21-2002, 12:43 AM
imported_JakeC imported_JakeC is offline
 
Join Date: Jul 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-21-2002, 02:21 AM
Cypher720's Avatar
Cypher720 Cypher720 is offline
 
Join Date: Aug 2002
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i think you just add $logincode where you want it
Reply With Quote
  #3  
Old 10-21-2002, 05:17 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find this in forumhome:

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

Delete it, and then put the variable ($logincode) into the table.
Reply With Quote
  #4  
Old 10-21-2002, 02:46 PM
imported_JakeC imported_JakeC is offline
 
Join Date: Jul 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 10-22-2002, 05:11 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did any other text appear? Did you try to view it when you were logged out?
Reply With Quote
  #6  
Old 10-22-2002, 02:13 PM
imported_JakeC imported_JakeC is offline
 
Join Date: Jul 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 10-22-2002, 02:19 PM
imported_JakeC imported_JakeC is offline
 
Join Date: Jul 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 10-22-2002, 02:39 PM
imported_JakeC imported_JakeC is offline
 
Join Date: Jul 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 10-25-2002, 03:02 PM
imported_JakeC imported_JakeC is offline
 
Join Date: Jul 2002
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I got it, thanks for the help.

JakeC
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04286 seconds
  • Memory Usage 2,237KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete