Results 1 to 10 of 10

?pp=x not working

This is a discussion on ?pp=x not working within the Bug Reporting forums, part of the vBSEO SEO Plugin category; not sure if its expected to work, but if you use the pp-(post per page) parameter, it only works for ...

  1. #1
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times

    ?pp=x not working

    not sure if its expected to work, but if you use the pp-(post per page) parameter, it only works for the first site and is not passed on.

    http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/?pp=1

    then if you go to a specific page, vbseo calculates the page numbers without concerning pp and if the pagenr exceeds #pages, you are redirected to the last page, dropping pp.

    http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/index17.html?pp=1
    16 pages ... 17 too big >> goto page 16 dropping pp
    (with pp=1 there would be 234 pages and 17 in range ...)

    http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/index15.html?pp=1
    15<16 >> keep pp >> landing on page 15 (with pp=1 >> 15/234), cant navigate on.

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You should set the psot per page options in your profile if you are logged in.
    Otherwise, the urls for pages run default.

    Any other way, and there would be as many url w/ content variations as they are posts, factorial. Horrible for SEO.

  3. #3
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    So if it runs default/profil settings, the first pageview shouldn't work either.
    But it does ... content at
    http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/index15.html?pp=1
    !=
    http://www.vbseo.com/f2/vbseo-functions-extensibility-1662/index15.html

    That's why I thought it's intended to work completely.

  4. #4
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    We have some threads with really large posts (lists) like this
    http://www.klamm.de/forum/f84/downli...-z-311037.html
    ... so it would be nice, if you could overwrite user-pp-settings for specific thread.
    In this case forcing pp=2 or so would do better.

    Could you tell me where vbSEO fetches the user-defined perpage-setting?
    The I can do something like this:
    PHP Code:
    if($thread['thread_id']==12345$perpage 2
    I already put this as vb-Plugin at hook "showthread_getinfo" - and with vbseo turned off it works.
    Seems, that vbSEO calculates the pagination on its own somewhere.

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    I just tried it with "showthread_getinfo" plugin and it worked fine for me (note that it should be $thread['threadid'] instead of $thread['thread_id'])

  6. #6
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times

    It works for page<=#pages_with_pp_from_user_default.
    if you navigate to a page which is not normally there (with default pp settings) you get to the default-max-page.

    [Verkaufe] [V] 0 Mrd für 69 € / Mrd via ÜB - klamm-Forum
    --> with default pp=15 there are 3 pages, with pp=2 (plugin) there are 16 pages.

    Pagination looks correct. But if you try to reach a page >3 you will be redirected to page 3.
    So vbSEO calculates the maxpage somewhere... plugin has to go there too. But where?

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    I see, please modify functions_vbseo_createurl.php file:
    find:
    $bbu = vbseo_vb_userinfo();
    add below:
    PHP Code:
    if($GLOBALS['perpage']) $bbu['maxposts'] = $GLOBALS['perpage']; 

  8. #8
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    jep thx
    works

  9. #9
    Member
    Real Name
    Lukas Klamm
    Join Date
    Feb 2011
    Posts
    40
    Liked
    1 times
    oh, this causes a bug
    Goto last post - wrong page

    Quote Originally Posted by Oleg Ignatiuk View Post
    $bbu = vbseo_vb_userinfo();
    add below:
    PHP Code:
    if($GLOBALS['perpage']) $bbu['maxposts'] = $GLOBALS['perpage']; 
    you have to limit the use of the global $perpage to showthread.php. i think vb sets it to certain values outside showthread.php for calculating pagination on forumdisplay.php and so on. so, you have to replace the mod with

    PHP Code:
    if($GLOBALS['perpage'] && THIS_SCRIPT=='showthread'$bbu['maxposts'] = $GLOBALS['perpage']; 

  10. #10
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Corret, thank you for the follow-up!

Similar Threads

  1. Not Working..
    By Virtualsportsnet in forum URL Rewrite Settings
    Replies: 1
    Last Post: 02-09-2010, 11:21 PM
  2. Bad working?
    By MaRµ in forum General Discussion
    Replies: 11
    Last Post: 05-27-2009, 09:35 AM
  3. Not working on IIS
    By Nikke86 in forum Troubleshooting
    Replies: 1
    Last Post: 10-24-2006, 05:56 PM
  4. This is how you know something is working
    By Mike in forum Analysis: Traffic & SERPS
    Replies: 7
    Last Post: 06-22-2006, 10:29 AM
  5. this is not working for me at all
    By pspcrazy in forum Troubleshooting
    Replies: 1
    Last Post: 12-12-2005, 02:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •