How to fix next page error?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: How to fix next page error?

Post by Timbalu »

Christine wrote:I'll just have to dive in and change all the post names.
I still don't really get why this is necessary. Do you have "handmade" links to other entries in your entries?
If not, the entries are build together live on request, by the 'archives' path option and the entries table 'id' - 'title' + '.html' = 'archives/%id%-%title%.html'.
If you want to have a archives permalink called "blog/", change it in the Permalinks from 'archives/%id%-%title%.html' to 'blog/%id%-%title%.html'. Which is a little strange, since Serendipity itself is the blog, not only your entries and may confuse your visitors.
Christine wrote:Is there a particular place the post names are stored, so maybe I can do a batch replace?
They normally are stored in "PREFIX"_entries. So if you dump this database table you can just make a simple replace in your editor for all the links first string path part with the one matching your upper decision for the permalink archives part and then upload the dump in again. If you had them cached by entryproperties before they are stored as a full markup copy in "PREFIX"_entryproperties too.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Christine
Regular
Posts: 54
Joined: Wed Mar 25, 2009 11:50 pm

Re: How to fix next page error?

Post by Christine »

Timbalu wrote:They normally are stored in "PREFIX"_entries...
Thanks once again.
Timbalu wrote:I still don't really get why this is necessary. Do you have "handmade" links to other entries in your entries?
Sorry this is a little hard to explain, and I don't remember the exact sequence of how this happened. But essentially, I imported all my entries from another blog platform when I had a prefix I didn't like, and at some point enabled custom permalinks, and also deleted the prefix from the configuration. The permalink plugin kept all the URLs as the one with the prefix and as I was editing each entry, I changed them to delete the prefix in there too. So each entry now has a prefix-less URL, which still works, but as I mentioned, comments and trackbacks don't show on that URL. Hence I have to remove the customised permalinks from all of them.

I have one last question on the 'next page' topic. Is it possible to change P2.html to something else e.g. a small p?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: How to fix next page error?

Post by Timbalu »

Christine wrote:I have one last question on the 'next page' topic. Is it possible to change P2.html to something else e.g. a small p?
Well, if you know where to look it up... :wink: It is hardcoded in core. And you have several places to change for this. Don't do this!
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Christine
Regular
Posts: 54
Joined: Wed Mar 25, 2009 11:50 pm

Re: How to fix next page error?

Post by Christine »

OK :lol: .
Any chance you could make it a small 'p' in future? The capital P looks a bit awkward with the rest of the URL in lowercase.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: How to fix next page error?

Post by Timbalu »

Christine wrote:The permalink plugin kept all the URLs as the one with the prefix and as I was editing each entry, I changed them to delete the prefix in there too.
The custom permalinks are stored in the "PREFIX"_entryproperties table. If you remove the custom permalinks plugin they stay in that table, I think.

You may dump it and remove all entries which match

Code: Select all

ID     permalink 	/blog/test-entry.html
by batch or recursive or one by one... with "permalink" being the search keyword, or even leave it as is. If the custom permalinks plugin is removed, they will not apply to entries any more, I assume.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Christine
Regular
Posts: 54
Joined: Wed Mar 25, 2009 11:50 pm

Re: How to fix next page error?

Post by Christine »

Deleted all the custom permalinks, all fine. Removed and reinstalled Custom Permalinks so I could just rename a few posts, but unfortunately the way it works causes some problems. The posts I want to rename are mostly just to remove punctuation, so I will try out the suggestions here: http://board.s9y.org/viewtopic.php?f=2&t=15074.

But I do have a few posts that I'd like some more custom changes and finding it a shame that Custom Permalinks has some issues. I could detail the issues, but I'm not sure if this is the best place, or if I should start a new thread under plugins.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: How to fix next page error?

Post by Timbalu »

Yeah, better start a new thread for the custom permalink issue(s).
Christine wrote:...so I will try out the suggestions here: ...
As an example use this

Code: Select all

$GLOBALS['i18n_filename_from'] = array(' ', '!', '_', '+', ',', '.', ':');
$GLOBALS['i18n_filename_to']   = array('-', '',  '',  '',  '',  '',  '-');
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply