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

Login with username, password and session length
Advanced search  

News:

Pages: 1 [2]

Author Topic: Feasibility - date order / reverse chronological listing of posts  (Read 3054 times)

Westie

  • Reg Member
  • ***
  • Posts: 819
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #15 on: January 23, 2018, 02:58:08 PM »

Thanks, @jelv.

I've been using them for navigation for ages, but didn't know they had a name. Doh!
Logged

jelv

  • Helpful
  • Kitizen
  • *
  • Posts: 1014
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #16 on: January 23, 2018, 03:35:53 PM »

Would the attached help?
Logged
Line rental: Pulse8, Broadband: AAISP Home::1 FTTC 80/20, Mobile: id Mobile

jelv

  • Helpful
  • Kitizen
  • *
  • Posts: 1014
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #17 on: January 23, 2018, 03:43:50 PM »

Also, I notice there is no alt or title on the new images so nothing pops up on mouse-over - can that be done without consequences?
Logged
Line rental: Pulse8, Broadband: AAISP Home::1 FTTC 80/20, Mobile: id Mobile

Black Sheep

  • Helpful
  • Kitizen
  • *
  • Posts: 4886
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #18 on: January 23, 2018, 06:29:05 PM »

I also wasn't aware that the 'new' wording was actually a link, and have voted as such in your poll.
Logged

jelv

  • Helpful
  • Kitizen
  • *
  • Posts: 1014
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #19 on: January 23, 2018, 06:34:06 PM »

@Weaver

I suspect a number of people are grateful to you for raising this topic as they will have leant a more efficient way of using the forums as a consequence!
Logged
Line rental: Pulse8, Broadband: AAISP Home::1 FTTC 80/20, Mobile: id Mobile

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 31543
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #20 on: January 23, 2018, 07:35:29 PM »

Would the attached help?

Cheers has to be a transparent gif, but Ive sorted that and uploaded new image.   I wasn't sure if it would accept a different size, but it appears to be OK with it.   
Browser refresh should show the new 'new'.

Atm I don't see anyway that I can easily change anything.   This isn't specific to this forum and applies to all SMF forums. 
I too had noticed the lack of an alt tag earlier..    but this appears to be exactly the same on the main SMF forum.   I have asked if it can be added as a feature request - link
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

Weaver

  • Addicted Kitizen
  • *****
  • Posts: 6053
  • Retd sw dev; A&A; 4 × 7km ADSL2; IPv6; Firebrick
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #21 on: January 23, 2018, 09:51:36 PM »

It's a difficult question, that of how a user decides if a ui object is clickable or not.

On some systems there is no such thing as ‘hovering over a link with a mouse’, because there is no mouse. And if not then there is no opportunity to use mouse cursor icon shape changing as a visual hint technique to indicate what happens if the user clicks on something.
Logged

jelv

  • Helpful
  • Kitizen
  • *
  • Posts: 1014
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #22 on: January 23, 2018, 10:57:30 PM »

Just had an idea.

Is the "Total time logged in: " in a file you can alter with minimal consequences? If so could you prefix it with

Quote
Click to go to first unread post in a topic (logged in users only)

and a line feed?
Logged
Line rental: Pulse8, Broadband: AAISP Home::1 FTTC 80/20, Mobile: id Mobile

kitz

  • Administrator
  • Senior Kitizen
  • *
  • Posts: 31543
  • Trinity: Most guys do.
    • http://www.kitz.co.uk
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #23 on: January 24, 2018, 01:48:25 PM »

I honestly don't know Jelv.

There's circa 100 php files that make up the Core.    These then all link to language files.   eg it doesnt just say in the code print "Blah Blah" each item will have a specific item name which then pulls up something or other depending upon which language.

The Core is massive containing millions of lines of code.   I think the suggested section will be somewhere within Profile-View.php which is just one page of many in the core [see below].   It may not even be there.   I don't know enough about the inner workings of basically what is a massive software program and I don't know what I'm doing.

Whilst I do understand what you guys are getting at and I fully agree that its not clear what the NEW button is and does, this exists within the actual software.   It is only because it is open source that practically anything is able to be modified if you have the knowledge to do so, but you then have to be prepared to manually modify any security updates too.   

I'm not trying to be awkward by saying no, but this really is something I don't want to do because it involves core files.   Trying to think of a simple way to explain it.    Its like any program,  the user can change things like display, default fonts, or perhaps even which buttons appear or colour of the ribbon bar.    But this is something deeper inside the program depending upon code that is normally not available.   However in this instance it is available because its open source.    Its kind of like me adding a new function to MS Word or getting your browser to do something different.   Its down to the devs to do that.   Yes there are some guys who are capable of doing this too and thats what 'mod packages' are about, but even before they are released they have to be approved by SMF to make sure they dont break anything and are packaged correctly.

