Jump to content

Recommended Posts

OOOOOK im sure this is very simple..but i have as much knowledge about coding as a myspace user taking copying and pasting codes. Now, my problem.

I recently bought Dzoic Handshakes after doing some research on a social networking script. got it on a server at stormondemand.com. I am trying to customize it in a section they have for us called page composer.. It uses smarty templates? which im catching on to seems pretty easy since all i have to do is type in the template and all the code pops up. but when i pull up the header.tpl and try to place the Login section template code in the header it just doesnt pop up right. i have been trying to figure this out but now im just wasting to much time so if anyone could help it would be much appreciated.

i will post the code below...maybe a newb mistake.. i guess i will find out in the future..

 

HEADER.TPL

 

{if $menus.submenu1}

{assign var="submenu" value=$menus.submenu1}

{elseif $menus.submenu2}

{assign var="submenu" value=$menus.submenu2}

{elseif $menus.submenu3}

{assign var="submenu" value=$menus.submenu3}

{elseif $menus.submenu4}

{assign var="submenu" value=$menus.submenu4}

{elseif $menus.submenu5}

{assign var="submenu" value=$menus.submenu5}

{elseif $menus.submenu6}

{assign var="submenu" value=$menus.submenu6}

{elseif $menus.submenu7}

{assign var="submenu" value=$menus.submenu7}

{elseif $menus.submenu8}

{assign var="submenu" value=$menus.submenu8}

{elseif $menus.submenu9}

{assign var="submenu" value=$menus.submenu9}

{elseif $menus.submenu10}

{assign var="submenu" value=$menus.submenu10}

{elseif $menus.submenu11}

{assign var="submenu" value=$menus.submenu11}

{/if}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

<META http-equiv="Content-Type" content="text/html; charset={$encoding}">

<META http-equiv="content-language" content="en">

<META NAME="description" CONTENT="{$meta.description}">

<META name="keywords" content="{$meta.keywords}">

<title>{$meta.title}{$page_title}</title>

<link rel="stylesheet" type="text/css" href="{$root}/style.css">

{$javascript}

<script language="JavaScript">

<!--

var MainURL = "{$url}/";

//-->

</script>

</head>

<body bgcolor="#ccccc" topmargin="0" leftmargin="0" bottommargin="0" rightmargin="0" onload="{$onload}">

{if $sbmodule == "enabled"}

<script type="text/javascript" src="{$url}/jscript/sblib.js"></script>

<script type="text/javascript" src="{$url}/jscript/wz_tooltip.js"></script>

{/if}

{include file="notification.tpl"}

<div id="vchat_window"></div>

 

 

THIS IS WHERE MY HEADER STUFF IS I BELIEVE

 

 

<table height="100%" cellpadding="0" cellspacing="0" border="3" id="body" align="center" width="1059">

<tr><td width="9" background="{$root}/page_shadow_left.gif">{html_image file="$root/spacer.gif"}</td>

<td>

<table height="100%" cellpadding="0" cellspacing="0" border="0" align="center" width="100%">

<tr><td valign="top" height="150">

<table width="100%" cellpadding="0" cellspacing="0" border="5">

<tr><td width="139">{html_image file="$root/logo.gif" link="index.php"}</td>

</td>

<td width="100%"><table cellpadding="0" cellspacing="0" border="0" width="100%" height="44">

<tr><td background="{$root}/header_bcg.gif" colspan="2">{html_image file="$root/header_bcg.gif"}</td></tr>

<tr><td background="{$root}/header_line.gif" height="9" width="430">{html_image file="$root/spacer.gif" height="9"}</td>

<td background="{$root}/header_line_fixed.gif" height="9">{html_image file="$root/spacer.gif" height="9"}</td>

</tr>

</table></td>

<td width="227" background="{$root}/header_bcg_icons.gif" align="right">

{if $info.im_access && $info.mem_id}

<table cellpadding="0" cellspacing="0" border="0" width="227">

<tr><td align="right">

<script type="text/javascript">

AC_FL_RunContent( "codebase","http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0",

"width","75",

"height","44",

"src","{$url}/swf/hsim_corner",

"quality","high",

"allowScriptAccess","always",

"bgcolor","#ffffff",

"wmode","transparent",

"FlashVars","mem_id={$info.mem_id}&password={$info.password}&member_status={$info.im_status}",

"pluginspage","http://www.macromedia.com/go/getflashplayer",

"movie","{$url}/swf/hsim_corner" );

</script>

</td></tr>

</table>

{else}

{html_image file="$root/spacer.gif" width="227"}

{/if}

</td>

</tr>

                   

 

                      </tr>

THIS IS THE LOGIN FORM CODE THAT WAS IN THE BODY WHEN YOUR FIRST SIGN INTO RESPECTTHEREAL.COM BUT I TOOK IT AND TRIED TO PLACE IT HERE IN THE HEADER BUT ITS JUST NOT COMING OUT HOW I EXPECTED.

 

OPEN

 

<tr>

        <td colspan="3">

        <table cellpadding="0" cellspacing="0" border="0" width="100%">

            <tr>

                <td width="4">{html_image file="$root/boxes/grey_top_left.gif"}</td>

                    <td align="center" background="{$root}/boxes/grey_bcg.gif"><table cellpadding="0" cellspacing="0" border="0" align="center">

                    <tr><td>{html_image file="$root/$boxheader2"}</td></tr>

                    </table></td>

                    <td width="4">{html_image file="$root/boxes/grey_top_right.gif"}</td>

                </tr>

            </table>

        </td>

</tr>

<tr>

<td colspan="3">

CLOSE

 

      </td>

</tr>

<tr>

      <td colspan="3">

      <table cellpadding="0" cellspacing="0" border="0" width="100%">

            <tr>

  <td width="3" height="3"><img src="{$root}/boxes/grey_bottom_left.gif" width="3" height="3" border="0"></td>

    <td height="3" class="grey_bottom" background="{$root}/spacer_grey.gif"><img src="{$root}/spacer.gif" width="1" height="1" border="0"></td>

  <td width="3" height="3"><img src="{$root}/boxes/grey_bottom_right.gif" width="3" height="3" border="0"></td>

            </tr>

            </table>

      </td>

</tr>

 

 

                     

</table>

 

</td></tr>

 

 

 

 

 

 

THIS IS 4 My MENU BAR ONCE U SIGN IN... I BELIEVE

 

 

 

<tr><td valign="top" height="24"><table width="100%" cellpadding="0" cellspacing="0" border="5">

{if $info.mem_id || !$settings.secure_site}

    <tr>

        <td background="{$root}/mainbar_bcg.gif" height="24"><table cellpadding="0" cellspacing="0" border="0" width="100%">

            <tr>

            {foreach from=$menus.mainbar.items item=button key=i name="mainbar"}

            {if $smarty.foreach.mainbar.first}

            <td width="6">{html_image file="$root/mainbar_bcg.gif" width="6"}</td>

            {elseif $menus.mainbar.on!==$i}

            <td width="6">{html_image file="$root/mainbar_bcg.gif" width="6"}</td>

            {/if}

            <td valign="bottom"><a href="{$menus.mainbar.links.$i}" target="{$menus.mainbar.target.$i}">{html_image file="$root/$button"}</a></td>

            {if ($menus.mainbar.on!==$i)}

            <td width="6">{html_image file="$root/mainbar_bcg.gif" width="6"}</td>

            {/if}

            {if $menus.mainbar.on!==$i && $menus.mainbar.on!==($i+1)}

            <td>{html_image file="$root/mainbar_sep.gif"}</td>

            {/if}

            {/foreach}

            <td width="100%">{html_image file="$root/mainbar_bcg.gif" width="5"}</td>

            {if $sbmodule == "enabled"}

            <td width="5">{html_image file="$root/mainbar_bcg.gif" width="5"}</td>

            <td width="21"><a href="javascript:void(0)" onClick="sbDropDown( this )" onMouseOut="sbHide()" onMouseOver="sbStopTimer()">{html_image file="$root/buttons/but_bookmark.gif" alt="Bookmark"}</a></td>

            {/if}

            <td width="5">{html_image file="$root/mainbar_bcg.gif" width="5"}</td>

            <td>{html_image file="$root/`$menus.mailboxicon.items.0`" link=$menus.mailboxicon.links.0 alt="Mailbox"}</td>

            <td width="5">{html_image file="$root/mainbar_bcg.gif" width="5"}</td>

            <td width="21">{html_image file="$root/buttons/but_my_profile.gif" link="`$info.profile_link`" alt="My Profile"}</td>

            <td width="5">{html_image file="$root/mainbar_bcg.gif" width="5"}</td>

            <td width="23">{html_image file="$root/buttons/but_messenger.gif" link="javascript:HS_LaunchIM()" alt="Instant Messenger"}</td>

            <td width="3">{html_image file="$root/mainbar_bcg.gif" width="3"}</td>

            <td width="23">{html_image file="$root/buttons/but_calendar.gif" link="index.php?page=calendar" alt="My Calendar"}</td>

            <td width="5">{html_image file="$root/mainbar_bcg.gif" width="5"}</td>

            <td width="24">{html_image file="$root/buttons/but_bookmarks.gif" link="index.php?page=bookmarks&section=profiles" alt="My Bookmarks"}</td>

            <td width="3">{html_image file="$root/mainbar_bcg.gif" width="3"}</td>

            <td width="24">{html_image file="$root/buttons/but_history.gif" link="index.php?page=history" alt="My History"}</td>

            <td style='padding-right:5px;padding-left:5px;' align="right">{html_image file="$root/buttons/but_logout.gif" link="index.php?handler=login&action=do_logout" alt="Logout"}</td>

            </tr>

        </table></td>

    </tr>

{else}

<tr>

<td background="{$root}/mainbar_bcg.gif" height="24">{html_image file="$root/mainbar_bcg.gif"}</td>

</tr>

{/if}

</table></td>

</tr>

{if $submenu}

