Kitz Forum

Chat => Games => Forum Games => Topic started by: kitz on June 04, 2006, 04:56:19 PM

Title: Test thread -used for testing config stuff
Post by: kitz on June 04, 2006, 04:56:19 PM
<embed src="http://www.freebloggames.com/games/fishy.fbg" type="application/x-shockwave-flash" height="350" width="500"></embed><br><a target="_blank" href="http://www.freebloggames.com" title="MySpace Codes">click</a>
Title: Test thread -used for testing config stuff
Post by: kitz on June 04, 2006, 07:13:00 PM
grr ok.. Im not having much luck with embedding flash.

I'll have a look at this some other time and see what I can do.
Title: Test thread -used for testing config stuff
Post by: stan on June 11, 2006, 02:25:19 PM
Kitz,

Delete the above games, do the  yes to HTML, put back game and keep fingers crossed.
Title: Test thread -used for testing config stuff
Post by: kitz on June 11, 2006, 03:10:52 PM
Ive deliberately turned off html for now since I couldnt seem to get it working earlier.

Ive seen there are a couple of PHPBB mods that will hopefully allow flash in forum posts, so when I get chance I will install those.

Thanks Stan :)
Title: Test
Post by: kitz on June 14, 2006, 10:08:44 PM
Test ignore this

http://www.kitz.co.uk

test links (http://www.kitz.co.uk)
Title: Test thread -used for testing config stuff
Post by: kitz on June 22, 2006, 02:35:56 PM
:sick:
Title: Re: Test thread -used for testing config stuff
Post by: oldfogy on February 22, 2007, 05:33:12 PM
Hi Kitz,

I couldn't decide where to post this, so here I am.

Is there any chance of moving the "All Unread Topics" icon on the front page, (the bottom one)
Maybe a little further toward the centre of the page/line?

As this is directly above the "Mark All Messages As Read" icon, it is easy to hit the wrong one.

Hope you don't mind this suggestion.  :hmm:

Phil
Title: Re: Test thread -used for testing config stuff
Post by: roseway on February 22, 2007, 07:08:06 PM
Is this a game we can all play? :lol:
Title: Re: Test thread -used for testing config stuff
Post by: oldfogy on February 22, 2007, 07:19:43 PM
But of course, it's called, find the unread topic/post because I just pressed the wrong button "again"  :doh:
Title: Re: Test thread -used for testing config stuff
Post by: kitz on February 22, 2007, 11:25:09 PM
lol - do you know Id never noticed that there before.
I normally use the one under "Hello kitz" - "Show all unread posts since last visit".


Sorry phil- its not something I can easily change since thats laid out in the basic forum software options - nor is it in the general template, which is what I used to create my own design thingy.
 
There probably is something in the forum source code I could change somewhere (with SMF you can edit more or less most things if you are that way inclined). But theres tons of templates and I cant quite see where it would be changed right now.
Title: Re: Test thread -used for testing config stuff
Post by: oldfogy on February 23, 2007, 12:04:34 AM
Thanks Kitz, but not to worry any-way.
I'll just have to be more careful in the future.  8)

But I just thought it may of also been of interest to you.
Title: Re: Test thread -used for testing config stuff
Post by: kitz on February 23, 2007, 12:14:44 AM
If there was a quick fix... 
or even if there was some code I could change in the "kitz template" then I'd certainly look at doing that when I had some time to move things about.

But its in the main source stuff somewhere - which also means that everytime theres a forum upgrade it would probably get over-ridden.

Like I say there probably is something somewhere I could do because SMF is so flexible - its just finding which bit in a hell of a lot of code which needs changing.  If I get bored one day.................
Title: Re: Test thread -used for testing config stuff
Post by: oldfogy on February 23, 2007, 12:30:10 AM
> If I get bored one day.................  

In that case, I can't see it happening  :lol:

But thanks again for the thought. :hug:
Title: Re: Test thread -used for testing config stuff
Post by: kitz on February 23, 2007, 12:58:12 AM
lmfao...  you got it....  :D

I spent almost half an hour looking through the existing templates and trying to find the linky thing that you meant - cause I couldnt see it half the time for some reason...  I was even logging in using some test accounts I have and still couldnt see the damn thing.


Title: Re: Test thread -used for testing config stuff
Post by: oldfogy on February 23, 2007, 01:40:26 AM
Just in case you need it, as I'm not sure if this is what you can't find. (Bottom right-hand corner) All Unread Topics
But please don't bother on my behalf.

(https://forum.kitz.co.uk/proxy.php?request=http%3A%2F%2Fi92.photobucket.com%2Falbums%2Fl39%2Foldfogy%2FScreenHunter_01Feb.jpg&hash=557f24d4140a7eb16bda153d35d78aeba42c251a)
Title: Re: Test thread -used for testing config stuff
Post by: kitz on February 23, 2007, 02:10:05 AM
note to self

Code: [Select]
<tr class="titlebg">
<td colspan="7" align="right" class="middletext"><a href="http://forum.kitz.co.uk/index.php?action=unread;all;start=0">All Unread Topics</a></td>
</tr>

Find where this is generated.
Title: Re: Test thread -used for testing config stuff
Post by: admin on February 23, 2007, 02:54:55 AM
Code: [Select]

alt="', $txt[111], '" title="', $txt[111], '" style="float: right;" /></a>
<span class="smalltext">
', $topic['last_post']['time'], '<br />
', $txt[525], ' ', $topic['last_post']['member']['link'], '
</span>
</td>
</tr>';
}

echo '
</table>
</td></tr>
</table>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="middletext" valign="middle">' . $txt[139] . ': ' . $context['page_index'] . '</td>';
if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read']))
echo '
<td align="right" style="padding-right: 1ex;">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($mark_read, 'top'), '
</tr>
</table>
</td>';
echo '
</tr>
</table><br />









smf_1-1-2_install\Themes\default

recent.template.php
line 325
Title: Re: Test thread -used for testing config stuff
Post by: admin on February 23, 2007, 03:05:27 AM
chris...

If youre reading this will you do me a favour please...
done a search on all 90 odd php files and I cant find anything with a reference to "All Unread Topics"

However looking the the files I came across the above....  and for the life of me I cant see where the hell its being generated.

Code: [Select]
$topic['last_post']['time'], '<br />
', $txt[525], ' ', $topic['last_post']['member']['link'], '
</span>
is the end of the built array for the list of unread posts which displays the who/when posted by in the right col of the table.

Then it seems to go straight over to

Code: [Select]
<td class="middletext" valign="middle">' . $txt[139] . ': ' . $context['page_index'] . '</td>';
if (isset($context['topics_to_mark']) && !empty($settings['show_mark_read']))
which generates the page no .... and then the "Mark all messages as read" Button.

Please Please confirm theres nothing inbetween those 2 statements...... or am I  being blind as a bleedin bat.

Anyway its too late so Im calling it a night.
Title: Re: Test thread -used for testing config stuff
Post by: admin on February 23, 2007, 03:09:12 AM
whoops - just realised forgot I was logged on as another account to look at the code

doh  :doh:
Title: Re: Test thread -used for testing config stuff
Post by: kitz on February 23, 2007, 03:15:21 AM
 :sleep:
Title: Re: Test thread -used for testing config stuff
Post by: mr_chris on February 23, 2007, 10:14:35 AM
Not pretending to totally understand how it works... but I think I may have found the cure - I just need someone to log on and post something now to see if what I've done works - there's no point in explaining it all if I've got it wrong hehe :P
Title: Re: Test thread -used for testing config stuff
Post by: mr_chris on February 23, 2007, 10:39:12 AM
Woohoo ;D

Like you kitz searching for the text "All unread topics" yielded nada... but having done a bit of phpbb hacking in the past I knew that text was probably stored in some language file or even in the database somewhere, to allow for easier language translation, so I was expecting not to find anything there.

What I did look for was a key phrase in the HTML code that I hoped wouldn't be repeated in many places - 'td colspan="7" align="right"' - which took me eventually to Recent.template.php line 177-180:

Code: [Select]
    echo '
        <tr class="titlebg">
            <td colspan="7" align="right" class="middletext"><a href="', $scripturl, '?action=unread;all', $context['querystring_board_limits'], '">', $txt['unread_topics_all'], '</a></td>
        </tr>';

which looked to be a pretty good match :)

