UBB.Dev
Posted By: Flyin V Help needed editing showflat.tpl - 07/11/2007 5:05 AM
Down at the bottom of a thread you see the links for

Previous Topic Index Next Topic

I believe these are in showflat.tpl but I don't know how to make them do what I want to do.

I would like to wrap those in the same colored box as one that has the page information (Page 1 of 1)

I am completely lost on what to do frown

I would gladly paypal $20 (or give me a price) to a person who can write up the steps to do to this. I really think those links need to be look better then just throw on the page.

The latest beta is looking fine and I just want to improve this as my users complain about these links.
Posted By: Ian Spence Re: Help needed editing showflat.tpl - 07/11/2007 6:41 AM
http://www.ianspence.com/forums/ubbthreads.php?ubb=showflat&Number=177547&page=1#Post177547

Look at the bottom of that page and tell me if that's what you want. If so, I'll write up the modification asap, it's quite short
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/11/2007 6:48 AM
I wrote up one for him as:
http://www.elitewebgamers.com/forum/ubbthreads.php/ubb/showflat/Number/675#Post675
Posted By: Ian Spence Re: Help needed editing showflat.tpl - 07/11/2007 6:58 AM
Ah, but did you write 7.3? I win this round.
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/11/2007 7:00 AM
When did we start talking about 7.3? lol
Posted By: Ian Spence Re: Help needed editing showflat.tpl - 07/11/2007 7:11 AM
I believe it was half way through my post
Posted By: sirdude Re: Help needed editing showflat.tpl - 07/11/2007 7:13 AM
see no compelling reason to have a naked, unmarked div there.

the div should have an id or class (maybe even share a class with the pager(s)), to at least allow css to kick in, if desired.

with the naked div, you are forced to have to do surgery on the tpl.

bleh..
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/11/2007 7:14 AM
maybe ian can remove it from 7.3 :x
Posted By: sirdude Re: Help needed editing showflat.tpl - 07/11/2007 7:24 AM
remove? i'm talking ADD wink

i'm guessing you prolly added t_standard/tdheader to the tpl, which is almost what i'd want. but having the div identified, opens up descendants for css'ers without affecting those who don't use it.
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/11/2007 7:32 AM
true, he could add to it vd removing it completely
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/11/2007 7:34 AM
And yeh, I added them to the tpl wink
Posted By: Flyin V Re: Help needed editing showflat.tpl - 07/11/2007 3:21 PM
Wow I did not expect replies so fast smile

Ian was first to reply but then I know Gizmo has a repuation.
(For good or bad I see his name all over the UBB site)

I do not know who to hire,pay or give thanks to smile

Why would one way be better then the other and why are they different? I don't understand .... Or am I just talking garbage from not understanding frown



Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/12/2007 4:10 AM
it'd be up to you honestly; but if you look at the pm the time sent is before ian posted wink...
Posted By: Flyin V Re: Help needed editing showflat.tpl - 07/12/2007 4:21 AM
Ah hmmmm

/me looks around for the solution frown
Posted By: sirdude Re: Help needed editing showflat.tpl - 07/12/2007 5:35 AM
apologies. i thought they'd sent you a solution. oh well, there are many ways to skin the cat, but here's one:

1. open showflat.tpl
2. replace lines 85-109 with:

Code

<div>
<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
{if $prevlinkstart}
<td style="padding-right: 4px;">
<table class="t_standard">
<tbody><tr>
<td class="tdheader">
<img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/previous.gif" alt="{$lang.PREV_THREAD}" border="0" />
{$prevlinkstart}
{if $is_gallery}{$lang.PREV_IMAGE}{else}{$lang.PREV_THREAD}{/if}
{$prevlinkstop}
</td></tr></tbody></table></td>
{/if}

<td style="padding-right: 4px;">
<table class="t_standard">
<tbody><tr>
<td class="tdheader"><img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/all.gif" alt="{$alttext}" border="0" />
{$currentlinkstart}
{$linktext}
{$currentlinkstop}</td></tr></tbody></table></td>


{if $nextlinkstart}
<td>
<table class="t_standard">
<tbody><tr>
<td class="tdheader">
{$nextlinkstart}
{if $is_gallery}{$lang.NEXT_IMAGE}{else}{$lang.NEXT_THREAD}{/if}
{$nextlinkstop}
<img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/next.gif" alt="{$lang.NEXT_THREAD}" border="0" />
</td></tr></tbody></table></td>
{/if}
</tr></tbody></table>
</div>

adjust the padding-right value for your tastes as to button spacing.

ps: i editted the latest 7.2 beta.. dunno which version you are referring to, but they are close..
Posted By: Flyin V Re: Help needed editing showflat.tpl - 07/13/2007 1:25 AM
I want to thank everyone for their help on this.
Its amazing to get such response so fast and quick smile
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/13/2007 3:00 AM
usually when everyone notices someone else is working on a solution they leave it be; guess I should have posted that I was pm'ing you lol...
Posted By: sirdude Re: Help needed editing showflat.tpl - 07/13/2007 3:05 AM
yah you should have.

you couldn't even tell someone was really 'working on it'. it was just back forth .. and as far as i see, why not post it publicly anyway, so others can benefit?

:shrug:
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/13/2007 4:11 AM
Because, if doing work for a potential client (as funding was offered), publicly posting code without their permission is a gross slap in the face...
Posted By: sirdude Re: Help needed editing showflat.tpl - 07/13/2007 5:53 AM
Originally Posted by Flyin V
Ah hmmmm

/me looks around for the solution frown


^^ kinda indicated he was still looking, so i posted my version of the template change for free. i wasn't looking for funding.

if you had an arrangement between the time of his post and my response to him right after that, then that's some serious timing and i'll hand it to you. and he would have paid for YOUR solution anyway and not the free one.

topic shoulda been closed or an indicator of 'it is handled' would be nice too.
Posted By: Gizmo Re: Help needed editing showflat.tpl - 07/13/2007 6:06 AM
Hence why I said this:
Originally Posted by Gizmo
usually when everyone notices someone else is working on a solution they leave it be; guess I should have posted that I was pm'ing you lol...
above lol
Posted By: sirdude Re: Help needed editing showflat.tpl - 07/13/2007 6:08 AM
ok, i took a chill pill.. all is well with the universe wink





except for.........

having to re-add my mods into 7.2 frown
© UBB.Developers