Pagina 1 van 1

inlog block verwijderen

Geplaatst: 26 nov 2003, 11:19
door Raffel
ik ben nu bezig met ezportal -> http://members.lycos.nl/broodjeclan/portal.php
(jah ik weet het, nog geen mooie lay-out, maar ik wil eerst de inhoud goed hebben)
maar omdat alles draait op de portal (geen forum etc erbij) vind het dus onnodig dat mensen zich aanmelden..wat moet ik dan allemaal weghalen in de .tpl? want ik heb vanalles geprobeerd, maar dan staat alles door elkaar :?

bijvoorbaat dank

Ralph

ook handig: stukje uit de .tpl waar het in zou moeten zitten:

Code: Selecteer alles

<br />
		
		<!-- END welcome_text -->
		<!-- BEGIN fetchpost_row -->
		<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		  <tr>
		<td class="catHead" height="25"><span class="genmed"><b>{L_ANNOUNCEMENT}: {fetchpost_row.TITLE}</b></span></td>
		  </tr>
		  <tr>
			<td class="row2" align="left" height="24"><span class="gensmall">{L_POSTED}: <b>{fetchpost_row.POSTER}</b> @ {fetchpost_row.TIME}</span></td>
		  </tr>
		  <tr>
			<td class="row1" align="left"><span class="gensmall" style="line-height:150%">{fetchpost_row.TEXT}<br /><br />{fetchpost_row.OPEN}<a href="{fetchpost_row.U_READ_FULL}">{fetchpost_row.L_READ_FULL}</a>{fetchpost_row.CLOSE}</span></td>
		  </tr>
		  <tr>
			<td class="row3" align="left" height="24"><span class="gensmall">{L_COMMENTS}: {fetchpost_row.REPLIES} :: <a href="{fetchpost_row.U_VIEW_COMMENTS}">{L_VIEW_COMMENTS}</a> (<a href="{fetchpost_row.U_POST_COMMENT}">{L_POST_COMMENT}</a>)</span></td>
		  </tr>
		</table>
		
		<br />

		<!-- END fetch_post_row -->
		</td></tr></table>
	</td>

	<td valign="top" width="22%">
		<table width="100%" cellspacing="1" cellpadding="1" border="0" align="right"><tr><td>
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_NAME_WELCOME} {U_NAME_LINK}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">
				<!-- BEGIN switch_user_logged_in -->
				<center><br />{AVATAR_IMG}</center>
				<br />{LAST_VISIT_DATE}<br /><br />
				<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br />
				<!-- END switch_user_logged_in -->
				<br />{CURRENT_TIME}<br /><br />{S_TIMEZONE}</span>
			</td>
		   </tr>
		  </table>
		  
		  <br />
<!-- BEGIN switch_user_logged_out -->
		<form method="post" action="{S_LOGIN_ACTION}">
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_LOGIN}</b></span></td>
		   </tr>
		   <tr> 
			<td class="row1"><span class="gensmall" style="line-height=150%">
			<input type="hidden" name="redirect" value="{U_PORTAL}" />
			{L_USERNAME}:<br /><input class="post" type="text" name="username" size="15" /><br />
			{L_PASSWORD}:<br /><input class="post" type="password" name="password" size="15" /><br />
			<input class="text" type="checkbox" name="autologin" />&nbsp;{L_REMEMBER_ME}<br/>
			<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /><br /><br /><a href="{U_SEND_PASSWORD}" class="gensmall">{L_SEND_PASSWORD}</a><br /><br />{L_REGISTER_NEW_ACCOUNT}<br />&nbsp;</span></td>
		   </tr>
		  </table>
		</form>

		<!-- END switch_user_logged_out -->

Geplaatst: 26 nov 2003, 11:30
door Stef
Wil je dat ze niet aanmelden op een simpele manier?
Haal heel het menu uit je overall_header.tpl. :wink:

Geplaatst: 26 nov 2003, 11:36
door Podium4
Dit stukje word laten zien als je niet ingelogd bent:

Code: Selecteer alles

<!-- BEGIN switch_user_logged_out --> 
      <form method="post" action="{S_LOGIN_ACTION}"> 
        <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
         <tr> 
         <td class="catHead" height="25"><span class="genmed"><b>{L_LOGIN}</b></span></td> 
         </tr> 
         <tr> 
         <td class="row1"><span class="gensmall" style="line-height=150%"> 
         <input type="hidden" name="redirect" value="{U_PORTAL}" /> 
         {L_USERNAME}:<br /><input class="post" type="text" name="username" size="15" /><br /> 
         {L_PASSWORD}:<br /><input class="post" type="password" name="password" size="15" /><br /> 
         <input class="text" type="checkbox" name="autologin" />&nbsp;{L_REMEMBER_ME}<br/> 
         <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /><br /><br /><a href="{U_SEND_PASSWORD}" class="gensmall">{L_SEND_PASSWORD}</a><br /><br />{L_REGISTER_NEW_ACCOUNT}<br />&nbsp;</span></td> 
         </tr> 
        </table> 
      </form> 

      <!-- END switch_user_logged_out -->
En dit als je wel ingelogd bent:

Code: Selecteer alles

      <table width="100%" cellspacing="1" cellpadding="1" border="0" align="right"><tr><td> 
        <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
         <tr> 
         <td class="catHead" height="25"><span class="genmed"><b>{L_NAME_WELCOME} {U_NAME_LINK}</b></span></td> 
         </tr> 
         <tr> 
         <td class="row1" align="left"><span class="gensmall"> 
            <!-- BEGIN switch_user_logged_in --> 
            <center><br />{AVATAR_IMG}</center> 
            <br />{LAST_VISIT_DATE}<br /><br /> 
            <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /> 
            <!-- END switch_user_logged_in --> 
            <br />{CURRENT_TIME}<br /><br />{S_TIMEZONE}</span> 
         </td> 
         </tr> 
        </table>
@Stefkuh: hij laat z'n portal_body.tpl deels zien dus zal die dat bedoelen...

Geplaatst: 26 nov 2003, 12:24
door Raffel
jah k, maar als ik dat weghaal, komt alles wat normaal rechts staat onder die 2 blocks, ergens vaag in het midden te staan..

-edit- maybe is het dan makkelijker als iemand een code weet om het rechts te zetten?? -edit-

Geplaatst: 26 nov 2003, 12:39
door Podium4
ik zie het probleem al.... ik heb iets te veel neergezet...:

En dit als je wel ingelogd bent:

Code: Selecteer alles

        <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
         <tr> 
         <td class="catHead" height="25"><span class="genmed"><b>{L_NAME_WELCOME} {U_NAME_LINK}</b></span></td> 
         </tr> 
         <tr> 
         <td class="row1" align="left"><span class="gensmall"> 
            <!-- BEGIN switch_user_logged_in --> 
            <center><br />{AVATAR_IMG}</center> 
            <br />{LAST_VISIT_DATE}<br /><br /> 
            <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /> 
            <!-- END switch_user_logged_in --> 
            <br />{CURRENT_TIME}<br /><br />{S_TIMEZONE}</span> 
         </td> 
         </tr> 
        </table>
De regel die daar boven stond moet dus even terug...:

Code: Selecteer alles

      <table width="100%" cellspacing="1" cellpadding="1" border="0" align="right"><tr><td>

Geplaatst: 26 nov 2003, 12:45
door Raffel
tnx! het werkt! eigenlijk was het ook best logisch als ik het zo zie :oops:

Geplaatst: 26 nov 2003, 17:27
door superman5000
ik zou als het jou was nog wel eff een doorschakeling maken want als je naar http://members.lycos.nl/broodjeclan/
dan krijg je this bourd have no message

Geplaatst: 26 nov 2003, 18:31
door Raffel
jah...dat is ook een probleem...hoe doe je dat:S hij gaat namelijk automatisch naar index.php (het forum, dat niet gebruikt word) en niet naar portal.php.. iemand?

Geplaatst: 26 nov 2003, 18:36
door DaMnNaTiOn
Rename index.php naar index2.php en portal.php naar index.php
Is de makkelijkste manier. :wink:

Geplaatst: 26 nov 2003, 19:23
door Luuk
DaMnNaTiOn schreef:Rename index.php naar index2.php en portal.php naar index.php
Is de makkelijkste manier. :wink:
nouw..... dan klopt de link "Forum" in board navigation niet meer...

Bij de mod van het (ez)portal, staat dit er ook bij uitgelegd... dus volg de instructies maar :wink:

Geplaatst: 26 nov 2003, 20:21
door DaMnNaTiOn
Zoals ik kan zien gebruikt hij de phpBB functie niet maar alleen de EZPortal functie dus het maakt volgens mij niks uit. :wink:

Geplaatst: 27 nov 2003, 16:06
door Raffel
tis gelukt! werkte gewoon, omdat ik alleen de portal immers gebruik

Geplaatst: 27 nov 2003, 16:34
door DaMnNaTiOn
Graag gedaan he :wink:

Geplaatst: 27 nov 2003, 17:10
door Raffel
DaMnNaTiOn schreef:Graag gedaan he :wink:

tnx indd :oops: