1

Topic: How To Change SEF URL for Post

i use file based (fancy) SEF URL. How can I change specific post SEF url from:

http://www.domain.com/post8.html#p8

to

http://www.domain.com/topic7-topic-title.html#p8

both 7 and 8 are just example of topic and post number. Basically I would like to have "post SEF URL" in a structure similar to "topic SEF url" (with additional #p)

any help would really be appreciated smile

2

Re: How To Change SEF URL for Post

anyone? please neutral

Re: How To Change SEF URL for Post

I hope this article will help you

4 (edited by ganes 2008-11-18 11:27)

Re: How To Change SEF URL for Post

that article is about "how to enable url_rewrite". It is not what I need since I have already had SEF work for me (please take a look at my forum: http://forums.pipholic.com)

I just need to tweak SEF url for post so that it forms similar to SEF url for Topic

to make you clear, take this topic in which we are talking for example:

"SEF URL for post" for this post (reply) is:
http://punbb.informer.com/forums/post/119548/#p119548

while "SEF URL for this Topic" is:
http://punbb.informer.com/forums/topic/ … -for-post/

both forms are different and I want to change the 'SEF URL for Post" in to:
http://punbb.informer.com/forums/topic/ … t/#p119548

Re: How To Change SEF URL for Post

I dont have a working local install to test this out but open up forums_urls.php in the file based (fancy) folder and change the post to:

    'post'                            =>    'post$1-$2.html#p$1',
Sorry. Unactive due to personal life.

6

Re: How To Change SEF URL for Post

it doesn't work utchin. The result become:

http://forums.pipholic.com/post10-$2.html#p10

even if it works, the structure will still be different with "topic' SEF" structure because "topic SEF" structure started with 'topic' instead of 'post'

Re: How To Change SEF URL for Post

SlavoK is working on solution for you, ganes.

Carpe diem

8

Re: How To Change SEF URL for Post

thanks guys cool

Re: How To Change SEF URL for Post

For changing post-links you need to add parameters to function forum_link, when links created (It happened in 12 forum files). I think the easiest way to do this changes - make an extension. Change code of core is not a good way for this.

10

Re: How To Change SEF URL for Post

the current SEF settings will break all our previous references to the forum. we have used a custom mod in 1.2 for creating SEF URLs. but the pattern is not same with current one.

that were like:
f1.html ->viewforum.php?id=1
t1.html ->topictopic.php?id=1

so please provide some options (may be as wordpress does) so that we can customize the styles of SEFs.


off topic:
from this topic, i clicked login. after login i was redirected to http://punbb.informer.com/forums/feed/a … 4/?login=1 though i should redirected here. why it is moving me to feed page?

dev. can check please? i have seen same value in the hidden text of login form.

11

Re: How To Change SEF URL for Post

Slavok wrote:

For changing post-links you need to add parameters to function forum_link, when links created (It happened in 12 forum files). I think the easiest way to do this changes - make an extension. Change code of core is not a good way for this.

yes, i do think so. changing any part of core is not my choice. so, we are wishing somebody to create an extension.

I personally think that this is kinda important for SEO reason.  At least I dont want people refer (link) to any of post using different links. smile