vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

Langly 03-14-2006 03:40 PM

Awesome work Andrew. I have v2.1.3b3 running atm. To do the upgrade to this, delete the "Product", overwrite the files on the server, reinstall the Product. Is this correct? I just want to be sure I don't lose the SQL database of the downloads listed in there.

AndrewD 03-14-2006 03:50 PM

Quote:

Originally Posted by Langly
Awesome work Andrew. I have v2.1.3b3 running atm. To do the upgrade to this, delete the "Product", overwrite the files on the server, reinstall the Product. Is this correct? I just want to be sure I don't lose the SQL database of the downloads listed in there.

Not quite - just upload the files and reinstall. As long as the version number changes (which it does her), VBulletin will take take of everything. I always recommend that you take a backup before upgrading, just in case.

AndrewD 03-14-2006 04:36 PM

Quote:

Originally Posted by Slave
One thing that is weird .. I've got a couple of links that refuse to validate via the admin pages ..

http://www.swift-tools.net/Quake/QVM/
http://www.truecombat.com/intro.php

Normally in this situation I'd just click on the links in their normal listings and once LDM detected that I'd got through to the link it would then change the status to normal instead of "Status Unknown" .. this doesn't seem to happen now. Have I missed a setting, or has something changed?

Well spotted. Variable not declared as global.

AndrewD 03-14-2006 04:52 PM

Quote:

Originally Posted by Slave
Oh .. one thing that's come to mind .. ;)

With the vBa modules .. at the moment it just shows the link and hits, would it be possible to also show the cat for each link?

link ? hits
cat
link ? hits
cat

sort of thing ..

Is it just the case of adding a $ to the links_vbalinks template, or is some editing of the php file required?

It needs a minor change in the code and a reference to a new variable in the links_vbalinks template. I'll add the variable into the code, but leave the template change for you to patch locally. In the meantime, you can implement the change as follows:
- Edit local_links_include.php
- Line 1907 or thereabouts, in function get_links2, add $linkscat to the list of global variables.
- Towards the end of the *while* loop, before the eval() statement, add this statement :
PHP Code:

$linkcatname $linkscat[$catid]["catname_clean"]; 

Then patch the template so that it refers to $linkcatname

AndrewD 03-14-2006 05:13 PM

Quote:

Originally Posted by berayiwu5
Mostly for now, I would like to control mp3 audio recordings to be played by Windows Media Player (or Real Player) embedded in posts. What sort of changes should I make? If you can give me detailed instructions, I believe I am up to the task. I singlehandedly set up the vBulletin board myself and installed a number of plugins to date. The only thing I don't know is coding.

1) Install LDM
2) Visit your normal VBulletin admincp, attachments/extensions and sizes. If you have already got an entry for mp3 files, good, otherwise add one. The important setting is the mimetype, which should be Content-type: audio/mpeg
3) Visit the LDM admin settings page, and make sure that this setting is defined: file_iconsdir. This should point at the directory in which you have uploaded the icons that are provided in the LDM release, e.g. images/LDM
4) Visit the LDM admin permissions page and check that the desired usergroups have got can_play_musicbox permission

Quote:

Originally Posted by berayiwu5
Oh, by the way, one more question. MySQL has a limit on the size of attachment, correct? Does LDM works if I choose to put a link like the following into a post:

www.mysite.com/forum/media/file.mp3

instead of uploading it as an attachment, which might be prohibited by MySQL because of its large size?

That is to say, I FTP file.mp3 into the server, instead of uploading it as an attachment. Does LDM work just as well in terms of controlling how many times the file is to be played? If so, how do I go about doing that?

LDM does not place the files into the MySQL database - it always uses files, even if these are uploaded. However, there are quite tight limits on what can be uploaded using normal web forms, so you are right, the best approach is to upload the files using FTP.

To continue...

