We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18913
    • 654 Posts
    I couldn’t really replicate the pagination, but tried to see what it might be evaluating. So I ended up with this near the end :
    
    if (strpos($sRequestUri, "?") === false)
    {
      //echo "no ?<br/>";
    $sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "&") );
    }
    else
    {
      //echo strpos($sRequestUri, "?");
    $sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "?") );
    }
    
    	//echo 'Script URL: '.$sScriptUrl.'<br>';

    Dunno if this will help. If it does, send the money to MODx...
    MattC
      • 11650
      • 15 Posts
      Quote from: mconsidine at Aug 01, 2010, 08:37 PM

      I couldn’t really replicate the pagination, but tried to see what it might be evaluating. So I ended up with this near the end :
      
      if (strpos($sRequestUri, "?") === false)
      {
        //echo "no ?<br/>";
      $sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "&") );
      }
      else
      {
        //echo strpos($sRequestUri, "?");
      $sScriptUrl = substr($sRequestUri, 0 , strpos($sRequestUri , "?") );
      }
      
      	//echo 'Script URL: '.$sScriptUrl.'<br>';

      Dunno if this will help. If it does, send the money to MODx...
      MattC

      Wouldn’t taking out the echos though make the function not return anything?

      Its worth a shot in any case. Ill met you know if it works, but if anyone else has an idea, let me know here.
        • 11650
        • 15 Posts
        Well that method didn’t work, so stuck in the same boat as before.

        $50 offer is still on the table. I’m just horrible with modx since this is my first time working with the system so I appreciate anyone that can help fix this. As we speak my friend’s site has broken pagination and I need to get this working ASAP.

        Anyone up to the challenge?
          • 26931
          • 2,314 Posts
          $50 offer is still on the table. I’m just horrible with modx since this is my first time working with the system so I appreciate anyone that can help fix this. As we speak my friend’s site has broken pagination and I need to get this working ASAP.
          Anyone up to the challenge?
          try posting here: http://modxcms.com/forums/index.php/board,224.0.html