[Plugin] Translit URLs - nice urls from non-ASCII titles
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sun May 04, 2008 2:33    Post subject: [Plugin] Translit URLs - nice urls from non-ASCII titles Reply with quote

Read in Russian / Русская страница плагина

Do you use non-ASCII characters in post titles? If you do you probably know how your links look like Confused Censored!

Download v0.3



It replaces post title's characters using a given pattern. By default it set to transliterate all Russian/Ukrainian letters to Latin, but you can set any pattern.

Example: if the title is "Привет всем" your permalink will be "privet_vsem".
You can also set it to change "Hi" to "hello_everybody" Mr. Green or whatever you want.

Quote:
Version 0.2
fixed: plugin generated wrong url titles for existing posts

Version 0.3
New: now it's possible to crop url titles to selected number of characters

_________________
Russian b2evolution | Download


Last edited by sam2kb on Fri Nov 13, 2009 20:48; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Mon May 26, 2008 16:19    Post subject: Reply with quote

Plugin updated, now it's possible to crop url titles to selected number of characters.
10-40 for b2evo 2.x
10-200 for b2evo 2.5 and up

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Sat Oct 18, 2008 10:20    Post subject: Reply with quote

sam2kb wrote:
Plugin updated, now it's possible to crop url titles to selected number of characters.
10-40 for b2evo 2.x
10-200 for b2evo 2.5 and up

i ve tried making it 60 but failed, still says it should be between 10-40.. i am using b2 2.5 with translit 0.3


and btw, thank you very much for such a plugin.. this was exactly what i was looking for..

i had to regenerate 20 some posts, but that's very fine looking from the optimistic angle, i could be editing hundreds of them if i havent noticed and you havent responded so fast , thanks

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sat Oct 18, 2008 10:26    Post subject: Reply with quote

You're using b2evolution 2.4.5, but long url titles are supported from b2evo 2.5 and up.
2.5.0-beta was renamed to 3.0 a while ago.

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Sat Oct 18, 2008 10:31    Post subject: Reply with quote

sam2kb wrote:
You're using b2evolution 2.4.5, but long url titles are supported from b2evo 2.5 and up.
2.5.0-beta was renamed to 3.0 a while ago.


pff, yer right, it was 2.4.5, i miscalled thanks

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Sun Oct 26, 2008 7:37    Post subject: Reply with quote

sam2kb wrote:

10-40 for b2evo 2.x
10-200 for b2evo 2.5 and up


what if i hacked the core files to support 40+, would that hurt ?

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sun Oct 26, 2008 8:00    Post subject: Reply with quote

If you already have 40+ on 2.4.5 just edit the plugin.
_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Tue Nov 04, 2008 13:40    Post subject: Reply with quote

so do you know if i can and if i can where i can hack the core to support 40+ char. url's in the 2.4.5
_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Tue Nov 04, 2008 13:51    Post subject: Reply with quote

Allowing Longer URLs for Permalinks
_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Tue Nov 04, 2008 14:12    Post subject: Reply with quote

sam2kb wrote:
Allowing Longer URLs for Permalinks
ty Cool
_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Wed Nov 05, 2008 20:28    Post subject: Reply with quote

sam2kb wrote:
Allowing Longer URLs for Permalinks


i have done the changes as prompted, but the plugin still allows me between 10-40 ::/

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Wed Nov 05, 2008 23:13    Post subject: Reply with quote

It's true, the plugin compares b2evo versions (and it's still < 2.5)
Open it and edit lines 79,80
PHP:
$s '40';
$maxlength 2

to
PHP:
$s '200';
$maxlength 3

_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Sat Mar 20, 2010 9:06    Post subject: Reply with quote

plugin does not work with my custom title plugin. it works if i manually type in the title but does not work using with that cat_wrote title plugin of mine.

why do you think it does not ? because it adds the content to the title ? and how do you think i could fix it

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sam2kb
da ruski mafia

Joined: 02 Dec 2007
Posts: 2927
Reputation: 162.4Reputation: 162.4 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 53

PostPosted: Sat Mar 20, 2010 11:12    Post subject: Reply with quote

The current version doesn't work in b2evo 3
_________________
Russian b2evolution | Download
Back to top
View user's profile Send private message Visit poster's website
tilqicom
Guru
Guru

Joined: 14 Nov 2007
Posts: 1624
Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8Reputation: 6.8 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 20

PostPosted: Sat Mar 20, 2010 14:34    Post subject: Reply with quote

it does work when i manually type in the title.

it just doesnt with that plugin i ve mentioned.

So any clues ?

_________________


.: linkback ≠ spam, yes to linkback, no to spam Shy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board