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
  #2572  
Old 10-30-2007, 02:08 AM
CamJM CamJM is offline
 
Join Date: Jun 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD View Post
If you want to put something in each entry, then you have to edit one/several of the links_linkbit templates. There are several of these, depending on which layout you are using. Each of them takes the form of a table row definition, looking like this:
PHP Code:
<tr id="linkid$linkid">
<
td colspan="2">
...
</
td>
</
tr

For patching the main layout, above/below the list of entries, it's the links_main template. In fact that template already has some placeholder variables, via an array variable, $includeinmain. Set one of these array elements: precat, postcat, prefeat, postfeat, prelink, postlink, prestats, poststats, e.g. using the ldm_maindisplay_end hook.
Hi Andrew, sorry to say this but I'm a bit of a coding novice, how would I use the ldm_maindisplay_end hook within the place holders? All I really intend on doing is placing a line of text in there if that makes it simpler at all. Thanks.
Reply With Quote
  #2573  
Old 10-30-2007, 05:43 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CamJM View Post
Hi Andrew, sorry to say this but I'm a bit of a coding novice, how would I use the ldm_maindisplay_end hook within the place holders? All I really intend on doing is placing a line of text in there if that makes it simpler at all. Thanks.
Here's a couple of examples. Suppose you want to put a box saying "Hello Hello Hello" on all category pages, placed immediately above the list of entries. You can do this in two ways - either write a plugin or edit a template.

You add the plugin by going to vbulletin->admincp->products and plugins->add new plugin.
Choose products=links and downloads manager, hook location=ldm_maindisplay_end, plugin is active=yes. Call the plugin (e.g.) 'annotate' and add the following code:
Code:
if ($viewcatid>0) {
$includeinmain['postcat'] .= '
<table width="100%" class="tborder">
<tr><td class="alt1" align="center">
Hello Hello Hello
</td></tr>
</table>
';
}
This adds a boxed table on all category content pages immediately above the list of entries.

You can achieve the same effect by editing the links_main template. Find the lines which read:
Code:
<if condition="$includeinmain[postcat]">
$includeinmain[postcat]
</if>
Immediately afterwards insert these lines:
Code:
<if condition="$viewcatid>0">
<table width="100%" class="tborder">
<tr><td class="alt1" align="center">
Hello Hello Hello
</td></tr>
</table>
</if>
If you want to add a similar line at the start of the description of each entry, you can also do this with a plugin or by editing a template. Plugin approach:

Again, call the plugin (e.g.) 'annotate', products=links and downloads manager, hook location=ldm_linkbit_create, plugin is active=yes, with the following code:
Code:
$linkdesc = '
Hello Hello Hello
<br />
<br />
' . $linkdesc;
This will work with all choices of linkbit - you don't need to repeat it for each of the available layouts.

Template approach. Edit the links_linkbit template (or the links_linkbit_table, etc templates, depending on your choice of linkbit) and insert the following right at the start:

Code:
<tr colspan="2">
<td align="center">
Hello Hello Hello
</td>
</tr>
Reply With Quote
  #2574  
Old 10-30-2007, 03:46 PM
hydn hydn is offline
 
Join Date: Oct 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm struggling with layout issues. I have a broken link that links to:
"ARG:4NDEFINED.php?catid=-8"

Also there's a "lone" statistics box on the bottom-right of all pages. How can I add other stats or anything to the left of it?

Any tips thanks.
Reply With Quote
  #2575  
Old 10-30-2007, 04:02 PM
hydn hydn is offline
 
Join Date: Oct 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry about not much details.

Here's the current code for the stats box:
Code:
<if condition="$viewcatstats or $viewcathits">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<tr><td width="50%">&nbsp;</td>
<td>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr align="center">
	<td class="tcat" align="center" colspan="2">
	<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('hitparadebit')"><img id="collapseimg_hitparadebit" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_hitparadebit].gif" alt="" border="0" /></a>
	<strong>$vbphrase[ll_statistics]</strong>
	</td>
</tr>
</tbody>
<tbody id="collapseobj_hitparadebit" style="$vbcollapse[collapseobj_hitparadebit]">
<if condition="$viewcathits">
<tr><td class="alt1" colspan="2">
	<span class="smallfont"><strong>$viewcathitstitle</strong></span>
</td></tr>
	$viewcathits
</if>
<if condition="$viewcatstats">
	$viewcatstats

</if>
</tbody>
</table>
</td></tr>
</table>
<br />
</if>

<if condition="$includeinmain[poststats]">
$includeinmain[poststats]
</if>
I'll like to place an identical box to the left of this box with other stats such as. Last 10 downloaded by other users or random 10 downloads.

thanks
Reply With Quote
  #2576  
Old 10-30-2007, 04:11 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hydn View Post
I'm struggling with layout issues. I have a broken link that links to:
"ARG:4NDEFINED.php?catid=-8"
Have you modified one of the LDM templates at some time in the past or got other hacks installed? A url pointing to catid=-8 is trying to display the most recent entries, and the current templates would construct this in terms of something like:
Code:
	<a href="$SEARCH_SCRIPT.php?action=find&amp;catid=$NEW_CAT">$vbphrase[ll_menu_shownew]</a>
Maybe if you switch on template titles on your vb admincp/options, you can check which template this link is within - I would expect it to be in the links_header template.

Quote:
Originally Posted by hydn View Post
Also there's a "lone" statistics box on the bottom-right of all pages. How can I add other stats or anything to the left of it?
This is set up in the links_main template. There a set of code that looks like the following:

Code:
<if condition="$includeinmain[prestats]">
$includeinmain[prestats]
</if>

<if condition="$viewcatstats or $viewcathits">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td width="70%">&nbsp;</td>
<td>
...
You can add other material to the empty 70% cell. Alternatively, you can assign something to the $includinmain[prestats] variable by writing a plugin tied to the links_linkbit_create hook
Reply With Quote
  #2577  
Old 10-30-2007, 04:14 PM
PitchouneN64ngc's Avatar
PitchouneN64ngc PitchouneN64ngc is offline
Senior Member
 
Join Date: Aug 2002
Location: France
Posts: 515
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AndrewD, I can tell you the French translation is finished, i read it last time (fixing translations bugs and incoherences between phrases) and release it
Reply With Quote
  #2578  
Old 10-31-2007, 02:29 AM
CamJM CamJM is offline
 
Join Date: Jun 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome Andrew! Thanks for the help
Reply With Quote
  #2579  
Old 10-31-2007, 04:17 AM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, playing again with the new vBa modules... I uploaded the ldm_new.module.

First i coudln't see it, then set clean code to "no" and it start showing.

Now, I made some changes on the template to show a thumbnail, this, because eveything i have has a thumb.

So, the code is working, there aren't errors so far, but i figured out a funny thing.

Entries 1,2,5 show a link in the title, but 3 and 4 are just plain text.

You can take a look at this in www.ositobarrigon.com or in the attached image.

There are no variables added, just deleted the filetype one and added the thumbnail.

Help!

Thanks!
Reply With Quote
  #2580  
Old 10-31-2007, 05:09 AM
CamJM CamJM is offline
 
Join Date: Jun 2007
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AndrewD View Post

Template approach. Edit the links_linkbit template (or the links_linkbit_table, etc templates, depending on your choice of linkbit) and insert the following right at the start:

Code:
<tr colspan="2">
<td align="center">
Hello Hello Hello
</td>
</tr>
Hi Andrew, just one small question, if I set a condition so that only people who aren't logged in see it, it doesn't appear to work. here's what I edited, I have the condition working in other areas of the site..

Code:
<tr colspan="2">
<td align="center">
<if condition="$show['guest']">
Hello Hello Hello
</if>
</td>
</tr>
Reply With Quote
  #2581  
Old 10-31-2007, 05:11 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by obmob View Post
Hello, playing again with the new vBa modules... I uploaded the ldm_new.module.

First i coudln't see it, then set clean code to "no" and it start showing.

Now, I made some changes on the template to show a thumbnail, this, because eveything i have has a thumb.

So, the code is working, there aren't errors so far, but i figured out a funny thing.

Entries 1,2,5 show a link in the title, but 3 and 4 are just plain text.

You can take a look at this in www.ositobarrigon.com or in the attached image.

There are no variables added, just deleted the filetype one and added the thumbnail.

Help!

Thanks!
The two entries that are displayed with no link on the text are currently considered to be broken, i.e. LDM can't find the file. Not the best/clearest of signals, I agree.
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 01:02 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.05806 seconds
  • Memory Usage 2,343KB
  • 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
  • (10)bbcode_code
  • (1)bbcode_php
  • (6)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
  • (4)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