Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2]

Author Topic: Test thread -used for testing config stuff  (Read 13475 times)

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 32550
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Test thread -used for testing config stuff
« Reply #15 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.
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

admin

  • Administrator
  • Member
  • *
  • Posts: 82
Re: Test thread -used for testing config stuff
« Reply #16 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
Logged
It´s a test signature

admin

  • Administrator
  • Member
  • *
  • Posts: 82
Re: Test thread -used for testing config stuff
« Reply #17 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.
Logged
It´s a test signature

admin

  • Administrator
  • Member
  • *
  • Posts: 82
Re: Test thread -used for testing config stuff
« Reply #18 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:
Logged
It´s a test signature

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 32550
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Test thread -used for testing config stuff
« Reply #19 on: February 23, 2007, 03:15:21 AM »

 :sleep:
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

mr_chris

  • Kitizen
  • ****
  • Posts: 3774
Re: Test thread -used for testing config stuff
« Reply #20 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
Logged
Chris

mr_chris

  • Kitizen
  • ****
  • Posts: 3774
Re: Test thread -used for testing config stuff
« Reply #21 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"
Logged
Chris

mr_chris

  • Kitizen
  • ****
  • Posts: 3774
Re: Test thread -used for testing config stuff
« Reply #22 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.
Logged
Chris

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 32550
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Test thread -used for testing config stuff
« Reply #23 on: February 23, 2007, 11:59:32 AM »

test for center align
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 32550
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Test thread -used for testing config stuff
« Reply #24 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:
Logged
Please do not PM me with queries for broadband help as I may not be able to respond.
-----
How to get your router line stats :: ADSL Exchange Checker

oldfogy

  • Helpful
  • Kitizen
  • *
  • Posts: 3568
  • If it ain't broke....... I'll soon fix it.
Re: Test thread -used for testing config stuff
« Reply #25 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:

Logged

roseway

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 39682
  • Penguins CAN fly
    • DSLstats
Re: Test thread -used for testing config stuff
« Reply #26 on: February 23, 2007, 12:55:08 PM »

I'm lost in admiration :-*
Logged
  Eric

oldfogy

  • Helpful
  • Kitizen
  • *
  • Posts: 3568
  • If it ain't broke....... I'll soon fix it.
Re: Test thread -used for testing config stuff
« Reply #27 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:
Logged
Pages: 1 [2]
 

anything