FIXED: Extension doesn't work with SEO Ultimate - QuickMod


no_avatar
deiux3
 
Posts: 6
Joined: Fri Oct 25, 2024 9:03 am
 Fri Oct 25, 2024 9:36 am • via Web
Hello. I just installed the QuickMod on my forum and it does not work.

No icons show up, and if I seelct the context menu option it does not work either.

Tested with the prosilver theme also, the extension does not work!

Why is that?
Last edited by deiux3 on Fri Oct 25, 2024 1:20 pm, edited 1 time in total.
no_avatar
deiux3
 
Posts: 6
Joined: Fri Oct 25, 2024 9:03 am
 Fri Oct 25, 2024 10:49 am • via Web
I found the problem, I use Ultimate PHPBB Seo Extension that chanegs the url from ./viewforum.php?f=2/ to ./name-of-forum/


Edit: I found the FIX!!!


open quickmod/libraries/quickmod.php and search for:

Code: Select all
      $this->forum_id = $this->request->variable('f', 0);
      
      $active         = false;
      $mod_pages      = ['viewforum', 'search', 'viewforum.' . $this->php_ext, 'search.' . $this->php_ext];

      if($this->phpbb_root_path == './' && in_array($this->user->page['page_name'], $mod_pages))
      {
         $active = true;
      }


replace with:
Code: Select all
      $this->forum_id = $this->request->variable('f', 0);
      $active = false;

      // Check if we're on a forum or search page by looking for specific request variables
      if ($this->phpbb_root_path == './' && ($this->forum_id || $this->request->variable('search_id', '', true)))
      {
         $active = true;
      }

Who is online

Users browsing this forum: No registered users and 0 guests