phpbb-seo / usu Goto Github PK
View Code? Open in Web Editor NEWUltimate phpBB SEO Friendly URL extension
License: GNU General Public License v2.0
Ultimate phpBB SEO Friendly URL extension
License: GNU General Public License v2.0
Describe the bug :
In functions_display.php, phpBB builds the navigation links used in the breadcrumbs submenu. These breadcrumbs validate properly in both Google's Structured Data testing tool and Google's Rich Results Test tool when this extension is disabled.
However, when USU is enabled something goes wrong because the breadcrumbs microdata generated by functions_display.php is still based on URLs having forum ID in them.
When virtual folders are used to rewrite forum URLs (for example for example mydomain.com/myforum/
) the forum ID is stripped, meaning that the microdata that is generated is incorrect and the 'item' field is not preprocessed, therefore the markup fails validation.
Is there any way we could stop this URL from being preprocessed by USU so that the breadcrumbs will actually work again?
I installed Ultimate phpBB SEO Friendly URL and phpBB Gallery. But the gallery does not open. When I go to the link to the gallery - the main page of the forum opens. This is probably due to the incompatibility of these mods.
How do I fix this?
phpBB 3.3.11
PHP 7.4
Theme: Prosilver
Describe the bug :
When you're on a viewforum page that has been rewritten by this ext, for example if you're in /off-topic/
instead of /viewforum.php?f=2
, and you then click any link or submit any form to log in, the redirection after the successful login fails because it produces a URL that looks like this:
/viewforum.php/off-topic/?forum_uri=off-topic&start=&sid=...
The culprit is the 'viewforum.php' script name. If this were removed somehow then this bug would be fixed.
To Reproduce :
Steps to reproduce the behavior:
/off-topic
or /general-discussion
viewforum.php
scriptname in the URL that is generated.Expected behavior :
What should happen is that you are redirected to /off-topic/?forum_uri=off-topic&start=&sid=...
, NOT /viewforum.php/off-topic/?forum_uri=off-topic&start=&sid=...
.
Any chance we could get a quick find & replace fix for this?
Hi there.
I'm having a problem while using the extension. The main board URLs are not the user-friendly ones, but then once I'm inside any of the forums, the URL in the breadcrumbs are the right ones.
As an example:
But then, on the breadcrumb is /news-and-suggestions-f12.html
which is what I would expect (even tho I would expect the ID to not be there because that is what I configured on the settings)
Any idea why this is happening?
Thank you!
Hello,
It seems the extension is not compatible with phpBB 3.2.4
In ACP error message :
[phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 140: Indirect modification of overloaded property phpbb/user::$lang has no effect
(using french languiage pack...)
In the forum itself when clicking on a sub forum :
No route found for "GET /name-of-the-sub-forum/" (from "https://websitename.com/forum/index.php?sid=70c9823eda050962b6baa6d76563720f")
My urls are being rewritten as domain:80 though connection is HTTPS.
It should be possible to disable that behaviour :/
The URL to the last posted message for each forum in the board index is not translated properly, e.g. at
https://aimeos.org/help
The topic URL is translated to:
https://aimeos.org/help/help-f15/json-api-get-specific-level-of-catalog-from-product-t3797.html
But the URL at the right side where the last posts are listed is:
https://aimeos.org/help/post15105.html#p15105
Expected would be:
https://aimeos.org/help/help-f15/json-api-get-specific-level-of-catalog-from-product-t3797.html
after installation, clicking on the acp / phpbb seo tab, I get this error:
Fatal error: Call to a member function lang() on a non-object in C:\xampp\htdocs\phpbbstore32\ext\phpbbseo\usu\acp\usu.php on line 145
Groups address rewrite , not working yet
rewriteRule ^community/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?.html$ /community/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
Are there any sitemap plugins available for PHP BB 3.2?
I have installed and enabled the plugin and I see the "PHPBB SEO" Tab in ACP but when I click on it I just get a blank white screen
I would assume I should be seeing the settings screen for PHPBB SEO but all I see is a white screen. Everything else in ACP and front end works fine.
Dear support, help me! I upload module but still not wokring URL SEO links?
Hi, when i log being on a topic; i get an error page, i have to click to go back on index, then it displays the topic doesn't exist, i click another time on index and things come back to normal, phpbb 3.3.2 with php 7.4 :
General Error
INSECURE_REDIRECT
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/ext/phpbbseo/usu/core.php
LINE: 1310
CALL: trigger_error()
FILE: [ROOT]/ext/phpbbseo/usu/core.php
LINE: 1411
CALL: phpbbseo\usu\core->seo_redirect()
FILE: [ROOT]/ext/phpbbseo/usu/event/listener.php
LINE: 345
CALL: phpbbseo\usu\core->zero_dupe()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: phpbbseo\usu\event\listener->core_user_setup()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 44
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 62
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/phpbb/user.php
LINE: 222
CALL: phpbb\event\dispatcher->trigger_event()
FILE: [ROOT]/viewtopic.php
LINE: 357
CALL: phpbb\user->setup()
When i click on "return to index page" it goes to zeforums.com/viewtopic.php/ and it says "the topic is not available" (for sure with that url), i click on the logo to go back and everything goes back to normal, by the way, the log is done after clicking on "return to index page", i can see i'm logged.
It happens when i'm on a post of the topic with url like topic-url-txx.html#pxxx (xxx is the number of the post), i'll try to see if it happens if i change some parameters about redirecting post to url topic.
Hi there,
I installed your extension on a french testing board.
In ACP, there are the 4 following notices:
> [phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1675: Undefined index: modrlinks_fr
> [phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1676: Undefined index: modrforumlinks_fr
> [phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1677: Undefined index: modrlinks_fr
> [phpBB Debug] PHP Notice: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1678: Undefined index: modrforumlinks_fr
github seo url: https://github.com/phpbb-seo/usu/
thanks for posts github url: https://github.com/Naguissa/thanks_for_posts/tree/master/gfksx/ThanksForPosts
This modified doesn't work for me!
A for me working variant with phpbb 3.1.8 and Thanks for Posts from 16.01.2016 and usu from 9.08.2015:
In /ext/phpbbseo/usu/event/listener.php look for
if ($post_id && !$view && !$this->core->set_do_redir_post())
replace with
// Thanks for Posts extension
$to_id = request_var('to_id', 0);
$thanks = request_var('thanks', 0);
$rthanks = request_var('rthanks', 0);
// if ($post_id && !$view && !$this->core->set_do_redir_post())
if (($rthanks || $thanks || $post_id) && !$view && $this->core->set_do_redir_post())
// Thanks for Posts extension
Then look for
'hilit' => array('val' => (($highlight_match) ? $highlight : ''), 'keep' => !empty($highlight_match)),
And add after
// Thanks for Posts extension
'rthanks' => array('val' => $rthanks, 'keep' => $rthanks),
'to_id' => array('val' => $to_id, 'keep' => $to_id),
'thanks' => array('val' => $thanks, 'keep' => $thanks),
// Thanks for Posts extension
then look for $this->core->zero_dupe();
and replace with
// Thanks for Posts extension
// $this->core->zero_dupe();
if (!$to_id && !$thanks && !$rthanks) {
$this->core->zero_dupe();
}
// Thanks for Posts extension
Clean your cache and then it should work.
Maybe a more talented one prepares a commit for the repository.
I used zero dupe with strict mode on, and redirect for ALL
Describe the bug :
Hi,
I have installed your extension and enabled. But i have no idea about Settings. So please let me know how to make settings for the extension.
phpbb 3.3 changed something and extension does not work at all :(
I have a problem with a function of your mod, I was able to set the names for the categories and I configured other settings such as removing ids from topics and virtual folders for topic forums.
However, if I go to the topics the URL is of the type 'post142.html' and without categories!
Modify the default forum2.html topic2.html
Hi, if i update to the latest version (git updated 18th of July 2021), the urls of forums, topics and post are the original from PhpBB, like if the extension is not active, no matter how i update the htaccess, disable/enable the extension, change options...
If i disable, delete, and came back to the previous version of git (downloaded 13th of July 2021), extension urls display nice again, forums, topics, posts...
So there's a bug with the last update that corrects the XSS, i'm talking about this update :
#53
The version downloaded before that (13th of july) doesn't make that bug.
I get bad links in mChat extension archive page, when I enable USU extension.
I get this link (https://domain.com/app.php/mchat/app.php/mchat/archive?start=X) instead of this (https://domain.com/app.php/mchat/archive?start=X)
Developer of mChat said, this can cause problems with other extensions as well
My discourse with the developer can be read here
https://www.phpbb.com/customise/db/extension/mchat_extension/support/topic/216921
There is good tutorial on your extension. It starts at 1:47:33 youtube link If you like it, you can add link in README. Thanks for creating it.
version 2.0.2 = current github master
PHPBB 3.3.4 / PHP8 / MySQL8 / PHP_FCGI / NGINX
clicking on PHPBB SEO tab in ACP gives 500:
2302 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Illegal offset type in /phpbb/ext/phpbbseo/usu/acp/usu.php:156
Stack trace:
#0 /phpbb/includes/functions_module.php(676): phpbbseo\usu\acp\usu->main()
#1 /phpbb/adm/index.php(81): p_master->load_active()
#2 {main}
thrown in /phpbb/ext/phpbbseo/usu/acp/usu.php on line 156" while reading response header from upstream
156 line which is:
if (@is_bool($this->core->seo_opt[$optionvalue]))
Hi, the url structure is actually that way for topics or forums :
myforum.com/the-subject-i-want-to-talk-about-txxx.html
myforum.com/the-forum-where-i-am-talking-fxxx.html
Problem, if a CMS o somebody truncated a bit of the url we'll have quickly a 404 error :
myforum.com/the-subject-i-want-to-talk-(...) -> error 404
If the topic id is at the beginning of the url :
myforum.com/txxx-the-subject-i-want-to-(...) -> no error 404
And for many reasons, the url can be truncated, so it would avoid the 404 error in many cases and display the right topic.
Same thing for forum urls.
What do you think? Easy to change?
Hello,
I want to install phpBB SEO Extension for phpBB 3.3 but the extension does not appear in ACP!
In ACP at Extensions PHPBB SEO does not appear - https://prnt.sc/rkn8hn
The files were uploaded to the /ext /phpbb folder - https://prnt.sc/rkn8s9
What in need to do?
Thanks!
Hỏi đáp & Chia sẽ kinh nghiệm - ID 8
Final URL : h-i-ap-chia-s-kinh-nghi-m-f8.html
i wan: hoi-dap-chia-se-kinh-nghiem-f8.html
i have function do: Hỏi đáp & Chia sẽ kinh nghiệm -> hoi-dap-chia-se-kinh-nghiem
help me, please!
Is your feature request related to a problem? Please describe :
If I have configured my site to use virtual folders for forums and I visit one, let's say /trade/
, the redirection works fine. Great. how about adding some parameters for sorting etc.? So if I go to /trade/?st=1
, it correctly takes me to the filtered page, that's good. However, when I try and use custom parameters, let's say /trade/?sold=1
, it always deleted this parameter and redirects me to /trade/ no matter what I do. I've looked hard at the htaccess, but there is nothing in there that makes this redirect happen, which suggests that it's in the extensions actual controller to ignore parameters unless they are 'st
', 'sk
', or 'd
' (the standard phpBB ones).
Describe the solution you'd like :
I would like a FIND/REPLACE way of disabling this restriction, so that when I visit my URL with its custom parameter: /trade/?sold=1
, I won't be redirected back to /trade/
every time. I want it to actually go through to /trade/?sold=1
. The extension is always rewriting the parameter though. Can I get rid of this?
Describe alternatives you've considered :
I've looked through the core files and can see that this is where the issue lies - it seems to be hard coded into the ext to only allow the default parameters to go through and not custom ones.
Any ideas guys?
Hello,
I was testing this mod on my test board and noticed a conflict with the phpbb extension Pages.
https://www.phpbb.com/customise/db/extension/pages/
Every time I try to go to a page that has a custom route with the mod, it just redirects to the index. I don't know if this is because the mod uses it's on "friendly url" routing code and it's conflicting with the SEO mod.
I am trying your extension with certain satisfaction I might add
I may have found something to improve, If It's not my fault
I've noticed that my forum after installing usu, is very slow on firefox, but on chrome is like a Ferrari
Would I have done something wrong? Or there is something I can do about It?
Thanks. And btw good work.
USU seems not compatible with PHP 8
In index I've got lot of :
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/core/traits/url.php on line 324: Undefined array key 1
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/core/traits/rewriter.php on line 161: Undefined array key "author"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/core/traits/rewriter.php on line 330: Undefined array key "start"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/core/traits/rewriter.php on line 241: Undefined array key "sr"
And going to topic make error :
General Error
INSECURE_REDIRECT
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/ext/phpbbseo/usu/core/traits/seo.php
LINE: 127
CALL: trigger_error()
FILE: [ROOT]/ext/phpbbseo/usu/core/core.php
LINE: 730
CALL: phpbbseo\usu\core\core->seo_redirect()
FILE: [ROOT]/ext/phpbbseo/usu/event/listener.php
LINE: 354
CALL: phpbbseo\usu\core\core->zero_dupe()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 214
CALL: phpbbseo\usu\event\listener->core_user_setup()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 44
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 62
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/phpbb/user.php
LINE: 222
CALL: phpbb\event\dispatcher->trigger_event()
FILE: [ROOT]/viewtopic.php
LINE: 356
CALL: phpbb\user->setup()
Hello everyone.
I am very new to this software. PLEASE. Any help will be greatly appreciated.
I have installed phpbb 3.3.8 and I am trying to use the July 2021 USU SEO Plugin
Everything installs correctly but i am not sure if i am using the plugin correctly.
When i activate the plugin and copy my htaccess file to the root, my website works up to the home page.
Once I click on a forum or a member name it says "this page cannot be found"
from here on i am stuck and I would appreciate some help. I have been working with this plugin for the last 3 days but cant seem how to use it correctly.
Thank you very much for your time. :)
Hi, i am using phpbbseo for (phpbb3.3.5+nginx+php7.4) ubuntu os,
installed usu plugin working fine, but when user try to login from index homepage then its fine, but when user login from /forum-name (or) /forum-name/topic-name.html then after login its redirecting to an error page saying
Information
The requested page could not be found.
Example:
user when click this below url to login
it will redirect him to page after login is below
but after login it give me error message
Information
The requested page could not be found.
Hello
Please help me , i am working for SEO Friendly URL in phpbb with your "usu extensions folder" but its not working
Please support if possible
Thanks
I have updated php to version 8 and the phpbb seo tab in ACP does not work for me
error: "Fatal error: Uncaught TypeError: Illegal offset type in ...\ext\phpbbseo\usu\acp\usu.php:156 Stack trace: #0 ...\includes\functions_module.php(676): phpbbseo\usu\acp\usu->main('\phpbbseo\usu\a...', 'settings') #1 ...\adm\index.php(81): p_master->load_active() #2 {main} thrown in ...\ext\phpbbseo\usu\acp\usu.php on line 156"
Thank you
Hi, using php 7.4 it works fine but with php 8.0 i got those error with Ultimate phpBB SEO Friendly URL :
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1679: Undefined array key "modrlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1679: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1680: Undefined array key "modrforumlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1680: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1681: Undefined array key "modrlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1681: Trying to access array offset on value of type null
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1682: Undefined array key "modrforumlinks_fr"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/acp/usu.php on line 1682: Trying to access array offset on value of type null
Fatal error: Uncaught TypeError: Illegal offset type in /zeforums.com/ext/phpbbseo/usu/acp/usu.php:152 Stack trace: #0 /zeforums.com/includes/functions_module.php(676): phpbbseo\usu\acp\usu->main('\\phpbbseo\\usu\\a...', 'settings') #1 /zeforums.com/adm/index.php(81): p_master->load_active() #2 {main} thrown in
/zeforums.com/ext/phpbbseo/usu/acp/usu.php on line 152
Any way to fix this?
Thanks,
Pierre
Accessing the member profile is not working correctly on my site.
eg. /forum/member4.html redirects to /forum/memberlist.php?mode=viewprofile&u=4 which redirects again to /forum/member4.html (causing an infinite loop)
How can I fix this ?
My nginx rules:
rewrite ^/forum/member/([^/]+)/?$ /forum/memberlist.php?mode=viewprofile&un=$1 last; rewrite ^/forum/member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /forum/search.php?author=$1&sr=$2&start=$4 last; rewrite ^/forum/member(.*).html /forum/memberlist.php?mode=viewprofile&u=$1 permanent;
Any idea?
we do not need have "URL rewriting type" in future
we have now 3 type:
1- advanced
2- Simple
3- Mixed
First of all, sorry for my bad English and if this should be issued with phpbbasic instead of usu, sorry too, close or delete this.
With the extension phpbbasic, the urls at the forum page appear like viewtopic.php?f=&t=, with empty ids, instead of the seo url or the normal url with ids. Also, the button to redirect to first post unread appears with ids but not in seo form.
phpbb-seo up the latest version is vulnerable to a reflected XSS attack using e.g.:
https://exmaple.org/?a='"--></style></scRipt><scRipt>alert(/OPENBUGBOUNTY/)</scRipt>
The template variable {S_LOGIN_REDIRECT}
will output in that case:
<input type="hidden" name="redirect" value="https://exmaple.org/?a='"--></style></scRipt><scRipt>alert(/OPENBUGBOUNTY/)</scRipt>" />
Describe the bug :
usu not working with php8.1
To Reproduce :
Steps to reproduce the behavior:
Got error 'PHP message: PHP Fatal error: Uncaught TypeError: Illegal offset type in /var/www/html/bb/ext/phpbbseo/usu/acp/usu.php:156\nStack trace:\n#0 /var/www/html/bb/includes/functions_module.php(676): phpbbseo\\usu\\acp\\usu->main()\n#1 /var/www/html/bb/adm/index.php(81): p_master->load_active()\n#2 {main}\n thrown in /var/www/html/bb/ext/phpbbseo/usu/acp/usu.php on line 156', referer: redacted
Expected behavior :
Open usu settings page
Device (please complete the following information) :
Additional context :
This project looks dead but I leave for information people who have the same problem.
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/event/listener.php on line 398: include(./includes/functions_url_matcher.php): failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbseo/usu/event/listener.php on line 398: include(): Failed opening './includes/functions_url_matcher.php' for inclusion (include_path='.:/usr/php72/lib/php')
this reports with an extension
https://github.com/phpbb-extensions/pages
I use PHP 7.2
Thank you
Hello there,
I have a problem on my forum with usernames containing symbols such as ™.
I got "Username does not exist".
Any ideas what may cause this? Thanks!
Enforcement of "chmod 0777" of the cache directory is wrong by design and should be eliminated from the code. PHP can run with non-root privileges and user running it can be directory owner, it's absolutely not necessary to allow writing by everyone in cache directory. It creates security issues only.
htaccess codes is here
improving ACP "Server Config"
and there is in bad place after footer copy right !
I've put into the ext directory and the project won't show up in phpbb extensions panel to enable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.