Atm even several official mods are broken and wont work after security updates.  I use Stop Spammer and that stopped me being able to do an important security update before xmas. In the end I had to uninstall it and run with reduced spam protection for a few weeks until that was fixed.. and quite a bit of my time and even so its a botch fix.  There's also another official mod I would really like to use, but that too wont work after the last security update because it affects core files.

I didn't dismiss it out of hand at first and I did spend a couple of hours looking into it to see if there was an easy solution, but sorry guys I'm not touching anything to do with the Core files.


---
Edited to remove attachment
« Last Edit: February 09, 2018, 01:13:02 PM by kitz »
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

Westie

  • Reg Member
  • ***
  • Posts: 819
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #24 on: January 24, 2018, 03:55:39 PM »

I think that's a wise decision, kitz.

When a program contains code like
Code: [Select]
// Let's use a generic list to get all the current warnings, and use the issue warnings grab-a-granny thing who knows what might be lurking in it's hidden depths?  :D  ;)
Logged

jelv

  • Helpful
  • Kitizen
  • *
  • Posts: 1014
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #25 on: January 24, 2018, 11:20:17 PM »

I've downloaded and set up a basic SMF installation. Finding the file(s) that would need modifying was a doddle.

Themes\default\language\index.english.php has the string:
Code: [Select]
$txt['totalTimeLogged1'] = 'Total time logged in: ';
It is used in Themes\core\index.template.php (search for totalTimeLogged1):
Code: [Select]
    // If the user is logged in, display stuff like their name, new messages, etc.
    if ($context['user']['is_logged'])
    {
        echo '
                <ul class="reset">
                    <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
                    <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

        // Is the forum in maintenance mode?
        if ($context['in_maintenance'] && $context['user']['is_admin'])
            echo '
                    <li class="notice">', $txt['maintain_mode_on'], '</li>';

        // Are there any members waiting for approval?
        if (!empty($context['unapproved_members']))
            echo '
                    <li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>';

        // Show the total time logged in?
        if (!empty($context['user']['total_time_logged_in']))
        {
            echo '
                    <li>', $txt['totalTimeLogged1'];

            // If days is just zero, don't bother to show it.
            if ($context['user']['total_time_logged_in']['days'] > 0)
                echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

            // Same with hours - only show it if it's above zero.
            if ($context['user']['total_time_logged_in']['hours'] > 0)
                echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

            // But, let's always show minutes - Time wasted here: 0 minutes.
            echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '
                    </li>';
        }

        if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
            echo '
                    <li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
        echo '
                </ul>';
    }

Contrary to what I suggested I'm thinking it might be easier to insert a line in the second file immediately after
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';


I'll have a go in the next day or so and if it works let you have the URL to have a look and give you the code. If it just comes down to inserting a single line it would be easy to take it out before you attempt any upgrade/patch and then re-add it after which would reduce the risks.

Edit: It wouldn't need the "(logged in users only)" as the bit I'm suggesting adding to is only displayed for logged in users.
« Last Edit: January 24, 2018, 11:24:09 PM by jelv »
Logged
Line rental: Pulse8, Broadband: AAISP Home::1 FTTC 80/20, Mobile: id Mobile

jelv

  • Helpful
  • Kitizen
  • *
  • Posts: 1014
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #26 on: January 25, 2018, 12:29:21 AM »

Something like the attached screen shot fit the bill?

To do this I removed the '; from the end of the first line and added the second.

Code: [Select]
                    <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
                    <li>Click <img src="', $settings['lang_images_url'], '/new.gif"> to go to first unread post in a topic</li>';

If you like I'd be happy if you sent me KitzBlue to check it works with your theme.
« Last Edit: January 25, 2018, 12:38:07 AM by jelv »
Logged
Line rental: Pulse8, Broadband: AAISP Home::1 FTTC 80/20, Mobile: id Mobile

Weaver

  • Addicted Kitizen
  • *****
  • Posts: 6053
  • Retd sw dev; A&A; 4 × 7km ADSL2; IPv6; Firebrick
Re: Feasibility - date order / reverse chronological listing of posts
« Reply #27 on: January 25, 2018, 01:09:28 AM »

I completely appreciate Kitz' point about making trouble for yourself when updates keep overwriting customisation work you have done and the cost of repeatedly reintegrating patches of your own mounts up and up and up, and there's also the risk of things breaking because your patch is now incompatible with the new core code.

I did this for a living for sixteen years, working on operating systems and associated bits for seven years so I do know.

Is there any easily and safely customisable place where a note could be parked that advertises the valuable ‘new’ feature? And without looking a mess and setting a horrid _precedent_ too. I have no idea where and it's a psychology question, I never notice good things, I’m the absolute worst user for remaining in the dark about feature-availability.
« Last Edit: January 25, 2018, 01:14:40 AM by Weaver »
Logged
Pages: 1 [2]