[3.3][DEV] Moderate While Searching

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!
Scam Warning
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
Toxyy
Registered User
Posts: 966
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek

[3.3][DEV] Moderate While Searching

Post by Toxyy »

Extension Name: Moderate While Searching
Author: toxyy
Special Thanks: urzh
Extension Description: Moderate while searching in phpBB 3.3
Extension Version: 0.1.0
    Requirements:
    • phpBB 3.3
    • PHP 7+
    • MySQL Fulltext Search Index
    This extension requires a core edit:

    Open ./forum/phpbb/search/fulltext_mysql.php

    Find $this->db->sql_escape(html_entity_decode($this->search_query, ENT_COMPAT)
    Replace with $this->db->sql_escape(html_entity_decode($search_query, ENT_COMPAT)

    (We are changing $this->search_query to $search_query)

    A pull request will be made for this change by 3.3.9

    Extension Download: https://github.com/toxyy/moderatewhiles ... /0.1.0.zip
    Github repository: https://github.com/toxyy/moderatewhilesearching
    Languages: en
    Templates: all
    Features:
    • Find all duplicate topics
    • Delete duplicate topics
    Planned features are to extend functionality to include more MCP like features, you can see I've commented these out in the html files. The delete topic functionality should work on any search page with topics, I've just disabled it as I only tested it with duplicate topics.

    Will also add support for other search engines and features depending on demand.

    Installation/notes:
    This extension is in DEV. PLEASE make a backup of your database before using this extension.

    Place files into ext/toxyy/moderatewhilesearching

    You MUST make the core change as described up above in order for the extension to work properly.

    Notes:
    Currently this extension only works to find duplicate topics on your forum, and then delete them. The counting query is busted and would require a new event to fix that, so the search page populates with a list of duplicate topics. That list will continue to be populated until you have no more duplicate topics left. The topics listed will be of the highest ID, since we are assuming a higher ID topic would be the duplicate. The originals are not listed. If a topic has more than one duplicate, only the latest one will be listed, but each new one will continue to be in the results until you have deleted all of the duplicates.

    Search returning 0 results is an artifact of how I made this extension, it cannot be fixed unless I make a new event for it and I have no plans to.

    Usage:
    • If no results at first, clear your cache.
    • You MUST use keywords to find duplicate topics, these keywords are unused but the search functionality requires it.
    • The other settings are overridden - it is automatically set to Topic titles only, display results are Topics, and sort results by is by topic titles, no matter what you set.
    Media:
    Example usage: https://toxyy.github.io/moderatewhilese ... rking.webm

    Image

    ---

    Image
    Last edited by Toxyy on Tue Sep 13, 2022 6:33 pm, edited 5 times in total.
    I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

    Some of my extensions:
    [3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
    User avatar
    Toxyy
    Registered User
    Posts: 966
    Joined: Mon Oct 24, 2016 3:22 pm
    Location: Namek

    Re: [3.3][DEV] Moderate While Searching

    Post by Toxyy »

    reserved
    I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

    Some of my extensions:
    [3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
    User avatar
    Jodi-86
    Registered User
    Posts: 100
    Joined: Thu Nov 30, 2017 10:04 pm

    Re: [3.3][DEV] Moderate While Searching

    Post by Jodi-86 »

    Nice idea and will save a bit of time, thank you.
    User avatar
    ac_roma
    Registered User
    Posts: 321
    Joined: Thu Mar 08, 2007 2:48 pm
    Location: egypt,alexandria

    Re: [3.3][DEV] Moderate While Searching

    Post by ac_roma »

    great mod ;)
    spinecki
    Registered User
    Posts: 68
    Joined: Wed Jan 11, 2017 12:41 pm

    Re: [3.3][DEV] Moderate While Searching

    Post by spinecki »

    Which phpbb version is it for? There is no such string for changing in both 3.3.8 and 3.3.5...
    User avatar
    warmweer
    Jr. Extension Validator
    Posts: 11856
    Joined: Fri Jul 04, 2003 6:34 am
    Location: Van Allen Bel ... gium

    Re: [3.3][DEV] Moderate While Searching

    Post by warmweer »

    spinecki wrote: Thu Jan 26, 2023 11:05 am Which phpbb version is it for? There is no such string for changing in both 3.3.8 and 3.3.5...
    A search for the text $this->db->sql_escape(html_entity_decode($this->search_query, ENT_COMPAT) in the phpBB-3.3.8.zip came up with line 600 in the file mentioned (it actually came up before I could take my finger off the ENTER button :lol: ).
    Spelling is freeware, which means you can use it for free.
    On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


    Time flies like an arrow, but fruit flies like a banana.
    spinecki
    Registered User
    Posts: 68
    Joined: Wed Jan 11, 2017 12:41 pm

    Re: [3.3][DEV] Moderate While Searching

    Post by spinecki »

    you're right, 3.3.8 do have it, 3.3.5 do not.
    User avatar
    warmweer
    Jr. Extension Validator
    Posts: 11856
    Joined: Fri Jul 04, 2003 6:34 am
    Location: Van Allen Bel ... gium

    Re: [3.3][DEV] Moderate While Searching

    Post by warmweer »

    spinecki wrote: Thu Jan 26, 2023 12:22 pm you're right, 3.3.8 do have it, 3.3.5 do not.
    3.3.8 and 3.3.9 have it.
    Spelling is freeware, which means you can use it for free.
    On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


    Time flies like an arrow, but fruit flies like a banana.

    Return to “Extensions in Development”