2 sam2kb May 26, 2008 23:19

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
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.
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
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 ?
If you already have 40+ on 2.4.5 just edit the plugin.
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
[url=http://www.beatease.com/web-design.php/b2evolution-hacks/allowing-longer-urls-for-permalinks]Allowing Longer URLs for Permalinks[/url]
sam2kb wrote:
[url=http://www.beatease.com/web-design.php/b2evolution-hacks/allowing-longer-urls-for-permalinks]Allowing Longer URLs for Permalinks[/url]
ty B)
sam2kb wrote:
[url=http://www.beatease.com/web-design.php/b2evolution-hacks/allowing-longer-urls-for-permalinks]Allowing Longer URLs for Permalinks[/url]
i have done the changes as prompted, but the plugin still allows me between 10-40 ::/
It's true, the plugin compares b2evo versions (and it's still < 2.5)
Open it and edit lines 79,80
$s = '40';
$maxlength = 2;
to
$s = '200';
$maxlength = 3;
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
The current version doesn't work in b2evo 3
it does work when i manually type in the title.
it just doesnt with that plugin i ve mentioned.
So any clues ?
Try changing plugin priority. I don't know why it doesn't work.
didnt help : | thanks for the guess
instead of using translit urls, i ve thought of a temprorary solution; i could use str_replace to replace turkish characters with latin ones before the url gets posted, so i wrote this:
//added bits.
$trkar = array("ş", "ü", "ı", "ö", "Ş", "Ğ", "ğ", "ç", "İ", "Ç", "Ö", "Ü");
$enkar = array("s", "u", "i", "o", "S", "G", "g", "c", "I", "C", "O","3");
$title = str_replace( $trkar, $enkar, $title );
//added bits end.
$title = str_replace( '[cat wrote]', $foo['cat_name'] . ' wrote: ' . $content, $title );
any idea why the above did not work either ?
ok i got around it.. i had to place mine after that part not before.. its that bug in php str_replace function i believe.
Btw, i ve looked at your transliturl plugin code, i couldnt see any reason why it wouldnt work with 3.x.. all those params Item title etc are the same in 3.x afaik.
Well, your version is actually working ;) But I have no time to update the download link.
The thing is in v3 the error message displays if urltitle is changed during validation (it's too annoying, I think). This error prevents the post from being updated.
Looks like it doesn't work for title with space.
b2evo 4.0.3
What errors do you get? What happens when you save a post?
Something like this :)
This error appears every time I try to save post
I guess it's an older version of the plugin. I'll upload the recent version, and let you know.
I am getting the below errors after upgrade to 4.1.3. My version of the plugin says 0.4
Notice: Undefined property: Messages::$messages in /home/tilqi/public_html/plugins/translit_urls_plugin/_translit_urls.plugin.php on line 122
Notice: Undefined property: Messages::$messages in /home/tilqi/public_html/plugins/translit_urls_plugin/_translit_urls.plugin.php on line 126
Warning: Cannot modify header information - headers already sent by (output started at /home/tilqi/public_html/plugins/translit_urls_plugin/_translit_urls.plugin.php:122) in /home/tilqi/public_html/inc/_core/_template.funcs.php on line 59
Warning: Cannot modify header information - headers already sent by (output started at /home/tilqi/public_html/plugins/translit_urls_plugin/_translit_urls.plugin.php:122) in /home/tilqi/public_html/inc/_core/_template.funcs.php on line 248
Warning: Cannot modify header information - headers already sent by (output started at /home/tilqi/public_html/plugins/translit_urls_plugin/_translit_urls.plugin.php:122) in /home/tilqi/public_html/inc/_core/_template.funcs.php on line 249
Warning: Cannot modify header information - headers already sent by (output started at /home/tilqi/public_html/plugins/translit_urls_plugin/_translit_urls.plugin.php:122) in /home/tilqi/public_html/inc/_core/_template.funcs.php on line 250
Warning: Cannot modify header information - headers already sent by (output started at /home/tilqi/public_html/plugins/translit_urls_plugin/_translit_urls.plugin.php:122) in /home/tilqi/public_html/inc/_core/_template.funcs.php on line 251
Plugin updated.
New version 1.0.0 is compatible with b2evolution v4.1 and v5
By the way, I'm planning to make it possible in b2evo v5 to define custom character maps in each locale.
sam2kb wrote:
By the way, I'm planning to make it possible in b2evo v5 to define custom character maps in each locale.
great ! thanks
sam2kb wrote:
[url=http://www.beatease.com/web-design.php/b2evolution-hacks/allowing-longer-urls-for-permalinks]Allowing Longer URLs for Permalinks[/url]
BTW, the link is dead for core hack for making the url's longer in 2.4.5 +
Any pointers ?
And i still get there annoying iconv error !! Everything is fine with ALL the characters in Turkish, except for 1 ! "ı" that is. (dotless i)
We discussed it here: http://forums.b2evolution.net/viewtopic.php?p=107814&sid=9c4ba0090b097a724ba7ee28aa75f7db
But couldnt find a solution
i have tried many variations of (_charset.funcs.php line 95)
$newstr = iconv( 'UTF-8', 'ISO-8859-9//TRANSLIT', $str );
But nothing changed.When i comment out the line, i dont get the url just get title-5 , title-6 etc.
Do i really need that line ?! Even with this plugin ?
You don't need that line with this plugin.
b2evo 2 is dead, anyone using anything other than v4.1 should upgrade
Okay.. Any idea about that "ı" character problem with iconv ?
It's SO annoying, that i am upgrading the whole server hoping maybe it would get rid of the error.
I mean for god's sake, there are 12 Turkish characters (ÇçĞğİÖöŞşÜüı)
why is there a problem with this certain character (ı) dotless i.
The darn files were not updated after I uploaded a newer version.
Please re-download the plugin and reinstall it
sam2kb wrote:
The darn files were not updated after I uploaded a newer version.
Please re-download the plugin and reinstall it
Wrong thread, duplicate post ? : http://forums.b2evolution.net/viewtopic.php?p=112726#112726
or should i re-download this plugin as well ?
It's not a wrong thread, it's bad permissions on my uploads directory :(
The version 1.0.0 needs to be re-downloaded
sam2kb wrote:
It's not a wrong thread, it's bad permissions on my uploads directory :(
The version 1.0.0 needs to be re-downloaded
Ok redownloaded now but FYI; file modification date still shows 18.02.2012.Are you sure i have to download this ?
Because i cant see any changes in the version i uploaded on 18.02 and the one i just downloaded.
Yeah, the plugin was last touched on 18.02.2012, however after download you still got v0.3, not the 1.0.0
In other words, the file was not updated on my server, now it is.
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