Jump to content


Photo

Page BBCode with gateway file


With FURLs enabled, the pagination links when using the page bbcode are not working.

Instead we are redirected to the page index.

Status: Fixed
Version: 2.3.1
Fixed In: 2.3.2


16 Comments

Photo
Marcher Technologies
Apr 05 2012 06:45 PM
Not only can i confirm, but i can also note that using ?&pg=# instead of ?pg=# in the url seems to fix it for me.
http://localhost/invisionboard/articles.html/_/articles/page-bbcode-r160?pg=3

It's working fine for me locally. What kind of URLs are you seeing?
Photo
Marcher Technologies
Apr 06 2012 01:40 AM
Photo
Marcher Technologies
Apr 06 2012 01:45 AM
odd... it mangled the above somehow 0-o.
http://www.marchertech.com/_/a-new-cat/ips-brazilian-team-icons-r452?&pg=3
Code tags.... this works.
Photo
Marcher Technologies
Apr 06 2012 02:13 AM
Blargh.. Andy, did you happen to upload the new index.php? that fixed mine.
Photo
Marcher Technologies
Apr 06 2012 02:15 AM
or not... sorry... this is really really wierd brandon.
http://www.marchertech.com/_/a-new-cat/ips-brazilian-team-icons-r452?pg=3
works.
http://www.marchertech.com/_/a-new-cat/ips-brazilian-team-icons-r452?pg=2
Does not... the literal page number has an effect it seems.
Photo
Marcher Technologies
Apr 06 2012 02:17 AM
.... 0-o
do this for me... just go to those links.... try to use the pagination... I'm not even certain what its doing there... its not the URI itself... its the pagination links.... which ARE valid by direct link. 0-o
Photo
Marcher Technologies
Apr 06 2012 02:20 AM
hold on here...
http://marchertech.com/_/a-new-cat/ips-brazilian-team-icons-r452?pg=2
where is my www?
Photo
Marcher Technologies
Apr 06 2012 02:26 AM
$_reconstructed = ( ( $_SERVER['HTTPS'] and $_SERVER['HTTPS'] != 'off' ) ? "https://" : "http://" ) . str_replace( 'www.', '', $_SERVER['HTTP_HOST'] ) . ( substr( $_requestUri, 0, 1 ) == '/' ? $_requestUri : '/' . $_requestUri );
ccs.php... the bbcode... is invalidly stripping off the www. causing the redirection near as i can tell.
What he said :)
Now, I type just what runs through my mind, too, but, even I have to say this.. lol

http://screencast.com/t/Phu1qe8sf
Photo
Marcher Technologies
Apr 06 2012 11:17 AM
:) Eureka lol.... >.< that should have been way more obvious.
Updated the bbcode not to strip the www., which should presumably solve the issue it sounds like?

(Something like that is obviously not noticed when your hostname is "localhost")
Photo
Marcher Technologies
Apr 06 2012 06:22 PM
Yes, that resolves it :)
Yes... that is one of those ones it would have to be live-ish and using [page] to catch. :lol:
So what is the fix guys? Simple.... please keep it simple...
Photo
Marcher Technologies
Apr 26 2012 07:07 AM

So what is the fix guys? Simple.... please keep it simple...

/sources/classes/bbcode/custom/ccs.php
find:
$_reconstructed = ( ( $_SERVER['HTTPS'] and $_SERVER['HTTPS'] != 'off' ) ? "https://" : "http://" ) . str_replace( 'www.', '', $_SERVER['HTTP_HOST'] ) . ( substr( $_requestUri, 0, 1 ) == '/' ? $_requestUri : '/' . $_requestUri );
make it:
$_reconstructed = ( ( $_SERVER['HTTPS'] and $_SERVER['HTTPS'] != 'off' ) ? "https://" : "http://" ) . $_SERVER['HTTP_HOST'] . ( substr( $_requestUri, 0, 1 ) == '/' ? $_requestUri : '/' . $_requestUri );
instead.
Hoping it's ok with posting this here.