Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-12-01 00:04:17
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [wiki] Textbook Upgraded
Ah, I can see what is going on here. I should have had that title=El from the beginning , and since I don’t have it, it is redirecting the the section links to pages, that don’t exist yet.
Do you have admin rights to change the URL of the main section page and delete the empty page that has the empty URL El/ ?
I think, that would fix it.
Update:There is some URL rewrite rules playing there, from the LANG Box, you will notice that, when the page loads.
(One thing that it does, is uppercase the language codes in the URL)
But the same thing is not happening for the Section Links on Main pages.
(Double URL locations)
@patrik, what would happen, if I removed the greek lang link (despite the warning) ?
I think it can be fixed, if we start from scratch with the correct new title=El/ URL.
The problem is, now I have been tinkering around withit, so before doing anything else, it would be good to delete those pages, with the El URL part, that I have been moving back and forth.
regards, marios
Last edited by marios (2006-12-01 00:25:54)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: [wiki] Textbook Upgraded
I don’t think I’m following exactly. I made you a sysop since you are managing the Greek stuff right now anyway,you might as well have all the LGT powers. You should be able to move and delete now.
Shoving is the answer – pusher robot
Offline
#15 2006-12-01 00:34:26
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [wiki] Textbook Upgraded
I can’t see the tab yet. This is because I lost my old username, and I am using another one . I’ll mail it to you, so yo know which one it is.
Sorry for the mess.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#16 2006-12-01 10:32:29
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [wiki] Textbook Upgraded
It seems to work that way, except for the Main Section Header.
I’ll have to look at this later in the afternoon.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#17 2006-12-01 18:21:18
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [wiki] Textbook Upgraded
Well, I haven’t been able to figure out , how to put the auto-link creation in conformance with the cross Lang Box.
Further examining the other Translations it appears, that sometimes the URL will be octal encoded for Languages, that contain non ASCII characters and sometimes not and sometimes partly.
( One last thought, that I had on this. Could it be, that in the Data base the Greek would need long lang code instead ?)
Here is an example for a partly encoded URL ( From the Chinese section )
http://textpattern.net/wiki/index.php?title=Zh-cn/起步#.E8.B5.B7.E6.AD.A5
regards, marios
Last edited by marios (2006-12-01 18:28:06)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: [wiki] Textbook Upgraded
I wouldn’t be surprised if this was some kind of residual effect from when they moved the servers. Remember all that language code scrambling that happened, and that Kusor (and even mamash) couldn’t figure out why, or rather, how to fix?
Marios, did you actually try deleting the page and recreating it…I wasn’t sure from your recent posts there if that’s what you did.
The complete list of language codes available to the database are here. Actually, that list is several MW versions old, it might be sensible to update it, but I’m having trouble remembering where I found that info from exactly.
Offline
Re: [wiki] Textbook Upgraded
Found it. Names.php. Updated it.
I still have no idea why Marios stuff is not working. Linking directly to the page works with the characters no problem. I can find precious little on this in the mediawiki docs (surprise surprise)
Shoving is the answer – pusher robot
Offline
#20 2006-12-02 00:23:49
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [wiki] Textbook Upgraded
Destry wrote:
Marios, did you actually try deleting the page and recreating it…I wasn’t sure from your recent posts there if that’s what you did.
I deleted first the auto-follow-link pages, and then the Main Section Frontpage, then recreated it using the auto-follow-link again, to compare the result of having no lang attribute in the URL with the new one.
The result is the same.
The complete list of language codes available to the database are here. Actually, that list is several MW versions old, it might be sensible to update it, but I’m having trouble remembering where I found that info from exactly.
Thanks, I’ve been looking for that, but couldn’t find it.
This tells us, at least, that short LANG Code is correct here according to the list.
So far, I could diagnose the following behavior:
- Following a cross lang-section-link from the LANG Box will :
- Following a section link from the content Block will:
I headed over at mediawiki, and found the following Page:
http://meta.wikimedia.org/wiki/Multilingual_MediaWiki
I had another page as well, that was about the rewrite rules, but I forgot to bookmark it.
(Admittedly, I understand very little about it and how this works.)
hakjoon wrote:
Found it. Names.php. Updated it.
I still have no idea why Marios stuff is not working. Linking directly to the page works with the characters no problem. I can find precious little on this in the mediawiki docs (surprise surprise)
Had the same experience, looks all like scrambled eggs to me. I’ll give it some more try, but if I can not fix it, then I’ll have to Create double permlink locations as a workaround. There isn’t much else I could possibly do.
(B.I.F..: If you are on MAC OS, TextMate has a MediaWikki Bundle, can’t remember if it ships default or SVN, but I am using it now,it’s easier to edit the Wiki pages like that.)
(BTW.: How do I do nested lists with Textile in the Forum ?)
regards, marios
Last edited by marios (2006-12-02 00:33:15)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: [wiki] Textbook Upgraded
marios wrote:
(B.I.F..: If you are on MAC OS, TextMate has a MediaWikki Bundle, can’t remember if it ships default or SVN, but I am using it now,it’s easier to edit the Wiki pages like that.)
I’ll have to check that out. It seems there’s a bundle for everything. I love textmate.
(BTW.: How do I do nested lists with Textile in the Forum ?)
This I can answer. Just add asterisks *
- 1 asterisk *
- 2 asteriks **
- 3 asterisks ***
- 2 asteriks **
Same with ordered lists just add # signs
- 1 level
- 2 levels
- 3 Levels
- 2 levels
Shoving is the answer – pusher robot
Offline
Re: [wiki] Textbook Upgraded
hakjoon wrote:
There is definitely an appeal to it, … I have had zero issues running my TXP test installs off of SVN. I’m gonna have to think about this one.
I run my Txp off of it too, as well as my live sites from the stable branches. No problems. We have a pretty big svn repo at work too and no problems there either. Don’t know about SDK, I’ll have to look into that.
Here’s another consideration:
The guys at TextDrive have put TextBook under it’s own directory, a virtual directory I guess but not sure about that. Anyway, that’s what the “textbook” part of the domain is now. There is nothing else in this directory (rightfully so) except MediaWiki, but rather than it being installed right in the textbook root, it’s still installed in the subdirectory “wiki” (an artifact from the early days).
Maybe the thing to do now is install a fresh copy of MediaWiki from subversion into the root and leave it under subversion. This may get rid of all the language problems created since the server move, who knows, but it also has the benefit of subversion upgrades as well as simplifying wiki page URLs by getting rid of the useless “wiki” part.
If we have to double install the database initially to preserve the existing wiki, fine, no big deal to start with. Next, load the newly installed database with a dump of the existing tables, make sure it’s working and then do an .htaccess permanent redirect from the old location to the new so links around the world are not broken. At that point we should be able drop the old server files (except .htaccess) and the old database tables. Eventually Google will catch up and we can omit the “wiki” directory entirely in a year’s time.Seems sensible in theory.
Last edited by Destry (2006-12-18 19:07:27)
Offline