Author Topic: Alt-S to submit a post?  (Read 12458 times)

0 Members and 1 Guest are viewing this topic.

Offline SLOweather

  • Administrator
  • Forecaster
  • *****
  • Posts: 3457
    • http://www.sloweather.com
Alt-S to submit a post?
« on: August 25, 2006, 04:39:07 PM »
Since it looks like this is the new home of the forum, could we please get alt-s for submit and alt-p for preview turned on for new posts?

Offline SLOweather

  • Administrator
  • Forecaster
  • *****
  • Posts: 3457
    • http://www.sloweather.com
Alt-S to submit a post?
« Reply #1 on: October 31, 2006, 02:23:51 PM »
Bump.

The other forums I haunt allow alt-s to submit a post. Is it possible to activate that here?

Thanks!

Chris

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8617
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Alt-S to submit a post?
« Reply #2 on: October 31, 2006, 02:46:25 PM »
I'll take a look a the configs.. see what can be done.

Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline kray1000

  • Purveyor of wry
  • Forecaster
  • *****
  • Posts: 1336
    • http://www.roanokevalleyweather.com
Alt-S to submit a post?
« Reply #3 on: October 31, 2006, 03:22:29 PM »
And while we're suggesting...

What's the easiest way to view the most recent posts made on this forum, not just the ones since my last visit?  I don't see a link that says "View most recent posts on this forum", or something along those lines...

Offline SLOweather

  • Administrator
  • Forecaster
  • *****
  • Posts: 3457
    • http://www.sloweather.com
Alt-S to submit a post?
« Reply #4 on: October 31, 2006, 03:36:00 PM »
That's a good one. The Avalanche Fan Club SMF powered site has one that adds "index.php?action=last24" to the base URL, but that trick doesn't work here (yet).

Offline kray1000

  • Purveyor of wry
  • Forecaster
  • *****
  • Posts: 1336
    • http://www.roanokevalleyweather.com
Alt-S to submit a post?
« Reply #5 on: October 31, 2006, 03:45:16 PM »
Quote from: "SLOweather"
The other forums I haunt...


Quote from: "SLOweather"
... that trick doesn't work here...


Been eating too many Halloween sandwitches?

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 8617
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Alt-S to submit a post?
« Reply #6 on: October 31, 2006, 04:29:37 PM »
It should be done now...

alt-p should do a preview (used to to imbed an image)
alt-s should do a submit.

At least in IE7  -- having a problem with Firefox 2.0 acting on the accesskey directive...

I used the hotkeys to preview and submit this post :-)

Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline W3DRM

  • Forecaster
  • *****
  • Posts: 3336
    • Carson Valley Weather
Alt-S to submit a post?
« Reply #7 on: October 31, 2006, 05:08:29 PM »
And, another suggestion (MOD to add...).

I see a MOD that shows the post subject so you don't have to stop and think about what topic you were replying to. If it's what I think it is, it would be a nice addition to have. The link is as follows:
    http://www.phpbb.com/phpBB/viewtopic.php?t=121524[/list]
    Don - W3DRM - Minden, Nevada --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KRNO2
    Davis Wireless VP2, WD 10.37s135,
    StartWatch, VirtualVP, VPLive, Win10 Pro
    --- Logitech HD Pro C920 webcam
    --- RIPE Atlas Probe - 32849

    Offline saratogaWX

    • Administrator
    • Forecaster
    • *****
    • Posts: 8617
    • Saratoga, CA, USA Weather - free PHP scripts
      • Saratoga-Weather.org
    Alt-S to submit a post?
    « Reply #8 on: October 31, 2006, 10:27:04 PM »
    I've added two new search params:

    http://www.wxforum.net/search.php?search_id=recent  will show the last 7 days of posts

    http://www.wxforum.net/search.php?search_id=last24 will show posts in the last 24 hours

    I'll add the options to the search items available on the home screen

    Enjoy!

    Ken
    Ken True/Saratoga, CA, USA main site: saratoga-weather.org
    Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
    Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

    Offline SLOweather

    • Administrator
    • Forecaster
    • *****
    • Posts: 3457
      • http://www.sloweather.com
    Alt-S to submit a post?
    « Reply #9 on: November 01, 2006, 12:31:46 AM »
    Thanks, Ken. You rock! I used alt-s to submit this! (in FF 1.5.0.7)

    Offline saratogaWX

    • Administrator
    • Forecaster
    • *****
    • Posts: 8617
    • Saratoga, CA, USA Weather - free PHP scripts
      • Saratoga-Weather.org
    Alt-S to submit a post?
    « Reply #10 on: November 01, 2006, 01:03:22 AM »
    Don... the show subject (topic) of post when replying mod is also installed..

    When I replied to his topic, it showed the links as:
    Code: [Select]
    WXforum.net Forum Index  -> Bugs/General Suggestions  -> Alt-S to submit a post?

    Ken
    Ken True/Saratoga, CA, USA main site: saratoga-weather.org
    Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
    Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

    Offline W3DRM

    • Forecaster
    • *****
    • Posts: 3336
      • Carson Valley Weather
    Alt-S to submit a post?
    « Reply #11 on: November 01, 2006, 10:32:00 AM »
    Thanks Ken that is great. It's not what I was exactly looking for though. Was thinking it would actually place the Subject contents in the Subject box. That would be even nicer!

    Anyway - you do ROCK!  :D
    Don - W3DRM - Minden, Nevada --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KRNO2
    Davis Wireless VP2, WD 10.37s135,
    StartWatch, VirtualVP, VPLive, Win10 Pro
    --- Logitech HD Pro C920 webcam
    --- RIPE Atlas Probe - 32849

    Offline saratogaWX

    • Administrator
    • Forecaster
    • *****
    • Posts: 8617
    • Saratoga, CA, USA Weather - free PHP scripts
      • Saratoga-Weather.org
    Alt-S to submit a post?
    « Reply #12 on: November 01, 2006, 10:49:14 AM »
    Yes, I remember that mod to auto-fill the Subject on a reply..

    I'll do some trolling for it.

    Ken
    Ken True/Saratoga, CA, USA main site: saratoga-weather.org
    Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
    Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

    Offline saratogaWX

    • Administrator
    • Forecaster
    • *****
    • Posts: 8617
    • Saratoga, CA, USA Weather - free PHP scripts
      • Saratoga-Weather.org
    Re: Alt-S to submit a post?
    « Reply #13 on: November 01, 2006, 03:01:10 PM »
    Ahh... found the (ancient) mod and refitted it.  Now the subject line will automatically be 'Re: <topic>' when you do a reply to a post.

    See above subject line (was automatically filled in ) :-)

    Thanks for the suggestion Don!

    Best regards,
    Ken
    Ken True/Saratoga, CA, USA main site: saratoga-weather.org
    Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
    Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

    Offline W3DRM

    • Forecaster
    • *****
    • Posts: 3336
      • Carson Valley Weather
    Re: Alt-S to submit a post?
    « Reply #14 on: November 01, 2006, 03:45:34 PM »
    Wow, I'm impressed. I've been wanting that mod for a long long time! That's something that should be a standard part of the phpBB software.

    Thanks for finding it and putting into effect.  :D  :D  :D
    Don - W3DRM - Minden, Nevada --- Blitzortung ID: 808 --- FlightRadar24 ID: F-KRNO2
    Davis Wireless VP2, WD 10.37s135,
    StartWatch, VirtualVP, VPLive, Win10 Pro
    --- Logitech HD Pro C920 webcam
    --- RIPE Atlas Probe - 32849

    Offline saratogaWX

    • Administrator
    • Forecaster
    • *****
    • Posts: 8617
    • Saratoga, CA, USA Weather - free PHP scripts
      • Saratoga-Weather.org
    Re: Alt-S to submit a post?
    « Reply #15 on: November 01, 2006, 04:14:28 PM »
    You're welcome Don!

    Finding the mod was an exercise.. phpBB mods directory had 'rolled it off' so it couldn't be found via that path.  I did a couple of google searches and found the text of the mod cached for a site in Taiwan.

    Here's the mod for all you phpBB admins (may need a touch of refitting) but is really simple and only changes posting.php:

    Code: [Select]
    ##############################################################
    ## MOD Title: Automatic Subject on Reply
    ## MOD Author: drathbun < drathbun@forumtopics.com > (Dave Rathbun)
    ## MOD Description: Simple mod to add a default subject on all post replies
    ## MOD Version: 1.0.1
    ##
    ## Installation Level: easy
    ## Installation Time: 5 Minutes
    ## Files To Edit: posting.php
    ## Included Files: n/a
    ##############################################################
    ## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
    ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
    ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
    ## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
    ##############################################################
    ## Author Notes:
    ## This very simple mod provides a default subject on all post replies
    ## It essentially duplicates the "Quote" function of a default subject.
    ## 2.0.4 compatible as written
    ## Installation Notes
    ## The "After, Add" operation is used in the mod notes because that's one of the
    ## available options. However, what you can really do is replace the line:
    ## $subject = '';
    ## with the "After, Add" code. The code will work if installed per these
    ## instructions, so it should be compatible with any automatic mod installers.
    ## But the reason for the mod instructions being written the way they are is
    ## there are two instances of the line
    ##
    ## $subject = '';
    ##
    ## in the code. I had to provide enough lines to be specific.
    ##
    ## 2.0.3 compatible with one additional edit, detailed here. You have to add the
    ## topic_title to the sql that retrieves the post info. In 2.0.4 this change has
    ## already been made, and therefore is not included in the standard mod install
    ## operations.
    ##
    ## OPEN posting.php
    ## FIND $sql = "SELECT f.*, t.topic_status
    ## IN-LINE AFTER, ADD , t.topic_title
    ##
    ##
    ## 1.0.1 update notes
    ## Changed initial subject to limit to 60 characters. MySQL does not
    ## require this mod, but other databases might.
    ##
    ## No language entries or template changes are required for this very simple mod.
    ##############################################################
    ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
    ##############################################################

    #
    #-----[ OPEN ]------------------------------------------
    #
    posting.php

    #
    #-----[ FIND ]------------------------------------------
    #
    else if ( $mode == 'reply' )
    {
    $user_sig = ( $userdata['user_sig'] != '' ) ? $userdata['user_sig'] : '';

    $username = ( $userdata['session_logged_in'] ) ? $userdata['username'] : '';
    $subject = '';

    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    // begin Automatic Subject on Reply mod
    $subject = $post_info['topic_title'];
    if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0)
    {
    $subject = substr('Re: ' . $subject, 0, 60);
    }
    // end Automatic Subject on Reply mod


    #
    #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
    #
    # EoM


    Enjoy!

    Ken
    Ken True/Saratoga, CA, USA main site: saratoga-weather.org
    Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
    Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP