[3.2][3.3][RC] Topic link 🔗

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

[3.2][3.3][RC] Topic link 🔗

Post by 3Di »

πŸ”— Topic link πŸ”—

             » phpBB Studio
                      :label: 1.0.4-RC
                       :tools:        
                               phpBB >= 3.2.5


:film_projector: Demo: N/A

:inbox_tray: Download: https://phpbbstudio.com/extensions/topic-link

Credits:
profKroy who commissioned and paid for the work and then made it available to the public.
and to us, The Studio. ;)

Description:
  • Adds a new topic type link
  • URL input in the posting editor general tab
  • Input is validated with an intense loop of regular expressions, SID removal etc.
  • Topic link does not opens in an external window
  • Absolute and relative URLs allowed
  • Topic and posts are managed also by the search tools everywhere
  • Only authorised users can modify the topic links (permission not set as default)
  • Topic link gets the same forum link icon so to be distinguished from the rest
  • Topic link can be used the same way topics are, like sticky etc..
  • Topic link are locked upon creation and unlocked automatically if no url is present (edit post)
  • Just one user permission not set.
  • To be able to start using the feature you need to set the permission first.
  • To edit the topic you can use the MCP or get into it from the last post mini-icon if authorised.

:beetle: Tracker: https://github.com/phpBB-Studio/TopicLink/issues
Last edited by 3Di on Mon Jul 06, 2020 10:01 pm, edited 3 times in total.
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][DEV] Topic link

Post by 3Di »

Image
Last edited by 3Di on Mon Jul 06, 2020 9:54 pm, edited 1 time in total.
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][DEV] Topic link

Post by 3Di »

2020-04-05 22_22_17-vblog - Post a new topic.png
2020-04-05 22_22_17-vblog - Post a new topic.png (9.39 KiB) Viewed 13212 times

2020-04-05 22_52_00-vblog - Moderator Control Panel - Post details.png
2020-04-05 22_52_00-vblog - Moderator Control Panel - Post details.png (7.35 KiB) Viewed 13194 times
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][BETA] Topic link

Post by 3Di »

v1.0.3-beta on 2020-04-07 - First public release, see first post.
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by 3Di »

v1.0.4-RC on 2020-07-07 - See first post.
- Removed number of Replies and Views from viewforum topic list
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Edson Quadros
Registered User
Posts: 26
Joined: Wed Sep 09, 2020 3:44 pm
Location: Brasil
Name: Edson Quadros

Re: [3.2][3.3][RC] Topic link 🔗

Post by Edson Quadros »

Great extension, congratulations.
I installed and I'm using it and I have a suggestion:
You have a variable S_TOPIC_LINK but it is not visible in the topic list template (viewforum_body.html). This variable would be very useful for controlling some views.
I got around this with the topicrow.VIEWS variable which in its extension it returns '' and solved the problem for me.
Again, its extension is very good.
Thank you so much
Sorry my English
Miri4ever
Registered User
Posts: 515
Joined: Sat Mar 07, 2015 11:18 am
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by Miri4ever »

Got this error after enabled:

Code: Select all

SQL ERROR [ mysqli ]

Not unique table/alias: 't' [1066]

SQL

SELECT f.*, ft.mark_time, ulp.user_avatar as forum_last_poster_avatar, ulp.user_avatar_type as forum_last_poster_avatar_type, ulp.user_avatar_width as forum_last_poster_avatar_width, ulp.user_avatar_height as forum_last_poster_avatar_height, MAX(slp.session_time) as forum_last_poster_session_time, MIN(slp.session_viewonline) as forum_last_poster_session_viewonline, t.topic_title AS last_post_topic_title, t.tlink FROM (P_forums f) LEFT JOIN P_forums_track ft ON (ft.user_id = 4 AND ft.forum_id = f.forum_id) LEFT JOIN P_users ulp ON (f.forum_last_poster_id = ulp.user_id AND forum_type <> 0) LEFT JOIN PHP33_sessions slp ON (f.forum_last_poster_id = slp.session_user_id AND slp.session_time >= 1605104962 AND slp.session_user_id <> 1 AND forum_type <> 0) LEFT JOIN PHP33_topics t ON (f.forum_last_post_id = t.topic_last_post_id AND t.topic_moved_id = 0) LEFT JOIN PHP33_topics t ON (f.forum_last_post_id = t.topic_last_post_id) GROUP BY f.forum_id ORDER BY f.left_id
Homepage: Terra Oceanica

