Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Links and Downloads Manager Details »»
Links and Downloads Manager
Version: 2.2.8, by AndrewD AndrewD is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.x Rating:
Released: 06-18-2006 Last Update: 02-03-2008 Installs: 661
DB Changes Uses Plugins
Additional Files Translations  
No support by the author.

Version 2.3.0 of LDM is now the official release. This works with both VB3.7 and VB3.8. You can obtain it here

Version 2.2.8 remains available here, with limited support.

04.02.08: patch-cat.xml 'extra' uploaded - see first post for information

27.10.07: Version 2.2.8-post1 uploaded
French translation of product installer uploaded (other language translations are in the main release zip)

Remember to back up your current database tables before upgrading.

What this is and does

LDM is a general-purpose link and file manager, which handles user uploads and downloads in a flexible way. A range of media players is integrated into LDM and others are included as plugin extras. LDM is described below in the first post of this thread, which also contains a brief list of the currently-known bugs.

This release of LDM works correctly with all VB versions 3.6.x and recent versions of vbadvanced.

Documentation, screen shots, etc, are provided as a Wiki at http://www.eirma.org/wikis/index.php...nloads_Manager

Thank you to everyone who has tested, given suggestions, helped with the translations, etc.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
VIP Hawaii

Comments
  #2062  
Old 07-24-2007, 04:28 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rouzbeh1 View Post
hi Andrew,
is it possible to give moderators the permission to choose Parent forum, when they add a category without giving them too much permissions?
The *can_set_permissions* permission determines whether the user can do this or not. The description on the admin/permissions page is slightly misleading - it does not give the user general admin privs, although I imagine it gives more powers than you want.

One approach is to edit the addnewcat template. Look for lines that contain
Code:
<if condition="$links_permissions['can_set_permissions']">
There are four in total in this template. The second encloses a sequence starting
Code:
<if condition="$links_permissions['can_set_permissions']">
<tr>
	<td class="alt1">
	<strong>$vbphrase[ll_forumparent]</strong>
	<br /><span class="smallfont">
	$curforumtitle<br />
	$vbphrase[ll_forumparent_text]
	</span>
	</td>
You could change this conditional test, e.g.
Code:
<if condition="$links_permissions['can_set_permissions'] or $links_permissions['can_moderate_links']">
Reply With Quote
  #2063  
Old 07-24-2007, 06:16 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD View Post
If the user is viewing a category, the variable $viewcatid is set to the category id and is positive. Alternatively, you can look at $vbulletin->GPC['catid']

So do I understand you correct that if I place this code in my drop down, then the link will cause editing of the viewed category?
Code:
<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>
Reply With Quote
  #2064  
Old 07-24-2007, 06:27 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
So do I understand you correct that if I place this code in my drop down, then the link will cause editing of the viewed category?
Code:
<if condition="is_member_of($bbuserinfo,5,6,7)"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>
As I understood, you only wanted this to show if the user is currently in a category, so I think (without testing it) that you need

Code:
<if condition="is_member_of($bbuserinfo,5,6,7) and $viewcatid>0"><tr><td class="vbmenu_option"><a href="local_links.php?action=editcat&catid=$viewcatid">Edit Category</a></td></tr></if>
Reply With Quote
  #2065  
Old 07-24-2007, 09:49 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! That works great. I applied the same to addcat and put this in a link to in vb's navbar as well. I have now added all LDM links in the vb navbar, except that I have to find a search integration solution. I requested a search integration solution here
How can I remove LDM's navbar?
Reply With Quote
  #2066  
Old 07-24-2007, 12:29 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alfa1 View Post
Thanks! That works great. I applied the same to addcat and put this in a link to in vb's navbar as well. I have now added all LDM links in the vb navbar, except that I have to find a search integration solution. I requested a search integration solution here
How can I remove LDM's navbar?
Easiest is to edit the links_header template, find the lines:
Code:
$header
$navbar
<if condition="$show['popups']">
<div align="center">
and change to
Code:
$header
$navbar
<if condition="$show['popups']">
<div align="center" style="display:none">
Reply With Quote
  #2067  
Old 07-24-2007, 02:42 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that works well. Thank you.
Reply With Quote
  #2068  
Old 07-25-2007, 04:49 PM
Rouzbeh1 Rouzbeh1 is offline
 
Join Date: Sep 2006
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD View Post
The *can_set_permissions* permission determines whether the user can do this or not. The description on the admin/permissions page is slightly misleading - it does not give the user general admin privs, although I imagine it gives more powers than you want.

One approach is to edit the addnewcat template. Look for lines that contain
Code:
<if condition="$links_permissions['can_set_permissions']">
There are four in total in this template. The second encloses a sequence starting
Code:
<if condition="$links_permissions['can_set_permissions']">
<tr>
	<td class="alt1">
	<strong>$vbphrase[ll_forumparent]</strong>
	<br /><span class="smallfont">
	$curforumtitle<br />
	$vbphrase[ll_forumparent_text]
	</span>
	</td>
You could change this conditional test, e.g.
Code:
<if condition="$links_permissions['can_set_permissions'] or $links_permissions['can_moderate_links']">
thank you, will try

one more suggestion: is it possible to make vba modules read thumbs from ldm_thumb folder (local storage) instead of generating them each time?
for security reasons, i have my covers ftp on a separate server, and i don't want covers fail to display IF that server is down....

thanks
Reply With Quote
  #2069  
Old 07-25-2007, 08:51 PM
minimalize minimalize is offline
 
Join Date: Jul 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Andrew,

i?ve got another question. I hope it?s my last one

When i add a new link there is a select field where i can select the categorie. Is there an ability to get the main categories bold?
Reply With Quote
  #2070  
Old 07-26-2007, 04:55 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by minimalize View Post
Hey Andrew,

i?ve got another question. I hope it?s my last one

When i add a new link there is a select field where i can select the categorie. Is there an ability to get the main categories bold?
You mean the categories that are at the bottom of the tree (which have no parents)?

Edit the links_addnewlin_catselect_multi template (vb/admin/styles) and replace the current template with the following:

Code:
<if condition="$select_stage==1">	<select class="select" name="$list_name" id="$list_id" multiple="multiple" size="5" style="width:400px;  height:100px;">
	<optgroup label="$vbphrase[ll_parcatslabel]">
</if><if condition="$select_stage==2">		<option value="$catid"<if condition="$catsel==1"> selected="selected"</if> <if condition="$disabled">disabled="disabled"</if> <if condition="$class">class="$class"</if> <if condition="!$prepend">style="font-weight: bold;"</if>
>$catname<if condition="$catclosed"> [$vbphrase[ll_catclosed]]</if></option>
</if><if condition="$select_stage==3">
	</optgroup>
	</select>
</if>
In case you're intersted, the change is adding the conditional test
Code:
<if condition="!$prepend">style="font-weight: bold;"</if>
Reply With Quote
  #2071  
Old 07-26-2007, 05:59 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rouzbeh1 View Post
thank you, will try

one more suggestion: is it possible to make vba modules read thumbs from ldm_thumb folder (local storage) instead of generating them each time?
for security reasons, i have my covers ftp on a separate server, and i don't want covers fail to display IF that server is down....

thanks
Yes, good suggestion.

I think it is possible provided the vba module is set up to use the same size thumb as the linkbit.

Edit the adv_portal_custom_ldm_new_thumb_one template.

Replace the current template by
Code:
<tr>
<td align="center" <if condition="$links_defaults[cellsize]">width="$links_defaults[cellsize]"</if>>
<if condition="$linkimg">
<a href="$vboptions[bburl]/$LINKS_SCRIPT.php?catid=$linkcatid&amp;linkid=$linkid" title="$title">
<img src="$vboptions[bburl]/$RESIZE_SCRIPT.php?linkid=$linkid<if condition="$linkimgthumbsize!=$links_defaults[link_imagesize]">
&amp;size=$links_defaults[link_imagesize]</if>" border="0" alt="$linkcatname, $linkname" />
</a>
<else />
<span class="smallfont">$linktypebit<if condition="$linkstatus<=0">$linkname<else />$linkurllink</if></span>
</if>
</td>
</tr>
The modification is the test on linkimgthumbsize:
Code:
<if condition="$linkimgthumbsize!=$links_defaults[link_imagesize]">
&amp;size=$links_defaults[link_imagesize]</if>
I think that this will do the job provided the thumb is already cached. I will look at the code to see if it is possible at this point in LDM also to cache the thumb if it is being generated on the fly.

Let me know if that works ok.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14377 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (15)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete