PDA


View Full Version : tags not work


deathemperor
09-22-2007, 04:10 PM
i enable tags and test it with comma or with space in option
it is not working , i just tested it with category members disabled
i make the dynamic for articles only

vbulletin 3.8.6
php version : 5.2.4
mysql:4.1.22

deathemperor
09-22-2007, 04:29 PM
now i found the bug

when add word in english it will be added to tags
but in arabic font it will not show

can u fix it
thanks

deathemperor
09-24-2007, 12:46 PM
hello
is there any fix for this
tags system work good in vbadvanced links but in dynamic it will show english but for my language words it does not show any thing !

Brian
09-24-2007, 01:09 PM
Can you post an example of the text you're trying to enter for your tags?

deathemperor
09-24-2007, 05:22 PM
تجربه

RaZor Edge
09-24-2007, 09:57 PM
Hi,

I also have problems with special caracteres in french.

Please take a look into this test entry:
http://www.vbadvanced.com/dynamics/main-category-2/test-for-special-caracteres-like--------20398/

Url and tags don't like special caracteres.

Maybe there is a way to change special caractere in normal caractere (ex: é = e)

deathemperor
09-25-2007, 08:37 AM
Hi,

I also have problems with special caracteres in french.

Please take a look into this test entry:
http://www.vbadvanced.com/dynamics/main-category-2/test-for-special-caracteres-like--------20398/

Url and tags don't like special caracteres.

Maybe there is a way to change special caractere in normal caractere (ex: é = e)

i get this error in seo option enabled
i think the only way is to make the rewrite to be depend in (id) and not title
so when :
browsecategory.php?c=2
to be : category2.html
and when u use entry it will be : article5.html for example

and this option we hope fix it and added it for sites use language other than english

the error in tags i still wait fix for it

thanks

Brian
09-25-2007, 11:07 AM
Unfortunately I don't think there's going to be a way to allow for foreign characters such as that at this time since they are not recognized when they are passed through a URL.

deathemperor
09-25-2007, 04:03 PM
Unfortunately I don't think there's going to be a way to allow for foreign characters such as that at this time since they are not recognized when they are passed through a URL.

what about tags error
tags in vba links work great but in vba dyna does not show arabic word for example :تجربه

deathemperor
09-26-2007, 11:44 AM
Brian
could u fix this error in tags
we need to use it for our site
and as i told you , in vba link it works perfect but in vba dyna is not work !

deathemperor
09-30-2007, 08:27 AM
still wait :(

deathemperor
10-09-2007, 04:04 AM
all of these errors are fixed by add specific preg_replace to support my langauge
now :
tags work and also seo links

thanks

deathemperor
10-09-2007, 04:13 AM
spider url works good with ff but it does not work with ie7 !

azmin
10-09-2007, 01:50 PM
all of these errors are fixed by add specific preg_replace to support my langauge
now :
tags work and also seo links

thanks

Thx a lot for it, just submited ticked about this, but guess it's time to delete it.
This solution work well.

RaZor Edge
10-09-2007, 03:05 PM
all of these errors are fixed by add specific preg_replace to support my langauge
now :
tags work and also seo links

thanks

Thanks for the advice.

I'n not really familiar with this php function but i will try to search for something like that for french characters.

azmin
10-10-2007, 03:58 PM
Look.

Open forum/includes/vba_dyna_functions_saveentry.php

Find: // ##### Clean Keywords around row #460.

Look at row contains:$words = explode(iif($vba_options['dyna_keyword_separator'], ',', ' '), preg_replace("/[^a-z 0-9,]/i", '', $words));

and replace a-z to whatever lang you are using.

RaZor Edge
10-10-2007, 07:26 PM
Thank you very much!

RaZor Edge
06-17-2008, 01:22 AM
Hi,

Tags problems with special caracteres have been fix with the latest version of vBdynamics.

But, the problem remain with Spider Friendly URL's.

If somebody post something like: Résultats de l'évènement

It will show like: Rsultats de lvnement

I have fund a way to replace special caracteres with normal ones: Resultats de l'evenement


function fetch_spider_url($text, $id)
{
$text = str_replace('é', 'e', $text);
$text = str_replace('è', 'e', $text);
$text = str_replace('ê', 'e', $text);
$text = str_replace('ë', 'e', $text);
$text = str_replace('à', 'a', $text);
$text = str_replace('à', 'a', $text);
$text = str_replace('ñ', 'n', $text);
$text = str_replace('ù', 'u', $text);
$text = str_replace('ú', 'u', $text);
$text = str_replace('û', 'u', $text);
$text = str_replace('ü', 'u', $text);
$text = str_replace('ç', 'c', $text);
$text = str_replace('ï', 'i', $text);
$text = str_replace('î', 'i', $text);

return str_replace(' ', '-', preg_replace("/[^a-z_0-9 -]/i", '', strtolower(html_entity_decode($text)))) . '-' . $id;
}


It work on my site, but as I am no php expert... Bryan, can you think of a better way to do this?

And also, it seems like categories names are not parse in the same way into URL. Do you have an idea how I can do the same thing?

Thanks!

RaZor Edge
06-20-2008, 08:06 PM
It work on my site, but as I am no php expert... Bryan, can you think of a better way to do this?

And also, it seems like categories names are not parse in the same way into URL. Do you have an idea how I can do the same thing?

Thanks!

Any ideas?

Brian
06-23-2008, 06:20 PM
The only thing I can recommend would be use arrays and run the str_replace() function once instead.

$text = str_replace(
array('é', 'ê', 'ë', 'à', 'à', 'ñ', 'ù', 'ú', 'û', 'ü', 'ç', 'ï', 'î'),
array('e', 'e', 'e', 'a', 'a', 'n', 'u', 'u', 'u', 'u', 'c', 'i', 'i'),
$text
);

RaZor Edge
06-23-2008, 08:17 PM
Great! It work well! Thanks!

If anybody else need the code, here it is:


function fetch_spider_url($text, $id)
{
$text = str_replace(
array('é', 'ê', 'ë', 'à', 'à', 'ñ', 'ù', 'ú', 'û', 'ü', 'ç', 'ï', 'î'),
array('e', 'e', 'e', 'a', 'a', 'n', 'u', 'u', 'u', 'u', 'c', 'i', 'i'),
$text
);

return str_replace(' ', '-', preg_replace("/[^a-z_0-9 -]/i", '', strtolower(html_entity_decode($text)))) . '-' . $id;
}


This can be apply to french or any other language.

I don't known if it would be useful to include this on the script, but if you do, please let me known as I would not need to watch for this for the next updates/upgrades. :)