[Morpheus] Album mod (tpl files only)

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[Morpheus] Album mod (tpl files only)

Postby PostBot on Tue Mar 29, 2005 10:59 am

Here are modified tpl files for Morpheus style for album mod.

Important: There tpl files require extreme styles mod.


1. Open overall_footer.tpl, find this:
Code: Select all
Powered by <a href="http://www.phpbb.com/" target="_phpbb">phpBB</a> &copy; phpBB Group<br />
and add before it:
Code: Select all
<!-- IF $ALBUM -->Powered by Photo Album &copy; <a href="http://smartor.is-root.com" target="_blank">Smartor</a><br /><!-- ENDIF -->


2. Open overall_header.tpl, find this:
Code: Select all
         <!-- BEGIN switch_user_logged_out -->
         &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a>&nbsp; |
         <!-- END switch_user_logged_out -->
and add before it:
Code: Select all
         &nbsp;<a href="{U_ALBUM}">{L_ALBUM}</a>&nbsp; |


3. Open Morpheus.cfg, find this:
Code: Select all
$board_config['vote_graphic_length'] = 300;
$board_config['privmsg_graphic_length'] = 175;
and add after it:
Code: Select all
$images['upload_pic'] = "$current_template_images/{LANG}/$color/upload_pic.gif";
$images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg";
Then upload image upload_pic.gif in templates/Morpheus/images/{color}/
You can get images upload_pic.gif from here: temp/buttons/morpheus/ (look in subdirectories)


And here are premodded tpl files. Click "download" link in code header to download it.


[code file="album_cat_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a> &raquo; <a href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td>
</tr>
</table>

<form action="{S_ALBUM_ACTION}" method="post">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td valign="bottom" width="100%"><span class="gensmall"><b>{L_MODERATORS}: {MODERATORS}</b></span></td>
<td align="right" valign="bottom" nowrap="nowrap"><div class="pagination">{PAGINATION}</div></td>
</tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_UPLOAD_PIC}"><img src="{UPLOAD_PIC_IMG}" border="0" alt="{L_UPLOAD_PIC}" title="{L_UPLOAD_PIC}" /></a></td>
</tr>
</table>

