Important security update, please update to Osclass 3.7.4
At Osclass we have changed our Privacy Policy and Terms of Use in order to adapt them to the new General Data Protection Regulation (GDPR). We want you to know what user data we store, what we need them for, and who we share them with in each specific case. Furthermore, we are making it even easier for you to exercise your right to manage your own data.
Our goal is that you enjoy the best possible experience with our website. As the GDPR comes into force, legislation requires us that you grant us permission—both to us and our partners—to store cookies in your browser. Remember you can find more information about what we do with your data by clicking here.
I accept Osclass SL’s Terms of Use and Cookies Policy and grant them permission to manage my data.
osc_add_route($user[s'username], $user[s'username]/([0-9]+)/([0-9]+)', '$user[s'username]/{my-numeric-param}/{my-own-param}', Check the db field name .. $user['s_username]...im on mobile
Hope you are kidding . And how do you display page 2 , page 5 How do you know how many items per page . Y did laugh at your joke
osc_add_route($user['s_username'], 'user-'.$user['s_username']/([0-9]+)/([0-9]+)', 'user-'.$user['s_username']/{my-numeric-param}/{my-own-param}','yourplugin_file .php',false,'custom','custom','Profile page of'.$user['s_username']);
Use descriptive param name .. like ipp page . Any words will do the job . Use the same for reverse routing on osc_route_url....Y will build you the plugin this week end .
Other users please don't just watch, leave your comments and cooperate to solve this topic! Thanks!
Done 98 % . Some small issues with pagination , but works well . I,ve saved a lot of memory usage by adding 1 single route , not all users in database No changes in core osclass files .No changes in theme files. Yoursite.com /user-cris is available also with paginationYoursite.com /user-cris/10/2