Extension Developments:
My PHPBB Special SFX Codes / PHPBB Games: Solitaire, 2048, Breakout, Hextris, LINX
My PHPBB MChat Games: Dice Poker, Black Jack, Red or Black, Hi / Lo Game.
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by 3Di »

I am using the same table alias as per the phpBB's core code (TOPICS_TABLE = T), therefore I believe there is one or more of your extensions which are using a different one. In order to troubleshot this issue you are having, I suggest you disable all of your extensions and try again.
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
varioles
Registered User
Posts: 43
Joined: Fri Feb 04, 2011 2:24 pm
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by varioles »

Hi,

Since the phpbb 3.3.3 update this error appears:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/viewforum.php on line 1030: A non-numeric value encountered
:mrgreen:
User avatar
ssl
Registered User
Posts: 596
Joined: Sat Feb 08, 2020 2:15 pm
Location: France
Name: Fred
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by ssl »

Hi
I don't think the extension is to blame, it looks like an issue with the files while updating.
Sorry for my English ... I do my best!

phpBB version: 3.3.3
php version: 8.0.3
User avatar
david63
Registered User
Posts: 19231
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by david63 »

varioles wrote: ↑
Sun Jan 31, 2021 10:37 am
Hi,

Since the phpbb 3.3.3 update this error appears:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/viewforum.php on line 1030: A non-numeric value encountered
That error is caused by this PR - https://github.com/phpbb/phpbb/pull/5291

Don't know if it is the extension that is generating the error on your board or another extension. I know of one other extension (Who Posted in this Topic) that causes that error
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
User avatar
varioles
Registered User
Posts: 43
Joined: Fri Feb 04, 2011 2:24 pm
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by varioles »

david63 wrote: ↑
Sun Jan 31, 2021 11:13 am
varioles wrote: ↑
Sun Jan 31, 2021 10:37 am
Hi,

Since the phpbb 3.3.3 update this error appears:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/viewforum.php on line 1030: A non-numeric value encountered
That error is caused by this PR - https://github.com/phpbb/phpbb/pull/5291

Don't know if it is the extension that is generating the error on your board or another extension. I know of one other extension (Who Posted in this Topic) that causes that error
Yep,

I'm pretty sure this error is due to this extension: D

But thanks to your link, I modify the line:

Code: Select all

$pagination->generate_template_pagination($topic_row['U_VIEW_TOPIC'], 'topicrow.pagination', 'start', $topic_row['REPLIES'] + 1, $config['posts_per_page'], 1, true, true);
By :

Code: Select all

$pagination->generate_template_pagination($view_topic_url, 'topicrow.pagination', 'start', $replies + 1, $config['posts_per_page'], 1, true, true);
the error has disappeared

Thx david63 ;)
:mrgreen:
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by 3Di »

The above error is clearly due to that PR, which will have to be reversed.
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by 3Di »

varioles wrote: ↑
Sun Jan 31, 2021 10:37 am
Hi,

Since the phpbb 3.3.3 update this error appears:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/viewforum.php on line 1030: A non-numeric value encountered
I made a PR which fixes the issue in the core code, please see: https://github.com/phpbb/phpbb/pull/6135/files
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
3Di
Former Team Member
Posts: 16270
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano 🇮🇹 Frankfurt 🇩🇪
Name: Marco
Contact:

Re: [3.2][3.3][RC] Topic link 🔗

Post by 3Di »

New version 1.0.5-rc available
see: https://phpbbstudio.com/viewtopic.php?p=3287#p3287 for changelog and D/L.
πŸ†“ Free support for our extensions also provided here: phpBB Studio
πŸš€ Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity ΒΊ PhpStorm's proud user ΒΊ Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to β€œExtensions in Development”