What I did then was copy Recent.template.php into the KitzTheme folder (to be a good boy!) and change it there. And it appears to have worked :)

It was a simple case then of changing "right" to "center" obviously.

Incidentally, the "All Unread Topics" text is stored in the array  $txt['unread_topics_all'] and is defined on line 518 of Themes/default/language/index.english.php - much as I suspected.


The part in Recent.template.php you were looking at (line 325 area) is the part that is displayed when you click "show new replies to your posts" rather than just "unread posts since last visit"
Title: Re: Test thread -used for testing config stuff
Post by: mr_chris on February 23, 2007, 11:43:20 AM
Now it's in the middle, would it be better to change the text to say "Show All Unread Topics" or "View All Unread Topics" or something, rather than just "All Unread Topics" which looks more like a title than a hyperlink.
Title: Re: Test thread -used for testing config stuff
Post by: kitz on February 23, 2007, 11:59:32 AM
test for center align
Title: Re: Test thread -used for testing config stuff
Post by: kitz on February 23, 2007, 12:07:53 PM
Thanks hon..   was searching for ages but could see it 

All sorted now  - appreciated

*will buy you a pint next time I see you*
:drink:
Title: Re: Test thread -used for testing config stuff
Post by: oldfogy on February 23, 2007, 12:47:42 PM
Thats brilliant, thanks.

The amount of time I have gone to hit the "Show All Unread Topics" only to find my cursor was not in the exact spot and it selected "Mark all threads read" obviously then I had no way of finding out what was read or not.

*will buy you both a pint next time I see you*  :drink:

As per usual, your devotion to your site and members pails beyond belief.
me thinks I had better go now.  :hug:

Title: Re: Test thread -used for testing config stuff
Post by: roseway on February 23, 2007, 12:55:08 PM
I'm lost in admiration :-*
Title: Re: Test thread -used for testing config stuff
Post by: oldfogy on February 23, 2007, 01:29:20 PM
Thats the difference between some sites.

Some listen and do nothing.  8)
Some listen and say sorry no can do. Whether it can or can't.  :tongue:
Some listen and go out of their way to see if it can be done, and if it can, they do it.  :thumbs: