help with theme editing, header change. need help fast to get site up??

everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Fri, 2006-08-11 06:52

here is a link to my gallery/phpbb2 integration. i need help editing the top navigation of the gallery. the part where it says "your album" "contact" "forum index" "gallery" etc... i can't seem to figure out the file to edit to change the text and stuff...like instead of saying "contact", make it say "send us a letter" or something. also i want to make where it says "forum index" to be more pronounced and have like a dash between that and "gallery" well i hope i explained myself good enough. thanks.
mike

http://everythingtonothing.com/msgboard/gallery2.php?sid=c64e9a87fdd02eb357f8709bf5a8a7c5

one other thing. how can i change the table widths of the gallery while its in the phpbb2. if you notice that mine is not centered and too wide. thanks.

 
daveozzz
daveozzz's picture

Joined: 2006-07-25
Posts: 70
Posted: Fri, 2006-08-11 07:52

Hi there,

For your Contact link (if I'm looking at the same link as your talking about), as it's part of the ContactOwner module go to modules/contactowner/module.inc and look for:-

/**
* @see GalleryModule::getSystemLinks
*/
function getSystemLinks() {
$links = array();

$links['Contact'] = array(
'text' => $this->translate('Contact'),
'params' => array('view' => 'core.UserAdmin',
'subView' => 'contactowner.Contact',
'return' => 1));

return array(null, $links);
}

Change the text in :- $this->translate('Contact') to change the link name.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Fri, 2006-08-11 13:29

@ breadcrumb ("forum index Gallery") look in gallery2/modudules/core/blocks/breadcrumb.tpl

Dave

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Fri, 2006-08-11 19:56

thanks, i figured it. now how can i get it centered to my phpbb2? or change the widths to match the phpbb2?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Sat, 2006-08-12 03:58

I don't know anything about phpbb2 but if you look at your source you have:

<!-- Code for 3 tables -->
<table width="850" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td width="100"><img src="templates/MSSimplicity/images/spacer.gif" height="50" width="67"></td>
    <td><a href="index.php"><img src="templates/MSSimplicity/images/random_logo/logo.php" border="0" alt="everythingtonothing.com Forum Index" vspace="1" /></a><br>
<!-- Code for 3 tables -->

you have a cell of 100px wide that is empty that might be the issue.

D
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Sat, 2006-08-12 07:21

didnt fix anything.

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Sat, 2006-08-12 08:41

on the main gallery page under each album that has sub albums it lists their names under the thumbnail of the parent album. is there a way to not list any?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Sat, 2006-08-12 17:14
everythingtonothing.com wrote:
didnt fix anything.

look further down and you still have a empty cell

<!-- Code for 3 tables -->
	</td>
    <td width="67"><img src="templates/MSSimplicity/images/spacer.gif" height="50" width="67"></td>
  </tr>
</table>
<!-- Code for 3 tables -->
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Sat, 2006-08-12 17:20
everythingtonothing.com wrote:
....sub albums it lists their names....

there should be a setting in the theme for showing the album owner or not. If not then you will have to edit your album.tpl of the theme you are using.

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Sat, 2006-08-12 20:49

the only thing in the theme info it gives me is how many subalbums to list and "0" is unlimited

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Sun, 2006-08-13 02:17

i know i'm asking alot but also how can i change the colors of the drop down boxes? i looked everywhere and couldn't find out how.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Sun, 2006-08-13 04:13

in theme.css you have

* {
	font-family: Tahoma, Verdana, Arial;
	font-size: 10px;
	color: #FFFFFF;

	/* Solve all padding & margin problems */
	padding: 0;
	margin: 0;

	/* I never liked the standard middle alignment */
	vertical-align: top;
	text-align: left;
}

move the color: #FFFFFF; to the body class

D
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Sun, 2006-08-13 09:04

thanks that worked...but do you know how to get rid of the subalbums being listed under the main albums?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Sun, 2006-08-13 16:37

Can you point to a example? I realy don't see subalbums listed with the URL provided.

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Sun, 2006-08-13 19:50

http//www.everythingtonothing.com/msgboard/gallery2.php

look underneath the albums how it has the subalbums.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Sun, 2006-08-13 20:19

I know nothing of the tien theme. Perhaps start a new thread with tien in the topic.
I suspect that is the design of that theme. Look through themes/tien/templates/album.tpl and see if you can decifer how the subalbums are rendered.

Dave

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Sun, 2006-08-13 22:11

{*
* $Revision: 0.0 $
* If you want to customize this file, do not edit it directly since future upgrades
* may overwrite it. Instead, copy it into a new directory called "local" and edit that
* version. Gallery will look for that file first and use it if it exists.
*}
<table class="contentTable" width="100%" cellspacing="0" cellpadding="0">
<tr>
{if !empty($theme.params.sidebarBlocks)}
<td id="gsSidebarCol">
{g->theme include="sidebar.tpl"}
<img class="widthHack" src="{g->theme url="images/tienEmpty.gif"}"/>
</td>
{/if}
<td id="gsContent">
{* Album title *}
<div id="titleContainer">
{if !empty($theme.item.title)}
<h2>{$theme.item.title|markup}</h2>
{/if}
{if !empty($theme.item.description)}
<p class="giDescription">{$theme.item.description|markup}</p>
{/if}
</div>

{if ($theme.subalbumCount > 0)}
{assign var="childrenInColumnCount" value=0}
<div class="gbBlock mainContentBlock">
<h3>Albums</h3>
<table id="gsAlbumsMatrix"{if ($theme.params.albumThumbnails == 1)} class="withThumbnails" cellspacing="8"{/if}>
<tbody>
<tr valign="top">
{foreach from=$theme.children item=child}
{if $child.canContainChildren}
{* Move to a new row *}
{if ($childrenInColumnCount == $theme.params.albumsColumns)}
</tr>
<tr valign="top">
{assign var="childrenInColumnCount" value=0}
{/if}

{assign var=childrenInColumnCount value="`$childrenInColumnCount+1`"}
<td class="giAlbumCell{if ($theme.params.albumThumbnails == 1)}Thumbnail{/if}" style="width: {$theme.albumColumnWidthPct}%">
{assign var=frameType value="albumFrame"}
{if ($theme.params.albumThumbnails == 1)}
<div class="giAlbumThumbnail">
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
{if isset($theme.params.$frameType) && isset($child.thumbnail)}
{g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType}
{g->image id="%ID%" item=$child image=$child.thumbnail class="%CLASS% giThumbnail" maxSize="60"}
{/g->container}
{elseif isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail class="giThumbnail" maxSize="60"}
{else}
{g->text text="no thumbnail"}
{/if}
</a>
</div>

<div class="giAlbum">
<h4>
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
{$child.title|default:$child.pathComponent|markup}
</a>
{if (($child.descendentCount > 0) && ($theme.params.albumShowDescendentCount == 1))}
<span class="meta">
{g->text text="(%d)" arg1=$child.descendentCount}
</span>
{/if}
</h4>

<p class="giDescription">
{if isset($child.summary)}
{$child.summary|entitytruncate:256|markup}
{/if}
</p>

{if !empty($theme.tree[$child.id])}
<ul class="albumsListingSubalbums">
{assign var="empty" value=""}
{assign var="depth" value=0}
{foreach from=$theme.tree[$child.id] item=node}
{if $node.depth > $depth}
<li><ul>
{elseif $node.depth < $depth}
{$empty|indent:$depth-$node.depth:"</ul></li>"}
{/if}

{assign var="depth" value=$node.depth}
<li>
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$node.id`"}">{$theme.treeItems[$node.id].title|default:$theme.treeItems[$node.id].pathComponent|markup}</a>
</li>
{/foreach}
{$empty|indent:$depth:"</ul></li>"}
</ul>
{/if}
</div>
{else}
<h4>
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
<img src="{g->theme url="images/tienFolder.gif"}" height="13" alt=""/>
{$child.title|default:$child.pathComponent|markup}
</a>
{if (($child.descendentCount > 0) && ($theme.params.albumShowDescendentCount == 1))}
<span class="meta">
{g->text text="(%d)" arg1=$child.descendentCount}
</span>
{/if}
</h4>

<p class="giDescription">
{if isset($child.summary)}
{$child.summary|entitytruncate:256|markup}
{/if}
</p>

{if !empty($theme.tree[$child.id])}
<ul class="albumsListingSubalbums">
{assign var="empty" value=""}
{assign var="depth" value=0}
{foreach from=$theme.tree[$child.id] item=node}
{if $node.depth > $depth}
<li><ul>
{elseif $node.depth < $depth}
{$empty|indent:$depth-$node.depth:"</ul></li>"}
{/if}

{assign var="depth" value=$node.depth}
<li>
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$node.id`"}">{$theme.treeItems[$node.id].title|default:$theme.treeItems[$node.id].pathComponent|markup}</a>
</li>
{/foreach}
{$empty|indent:$depth:"</ul></li>"}
</ul>
{/if}
{/if}

</td>
{/if}
{/foreach}

{* flush the rest of the row with empty cells *}
{section name="flush" start=$childrenInColumnCount loop=$theme.params.albumsColumns}
<td>&nbsp;</td>
{/section}
</tr>
</tbody>
</table>
</div>
{/if}

{g->block type="core.ItemInfo"
item=$theme.item
showDate=true
showSize=true
showOwner=false
class="albumInfo"}

{if ($theme.subitemCount > 0)}
<div>
{if !count($theme.children)}
<div class="gbBlock giDescription gbEmptyAlbum">
<h3 class="emptyAlbum">
{g->text text="This album is empty."}
{if isset($theme.permissions.core_addDataItem)}
<br/>
<a href="{g->url arg1="view=core.ItemAdmin" arg2="subView=core.ItemAdd" arg3="itemId=`$theme.item.id`"}"> {g->text text="Add a photo!"} </a>
{/if}
</h3>
</div>
{else}

{assign var="childrenInColumnCount" value=0}
<table id="gsItemsMatrix" class="gbBlock mainContentBlock withThumbnails" cellspacing="8">
<tr valign="top">
{foreach from=$theme.children item=child}
{if !$child.canContainChildren}

{* Move to a new row *}
{if ($childrenInColumnCount == $theme.params.columns)}
</tr>
<tr valign="top">
{assign var="childrenInColumnCount" value=0}
{/if}

{assign var=childrenInColumnCount value="`$childrenInColumnCount+1`"}
<td class="giItemCell" style="width: {$theme.itemColumnWidthPct}%">
{assign var=frameType value="itemFrame"}
<div class="giItem">
{if isset($theme.params.$frameType) && isset($child.thumbnail)}
{g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
{g->image id="%ID%" item=$child image=$child.thumbnail
class="%CLASS% giThumbnail"}</a>
{/g->container}

{elseif isset($child.thumbnail)}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">{g->image item=$child image=$child.thumbnail class="giThumbnail"}</a>
{else}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
class="giMissingThumbnail">{g->text text="no thumbnail"}</a>
{/if}
</div>

{if !empty($child.title)}
<p class="giTitle">
{$child.title|markup}
</p>
{/if}

{if (!$theme.item.canContainChildren && $theme.params.showImageOwner)}
{assign var="showOwner" value=true}
{else}
{assign var="showOwner" value=false}
{/if}

{g->block type="core.ItemInfo"
item=$child
showDate=true
showOwner=$showOwner
showSize=true
showViewCount=true
showSummaries=true
class="giInfo"}
</td>
{/if}
{/foreach}

{* flush the rest of the row with empty cells *}
{section name="flush" start=$childrenInColumnCount loop=$theme.params.columns}
<td>&nbsp;</td>
{/section}
</tr>
</table>
{/if}
</div>
{/if}

{if !empty($theme.navigator)}
{assign var="prefix" value=$prefix|default:""}
{assign var="suffix" value=$suffix|default:""}
<div class="gcBackground2 gbNavigator albumNavigator">
{if !empty($theme.navigator.last)}
<div class="navigatorLast">
<a href="{g->url params=$theme.navigator.last.urlParams}" class="last">
{g->text text="last"}{$suffix}</a>
</div>
{/if}
{if !empty($theme.navigator.next)}
<div class="navigatorNext">
<a href="{g->url params=$theme.navigator.next.urlParams}" class="next">
{g->text text="next"}{$suffix}</a>
</div>
{/if}

{if !empty($theme.navigator.first)}
<div class="navigatorFirst">
<a href="{g->url params=$theme.navigator.first.urlParams}" class="first">
{g->text text="first"}{$suffix}</a>
</div>
{/if}
{if !empty($theme.navigator.back)}
<div class="navigatorBack">
<a href="{g->url params=$theme.navigator.back.urlParams}" class="back">
{g->text text="previous"}{$suffix}</a>
</div>
{/if}

{if !empty($theme.jumpRange)}
<div id="gsPages" class="gbBlock gcBackground1">
{g->block type="core.Pager"}
</div>
{/if}
</div>
{/if}

{* Our emergency edit link, if the user all blocks containing edit links *}
{g->block type="core.EmergencyEditItemLink" class="gbBlock"
checkSidebarBlocks=true
checkAlbumBlocks=true}

{* Show any other album blocks (comments, etc) *}
{foreach from=$theme.params.albumBlocks item=block}
{g->block type=$block.0 params=$block.1}
{/foreach}

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

THIS IS THE CODE FROM ALBUM.tpl

will this help?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Mon, 2006-08-14 16:55

removing

<h4>
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">
{$child.title|default:$child.pathComponent|markup}
</a>
{if (($child.descendentCount > 0) && ($theme.params.albumShowDescendentCount == 1))}
<span class="meta">
{g->text text="(%d)" arg1=$child.descendentCount}
</span>
{/if}
</h4>

should do the trick
Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
everythingtonot...

Joined: 2005-03-02
Posts: 29
Posted: Tue, 2006-08-15 01:23

that actually deleted the main album names and left the sub albums.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25959
Posted: Tue, 2006-08-15 01:42

Well you get the idea now. I will let you cut and test on your own.
I am not going to install a theme just to test this out.

Dave

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

 
vitovonantwon
vitovonantwon's picture

Joined: 2007-02-05
Posts: 24
Posted: Tue, 2007-02-27 13:36

If you use firefox, install these add ons.

webdeveloper, firebug, cssmate, fireftp,download status bar.

Cheers.

Vito