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

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?
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.
Blargh.. Andy, did you happen to upload the new index.php? that fixed mine.
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.
.... 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
hold on here...
http://marchertech.com/_/a-new-cat/ips-brazilian-team-icons-r452?pg=2
where is my www?
$_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
:) 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")
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...

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.