vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

AndrewD 03-22-2007 05:16 AM

Quote:

Originally Posted by Stop (Post 1208299)
I checked on my phpinfo and I found nothing that has to do with memory_limit..

I've taken a look at your site - you'll find that I've created a test category and put a couple of entries in it. Everything worked fine for me, once I got past some early problems with VB itself. I found that your board was continuing to give me messages about missing profile fields, even though I had entered them all.

I wonder if you are having problems with caching - messages getting trapped somewhere in the pipeline from your server to the browser.

Let me know if you are still having problems.

Vinyljunky 03-23-2007 10:06 AM

Hello,

Im relatively new to VB so go easy with me ;)

I have LDM installed and it works great! I use it so that anybody can download quizzes and registered users can download quiz answers.

99% of the registered users come to my site just to download the answers without interacting with the site.

Would it be possible to configure LDM so that:
Catagory A - Anybody could download (inc unregistered users)
Catagory B - Only Registered Users with N posts can download

Thanks

VinylJunky

AndrewD 03-23-2007 10:19 AM

Quote:

Originally Posted by Vinyljunky (Post 1210223)
Hello,

Im relatively new to VB so go easy with me ;)

I have LDM installed and it works great! I use it so that anybody can download quizzes and registered users can download quiz answers.

99% of the registered users come to my site just to download the answers without interacting with the site.

Would it be possible to configure LDM so that:
Catagory A - Anybody could download (inc unregistered users)
Catagory B - Only Registered Users with N posts can download

Thanks

VinylJunky


Yes, this is certainly possible. There is a folder in the release/extras directory called "limit-useraccess". This contains a number of VB "plugins", one of which (limitaccess-byposts-plugin.xml) does precisely what you require. The sample is configured so that, for all users except administrators, if they have less than 10 posts, they are allowed one download a day.

If you feel comfortable ediing/installing plugins, you can adjust this as you like. Otherwise, get back to me and I will gladly help you to install a modified version.

Vinyljunky 03-23-2007 11:01 AM

Quote:

Originally Posted by AndrewD (Post 1210227)
Yes, this is certainly possible. There is a folder in the release/extras directory called "limit-useraccess". This contains a number of VB "plugins", one of which (limitaccess-byposts-plugin.xml) does precisely what you require. The sample is configured so that, for all users except administrators, if they have less than 10 posts, they are allowed one download a day.

If you feel comfortable ediing/installing plugins, you can adjust this as you like. Otherwise, get back to me and I will gladly help you to install a modified version.

I have to confess that Im not a coder so some help would really be appreciated.

This is what Im trying to achieve:

Catagory A - Anybody could download (inc unregistered users)
Catagory B - Only Registered Users with N posts can download

Thanks

VJ:up:

AndrewD 03-23-2007 11:31 AM

Quote:

Originally Posted by Vinyljunky (Post 1210246)
I have to confess that Im not a coder so some help would really be appreciated.

This is what Im trying to achieve:

Catagory A - Anybody could download (inc unregistered users)
Catagory B - Only Registered Users with N posts can download

Thanks

VJ:up:

Send me a PM with details of your site and an exact indication of "N" and I will set things up for you during the weekend. I'll need an account with admin privs.

efil 03-24-2007 04:45 AM

Hi,
I did installed 2.27 and it's great!

but i just can download my wmv movies and can not see them in Jukebox.

efil 03-24-2007 05:20 AM

Sorry it's working now.

Thanks.

efil 03-24-2007 06:03 PM

Hi,
How can i move this text to the right (see pic)?

Rouzbeh1 03-24-2007 10:26 PM

