Sorry for posting again but I've a new problem. :(
I want to enter a query title for my new article. The problem is that if I enter numbers, TP save them as characters. ???
Example:
Enter 0123456789
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg20.imageshack.us%2Fimg20%2F6253%2Fsenzatitolo1o.gif&hash=3e1ed37659cacdeca7c0c8372f2bc8ec80872c1d)
Now press Save and... tadaaa
(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fimg22.imageshack.us%2Fimg22%2F5377%2Fsenzatitolo2w.gif&hash=7f7a5c06f98b69fa8845ebb1a1caf3b2744b2501)
My forum specs:
SMF 1.1.9 + TP 1.0 beta 3
This does not happen for me on TP 1.0 beta4 using English as my language. Does it happen in the English language on your TP 1.0 beta 3 ?
Quote from: IchBinâ„¢ on July 16, 2009, 09:50:24 PM
This does not happen for me on TP 1.0 beta4 using English as my language. Does it happen in the English language on your TP 1.0 beta 3 ?
I tried and it happens also with English and English utf8. :(
It does not happen to me either using TP 1.0 Beta 4. He may need to upgrade to fix this.
Thank you for the answer Renegd88. :) I'm sure doesn't matter if it's TP 1.0 beta 3 or 4 because I've another forum running SMF 1.1.10 + TP 1.0 beta 3 with no similar problems...
If you still have the problem on beta 4, then it is most likely a mod or something else on your forum causing this problem as I do not have the same problem.
Running an old setup for test with beta3 and it works just fine in that setup to, so it must be as ichBin said, something else is messing up the numbers
These are my installed mods:
1. Advanced Contact Form 1.1
2. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.1
3. SMF Canonical Tag 1.2
4. nCode Image Resizer 1.2
5. Pretty URLs 0.9.3
6. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0
7. TinyPortal 1.075
8. SMF Sitemap 1.2.2
9. Ad Managment 2.3
Thank you guys for the replies but I really don't know what to do, any suggestion on what looking for?
I bet it is because of your pretty URL mod.
Uninstall that and see if it still behave the same way.
Thank you G6! Unfortunately Pretty urls isn't more listed in my package list, even if it's installed and working, so I don't know how to uninstall it. :'(
I found the solution for the query title problem: it was the tp_cleantitle function in my /Sources/TPSubs.php file.
Before (query title not working):
function tp_cleantitle($text)
{
$tmp = strtr($text, 'Ã... Ã...½Ã...¡Ã...¾Ã...¸Ãâ,¬ÃƒÂÂÃÆ'ÄÅÇÈÉÊËÃÅ'ÃÂÃŽÃÂÑÒÓÃâ€Ãƒâ€¢Ãƒâ€"ØÃâ,,¢ÃƒÅ¡Ãƒâ€ºÃƒÅ"ÃÂàáâãäåçèéêëìÃÂîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$tmp = strtr($tmp, array('Þ' => 'TH', 'þ' => 'th', 'ÃÂ' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Ã...’' => 'OE', 'Ã...“' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'Ã,µ' => 'u'));
$cleaned = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $tmp);
return $cleaned;
}
Now:
function tp_cleantitle($text)
{
$tmp = strtr($text, 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy');
$tmp = strtr($tmp, array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));
$cleaned = preg_replace(array('/\s/', '/[^\w_\.\-]/'), array('_', ''), $tmp);
return $cleaned;
}
:o