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 09-19-2006 07:13 PM

Quote:

Originally Posted by WritersBeat
Is it absolutely nessecary for admin access? Sorry a little protective. If so yes, but before I do let me give you more details.

It happens after I click "submit" and the ajax form shows up with please wait or something (the text) then the page local_link_actions.php loads with the text "this page is not supposed to be accessed directly".

And that's what happens.

I'm sorry, it's quite hard to debug problems without site access. The text you quote <this page is not supposed to be accessed directly> is not (as far as I can see) used in any part of LDM, and I can't see it the the main VB code either.

chorton 09-20-2006 12:12 AM

Quote:

Originally Posted by AndrewD
Sorry about that - this facility was introduced in version 2.2.6, and I suppose you are running 2.2.5.

As far as I can tell, it's straightforward to patch the change back into 2.2.5. I attach the two vba module files from 2.2.6 (the assignment to show_catname is on line 10 of the two files), and give below the modified version of the links_vbalinks template.


No problem. I did all that and it still did not fix it.
www.versionist.net is the test site
I will be replacing the core engine here if i get it all worked out
www.versionist.com

Ipuck 09-20-2006 01:28 AM

Hello Andrew welcome back!!

I upgrade to 2.2.6 and since then every time some one is using the LDM I get a e-mail with the following error:


Quote:

Database error in vBulletin 3.6.1:

Invalid SQL:

UPDATE vb_session
SET lastactivity = 1158718056, location = '', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = '';

MySQL Error :
Error Number :
Date : Tuesday, September 19th 2006 @ 10:07:41 PM
Script : http://mysite.com/forums/local_links...&id=80&catid=4
Referrer :
IP Address : xxxxxxx
Username : xxxxxx
Classname : vB_Database
The links work OK but I get the email message every time.

Thanks!

AndrewD 09-20-2006 04:07 AM

Quote:

Originally Posted by Ipuck
Hello Andrew welcome back!!

I upgrade to 2.2.6 and since then every time some one is using the LDM I get a e-mail with the following error:




The links work OK but I get the email message every time.

Thanks!

Thanks for letting me know, and sorry for this. Three people have now reported this problem. I think I know what is causing it (an attempt to fix another obscure problem), and will post a fix as soon as possible.

AndrewD 09-20-2006 04:12 AM

Quote:

Originally Posted by chorton
No problem. I did all that and it still did not fix it.
www.versionist.net is the test site
I will be replacing the core engine here if i get it all worked out
www.versionist.com

I'll take a look and let you know what I find.

Also, I notice that your test site is trying to wrap the full LDM front page into your vbA home page, which is causing problems with the LDM menus. Other people have gone down that road, and I think have sorted out how to make things work properly. Maybe they can post some advice?

chorton 09-20-2006 12:48 PM

Quote:

Originally Posted by AndrewD
I'll take a look and let you know what I find.

Also, I notice that your test site is trying to wrap the full LDM front page into your vbA home page, which is causing problems with the LDM menus. Other people have gone down that road, and I think have sorted out how to make things work properly. Maybe they can post some advice?

Not sure what you mean by wrapping the ldm front page.
Its a fresh install of 3.6 with vbadvanced. I then just turned on your 4 modules on the home page.

Thanks for your help.

WritersBeat 09-21-2006 03:08 AM

AndrewD - I'll try to find it myself if I don't I'll give you an admin thing.

Also - when is the SEO going to be better? i tried to enable it but it was buggy as hell and didn't work correctly to the settings.

AndrewD 09-21-2006 04:48 AM

Quote:

Originally Posted by WritersBeat
AndrewD - I'll try to find it myself if I don't I'll give you an admin thing.

Also - when is the SEO going to be better? i tried to enable it but it was buggy as hell and didn't work correctly to the settings.

Could you explain what you mean 'buggy as hell' ? This feature has been there for quite some time and there are no other reports of problems. You have set up apache to work correctly with this, I assume?

xadoa 09-21-2006 06:44 PM

Hi AndrewD,

Can I ask you about this problem again?

https://vborg.vbsupport.ru/showpost....&postcount=300

and also, the "Confirmation Screen", when I click on Accept it stay on the same screen, and when I click on "Decline" then it works which go to other pages.

thank AndrewD

XD

daFish 09-22-2006 10:22 AM

First, great product. :)

But I have a question and maybe overlooked something. How is it possible to upload an image when you create a new link to an website, e.g. the image is the logo of the linked site?

|oR|Greg 09-22-2006 10:53 AM

Quote:

Originally Posted by daFish
First, great product. :)

But I have a question and maybe overlooked something. How is it possible to upload an image when you create a new link to an website, e.g. the image is the logo of the linked site?

Use the Image or Image Upload section(s).

http://www.amacny.com/vb/local_links...d=6&linkid=148

obmob 09-22-2006 03:20 PM

Quote:

Originally Posted by AndrewD
Thanks! We had a great time, including the pleasure of your country (we were in the Pyrenees for the first week).

Good, though, i'm not spaniard, i'm in Mexico! :)

Well, finally i'll get to work on 2.2.6 hopefully sooner i'll attach new spanish phrases.

Cant wait to look for that image resizing feature you added :laugh:

AndrewD 09-22-2006 05:11 PM

Quote:

Originally Posted by obmob
Good, though, i'm not spaniard, i'm in Mexico! :)

ouch, sorry...

AndrewD 09-24-2006 09:26 AM

Quote:

Originally Posted by dholt
Noob Question but do I have to create folders for all uploads and if so do I enter the fulll path to it or just the URL. were does it store the files.

How should I set it up

root/forums/images/ldm_icons
root/LDM_Uploads
root/forums/images/file_icons_dir
root/forums/images/thumbs_dir

chkmd to 777

Also I am not sure of this sitting/ local_file_root_prefix

I'm not sure what to put in this box even after reading.

Thanks and sorry for being such a noob with this.

I realise that I have not given you an answer. Sorry.

You'll find each of these parameters explained in the on-line wiki - see first post - but you may have to dig around a bit.

You suggest this set up..

root/forums/images/ldm_icons
root/LDM_Uploads
root/forums/images/thumbs_dir

This is fine, except:

- you do not need a directory root/forums/images/file_icons_dir. Assuming you have placed the contents of the /icons directory in /root/forums/images/ldm_icons, you should point the LDM setting file_icons_dir at images/ldm_icons (i.e. omit forums/ from the setting).

- I would be inclined to put the thumbs_dir outside your forums directory.

Uploads are automatically stored in subfolders underneath (in your example) your LDM_uploads directory. You need to create the LDM_Uploads and chmod it to 777; LDM will do the rest.

local_file_root_prefix and local_file_root

These are optional settings, used to increase security. They modify where LDM looks to find entries stored on the web server. It thinks an entry is on the server if the entry you provide in the Add Entry form has no url (i.e. you specify it as /dir/file.typ rather than as http:// site/dir/file.typ)

If local_file_root is off (by default), then LDM assumes that the entry can be found in the web directory, i.e. in the example given, in subdirectory dir immediately underneath the web root.

If local_file_root is on, then LDM assumes that the entry is found in directory /dir in the local file system of the web site. This is usually not the same place as the web site's root.

local_file_root_prefix is used to 'include' a standard prefix in front of all local file names, regardless of the setting of local_file_root. By default, it is blank. If you set it to /dir1/dir2, then (for the example I gave), LDM would look for the entry in directory /dir1/dir2/dir.

By adjusting these two parameters, you can place files on your local server out of reach of prying eyes and you can also limit the parts of the file system that LDM can get at. This is useful for security reasons.

AndrewD 09-24-2006 09:34 AM

I've only seen one serious problem reported with the beta 2.2.6. Three people have said that email sql error messages are being sent *after* a download is complete, when users then click on the navbar.

I haven't been able to reproduce this problem myself, but I think I know where the problem is.

Please can anyone who has experienced this bug with 2.2.6 test the attached version of the file local_links.php (Just upload it into your main forums directory) and let me know if the problem disappears.

Once this is confirmed, we can make 2.2.6 the official release, and I can start on something else.

zooki 09-24-2006 10:43 AM

Hi there Andrew, What do you say about someone who wants to let people download 600mb files? Does this differ from say a 5mb or 70mb file with regards to stress on server????

I have had many 70mb movie files for download. Now i need to share larger ones. Just worried it might have some ill effect. (apart from bandwidth, which is not problem)

The file will be on the server.. a local file.

thank you.

AndrewD 09-24-2006 12:21 PM

Quote:

Originally Posted by zooki
Hi there Andrew, What do you say about someone who wants to let people download 600mb files? Does this differ from say a 5mb or 70mb file with regards to stress on server????

I have had many 70mb movie files for download. Now i need to share larger ones. Just worried it might have some ill effect. (apart from bandwidth, which is not problem)

The file will be on the server.. a local file.

thank you.

There seem to me to be two things you should look out for, cpu usage on your server and the possibility of disconnections during transfers.

I just tried an experiment with a 700mb file, held on my PC and 'downloaded' via LDM back onto this PC. It used about 6 seconds cpu time. So you should be ok from that angle.

Concerning dropped connections, the problem is that someone who uses a regular browser interface may get only part of the file. If they are using a download manager, then that should recover. LDM works with download managers, and is able to deliver parts of the download on request (to be technical, it can cope with single range HTTP 206 partial transfer requests).

zooki 09-24-2006 02:09 PM

Quote:

Originally Posted by AndrewD
There seem to me to be two things you should look out for, cpu usage on your server and the possibility of disconnections during transfers.

I just tried an experiment with a 700mb file, held on my PC and 'downloaded' via LDM back onto this PC. It used about 6 seconds cpu time. So you should be ok from that angle.

Concerning dropped connections, the problem is that someone who uses a regular browser interface may get only part of the file. If they are using a download manager, then that should recover. LDM works with download managers, and is able to deliver parts of the download on request (to be technical, it can cope with single range HTTP 206 partial transfer requests).

THank you, hmm perhaps with the circa 3000 visitors a day its not such a good idea. :(

Ipuck 09-24-2006 07:32 PM

Quote:

Originally Posted by AndrewD
I've only seen one serious problem reported with the beta 2.2.6. Three people have said that email messages are being sent *after* a download is complete when users click on the navbar.

I haven't been able to reproduce this problem myself, but I think I know where the problem is.

Please can anyone who has experienced this bug with 2.2.6 test the attached version of the file local_links.php (Just upload it into your main forums directory) and let me know if the problem disappears.

Once this is confirmed, we can make 2.2.6 the official release, and I can start on something else.


Thanks! The new file is working OK.

Yorixz 09-25-2006 04:27 PM

Two things that I couldn't find yet, which I'm really wondering about are; is this hack 'bandwidth-stealing-proof' when you enable guest transfers, and does it allow you to automatically create topics for added downloads (rather than having a comments-like thing.

Hopefully someone can clear these up for me, if those things are also on the features list then I'm definitely a user soon ;)

AndrewD 09-25-2006 08:03 PM

Quote:

Originally Posted by Yorixz
Two things that I couldn't find yet, which I'm really wondering about are; is this hack 'bandwidth-stealing-proof' when you enable guest transfers

Not sure what you mean. If you enable downloads by guests, then anyone can download. However, there is the possibility to set bandwidth/download limits per usergroup (e.g. 5Mb, 25 files per day). For guest users, consumption is are determined per ip address. For logged in users, it is determined per username.

Quote:

Originally Posted by Yorixz
does it allow you to automatically create topics for added downloads (rather than having a comments-like thing.

There's a plugin provided as an 'extra' that automatically creates a thread when a new entry is added / accepted by the moderator.

ravi 09-25-2006 11:48 PM

AndrewD you are a MAESTRO PHP CODER
I have seen complex VB modifications before but this is Huh!!
HaTTs Off To You and thank you very much.

I was never inspired by mods to VB and I prefered to use it as it is. But now I love to use your system. You know what this is my first post here in 2+ years :D

Zowners 09-26-2006 01:56 AM

Is this like the links mod for SMF RC3? If so do you have one for 3.6.1? Thank you. :=)

ravi 09-26-2006 01:59 AM

I have installed this addon now, I have a small issue with the way links to ldm entry in auto created thread are opening new windows. I am using the autocreate_2way_plugin. Link created to the thread in ldm entry is opening in the parent window itself, I love this link opening in parent window.
Now my request is can we autocreate threads with links to ldm entries that open in same window and not new windows. I think as the links and download system is an in site, in domain thing and there is no need of opening new windows as users can browse through the forum using the links in the navbar itself and also browsers back and forward buttons.
Andrew I really appreciate your help, you have done so much with this addon.

AndrewD 09-26-2006 05:01 AM

Quote:

Originally Posted by ravi
I have installed this addon now, I have a small issue with the way links to ldm entry in auto created thread are opening new windows. I am using the autocreate_2way_plugin. Link created to the thread in ldm entry is opening in the parent window itself, I love this link opening in parent window.
Now my request is can we autocreate threads with links to ldm entries that open in same window and not new windows. I think as the links and download system is an in site, in domain thing and there is no need of opening new windows as users can browse through the forum using the links in the navbar itself and also browsers back and forward buttons.
Andrew I really appreciate your help, you have done so much with this addon.

Thanks for your kind words.

I think the easiest way to have the thread-link open in the same window is as follows:

a) Create a "custom bbcode" (vb/admin) called LURL, with the following as the replacement:
Code:

<a href="{option}">{param}</a>
b) Edit (vb/admin) the phrase ldm_thread_create_body and change the sequence
Code:

To check it out, visit [ url={3}]{1}[/url ]
to
Code:

To check it out, visit [lurl={3}]{1}[/lurl]
ie change the url tag to a lurl tag

One point to note. Standard vbulletin handling of the url tag includes checks to stop hackers putting rogue jumps with javascript, etc, onto your board. A custom bbcode does not include these checks. (There is a way to cope with this, but I haven't time to do this at the moment.)

Yorixz 09-26-2006 05:15 AM

Quote:

Originally Posted by AndrewD
Not sure what you mean. If you enable downloads by guests, then anyone can download. However, there is the possibility to set bandwidth/download limits per usergroup (e.g. 5Mb, 25 files per day). For guest users, consumption is are determined per ip address. For logged in users, it is determined per username.

I'm sorry, I should have said it somewhat clearer, I was aiming at hotlinking to files, but it seems that this wont work.

Quote:

There's a plugin provided as an 'extra' that automatically creates a thread when a new entry is added / accepted by the moderator.
Alright, thanks a lot, for both your answer and this superduper mod ;)

ravi 09-26-2006 08:20 PM

Thank you Andrew for the custom bbcode it works like a charm, regarding the implications I will take a chance till I find some solution or till you comeup with a solution.

I don't know whether I have done right or wrong, I have tried to edit the phrase ldm_thread_create_body, but I could not edit it other than adding a translation it didn't worked even after doing that, changing sequence didn't found that option so I deleted the translation I created from the phrase table ia phpmyadmin. I have edited the original phrase phrase ldm_thread_create_body in database from
PHP Code:

new entry has been added to {4Description: {2To check it outvisit [url={3}]{1}[/url

PHP Code:

new entry has been added to {4Description: {2To check it outvisit [lurl={3}]{1}[/lurl

Now everything is working as intended and links in auto created threads are opening in same window. I hope no problems arise because of my phrase translation deletion from the database :confused:

|oR|Greg 09-27-2006 05:52 PM

Something I came up with... In the FORUMDISPLAY template whether or not a certain forum should have links to creating new LDM entries... just like the New Thread button, it's limited to the forums you specify. I have attached my buttons, they're ugly, but they're all I could do in short time.

Place the code right after:

Code:

<if condition="$show['newthreadlink']">
You add:

Code:

<if condition="in_array($forumid, array(25,0,0))">
<a href="local_links.php?action=addlink&catid=8" rel="nofollow"><img src="$stylevar[imgdir_button]/new_video.gif" alt="Add New Video Entry" border="0" /></a>
&nbsp;<a href="local_links.php?action=addlink&catid=7" rel="nofollow"><img src="$stylevar[imgdir_button]/new_audio.gif" alt="Add New Audio Entry" border="0" /></a>&nbsp;</if>

Where 25 is the number of the forum you want the link(s) to appear in.

LIVE EXAMPLE

There is probably an easier way of doing this without the array piece, but it works... so.

bashy 09-28-2006 05:47 PM

Hi, I am getting this error when i try to add the image folders

The following setting(s) are invalid
file_icons_dir : http://www.bashys-place.com/forums/i...wnloadmanager/
Cannot find http://www.bashys-place.com/forums/i...wnloadmanager/

Any advice please, i get the same for the thumbs as well, this is the url ive put
http://www.bashys-place.com/forums/i...ownloadmanager its also set to 777

I am also seeing this in the Key Settings, Low value for MySQL wait_timeout, whats this mean and is there a way to sort it please?

AndrewD 09-28-2006 07:09 PM

Quote:

Originally Posted by bashy
Hi, I am getting this error when i try to add the image folders

The following setting(s) are invalid
file_icons_dir : http://www.bashys-place.com/forums/i...wnloadmanager/
Cannot find http://www.bashys-place.com/forums/i...wnloadmanager/

Any advice please, i get the same for the thumbs as well, this is the url ive put
http://www.bashys-place.com/forums/i...ownloadmanager its also set to 777

You don't need the full url. Just give these relative to your forums dir, i.e. /images/downloadmanager

Quote:

Originally Posted by bashy
I am also seeing this in the Key Settings, Low value for MySQL wait_timeout, whats this mean and is there a way to sort it please?

wait_timeout is the length of time that MySQL on your web server waits before dropping a connection to the database. If your web server has a very short value for this parameter, then you may experience error messages with large file downloads, because these take longer than wait_timeout seconds to complete. I've tried to overcome this problem in version 2.2.6, but the fix creates new problem. This message is just a warning - you can overcome it by changing the parameters for MySQL, but most people don't have access to these parameters.

bashy 09-28-2006 07:20 PM

Thanks Andrew although, I had already tried /images/downloadmanager still didnt work, this is what it says

The following setting(s) are invalid
thumbs_dir : /images/downloadmanagerthumbs
Directory /images/downloadmanagerthumbs (/home/bashys/domains/bashys-place.com/public_html/images/downloadmanagerthumbs) doesn't exist and I can't create it

This issue is now witht he thumbs directory...

vfxpro 09-29-2006 12:41 AM

I'm running vB 3.6.0 with LDM 2.2.5 and I've noticed a strange bug. My download allowances are set in MB per 30 days. But they've all set to -30 (mb I suppose they don't have a value associated with them)

Everytime I try to reset the file size limit to anything above 90M it resets to -30.

What gives? :)

I just noticed that when I set the days to 30 it triggers the glitch, when I set the "allowance period" to 1 day I can crank up the allowed file size.

25 Days seems to be the limit. Anymore days in the Allowance period and the bytes allowance gets set to a negative version of the allowance period digits. strange...

AndrewD 09-29-2006 04:57 AM

Quote:

Originally Posted by bashy
Thanks Andrew although, I had already tried /images/downloadmanager still didnt work, this is what it says

The following setting(s) are invalid
thumbs_dir : /images/downloadmanagerthumbs
Directory /images/downloadmanagerthumbs (/home/bashys/domains/bashys-place.com/public_html/images/downloadmanagerthumbs) doesn't exist and I can't create it

This issue is now witht he thumbs directory...

Sorry if this seems confusing. I really should change those dialogues to drop-down menus pre-populated with the available directories. Also the info text is not the most helpful, I realise.

The thumbs directory is specified relative to the web root but the icons are relative to the forums directory. If your images/downloadmanagerthumbs is sitting in /forums, then you need to set /forums/images/downloadmanagerthumbs.

AndrewD 09-29-2006 05:00 AM

Quote:

Originally Posted by vfxpro
I'm running vB 3.6.0 with LDM 2.2.5 and I've noticed a strange bug. My download allowances are set in MB per 30 days. But they've all set to -30 (mb I suppose they don't have a value associated with them)

Everytime I try to reset the file size limit to anything above 90M it resets to -30.

What gives? :)

I just noticed that when I set the days to 30 it triggers the glitch, when I set the "allowance period" to 1 day I can crank up the allowed file size.

25 Days seems to be the limit. Anymore days in the Allowance period and the bytes allowance gets set to a negative version of the allowance period digits. strange...

I imagine that this is an integer overflow (25x90M is about 2 billion, which on some hosts is the maximum size of number that is stored). Mea culpa - I'll correct this in the next release. In the meantime, pls use combinations of days time allowance which are less than 2 billion.

arcadian_girl 09-29-2006 11:04 AM

Hi - I was wondering, how do my members actually upload files? I've set the permissons and everything, but when they click "add entry", they're given a forum to fill out the title and description ect, but there's no browse button to fin d the file and actually upload it. or have I done something wrong?

AndrewD 09-29-2006 11:32 AM

Quote:

Originally Posted by arcadian_girl
Hi - I was wondering, how do my members actually upload files? I've set the permissons and everything, but when they click "add entry", they're given a forum to fill out the title and description ect, but there's no browse button to fin d the file and actually upload it. or have I done something wrong?

Have you also set the admin upload settings?

Go to LDM/admin/settings. There's a section towards the bottom - Controls on File Uploads. You have to explicitly enable uploads and you have to give a directory where the uploads will be stored.

When this is done, the "Add Link" data entry form for any user that is authorised to upload will include extra fields with the 'Browse' button.

These fields are only visible under these circumstances.

arcadian_girl 09-29-2006 12:32 PM

got it now, thanks a lot :)

EasyTarget 10-01-2006 09:29 AM

just noticed the new beta.. I'll give it a shot tomorrow. Thanks for the work Andrew.

interceptor 10-01-2006 04:23 PM

I see before many others have that problem
When i go on Links and Download manager i get that
you do not have permission to access

AndrewD 10-01-2006 04:39 PM

Quote:

Originally Posted by interceptor
I see before many others have that problem
When i go on Links and Download manager i get that
you do not have permission to access

Sorry, but I'll need more information to help you. Am happy to take a look at your site if you send me a PM with an admin username and password


All times are GMT. The time now is 12:04 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.02514 seconds
  • Memory Usage 1,906KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (25)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