hi Andrew
i have 2 questions:
1 - is it possible to view video files that are setup to be streamed in Wimpy?
2 - does it take too much time to modify LDM to be able to add multiple URLs per entry? (i've seen it on Wishlis, actually i suggested this :d. the problem is that i badly need this, so any info/help would be appriciated)

thanks in advance

about multiple URLs: i think it would be VERY USEFUL to be able mirror base url
for example: Mirror 1 Base URL: http://www.baseurl1.com/folder
Mirror 2 Base URL: http://www.baseurl2.com/folder
in add entry page you would see for each mirror one text field in which you could just enter the folder and filename... mirror 1 : folder_blah/blah_file.zip

this is useful, when you for some reason HAVE TO change your directory structure or the path you saved the files there. then you won't have to edit more than 1000 entries, it's enough to just edit the mirror base url :d

AndrewD 03-25-2007 09:04 AM

2.2.7 is now the official release.

New code has been uploaded with the Spanish and French translations completed (thanks ObMob and PitchouneN64ngc) and a new Chinese translation (thanks ItsBlack), plus some minor bug fixes:
- a couple of phrases
- the admin/category template
- sorting of the stats on the home page

Good luck!

AndrewD 03-25-2007 09:09 AM

Quote:

Originally Posted by efil (Post 1211218)
Hi,
How can i move this text to the right (see pic)?

Edit the links_linkbit template, and find these lines and change the third line as indicated

Code:

<fieldset class="fieldset">
<if condition="$linklegendbuttons"><legend><if condition="$linkfavbit">$linkfavbit </if><if condition="$linkeditbit">$linkeditbit </if><if condition="$links_permissions['can_send_tofriend']"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" title="$vbphrase[ll_sendtofriend]"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if><if condition="$links_permissions['can_report_link'] and $linkuserid != $bbuserinfo['userid']"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>$linklikebit</legend></if>
<table width="100%"><tr><td align="$stylevar[right]">

to

Code:

<fieldset class="fieldset">
<if condition="$linklegendbuttons"><legend><if condition="$linkfavbit">$linkfavbit </if><if condition="$linkeditbit">$linkeditbit </if><if condition="$links_permissions['can_send_tofriend']"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" title="$vbphrase[ll_sendtofriend]"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if><if condition="$links_permissions['can_report_link'] and $linkuserid != $bbuserinfo['userid']"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>$linklikebit</legend></if>
<table width="100%"><tr><td align="$stylevar[left]">


AndrewD 03-25-2007 09:14 AM

Quote:

Originally Posted by Rouzbeh1 (Post 1211379)
hi Andrew
i have 2 questions:
1 - is it possible to view video files that are setup to be streamed in Wimpy?

Not sure if you're asking if wimpy can be used for video files? - answer is 'yes' for flash-based files - there are instructions in the extras/wimpy-player directory.

Quote:

Originally Posted by Rouzbeh1 (Post 1211379)
2 - does it take too much time to modify LDM to be able to add multiple URLs per entry? (i've seen it on Wishlis, actually i suggested this :d. the problem is that i badly need this, so any info/help would be appreciated)

about multiple URLs: i think it would be VERY USEFUL to be able mirror base url
for example: Mirror 1 Base URL: http://www.baseurl1.com/folder
Mirror 2 Base URL: http://www.baseurl2.com/folder
in add entry page you would see for each mirror one text field in which you could just enter the folder and filename... mirror 1 : folder_blah/blah_file.zip

I realise this is important to some sites. It's not a trivial change, but I've promised to look at the whole question of extra fields for the next release (without promising when that will happen).

Quote:

Originally Posted by Rouzbeh1 (Post 1211379)
this is useful, when you for some reason HAVE TO change your directory structure or the path you saved the files there. then you won't have to edit more than 1000 entries, it's enough to just edit the mirror base url :d

Did you know that you can do a 'mass edit' of all your entries in one go on the admin/categories/mass edit pages?

Rouzbeh1 03-25-2007 10:43 AM

thank you for your reply :)
Quote:

Not sure if you're asking if wimpy can be used for video files? - answer is 'yes' for flash-based files - there are instructions in the extras/wimpy-player directory.
i does it also work for video files? i taught it's only for Audio files

Quote:

I realise this is important to some sites. It's not a trivial change, but I've promised to look at the whole question of extra fields for the next release (without promising when that will happen).
thank you very much :)

Quote:

Did you know that you can do a 'mass edit' of all your entries in one go on the admin/categories/mass edit pages?
yes but how do i make it only change baseurl and let filename remain?

AndrewD 03-25-2007 10:54 AM

Quote:

Originally Posted by Rouzbeh1 (Post 1211717)
i does it also work for video files? i taught it's only for Audio files

There are three plugins in the wimpy-player directory. wimpyplayer-flash-plugin.xml handles flash videos



Quote:

Originally Posted by Rouzbeh1 (Post 1211717)
yes but how do i make it only change baseurl and let filename remain?

See image. Admin/categories/ then usually easiest with access permissions/mass edit. Then go down to the bottom of the page, check 'select all entries' and select edit, then put the old and new base urls between the # characters in the regular expression boxes. Be careful, as this is an irreversible process. It's a good idea to take a backup.

Rouzbeh1 03-25-2007 11:17 AM

wow cool
thank you.
but i need the mirroring system too, because i have more than 3000+ entries on LDM and each file has min. 30 MB, so the server gets lag most of times if i don't different mirrors.
the idea is that i have 2 own mirror servers and use freehosts besides this.
btw. it would be nice it the would be a possibility to check server load on each mirror to determine which mirror fits best. this could be done via a PHP file placed on each server or .... ;)

Blackhat 03-25-2007 01:00 PM

This one works with 3.6.4 and above right ?

AndrewD 03-25-2007 01:20 PM

Quote:

Originally Posted by Blackhat (Post 1211791)
This one works with 3.6.4 and above right ?

It works with all versions 3.6 and it should work fully with all versions of 3.5

Rouzbeh1 03-25-2007 02:34 PM

i tried to make LDM play flv with wimpy wasp, what do i have to do?
i added flv extentions to musicbox_filetypes and also attachments.
what should i do next?

Alfa1 03-25-2007 04:14 PM

Can LDM be used as a radio/mp3 player? Is there such an add on? I dont mean to play one radiostation/mp3, but to play a tracklist, etc.

efil 03-25-2007 05:04 PM

Quote:

Originally Posted by AndrewD (Post 1211689)
Edit the links_linkbit template, and find these lines and change the third line as indicated

Code:

<fieldset class="fieldset">
<if condition="$linklegendbuttons"><legend><if condition="$linkfavbit">$linkfavbit </if><if condition="$linkeditbit">$linkeditbit </if><if condition="$links_permissions['can_send_tofriend']"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" title="$vbphrase[ll_sendtofriend]"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if><if condition="$links_permissions['can_report_link'] and $linkuserid != $bbuserinfo['userid']"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>$linklikebit</legend></if>
<table width="100%"><tr><td align="$stylevar[right]">

to

Code:

<fieldset class="fieldset">
<if condition="$linklegendbuttons"><legend><if condition="$linkfavbit">$linkfavbit </if><if condition="$linkeditbit">$linkeditbit </if><if condition="$links_permissions['can_send_tofriend']"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" title="$vbphrase[ll_sendtofriend]"><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if><if condition="$links_permissions['can_report_link'] and $linkuserid != $bbuserinfo['userid']"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>$linklikebit</legend></if>
<table width="100%"><tr><td align="$stylevar[left]">


Thanks.:)

Alfa1 03-25-2007 06:58 PM

Andrew, can you add a upgrade paragraph to your wiki?

AndrewD 03-26-2007 05:18 AM

Quote:

Originally Posted by Rouzbeh1 (Post 1211851)
i tried to make LDM play flv with wimpy wasp, what do i have to do?
i added flv extentions to musicbox_filetypes and also attachments.
what should i do next?

My apologies - I've just tested this with 2.2.7 and realise that I forgot to update it. The wasp plugin does not currently work with this release. I will post a fix as soon as possible.

AndrewD 03-26-2007 05:18 AM

Quote:

Originally Posted by Alfa1 (Post 1212046)
Andrew, can you add a upgrade paragraph to your wiki?

There was one but it was hidden. Made visible, thanks

AndrewD 03-26-2007 05:19 AM

Quote:

Originally Posted by Alfa1 (Post 1211903)
Can LDM be used as a radio/mp3 player? Is there such an add on? I dont mean to play one radiostation/mp3, but to play a tracklist, etc.

I've been meaning to extend the wimpy plugin to do this - it's a matter of writing some javascript - hasn't been a priority so far.

Clayton 03-26-2007 08:39 AM

Andrew, this is truly a massive amount of work you are doing on this hack/mod

I am just getting round to using it now, have installed and will be doing the settings

Thanks for all your time on this

obmob 03-26-2007 05:55 PM

Version should be edited in the first post :p

It says 2.2.6 and not 2.27. :D

Thanks for the new release Andrew!

GrendelKhan{TSU 03-27-2007 12:15 PM

AHHH! hallpp!!

I just can't get the lightbox to work. haven't for a few versions. is there a missing file or something different? in fact, I cant' even get the original image to pop-up from the thumbnail (even with no lightbox effect).

I gotz no little magnifying glass appearing even to enlarge even.

what'd I miss? :(


(ps. just found a bug I think with auto-create thread:
1. if you upload the same image to two different uploads it creates a DOUBLE discussions thread link to both threads

2. also still have bug where doesn't "take" the order number when you add link if you have "for selected category only" selected. you have to go back and edit it to get it to take.)

EasyTarget 03-27-2007 02:38 PM

hey andrew, thanks for the updates. Its been awhile since I've updated and I've changed web servers once again. (long story)

On the old server you helped me and I had manually editted the document root in the local_links_init.php file however this is no longer valid on the new server and so I left that off. However, in trying to administer the settings, I am unable to make the necessary changes. I'm trying to change to a relative local file root and remove the local file root prefix, but when I try to apply the changes I get this error message:
Quote:

The following setting(s) are invalid
upload_dir : /forum/files
Directory /forum/files (/Inetpub/vhosts/tribesonline.com/httpdocs/forum/files) doesn't exist and I can't create it
How can I switch back to a relative file root and remove the prefix?

EasyTarget 03-27-2007 03:17 PM

ok, I was able to locate the setting in the database and remove it so that now in the administration it shows local file root is set to no and there is no local file root prefix, however I still get this message even though the directory does exist:
Quote:

The following setting(s) are invalid
upload_dir : /forum/files
Directory /forum/files (/forum/files) doesn't exist and I can't create it

AndrewD 03-27-2007 04:49 PM

Quote:

Originally Posted by GrendelKhan{TSU (Post 1213578)
I just can't get the lightbox to work. haven't for a few versions. is there a missing file or something different? in fact, I cant' even get the original image to pop-up from the thumbnail (even with no lightbox effect).

I gotz no little magnifying glass appearing even to enlarge even.

what'd I miss? :(

Not sure. Have you edited any of the LDM linkbit templates? Do you want me to take a look as admin?


Quote:

Originally Posted by GrendelKhan{TSU (Post 1213578)
1. if you upload the same image to two different uploads it creates a DOUBLE discussions thread link to both threads

I can't reproduce this one.


Quote:

Originally Posted by GrendelKhan{TSU (Post 1213578)
also still have bug where doesn't "take" the order number when you add link if you have "for selected category only" selected. you have to go back and edit it to get it to take.)

Did you give me all that information the first time round :) I spent quite a while trying to find the bug but it always worked for me. "for selected category only"... Indeed, there's a bug - will fix

AndrewD 03-27-2007 04:58 PM

Quote:

Originally Posted by EasyTarget (Post 1213663)
ok, I was able to locate the setting in the database and remove it so that now in the administration it shows local file root is set to no and there is no local file root prefix, however I still get this message even though the directory does exist:

Are you sure that you no longer need to define document_root? The new error message is saying that it thinks the directory /forum/files is really a base level directory on your server, when I think you want it to be relative to the web site.

When you change local_file_root, it's a good idea first to clear the upload_dir setting and then reset it back the way you want after the new local_file_root has been accepted. That way, the code only needs to think about one thing at once.

EasyTarget 03-27-2007 07:10 PM

ok figured out that it kept resetting the local file root to yes so it kept behaving funny. Once I editted just that field to no then updated the other fields it seems to be working fine.

Demon fox 03-27-2007 08:57 PM

Hey is it possible to make it so that categorys have there own upload folder, so when a user uploads a file in a category it uploads into the folder set for it?

josiespencer 03-28-2007 02:19 AM

AndrewD, I am thinking of using the blockaccess-byposts-plugin.xml plugin - can you explain a little bit more about this change in the code:

// --- Within the last XX hours - set to 0 to require posts over all time
$LAST_HOURS = 0;

Does this set a time measurement before the new user can download new posts? And what is the maximum value it can be? Or did I totally misread this parameter?

AndrewD 03-28-2007 04:07 AM

Quote:

Originally Posted by Demon fox (Post 1213953)
Hey is it possible to make it so that categorys have there own upload folder, so when a user uploads a file in a category it uploads into the folder set for it?

I imagine that this is a simple change, but...

The code currently uses the upload folder to specify the *base* directory where uploads are stored. Individual uploads are placed in subdirectories according to /your/user/ids/digits (e.g. /uploaddir/1/3/2 for userid 132.

The trivial change to the code would continue to use this process but with different base directories for categories that override the default.

If you want all the files for a category in a single directory, that would be a bigger change, and in my view not a good idea.

AndrewD 03-28-2007 04:12 AM

Quote:

Originally Posted by josiespencer (Post 1214174)
AndrewD, I am thinking of using the blockaccess-byposts-plugin.xml plugin - can you explain a little bit more about this change in the code:

// --- Within the last XX hours - set to 0 to require posts over all time
$LAST_HOURS = 0;

Does this set a time measurement before the new user can download new posts? And what is the maximum value it can be? Or did I totally misread this parameter?

This plugin prevents users from accessing LDM *at all* unless they have made the indicated number of posts on your main VB board in the immediately previous $LAST_POST hours.

The default setting for $LAST_HOURS=0 means that the calculation is done over all the history of your board, i.e. that number of posts *ever*. If you set LAST_HOURS to 24, then it will look at the user's posts to VB forums during the last 24 hours and so on.

Ophelia 03-28-2007 12:33 PM

Just installed the newest version Andrew and setting it up now. Thank you so much for all your hard work on this Andrew! I know we are going to be in heaven with the newest features. I'm already seeing some things that are going to really help (outside of the things you knew about!)

Here is something that we would *love* to have.

Force comment on download.

josiespencer 03-28-2007 02:27 PM

Ophelia, there is a must_comment_and_rate setting. It has the following description:

Quote:

If set, when users comment on an entry, they must also rate it. Otherwise, comments can be added without giving a rating.

But I am guessing you don't want comments to be optional at all, huh?

AndrewD 03-28-2007 03:58 PM

Quote:

Originally Posted by Ophelia (Post 1214425)
Just installed the newest version Andrew and setting it up now. Thank you so much for all your hard work on this Andrew! I know we are going to be in heaven with the newest features. I'm already seeing some things that are going to really help (outside of the things you knew about!)

Here is something that we would *love* to have.

Force comment on download.

Noted - all well with you?

digital3 03-28-2007 07:00 PM

Call me a dummy but why do I have this installed and configured properly yet when submitting a new file I only see an option to link to it and not one to upload it using the attachment system? If I have to link to an existing attached file in another post this isn't going to do me a lot of good. I'm sure I must be missing something here because someone would have surely brought this up by now.


All times are GMT. The time now is 11:12 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
  • Page Generation 0.03645 seconds
  • Memory Usage 1,879KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete