Firefox PHP

Module: Go To Topic

Posted by Maurice Makaay 
All files from this thread

File Name File Size   Posted by Date  
go_to_topic-1.2.3.zip 10.9 KB open | download Maurice Makaay 08/31/2016 Read message
Module: Go To Topic
August 20, 2007 09:05PM
This module implements the Go To Topic concept from Phorum 3.

It allows the user to jump back to the exact list page on which a message that was read or written resides. Phorum 5 only implements the Message List link, which will always jump to the first list page.

Changelog:
----------

2016-08-31 v1.2.3 by Oliver Riesen-Mallmann <oliver@riesen.org>

    - Made XHTML 1.0 Transitional compliant.

2011-04-01 v1.2.2 by Maurice Makaay

    - Some small changes to the database layer, trying to work around
      a possible performance issue.

2011-01-21 v1.2.1 by Maurice Makaay

    - Fixed redirection when coming from a sticky thread. Without this
      fix, the module redirected to the page on which the sticky message
      had been when it had been unsticky. Now, when returning from a
      sticky message, the first page is always loaded.

2010-10-09 v1.2.0 by Maurice Makaay

    - Fixed an edge case situation, where the module would not jump back
      to the correct list page, when there were a few messages bearing
      the same timestamp around the page separation.

    - Make use of new hooks in Phorum 5.2.16+ to optimize the module.

    - Added a configurable feature to automatically replace list URLs
      on the read page with the Go To Topic URL. This takes away the
      need to modify the templates.

      If you are upgrading from an older version of this module, then
      beware that this option is enabled by default in the settings.
      If you are using both {URL->LIST} and {GO_TO_TOPIC_URL} in your
      templates, then disable the feature.

    - When using the above feature, the breadcrumb that points to the
      forum will also be modified to use the Go To Topic URL instead
      of the plain forum URL.

    - Added new German language files. Thanks to Oliver Riesen!

2008-07-30 v1.1.2 by Maurice Makaay

    - A README documentation update to make the template variables
      that are referenced for modifying the template compatible
      with those that are used in the Phorum 5.2 templates.

2008-04-21 v1.1.1 by Maurice Makaay

    - Jumping to the posted message in the message list after posting
      a message is now only enabled if in the "General Settings" admin page
      the option "After posting goto" is set to "Message List Page".

2007-04-12 v1.1.0 by Maurice Makaay

    - Branched the module for separating 5.1 and 5.2 support (5.2 uses
      a different database layer API).

2007-04-12 v1.0.2 by Maurice Makaay

    - If a forum is read in threaded mode, then the anchor
      #msg-<message id> is used instead of #msg-<thread id>.

    - Added a workaround for an MSIE redirect bug (MSIE strips anchor info
      from URLs when the redirect is done by a script that received a
      multi-part POST request). Now, jumping to the #msg-... anchor works
      after posting from MSIE too.

2007-04-12 v1.0.1 by Maurice Makaay

    - Turned the module into a multi file module, to be able to add
      some features.

    - Added language file support.

    - Typo "gotogopic" -> "gototopic" fixed.

    - Changed some deprecated code constructions which were in the module
      because they were introduced at the time of writing for the
      dealnews.com website.

    - Fixed an off-by-one bug in determining what page to show. Jumping
      back to the very first message on a list page let the user jump
      to the page before the correct page instead.

    - Made the module work when jumping back from the read page on a forum
      that has "float to top" enabled.

    - Implemented code for handling multiple database layers (mysql, mysqli
      and postgresql).

2007-04-12 v1.0.0 by Brian Moon

    - Initial release


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 6 time(s). Last edit at 08/31/2016 02:16PM by Oliver Riesen-Mallmann.
Attachments:
open | download - go_to_topic-1.2.3.zip (10.9 KB)
Re: Module: Go To Topic
April 11, 2008 06:15PM
Hi Maurice,

i think, that the after_post hook should be removed from this module since it kicks of the "After posting goto" option from general settings. At least I removed it for my installation.

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: Go To Topic
April 21, 2008 06:54PM
The purpose of this is to emulate the Phorum 3 behavior. That product redirected to the list. Perhaps it could be added as an option by someone interested.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Module: Go To Topic
April 21, 2008 07:04PM
Hello,

I installed the Go to topic module in the phorum forum. I am using the emerald template.

Here is the error I received:

One or more deprecated hook names were detected in the installed modules. Although the modules will still work, we advice you to update the hook names in the module info and/or contact the module author.
Deprecated hook(s):

* Mod go_to_topic: rename "post_post"; to "after_post"

Any way to resolve the above error, any help will be appreciated.

rambro
Re: Module: Go To Topic
April 22, 2008 01:48AM
It is not an error. It is just a hook name that was named differently in Phorum 5.2. The module should work fine with that warning, because the module admin will make sure that internally the new hook name is used. So go ahead and don't worry. We will have to update this module to package it with the new hook name instead, so you can get rid of the warning message. I'll do that when I get back home from my vacation.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Go To Topic
April 22, 2008 06:27AM
@rambro: Please try downloading the new 1.1.1 package. It turned out that the required change was already in our development repository, but that the packages in this thread were not fully up-to-date. With the repackages 1.1.0, the warning should be history for you.

@Oliver: check if 1.1.1 fixes your problem with the jumping to the list page. I changed the code to make it only jump if the after posting goto option is set to "list page". So people that require the Phorum 3 behavior, can still use this jump behavior and you can disable it by using "read page" for the goto option.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 2 time(s). Last edit at 04/22/2008 06:39AM by mmakaay.
Re: Module: Go To Topic
April 23, 2008 01:44PM
Maurice: The errors I was receiving in the admin.tpl application seemed to have been fixed.

However, in the Readme file of this package, where "exactly" to place modified code in the read.tpl and and read_threads.tpl has eluded me. Also, in the list.tpl and list_threads.tpl, I could not find the code to modify (as per the Readme instructions), in order to use the "Go To Topic" module in these template files. Note, that I am trying to modify the above template files from the emerald template. In other words, the Readme instructions, I think, should be a little more clearer to me. Thanks for your help so far, it is really appreciated.

rambro
Re: Module: Go To Topic
May 04, 2008 01:33AM
I am using a variation of the 'Classic' template. I have changed the links to the Message List from:
<a class="PhorumNavLink" href="{URL->LIST}">{LANG->MessageList}</a>
to:
<a class="PhorumNavLink" href="{GO_TO_TOPIC_URL}">{LANG->MessageList}</a>

However, in the posting template (posting_menue.tpl) it doesn't work when the Posting template is on a seperate page (when you click New Topic). The {GO_TO_TOPIC_URL} is empty. Is there a way to fix this? It does work fine when you on a read page where the Posting template is included at the end for replies.

Thanks,
Re: Module: Go To Topic
May 07, 2008 07:55AM
Hi Maurice,

for reconciling miscellaneous german language files please add the attached files (originally from the German Language Files Package) to the next version of your module. Please remove any german_sie.php or german_du.php from module language folder (if existent). Thanks.

Regards
Oliver

[File removed]


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.




Edited 1 time(s). Last edit at 05/12/2008 09:29PM by Oliver Riesen.
Re: Module: Go To Topic
May 12, 2008 09:30PM
Hi Maurice,

according to structuring the language file and charset support I attach new german languages files in ISO-8859-1 and UTF-8. Please add them to the next release of your module.

Regards
Oliver

(Files removed. Oliver)


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.




Edited 1 time(s). Last edit at 01/04/2011 11:46AM by Oliver Riesen.
Sorry, only registered users may post in this forum.

Click here to login