- Put some entries in your LDM database. Create a category, then create entries in this category which point to the files you have FTP'd onto your server. It is better to refer to these using local filenames rather than full urls, i.e. create the entry as /dir1/dir2/file.mp3 rather than http://yoursite/dir1/dir2/file.mp3

- If you want people to access these via your posts/forums rather than via LDM itself, then you need to make note of the 'linkid' for each mp3. You can find this by hovering over the LDM entry. You need to paste urls of this form into your posts: http://yoursite/local_links.php?action=play&id=9 in order to get the media player to work

Quote:

Originally Posted by berayiwu5
For now, it works fine if I can control how many clips each user can play per day--preferably also per week. I think you can easily implement the latter--how many times each user can play per week, right?

The control is 'per day', but there is also an option to let unused allowances accumulate for N days, so I think you can achieve what you want by giving a daily allowance of one seventh of the maximum weekly consumption, and a 'carry forward' of 7 days.

You set these limits on the LDM admin/download quotas page

berayiwu5 03-14-2006 05:19 PM

Thanks, Andrew, for your detailed instructions. You must have put in a lot of time in responding to my questions. I really appreciate it. I don't have time to get to it just yet, but I'll return to bring you the results--which should be positive. :)

By the way, in your future releases, could you consider implementing an option that can control the number of times a particular user can play a video/audio clip or see an attachment? Is that feasible at all? I think that's very useful for someone like myself who is doing an online course with lectures in audio/video formats--because I want to give access only to the few of those who have signed up for my class. I can't find this kind of mod. anywhere on this vB.org forum, and I believe that other users would love to have this option as well.

AndrewD 03-14-2006 06:04 PM

Quote:

Originally Posted by berayiwu5
Thanks, Andrew, for your detailed instructions. You must have put in a lot of time in responding to my questions. I really appreciate it. I don't have time to get to it just yet, but I'll return to bring you the results--which should be positive. :)

By the way, in your future releases, could you consider implementing an option that can control the number of times a particular user can play a video/audio clip or see an attachment? Is that feasible at all? I think that's very useful for someone like myself who is doing an online course with lectures in audio/video formats--because I want to give access only to the few of those who have signed up for my class. I can't find this kind of mod. anywhere on this vB.org forum, and I believe that other users would love to have this option as well.

OK, I'll take note.

Slave 03-14-2006 07:06 PM

Quote:

Originally Posted by AndrewD
It needs a minor change in the code and a reference to a new variable in the links_vbalinks template. I'll add the variable into the code, but leave the template change for you to patch locally. In the meantime, you can implement the change as follows:
- Edit local_links_include.php
- Line 1907 or thereabouts, in function get_links2, add $linkscat to the list of global variables.
- Towards the end of the *while* loop, before the eval() statement, add this statement :
PHP Code:

$linkcatname $linkscat[$catid]["catname_clean"]; 

Then patch the template so that it refers to $linkcatname

That's great .. thanks :)

elsupremo 03-14-2006 07:29 PM

I have not installed the RC yet, as my install of VBA took the simplicity out of upgrading...I'm still on 2.1.3b3, and it's working very well.

The only wish I have is that the comments, or the ABILITY to add comments, was somehow more obvious or more inviting for users. I have had quite a few people download items from my site, and yet I have very few comments. The comments that are on there are generally from the same person. I don't know how it would be possible, but I wish the comments and the ability to rate/leave comments stood out more.

Still, this is one of the most amazing hacks I've seen. I recently turned on SEO links, and search engines have been loving it. :)

Thank you Andrew for all of your hard work. Very appreciated.

Slave 03-15-2006 04:19 PM

A quick question ..

AndrewD, have you changed the style/colour of the background colour on some of the headings? .. on the default style it seems to be using the dark blue instead of the light blue which means the collapsible arrow image doesn't look right ..

Where would I need to go to change this back to the light blue colour?


All times are GMT. The time now is 06:30 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.03130 seconds
  • Memory Usage 1,770KB
  • 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
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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