![]() |
Quote:
Thank you AndrewD you are the best!!! |
First of all, great hack.
I have problem adding some news in the main LDM page, which template should make a change to add some news about files (above categories, under LDM title). I saw link_main and I wasn't sure if it's a right one. |
Cheers I was looking for a solution to this too!
|
Quote:
You can either make the change in the template itself, or you can do it using a plugin which assigns the extra material to an entry in the '$includeinmain' array. The template includes several 'placeholders', each of these refers to a specific entry in this array. You will find patterns like the following in the template: Code:
<if condition="$includeinmain[precat]"> They appear in the logical order through the template. |
First.. it works great.. with 3.7 beta..
Second, i searched for multilanguage support.. for titles and descriptions.. and found somewhere in FAQ that it is not going to be supported.. So I came up with a very personal solution.. inspired by a very old hack by Joerg Z from the times where vbulletin 3.5 did not have the user profile fields phrased.. https://vborg.vbsupport.ru/showthread.php?t=98904 So i did some testing.. and it seems to work fine... but: I only use l&d manager as a links database.. AND will never have more than 100 categories.. so i dont know what happens if it is used differently What i'd be interested in.. is if someone knows if there is a drawback.. The principle: When you create a cat, you enter a dummy name.. a placeholder with a dollar sign in front.. example for the category "Vbullentin Sites" you enter the name $vbull_sites_ll_name - you do the same with description, and long description, paying attention that you have descriptive names.. example in our case: $vbull_sites_ll_desc and $vbull_sites_ll_long_desc No special characters and no spaces in those names.. and a $ (dollar sign in front) Now you create phrases for each entry name, description and long description.. They have to have the same varname as you entered for your category BUT without the $ dollar sign!!! .. .. in those phrases you enter the real text you want to have.. (you add those phrases in phrasemanager to group: local_links... For this to work you need 2 file modifications.. 1st.. open: local_links_include.php and find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
as I said.. it seems to work.. and I will continue testing on my localhost as long as vb3.7 is still in beta... What I'd be interested in... is if someone sees an obvious drawback... Ok.. the cat editing is a pain.. but you do it only very seldomly.. (the extra query is only at catedit.. and only done by admin ==> me.. ) I forgot.. if the name or desc or long description do NOT start with a $ sign.. it works as designed for that cat.. so multilanguage is Not active for this cat.. I think its only a starting idea.. but surely needs to be overworked before usage.. Maybe there are better solutions.. but i didnt find any.. (more sophisticated would be to use the system vbull uses for user profile fields.. but that would require much more rewriting!!!) it basically does the same.. but creates the phrases when you enter the name.. and does the replacements in the background.. Felix PS: this is just an idea i had while playing around.. it seems to work in my config.. but i would not use it in a production environment.. |
Fantastic mod, just had a question:
What settings must I change if I want to create thumbnails of videos/images automatically? Thanks so much Andrew, this mod is truly brilliant. |
Quote:
For thumbnails of images, this is automatic - go to LDM/admin/settings/Controls on Images and Icons Set link_imagesize to a non-zero value, and LDM will then automatically create thumbnails that size. You can use the other settings in this section to control whether the thumbs are cached, etc. Do you know of a reliable tool for extracting the first frame/other frame from video files that works across servers? Does the imageimagic package do this? |
Hi Andrew,
How can I get the font size of the links larger? Tried some things but it did not work. See http://www.wereldwijzer.nl/local_links.php?catid=164 Still a great mod, thanks! |
Quote:
|
Andrew I'm facing a strange problem. It seems that many thumbnails from my entries are not showing. I can't find a pattern which causes this
|
All times are GMT. The time now is 11:34 AM. |
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:
|