Welcome Guest, Not a member yet? Register   Sign In
Forum topics pagination and posts anchors
#3

hi mwhitney and thank you for your answer,

I used the word permalink, maybe i used the wrong word, but i do want to give each post an identifier to be able to go to this specific post from a user profile page for example, or to be able to share a given post on social networks, etc...

It is a common to give a post on a forum an identifier, for example your post on this topic has the url http://forum.codeigniter.com/thread-1466...ml#pid6575
Even if your post was placed on second pagination page, it still would be accessible via this url (see threads on codeigniter forum that have many pages).
Also, note the "#" at the end of the url. this is what i want to do.

My question is how can i do that even if i am using codeigniter pagination.

I forgot my routes.php file when i posted this thread:
PHP Code:
// Forum controller
$route['forum/(:any)'] = 'forum/index/$1';
$route['forum/(:any)/new'] = 'forum/new_topic'// new topic
$route['forum/(:any)/(:any)'] = 'forum/topic/$2';
$route['forum/(:any)/(:any)/(:num)'] = 'forum/topic/$3'// topic pagination 
Reply


Messages In This Thread
RE: Forum topics pagination and posts anchors - by hedi - 03-12-2015, 10:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB