![]() |
Quote:
For example, suppose you have a string "happily merrily sadly happilymerrilysadly" and you do a search for merrily This should highlight as "happily merrily sadly happilymerrilysadly" and it does with the word boundary flags in the regex. But without them, it highlights as "happily merrily sadly happilymerrilysadly" ** Edited ** Can you try another way of solving the word boundary problem. Edit the loop in ldm_make_highlight_regex as follows: Code:
foreach ($words AS $w) { |
Hai we have now your plugin for last thow months and working like a charm.
I have a question. Do thumbnails are auto generated or we need to upload a thumbnail ? this is for wallpapers. :confused: |
Quote:
Then, if you fill in the Image field on the Add/Edit Entry form with a image url or image upload, LDM will use that to generate the thummb. Otherwise, if the entry url itself is an image, the thumbnail is autogenerated from the entry url. Otherwise, if you have installed the id3tag_enhancements LDM extra and the url is an mp3, it will try to pull out the album art from the mp3. |
Quote:
if you search for "intern" in google.. in the description and the title, words like international or internal or internship are highlighted!!!! i was going to anyway modify the search from "word" to "*word*" because if i do a search for "luxury" and only have one entry with the word "luxuryhotels" in description.. i would get no results..it would not show up.. in that case at least the highlighting would allready be done.. --------------------- on the otherhand.. using ldm as is.. it is also not a major drawback: if you are looking for merrily ... it will only show you results where the word "merrily" is standalone... so you do have the correct results.. and if you have an extra sadlymerrilysadly then only it will be highlighted.. wich i think is a feature!!! --------------------- so if it is the only drawback.. i'm sticking to that solution, especially as php6 is going to have full unicode support.. and I am ready to bet that in php6 this problem will be solved!! But at least for the moment adding the /u modifier (making it /iu) to the regex will help for languages like german, french or spanish as the highlighting will work as you expect it.. Felix PS: just seen your edit.. doing testing now! [EDIT] just tested your routine... works fine with description....(not working with keywords) hmmm BUT with chinese there is another problem... did some reading (i do not understand chinese) i was trying to extract content to use as description.. thats how i stumbled into this article: it says Quote:
if this is true i think that the "no boundary" version will for the moment be the easiest solution...for chinese |
Quote:
is this format ok? 200px ? 150px |
Quote:
Size in pixels (along larger dimension) of thumbnail image shown within linkbit. 0: No thumbnails is displayed and data entry forms do not offer image fields. The information about picking up current value of Thumbnail Size, as set in the vBulletin Admin Control Panel, is not working on every system, for a reason that I do not yet understand. |
Quote:
I will look at the keyword problem Edited: yes, of course, there needs to be a fourth line: Code:
$find[] = '/^(' . $w . '$)/iu'; |
Quote:
|
Quote:
Quote:
Felix |
Yeeaahh - it's LDM's 1000th post in this thread alone!
Congrats Andrew on a successful mod & community, and thanks for all your help! |
All times are GMT. The time now is 07:28 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:
|