{TPL_HDR1}<span class="cattitle">{L_CATEGORY} :: {CAT_TITLE}</span>{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" height="50"><span class="gen">{L_NO_PICS}</span></td>
</tr>
<!-- END no_pics -->
<?php $colspan_max = 1; ?>
<!-- BEGIN picrow -->
<?php $colspan = 0; ?>
<tr>
<!-- BEGIN piccol -->
<?php $colspan++; if($colspan > $colspan_max) $colspan_max = $colspan; ?>
<td align="center" width="{S_COL_WIDTH}" class="row1"><span class="genmed"><a href="{picrow.piccol.U_PIC}" {TARGET_BLANK}><img src="{picrow.piccol.THUMBNAIL}" border="0" alt="{picrow.piccol.DESC}" title="{picrow.piccol.DESC}" vspace="10" /></a><br />{picrow.piccol.APPROVAL}</span></td>
<!-- END piccol -->
<?php if($colspan < $colspan_max) { for($i=$colspan; $i<$colspan_max; $i++){ echo '<td class="row1">&nbsp;</td>'; } } ?>
</tr>
<tr>
<!-- BEGIN pic_detail -->
<td class="row2"><span class="gensmall">
{L_PIC_TITLE}: {picrow.pic_detail.TITLE}<br />
{L_POSTER}: {picrow.pic_detail.POSTER}<br />
{L_POSTED}: {picrow.pic_detail.TIME}<br />
{L_VIEW}: {picrow.pic_detail.VIEW}<br />
{picrow.pic_detail.RATING}
{picrow.pic_detail.COMMENTS}
{picrow.pic_detail.IP}
{picrow.pic_detail.EDIT} {picrow.pic_detail.DELETE} {picrow.pic_detail.LOCK} {picrow.pic_detail.MOVE}</span>
</td>
<!-- END pic_detail -->
<?php if($colspan < $colspan_max) { for($i=$colspan; $i<$colspan_max; $i++){ echo '<td class="row1">&nbsp;</td>'; } } ?>
</tr>
<!-- END picrow -->
<tr>
<td class="catBottom" colspan="<?php echo $colspan_max; ?>" align="center" height="28">
<span class="gensmall">{L_SELECT_SORT_METHOD}:
<select name="sort_method">
<option {SORT_TIME} value='pic_time'>{L_TIME}</option>
<option {SORT_PIC_TITLE} value='pic_title'>{L_PIC_TITLE}</option>
<option {SORT_USERNAME} value='username'>{L_USERNAME}</option>
<option {SORT_VIEW} value='pic_view_count'>{L_VIEW}</option>
{SORT_RATING_OPTION}
{SORT_COMMENTS_OPTION}
{SORT_NEW_COMMENT_OPTION}
</select>
&nbsp;{L_ORDER}:
<select name="sort_order">
<option {SORT_ASC} value='ASC'>{L_ASC}</option>
<option {SORT_DESC} value='DESC'>{L_DESC}</option>
</select>
&nbsp;<input type="submit" name="submit" value="{L_SORT}" class="liteoption" /></span>
</td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="2" border="0" cellpadding="2">
<tr>
<td><a href="{U_UPLOAD_PIC}"><img src="{UPLOAD_PIC_IMG}" border="0" alt="{L_UPLOAD_PIC}" title="{L_UPLOAD_PIC}" /></a></td>
<td align="right" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br />
<div class="pagination">{PAGINATION}</div></td>
</tr>
<tr>
<td colspan="3"><span class="geb">{PAGE_NUMBER}</span></td>
</tr>
</table>
</form>

<table width="100%" cellspacing="0" border="0" cellpadding="0">
<tr>
<td align="right" class="gensmall" nowrap="nowrap">{ALBUM_JUMPBOX}</td>
</tr>
<tr>
<td align="right" class="gensmall">{S_AUTH_LIST}</td>
</tr>
</table>

<br />

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_comment_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a> &raquo; <a href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td>
</tr>
</table>
<br />

<form action="{S_ALBUM_ACTION}" method="post">

{TPL_HDR1}{PIC_TITLE}{TPL_HDR2}<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row1" align="center" width="35%"><a href="{U_PIC}" {TARGET_BLANK}><img src="{U_THUMBNAIL}" border="0" vspace="20" hspace="20"></a></td>
<td class="row1" valign="top"><table width="100%" align="left" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="right" valign="top" class="genmed" nowrap="nowrap"><b>{L_PIC_TITLE}:</b></td>
<td valign="top" class="genmed" width="100%">{PIC_TITLE}</td>
</tr>
<tr>
<td align="right" valign="top" class="genmed" nowrap="nowrap"><b>{L_PIC_DESC}:</b></td>
<td valign="top" class="genmed">{PIC_DESC}</td>
</tr>
<tr>
<td align="right" valign="top" class="genmed" nowrap="nowrap"><b>{L_POSTER}:</b></td>
<td valign="top" class="genmed">{POSTER}</td>
</tr>
<tr>
<td align="right" valign="top" class="genmed" nowrap="nowrap"><b>{L_POSTED}:</b></td>
<td valign="top" class="genmed">{PIC_TIME}</td>
</tr>
<tr>
<td align="right" valign="top" class="genmed" nowrap="nowrap"><b>{L_VIEW}:</b></td>
<td valign="top" class="genmed">{PIC_VIEW}</td>
</tr>
<tr>
<td align="right" valign="top" class="genmed" nowrap="nowrap"><b>{L_COMMENTS}:</b></td>
<td valign="top" class="genmed">{PIC_COMMENTS}</td>
</tr>
</table></td>
</tr>
<!-- BEGIN commentrow -->
<tr><td class="spacerow" colspan="2"></td></tr>
<tr>
<td class="row3" colspan="2" height="25"><a name="#{commentrow.ID}"></a><span class="genmed"><b>{L_POSTER}: {commentrow.POSTER} @ {commentrow.TIME}</b></span></td>
</tr>
<tr>
<td class="row1" colspan="2"><span class="postbody">{commentrow.TEXT}</span><br />
<span class="gensmall">{commentrow.EDIT_INFO}</span><br />
<span class="genmed">{commentrow.IP}<br /><b>{commentrow.EDIT}&nbsp;{commentrow.DELETE}</b></span></td>
</tr>
<!-- END commentrow -->
<!-- BEGIN switch_comment -->
<tr>
<td class="catBottom" align="center" height="28" colspan="2"><span class="gensmall">{L_ORDER}:</span>
<select name="sort_order"><option {SORT_ASC} value='ASC'>{L_ASC}</option><option {SORT_DESC} value='DESC'>{L_DESC}</option></select>&nbsp;<input type="submit" name="submit" value="{L_SORT}" class="liteoption" /></td>
</tr>
<!-- END switch_comment -->
</table>{TPL_FTR}
<!-- BEGIN switch_comment -->
<table width="100%" cellspacing="2" border="0" cellpadding="2">
<tr>
<td width="100%"><span class="gen">{PAGE_NUMBER}</span></td>
<td align="right" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><div class="pagination">{PAGINATION}</div></td>
</tr>
</table>
<!-- END switch_comment -->
</form>

<script language="JavaScript" type="text/javascript">
<!--
function checkForm() {
formErrors = false;

if (document.commentform.comment.value.length < 2)
{
formErrors = "{L_COMMENT_NO_TEXT}";
}
else if (document.commentform.comment.value.length > {S_MAX_LENGTH})
{
formErrors = "{L_COMMENT_TOO_LONG}";
}

if (formErrors) {
alert(formErrors);
return false;
} else {
return true;
}
}
// -->
</script>

<!-- BEGIN switch_comment_post -->
<form name="commentform" action="{S_ALBUM_ACTION}" method="post" onsubmit="return checkForm();">
{TPL_HDR1_NEW}Add Comment{TPL_HDR2}<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<!-- BEGIN logout -->
<tr>
<td class="row1" width="30%" height="28"><span class="genmed">{L_USERNAME}</span></td>
<td class="row2"><input class="post" type="text" name="comment_username" size="32" maxlength="32" /></td>
</tr>
<!-- END logout -->
<tr>
<td class="row1" valign="top" width="30%"><span class="genmed">{L_MESSAGE}<br>
{L_MAX_LENGTH}: <b>{S_MAX_LENGTH}</b></span></td>
<td class="row2" valign="top"><textarea name="comment" class="post" cols="60" rows="7">{S_MESSAGE}</textarea></td>
</tr>
<tr>
<td class="catBottom" align="center" colspan="2" height="28"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td>
</tr>
</table>{TPL_FTR}
</form>
<!-- END switch_comment_post -->


<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_edit_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a> &raquo; <a href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td>
</tr>
</table>
<br />

<script language="JavaScript" type="text/javascript">
<!--
function checkAlbumForm() {
formErrors = false;

if (document.editform.pic_title.value.length < 2)
{
formErrors = "{L_UPLOAD_NO_TITLE}";
}
else if (document.editform.pic_desc.value.length > {S_PIC_DESC_MAX_LENGTH})
{
formErrors = "{L_DESC_TOO_LONG}";
}

if (formErrors)
{
alert(formErrors);
return false;
}
else
{
return true;
}
}
// -->
</script>

<form name="editform" action="{S_ALBUM_ACTION}" method="post" onsubmit="return checkAlbumForm()">

{TPL_HDR1}<span class="cattitle">{L_EDIT_PIC_INFO}</span>{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row1" width="30%" height="28"><span class="gen">{L_PIC_TITLE}</span></td>
<td class="row2"><input class="post" type="text" name="pic_title" size="60" value="{PIC_TITLE}" /></td>
</tr>
<tr>
<td class="row1" valign="top" width="30%" height="28"><span class="gen">{L_PIC_DESC}<br /></span><span class="genmed">{L_PLAIN_TEXT_ONLY}<br />{L_MAX_LENGTH}: <b>{S_PIC_DESC_MAX_LENGTH}</b></span></td>
<td class="row2"><textarea class="post" cols="60" rows="4" name="pic_desc" size="60">{PIC_DESC}</textarea></td>
</tr>
<tr>
<td class="catBottom" align="center" height="28" colspan="2"><input type="reset" value="{L_RESET}" class="liteoption" />&nbsp;&nbsp;&nbsp;<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td>
</tr>
</table>{TPL_FTR}
</form>


<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_index_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a></span></td>
</tr>
</table>

<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr>
<td><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}
</tr>
</table>

{TPL_HDR1}<span class="cattitle">{L_PUBLIC_CATS}</span>{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th width="70%" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_CATEGORY}&nbsp;</th>
<th width="60" class="thTop" nowrap="nowrap">&nbsp;{L_PICS}&nbsp;</th>
<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LAST_PIC}&nbsp;</th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="row1" height="50"><span class="forumlink"> <a href="{catrow.U_VIEW_CAT}" class="forumlink">{catrow.CAT_TITLE}</a><br />
</span> <span class="genmed">{catrow.CAT_DESC}<br />
</span><span class="gensmall">{catrow.L_MODERATORS} {catrow.MODERATORS}</span></td>
<td class="row2" align="center"><span class="gensmall">{catrow.PICS}</span></td>
<td class="row2" align="center" nowrap="nowrap"><span class="gensmall">{catrow.LAST_PIC_INFO}</span></td>
</tr>
<!-- END catrow -->
<tr>
<td class="row" colspan="3" height="28"><a href="{U_USERS_PERSONAL_GALLERIES}">{L_USERS_PERSONAL_GALLERIES}</a>&nbsp;&raquo;&nbsp;<a href="{U_YOUR_PERSONAL_GALLERY}">{L_YOUR_PERSONAL_GALLERY}</a></td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="2" cellpadding="1" border="0">
<tr>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>

