![]() |
Quote:
We are using the normal form based uploader. Before I bother you with looking, let me do some testing to see exactly what is happening. I'll repost when I have that information. |
Quote:
|
A little utf-8 bug for keywords..
IF the site is in UTF-8 AND you are using multi-language.. (example german and english) then when you add keywords to an entry containing special characters like ? ? ? ? there is a problem.. they wont display or get truncated at the special character.. i found the reason: the strtolower function cannot convert special characters.. (it says though it will leave them as is.. thats true for some.. but not for those i need.. keyword: "key????test" will come out.. as "key" only.. i did a fix for me.. (it will only work if you dont have multi-encodings on your site AND if your site is UTF-8 for ALL languages) Fix: in the function ldm_explode_keywords in the file: local_links_include.php find: PHP Code:
PHP Code:
Felix PS: still anotherone when testing.. the highlighting doesnt work on keywords with special chars... but that is really minor...(will look into it if time permitting) PPS: the mb extensions must be installed in php (usually are by default) |
Quote:
|
it's a problem with my crappy host >_>
derflix I tried that but still didn't work |
I need to add a separate link in one of the category listing pages (which displays all the entries in that category), but if I try to add the link to the 'links_linkbit_short_direct' template, the link is added to every row of entry in that category. I don't want the separate link to appear in every row, I need it to appear once somewhere in that category's entry-list page.
I can't add the link to the 'links_main' template because this causes it to appear in every category (I only need the link to appear in one category). How can I add an additional link or some other text to a category's listing without it appearing in every row of entry in that category? |
Quote:
Alternatively, there are a series of placeholders in the links_main template, which come from elements of the $ldm_includeinmain array, e.g. $ldm_includeinmain[precat]. You could write a very small plugin which is tied to the ldm_maindisplay_end hook, e.g.: Code:
if ($viewcatid==25) { |
Quote:
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=978 Also in the JWPlayer Addons plugin attached to the ldm_linkbit_create hook, FIND: Quote:
Quote:
|
Hi andrew...
I did some tests with german umlaut.. (???) or french accents (? ? ? ? ?) my fix above seems to work... BUT with chinese... AAAAAAAAAAAAAAAGH.... you are right.. that is a pain.... but i think i narrowed it down.. BUT i would need some help.. OK.. the problem is.. in UTF-8 with multibyte characters.. there is a preg_replace problem.. (dont ask me why) The problem is in the line..: PHP Code:
I ran some examples with dummy strings.. (notice the /u modifier was added) example : PHP Code:
==> works!!! but: PHP Code:
==> no highlight :( ------------ The problem whith characters like chinese seems to be the boundary \b so i tried: PHP Code:
==> works.. chinese text is highlighted..!!!!! BUT.. my question.. is there a drawback????? not using the boundary \b ??? i used the preg_quote just to avoid $1 errors.. but i guess its not really needed.. to implement this in LDM it would be: in local_links_include.php in function ldm_make_highlight_regex find: PHP Code:
PHP Code:
i have ran some tests with keywords in chinese.. they highlight... tried message-text: works also... PLEASE TEST...!!!! Felix |
Quote:
Thanks for the info. The sizing bug was originally intended to be a feature - the larger player would include the album cover within the player, rather than displaying it separately. But this did not work consistently. |
All times are GMT. The time now is 08:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|