<tr>

  <td bgcolor="#000000" background="{$root}/submenu_bcg.gif" height="24"><table cellpadding="0" cellspacing="0" border="0" align="center">

  <tr>

  {foreach from=$submenu.items item=button key=i name="submenu"}

    {if $smarty.foreach.mainbar.first}

<td width="6">{html_image file="$root/submenu_bcg.gif" width="6"}</td>

{elseif $submenu.on!==$i}

<td width="6">{html_image file="$root/submenu_bcg.gif" width="6"}</td>

{/if}

<td valign="middle">{html_image file="$root/$button" link=$submenu.links.$i}</td>

{if ($submenu.on!==$i) && !$smarty.foreach.submenu.last}

<td width="6">{html_image file="$root/submenu_bcg.gif" width="6"}</td>

{/if}

{if $submenu.on!==$i && $submenu.on!==($i+1) && !$smarty.foreach.submenu.last}

<td>{html_image file="$root/submenu_sep.gif"}</td>

{/if}

{/foreach}

  </tr>

  </table></td>

</tr>

{/if}

{if $banners.1}

<tr><td bgcolor="#797B9D" height="5">{html_image file="$root/spacer.gif" height="5"}</td></tr>

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

<tr><td background="{$root}/boxes/ad_shadow_top.gif">{html_image file="$root/spacer.gif" height="2"}</td></tr>

<tr><td class="ad" align="center">{banner area="1"}</td></tr>

<tr><td background="{$root}/boxes/ad_shadow_bottom.gif">{html_image file="$root/spacer.gif" height="2"}</td></tr>

</table></td></tr>

{/if}

<tr><td bgcolor="#000000" height="5">{html_image file="$root/spacer.gif" height="5"}</td></tr>

<tr height="100%">

<td bgcolor="#000000" height="100%">

<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">

<tr>

<td width="5"><img src="{$root}/spacer_purple.gif" width="5" height="1" border="0"></td>

<td valign="top">

 

Link to comment
https://forums.phpfreaks.com/topic/200497-login-section-in-header/
Share on other sites

OH OK I JUST FIGURED OUT THAT THE AREA I SAID WAS OPEN AND THE AREA I SAID WAS CLOSED FOR THE LOGIN? THAT WASNT ALL THE CODE! I JUST ADDED THIS UNDERNEATH THE CLOSE TEMPLATE CODE

 

<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">

<tr>

<td width="5" class="grey_left" align="right"><img src="{$root}/spacer_grey.gif" width="4" height="1" border="0"></td>

<td class="grey_content grey-body">{$language.existing_members_login_here}:</td>

<td width="5" class="grey_right" align="left"><img src="{$root}/spacer_grey.gif" width="4" height="1" border="0"></td>

</tr>

<tr>

<td colspan="3" class="grey_right grey_left" background="{$root}/boxes/grey_separator.gif">{html_image file="$root/boxes/grey_separator.gif"}</td>

</tr>

{$forms.login.start}

<tr>

<td width="5" class="grey_left" align="right"><img src="{$root}/spacer_grey.gif" width="4" height="1" border="0"></td>

<td class="grey_content">

<table width="100%" align="center" cellpadding="0" cellspacing="3" border="0">

{if $settings.username_use < 2}

<tr>

<td class="grey-body">{$forms.login.labels.0}</td>

<td align="right">{$forms.login.elements.0}</td>

</tr>

{else}

<tr>

<td class="grey-body">{$forms.login.labels.1}</td>

<td align="right">{$forms.login.elements.1}</td>

</tr>

{/if}

<tr>

<td class="grey-body">{$forms.login.labels.2}</td>

<td align="right">{$forms.login.elements.2}</td>

</tr>

<tr><td colspan="2"><table cellpadding="0" cellspacing="0" border="0" width="100%">

<tr>

<td class="grey-body">{$forms.login.labels.3}</td>

<td align="right">{$forms.login.elements.3}</td>

</tr>

</table></td></tr>

<tr>

<td colspan="2" align="right">{$forms.login.buttons.0}</td>

</tr>

</table>

</td>

<td width="5" class="grey_right" align="left"><img src="{$root}/spacer_grey.gif" width="4" height="1" border="0"></td>

</tr>

{$forms.login.end}

<tr>

<td colspan="3" class="grey_right grey_left" background="{$root}/boxes/grey_separator.gif">{html_image file="$root/boxes/grey_separator.gif"}</td>

</tr>

<tr>

<td width="5" class="grey_left" align="right"><img src="{$root}/spacer_grey.gif" width="4" height="1" border="0"></td>

<td class="grey_content grey-body" align="center"><a href="index.php?page=forgot">Forgot your password?</a></td>

<td width="5" class="grey_right" align="left"><img src="{$root}/spacer_grey.gif" width="4" height="1" border="0"></td>

</tr>

</table>

 

 

 

didnt do anything tho I guess i can keep experimenting since i got some more code to play with.. Still looking for help tho!!

Okay i moved the code inbetween the open and close template codes or whatever they are and i can see the LOGIN SCREEN!! but now i need user and password all on one line..should i try to put all the code on one <tr>? this i have a feeling will be more like a blog :'( its all good.. its sunday and this will help others fix there problem im having when i get it right.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.