{TPL_HDR1}<span class="cattitle">{L_RECENT_PUBLIC_PICS}</span>{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" colspan="{S_COLS}" height="50"><span class="gen">{L_NO_PICS}</span></td>
</tr>
<!-- END no_pics -->
<!-- BEGIN recent_pics -->
<tr>
<!-- BEGIN recent_col -->
<td class="row1" width="{S_COL_WIDTH}" align="center"><a href="{recent_pics.recent_col.U_PIC}" {TARGET_BLANK}><img src="{recent_pics.recent_col.THUMBNAIL}" border="0" alt="{recent_pics.recent_col.DESC}" title="{recent_pics.recent_col.DESC}" vspace="10" /></a></td>
<!-- END recent_col -->
</tr>
<tr>
<!-- BEGIN recent_detail -->
<td class="row2"><span class="gensmall">{L_PIC_TITLE}: {recent_pics.recent_detail.TITLE}<br />
{L_POSTER}: {recent_pics.recent_detail.POSTER}<br />{L_POSTED}: {recent_pics.recent_detail.TIME}<br />
{L_VIEW}: {recent_pics.recent_detail.VIEW}<br />{recent_pics.recent_detail.RATING}{recent_pics.recent_detail.COMMENTS}{recent_pics.recent_detail.IP}</span>
</td>
<!-- END recent_detail -->
</tr>
<!-- END recent_pics -->
</table>{TPL_FTR}

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_modcp_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a></span></td>
</tr>
</table>

<form name="modcp" action="{S_ALBUM_ACTION}" method="post">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom" nowrap="nowrap"><div class="pagination">{PAGINATION}</div></td>
<td align="right" nowrap="nowrap">
<span class="gensmall">{L_SELECT_SORT_METHOD}:
<select name="sort_method">
<option {SORT_TIME} value='pic_time'>{L_TIME}</option>
<option {SORT_PIC_TITLE} value='pic_title'>{L_PIC_TITLE}</option>
<option {SORT_USERNAME} value='pic_user_id'>{L_USERNAME}</option>
<option {SORT_VIEW} value='pic_view_count'>{L_VIEW}</option>
{SORT_RATING_OPTION}
{SORT_COMMENTS_OPTION}
{SORT_NEW_COMMENT_OPTION}
</select>
&nbsp;{L_ORDER}:
<select name="sort_order">
<option {SORT_ASC} value='ASC'>{L_ASC}</option>
<option {SORT_DESC} value='DESC'>{L_DESC}</option>
</select>
&nbsp;<input type="submit" name="submit" value="{L_SORT}" class="liteoption" /></span>
</td>
</tr>
</table>

{TPL_HDR1}<span class="cattitle">{L_MODCP}</span>{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_PIC_TITLE}&nbsp;</th>
<th width="5%" class="thTop" nowrap="nowrap">&nbsp;{L_RATING}&nbsp;</th>
<th width="5%" class="thTop" nowrap="nowrap">&nbsp;{L_COMMENTS}&nbsp;</th>
<th width="5%" class="thTop" nowrap="nowrap">&nbsp;{L_STATUS}&nbsp;</th>
<th width="5%" class="thTop" nowrap="nowrap">&nbsp;{L_APPROVAL}&nbsp;</th>
<th width="5%" class="thCornerR" nowrap="nowrap">&nbsp;{L_SELECT}&nbsp;</th>
</tr>
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" colspan="6" height="50"><span class="gen">{L_NO_PICS}</span></td>
</tr>
<!-- END no_pics -->
<!-- BEGIN picrow -->
<tr>
<td class="row1" height="25"><span class="genmed">{L_PIC_TITLE}: {picrow.PIC_TITLE}<br />{L_POSTER}: {picrow.POSTER}<br />{L_TIME}: {picrow.TIME}</span></td>
<td align="center" class="row2"><span class="genmed">{picrow.RATING}</span></td>
<td align="center" class="row2"><span class="genmed">{picrow.COMMENTS}</span></td>
<td align="center" class="row2"><span class="genmed">{picrow.LOCK}</span></td>
<td align="center" class="row2"><span class="genmed">{picrow.APPROVAL}</span></td>
<td align="center" class="row3"><span class="genmed"><input type="checkbox" name="pic_id[]" value="{picrow.PIC_ID}" /></span></td>
</tr>
<!-- END picrow -->
<tr>
<td class="catBottom" colspan="6" align="right" height="28">
<input type="hidden" name="mode" value="modcp" />
<input type="submit" class="liteoption" name="move" value="{L_MOVE}" />
<input type="submit" class="liteoption" name="lock" value="{L_LOCK}" />
<input type="submit" class="liteoption" name="unlock" value="{L_UNLOCK}" />
{DELETE_BUTTON}
{APPROVAL_BUTTON}
{UNAPPROVAL_BUTTON}
</td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="2" border="0" cellpadding="2">
<tr>
<td align="right" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br />
<div class="pagination">{PAGINATION}</div></td>
</tr>
<tr>
<td colspan="3"><span class="gen">{PAGE_NUMBER}</span></td>
</tr>
</table>
</form>

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_move_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a></span></td>
</tr>
</table><br />

<form action="{S_ALBUM_ACTION}" method="post">
{TPL_HDR1}<span class="cattitle">{L_MOVE}</span>{TPL_HDR2}<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row1" align="center"><br /><span class="gen">{L_MOVE_TO_CATEGORY}</span> &nbsp; {S_CATEGORY_SELECT} &nbsp; <input class="mainoption" type="submit" name="move" value="{L_MOVE}" /><br />&nbsp;</td>
</tr>
</table>{TPL_FTR}
<!-- BEGIN pic_id_array -->
<input type="hidden" name="pic_id[]" value="{pic_id_array.VALUE}" />
<!-- END pic_id_array -->
</form>

<br />

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_page_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a> &raquo; <a href="{U_VIEW_CAT}">{U_VIEW_CAT}</a></span></td>
</tr>
</table><br />

{TPL_HDR1}<span class="cattitle">{PIC_TITLE}</span>{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row1" align="center"><img src="{U_PIC}" border="0" vspace="10" alt="{PIC_TITLE}" title="{PIC_TITLE}" /></td>
</tr>
<tr>
<td class="row2"><table width="90%" align="center" border="0" cellpadding="3" cellspacing="2">
<tr>
<td width="25%" align="right"><span class="genmed">{L_POSTER}:</span></td>
<td><span class="genmed"><b>{POSTER}</b></span></td>
</tr>
<tr>
<td valign="top" align="right"><span class="genmed">{L_PIC_TITLE}:</span></td>
<td valign="top"><b><span class="genmed">{PIC_TITLE}</span></b></td>
</tr>
<tr>
<td valign="top" align="right"><span class="genmed">{L_PIC_DESC}:</span></td>
<td valign="top"><b><span class="genmed">{PIC_DESC}</span></b></td>
</tr>
<tr>
<td align="right"><span class="genmed">{L_POSTED}:</span></td>
<td><b><span class="genmed">{PIC_TIME}</span></b></td>
</tr>
<tr>
<td align="right"><span class="genmed">{L_VIEW}:</span></td>
<td><b><span class="genmed">{PIC_VIEW}</span></b></td>
</tr>
<!-- BEGIN rate_switch -->
<tr>
<td valign="top" align="right"><span class="genmed"><a href="{U_RATE}">{L_RATING}:</a></span></td>
<td><b><span class="genmed">{PIC_RATING}</span></b></td>
</tr>
<!-- END rate_switch -->
<!-- BEGIN comment_switch -->
<tr>
<td align="right"><span class="genmed"><a href="{U_COMMENT}">{L_COMMENTS}:</a></span></td>
<td><b><span class="genmed">{PIC_COMMENTS}</span></b></td>
</tr>
<!-- END comment_switch -->
</table></td>
</tr>
<tr>
<td class="row" align="center" height="28">&laquo; <a href="{U_PREVIOUS}">{L_PREVIOUS}</a>&nbsp;-&nbsp;<a href="{U_NEXT}">{L_NEXT}</a> &raquo;</td>
</tr>
</table>{TPL_FTR}


<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_personal_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a> &raquo; <a href="{U_PERSONAL_GALLERY}">{L_PERSONAL_GALLERY_OF_USER}</a></span></td>
</tr>
</table>

<form action="{U_PERSONAL_GALLERY}" method="post">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td width="100%"><span class="genmed">{L_PERSONAL_GALLERY_EXPLAIN}</span></td>
<td align="right" valign="bottom" nowrap="nowrap"><div class="pagination">{PAGINATION}</div></td>
</tr>
</table>

<!-- BEGIN your_personal_gallery -->
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_UPLOAD_PIC}"><img src="{UPLOAD_PIC_IMG}" border="0" alt="{L_UPLOAD_PIC}" title="{L_UPLOAD_PIC}" /></a></td>
</tr>
</table>
<!-- END your_personal_gallery -->

{TPL_HDR1}<span class="cattitle">{L_PERSONAL_GALLERY_OF_USER}</span>{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" height="50"><span class="gen">{L_PERSONAL_GALLERY_NOT_CREATED}</span></td>
</tr>
<!-- END no_pics -->
<?php $colspan_max = 1; ?>
<!-- BEGIN picrow -->
<tr>
<?php $colspan = 0; ?>
<!-- BEGIN piccol -->
<?php $colspan++; if($colspan > $colspan_max) $colspan_max = $colspan; ?>
<td align="center" width="{S_COL_WIDTH}" class="row1"><span class="genmed"><a href="{picrow.piccol.U_PIC}" {TARGET_BLANK}><img src="{picrow.piccol.THUMBNAIL}" border="0" alt="{picrow.piccol.DESC}" title="{picrow.piccol.DESC}" vspace="10" /></a></span></td>
<!-- END piccol -->
<?php if($colspan < $colspan_max) { for($i=$colspan; $i<$colspan_max; $i++){ echo '<td class="row1">&nbsp;</td>'; } } ?>
</tr>
<tr>
<!-- BEGIN pic_detail -->
<td class="row2"><span class="gensmall">
{L_PIC_TITLE}: {picrow.pic_detail.TITLE}<br />
{L_POSTED}: {picrow.pic_detail.TIME}<br />
{L_VIEW}: {picrow.pic_detail.VIEW}<br />
{picrow.pic_detail.RATING}
{picrow.pic_detail.COMMENTS}
{picrow.pic_detail.IP}
{picrow.pic_detail.EDIT} {picrow.pic_detail.DELETE} {picrow.pic_detail.LOCK}</span>
</td>
<!-- END pic_detail -->
<?php if($colspan < $colspan_max) { for($i=$colspan; $i<$colspan_max; $i++){ echo '<td class="row1">&nbsp;</td>'; } } ?>
</tr>
<!-- END picrow -->
<tr>
<td class="catBottom" colspan="<?php echo $colspan_max; ?>" align="center" height="28">
<span class="gensmall">{L_SELECT_SORT_METHOD}:
<select name="sort_method">
<option {SORT_TIME} value='pic_time'>{L_TIME}</option>
<option {SORT_PIC_TITLE} value='pic_title'>{L_PIC_TITLE}</option>
<option {SORT_VIEW} value='pic_view_count'>{L_VIEW}</option>
{SORT_RATING_OPTION}
{SORT_COMMENTS_OPTION}
{SORT_NEW_COMMENT_OPTION}
</select>
&nbsp;{L_ORDER}:
<select name="sort_order">
<option {SORT_ASC} value='ASC'>{L_ASC}</option>
<option {SORT_DESC} value='DESC'>{L_DESC}</option>
</select>
&nbsp;<input type="submit" name="submit" value="{L_SORT}" class="liteoption" /></span>
</td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="2" border="0" cellpadding="2">
<tr>
<!-- BEGIN your_personal_gallery -->
<td><a href="{U_UPLOAD_PIC}"><img src="{UPLOAD_PIC_IMG}" border="0" alt="{L_UPLOAD_PIC}" title="{L_UPLOAD_PIC}" /></a></td>
<!-- END your_personal_gallery -->
<td align="right" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br />
<div class="pagination">{PAGINATION}</div></td>
</tr>
<tr>
<td colspan="3"><span class="gen">{PAGE_NUMBER}</span></td>
</tr>
</table>
</form>

<br />

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_personal_index_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a></span></td>
</tr>
</table>

<form method="post" action="{S_MODE_ACTION}">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="right" nowrap="nowrap"><span class="gensmall">{L_SELECT_SORT_METHOD}:&nbsp;{S_MODE_SELECT}&nbsp;&nbsp;{L_ORDER}:&nbsp;{S_ORDER_SELECT}&nbsp;&nbsp;
<input type="submit" name="submit" value="{L_SORT}" class="liteoption" />
</span></td>
</tr>
</table>
{TPL_HDR1}<span class="cattitle">{L_USERS_PERSONAL_GALLERIES}</span>{TPL_HDR2}<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th width="100%" height="25" nowrap="nowrap" class="thCornerL">&nbsp;{L_USERS_PERSONAL_GALLERIES}&nbsp;</th>
<th class="thTop" nowrap="nowrap">&nbsp;{L_JOINED}&nbsp;</th>
<th class="thCornerR" nowrap="nowrap">&nbsp;{L_PICS}&nbsp;</th>
</tr>
<!-- BEGIN memberrow -->
<tr>
<td height="28" class="{memberrow.ROW_CLASS}">&nbsp;<span class="gen"><a href="{memberrow.U_VIEWGALLERY}" class="gen">{memberrow.USERNAME}</a></span></td>
<td class="{memberrow.ROW_CLASS}" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{memberrow.JOINED}&nbsp;</span></td>
<td class="{memberrow.ROW_CLASS}" align="center"><span class="gensmall">{memberrow.PICS}</span></td>
</tr>
<!-- END memberrow -->
<tr>
<td class="catBottom" colspan="3" height="28">&nbsp;</td>
</tr>
</table>{TPL_FTR}

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><span class="gen">{PAGE_NUMBER}</span></td>
<td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><div class="pagination">{PAGINATION}</div></td>
</tr>
</table>

</form>

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_rate_body.tpl"]<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a> &raquo; <a href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td>
</tr>
</table>
<br />

<script language="JavaScript" type="text/javascript">
<!--
function checkRateForm() {
if (document.rateform.rate.value == -1)
{
return false;
}
else
{
return true;
}
}
// -->
</script>

<form name="rateform" action="{S_ALBUM_ACTION}" method="post" onsubmit="return checkRateForm();">

{TPL_HDR1}{L_RATING}{TPL_HDR2}<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row1" align="center" width="30%"><a href="{U_PIC}" {TARGET_BLANK}><img src="{U_THUMBNAIL}" alt="{PIC_TITLE}" title="{PIC_TITLE}" border="0" vspace="20" hspace="20" /></a></td>
<td class="row1" valign="top">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="right" valign="top" nowrap="nowrap" class="genmed">{L_PIC_TITLE}:</td>
<td valign="top" class="genmed" width="100%"><strong>{PIC_TITLE}</strong></td>
</tr>
<tr>
<td align="right" valign="top" nowrap="nowrap" class="genmed">{L_PIC_DESC}:</td>
<td valign="top" class="genmed"><strong>{PIC_DESC}</strong></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="genmed">{L_POSTER}:</td>
<td class="genmed"><strong>{POSTER}</strong></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="genmed">{L_POSTED}:</td>
<td class="genmed"><strong>{PIC_TIME}</strong></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="genmed">{L_VIEW}:</td>
<td class="genmed"><strong>{PIC_VIEW}</strong></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1" align="center" colspan="2"><span class="gen"><br />{L_CURRENT_RATING}:&nbsp;<strong>{PIC_RATING}</strong><br />
<br />{L_PLEASE_RATE_IT}:&nbsp;<select name="rate">
<option value="-1">{S_RATE_MSG}</option>
<!-- BEGIN rate_row -->
<option value="{rate_row.POINT}">{rate_row.POINT}</option>
<!-- END rate_row -->
</select><br />&nbsp;</span></td>
</tr>
<tr>
<td class="catBottom" align="center" height="28" colspan="2"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td>
</tr>
</table>{TPL_FTR}
</form>

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code][code file="album_upload_body.tpl"]<script language="JavaScript" type="text/javascript">
<!--
function checkAlbumForm() {
formErrors = false;

if (document.upload.pic_title.value.length < 2)
{
formErrors = "{L_UPLOAD_NO_TITLE}";
}
else if (document.upload.pic_file.value.length < 2)
{
formErrors = "{L_UPLOAD_NO_FILE}";
}
else if (document.upload.pic_desc.value.length > {S_PIC_DESC_MAX_LENGTH})
{
formErrors = "{L_DESC_TOO_LONG}";
}

if (formErrors) {
alert(formErrors);
return false;
} else {
return true;
}
}
// -->
</script>

<table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="nav">
<tr>
<td class="nav" align="left" valign="middle"><span class="nav"><a href="{U_INDEX}">{L_INDEX}</a> &raquo; <a href="{U_ALBUM}">{L_ALBUM}</a> &raquo; <a href="{U_VIEW_CAT}">{CAT_TITLE}</a></span></td>
</tr>
</table>
<br />

<form name="upload" action="{S_ALBUM_ACTION}" method="post" enctype="multipart/form-data" onSubmit="return checkAlbumForm()">

{TPL_HDR1}<span class="cattitle">{L_UPLOAD_PIC}</span>{TPL_HDR2}<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<!-- BEGIN switch_user_logged_out -->
<tr>
<td class="row1" width="30%" height="28"><span class="gen">{L_USERNAME}:</span></td>
<td class="row2"><input class="post" type="text" name="pic_username" size="32" maxlength="32" /></td>
</tr>
<!-- END switch_user_logged_out -->
<tr>
<td class="row1" height="28"><span class="gen">{L_PIC_TITLE}:</span></td>
<td class="row2"><input class="post" type="text" name="pic_title" size="60" /></td>
</tr>
<tr>
<td class="row1" valign="top" height="28"><span class="gen">{L_PIC_DESC}:<br />
</span><span class="genmed">{L_PLAIN_TEXT_ONLY}<br />{L_MAX_LENGTH}: <b>{S_PIC_DESC_MAX_LENGTH}</b></span></td>
<td class="row2"><textarea class="post" cols="60" rows="4" name="pic_desc" size="60"></textarea></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_UPLOAD_PIC_FROM_MACHINE}:</span></td>
<td class="row2"><input class="post" type="file" name="pic_file" size="49" /></td>
</tr>
<!-- BEGIN switch_manual_thumbnail -->
<tr>
<td class="row1"><span class="gen">{L_UPLOAD_THUMBNAIL}:<br /></span><span class="gensmall">{L_UPLOAD_THUMBNAIL_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="file" name="pic_thumbnail" size="49" /></td>
</tr>
<tr>
<td class="row1" height="28"><span class="gen">{L_THUMBNAIL_SIZE}:</span></td>
<td class="row2"><span class="gen"><b>{S_THUMBNAIL_SIZE}</b></span></td>
</tr>
<!-- END switch_manual_thumbnail -->
<tr>
<td height="28" class="row1"><span class="gen">{L_UPLOAD_TO_CATEGORY}:</span></td>
<td class="row2">{SELECT_CAT}</td>
</tr>
<tr>
<td class="row1" height="28"><span class="gen">{L_MAX_FILESIZE}:</span></td>
<td class="row2"><span class="gen"><b>{S_MAX_FILESIZE}</b></span></td>
</tr>
<tr>
<td class="row1" height="28"><span class="gen">{L_MAX_WIDTH}:</span></td>
<td class="row2"><span class="gen"><b>{S_MAX_WIDTH}</b></span></td>
</tr>
<tr>
<td class="row1" height="28"><span class="gen">{L_MAX_HEIGHT}:</span></td>
<td class="row2"><span class="gen"><b>{S_MAX_HEIGHT}</b></span></td>
</tr>
<tr>
<td class="row1" height="28"><span class="gen">{L_ALLOWED_JPG}:</span></td>
<td class="row2"><span class="gen"><b>{S_JPG}</b></span></td>
</tr>
<tr>
<td class="row1" height="28"><span class="gen">{L_ALLOWED_PNG}:</span></td>
<td class="row2"><span class="gen"><b>{S_PNG}</b></span></td>
</tr>
<tr>
<td class="row1" height="28"><span class="gen">{L_ALLOWED_GIF}:</span></td>
<td class="row2"><span class="gen"><b>{S_GIF}</b></span></td>
</tr>
<tr>
<td class="catBottom" align="center" height="28" colspan="2"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />&nbsp;&nbsp;&nbsp;<input type="reset" value="{L_RESET}" class="liteoption" /></td>
</tr>
</table>{TPL_FTR}<br />
</form>

<br />

<!--
You must keep my copyright notice visible with its original content
-->
<!-- DEFINE $ALBUM = 1 -->[/code]
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby wscato on Sun Apr 03, 2005 2:57 pm

Will this work with MorpheusX and is this for Smartor's Photo Album?
wscato
Registered User
Registered User
 
Posts: 10
Joined: Wed Mar 30, 2005 11:34 am
Location: North Carolina

Postby PostBot on Sun Apr 03, 2005 3:02 pm

No, it won't work with MorpheusX without modifications.

Yes, it is for smartor's album.
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Postby wscato on Sun Apr 03, 2005 3:12 pm

Thanks for the info CA. Do you plan on ever making instructions for Morpheus X?
wscato
Registered User
Registered User
 
Posts: 10
Joined: Wed Mar 30, 2005 11:34 am
Location: North Carolina

Postby evrycard on Sat Dec 10, 2005 7:11 am

Where do I upload these files?
Using Morpheus. I have uploaded them into .../Morpheus/
But my album admin does not work anymore. These are the errors that I got using my album admin:

Template->make_filename(): Error - template file not found: admin/album_cat_body.tpl
Template->make_filename(): Error - template file not found: admin/album_config_body.tpl
Template->make_filename(): Error - template file not found: admin/album_cat_select_body.tpl
Template->make_filename(): Error - template file not found: admin/album_personal_body.tpl

thx...
evrycard
Registered User
Registered User
 
Posts: 69
Joined: Tue Dec 06, 2005 11:23 am

Postby okada1314 on Mon Jan 09, 2006 4:53 am

where to get this mods
User avatar
okada1314
Registered User
Registered User
 
Posts: 192
Joined: Thu Dec 29, 2005 4:04 pm

Postby Orange Designer on Sat May 13, 2006 2:29 pm

So if i upload those files to /morpheus the album mod should be styled?
Orange Designer
Registered User
Registered User
 
Posts: 96
Joined: Thu Mar 02, 2006 3:06 pm
Location: United Kingdom

Postby Orange Designer on Sat May 13, 2006 3:07 pm

Nevermind i've done it now, Cheers CA :D
Orange Designer
Registered User
Registered User
 
Posts: 96
Joined: Thu Mar 02, 2006 3:06 pm
Location: United Kingdom

Postby JKeats on Wed Jun 07, 2006 4:16 am

did anyone ever create tpl's or provide tpl edits for MorpheusX ? that'd be awesome as that's the template i use. thanks!
JKeats
Registered User
Registered User
 
Posts: 47
Joined: Tue May 24, 2005 9:36 pm

Postby bolbol71 on Wed Sep 06, 2006 1:45 am

I am using Morpheus, where do I upload these files?
bolbol71
Registered User
Registered User
 
Posts: 1
Joined: Wed Sep 06, 2006 1:37 am


Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 3 guests

cron