[Tutorial] Moving Whois Online/Login

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
User avatar
Brewjah
Registered User
Posts: 265
Joined: Sun Mar 10, 2002 5:37 pm
Location: I think im lost..
Contact:

[Tutorial] Moving Whois Online/Login

Post by Brewjah » Fri Apr 05, 2002 2:49 pm

wasnt exactly sure where to post this.. so here.. if a Mod/Admin moves it.. so be it!

Brewjah's Forum Mod'ing Tutorial
how to change your forum around some..

1. get a decent html editor.. i prefer dreamweaver.. it may seem confusing at first if youve never used it but you'll get used to it.. and do all your designing in multiview.. code view & design view..


NOTE: Before making any sort of MAJOR changes.. create a new forum one that you can fool around with and not have to worry about screwing up..
Make a new Directory in your site.. example.. blah.com/forum2/
Copy ENTIRE contents of your forum directory blah.com/forum1/
move the copied files of blah.com/forum1/ to blah.com/forum2/ now youre ready to start making changes.



2. On with making some changes..


to change the default "phpBB creating communities" logo in the top left.. open up overall_header.tpl in your templates directory
if your using the subSilver theme the path would be.. /phpBB/templates/subSilver/
look for <td> <a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a> and change the logo_phpBB.gif to anything you want it to be.. but make sure the path is the same as the path to where your image file is stored.
save and close overall_header.tpl


3. Adding more boxes to the Index Page..


NOTE: to change the layout of the index page youre going to be editing. 4 files max.. 3-2 files on average.. 1 file minimum the files youre going to be editing are as labelled below these files will get edited depending on what you want to do and how you want to make your forum look..


overall_header.tpl - contains phpBB logo and links


index_body.tpl - contains login boxes, who's online, forum rows and main forum stuff


overall_footer.tpl - contains the admin link, and phpBB powerd by stuff


page_tail.php - contains the phpBB created this page in blah blah seconds stuff..

How this works.. phpBB calls overall_header.tpl which starts off with the main table then adds the logo and header links.. it leaves the table open and doesnt close the <body> or <html> tags .. it actually leaves them open.. then it proceeds to call index_body.tpl which adds the forum rows and columns.. after its gone thru the process of adding the forum body rows and columns it adds the whois online and then login boxes.. once its done all this.. it calls up overall_footer.tpl and closes everything up the first <table> instance from overall_header.tpl .. then <body> then closes up the <html> tags.. after this page_tail.php gets called and includes the final phpBB created this page in blah blah seconds..



with all that in mind.. you should know how this works.. dont ask for any diagrams because im not going to draw any up even tho it would help out some more.. and YES im assuming you know some HTML because if you dont and youre attempting any of this.. i suggest you stop and stick with the defaults before you go any further and play around with dreamweaver and see how pages are made.. BTW it does have a nifty little tutorial that helps which i suggest you should read..

ok..

say you want to *thinks* move the who's online to the top instead of having it at the bottom..



open index_body.tpl and find the following code

Code: Select all

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr> 
	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
	</td>
  </tr>
  <tr> 
	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
	<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</table>

 

and add it before..

Code: Select all

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="bottom"><span class="gensmall">
	<!-- BEGIN switch_user_logged_in -->
	{LAST_VISIT_DATE}<br />
	<!-- END switch_user_logged_in -->
	{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	<td align="right" valign="bottom" class="gensmall">
		<!-- BEGIN switch_user_logged_in -->
		<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
		<!-- END switch_user_logged_in -->
		<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>




save and close index_body.tpl

you now have a whois online at the top of your page.. and please dont just copy and paste this information actually get dreamweaver or another html editor of your choice and look at the code.. see how its made.. if youre going to use dreamweaver.. youre going to see highlighted yellow code this is dreamweaver telling you that youre missing the closing tags.. remember what i stated above and you should be ok..



if you want to move around the index login boxes to the top below the whois online.. do the following..

[note] this is based on assumption that you did the above changes to the whois online boxes..




open index_body.tpl copy

find and copy the following code..

Code: Select all

<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
	<tr> 
	  <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
	</tr>
	<tr> 
	  <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}: 
		<input class="post" type="text" name="username" size="10" />
		&nbsp;&nbsp;&nbsp;{L_PASSWORD}: 
		<input class="post" type="password" name="password" size="10" />
		&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
		<input class="text" type="checkbox" name="autologin" />
		&nbsp;&nbsp;&nbsp; 
		<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
		</span> </td>
	</tr>
  </table>
</form>
<!-- END switch_user_logged_out -->
 

paste it below the following code..

Code: Select all

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
  </tr>
  <tr> 
	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
	</td>
  </tr>
  <tr> 
	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
	<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</table>
Please note that this is just a quick tutorial to take some of the fear out of learning html and to get you on your way to learning how to edit and make html pages of your own.. and please remember the moders and everyone else who visits/helps at this forum DO NOT get paid for helping you.. OR making mod's it is up to someone to CHOOSE to help you out.. if you choose to take their help and something goes wrong.. dont freak out on the and remember that it was your choice to listen to that person in the first place.. you make your own choices.. no one else makes them for you..

well.. not entirely true.. when youre a kid.. your parents chose which nappies to put you in.. disposable or cloth
Filling in that ugly white noise with a bunch of black static..

Locked

Return to “2.0.x Support Forum”