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)

Ophelia 10-24-2006 01:43 PM

Hi Andrew (boy are you going to dread seeing me).

http://www.gottapixel.net/forum/showthread.php?p=74347

Folks are still having an issue with the Accept / Decline page. It appears that there are still some issues with download managers affecting it... but there is one person who claims they don't have a DL Manager. I wish I could sit at a computer that it does this on so I can get the true configurations of what is on it :sigh

Ophelia 10-24-2006 02:47 PM

I might not be understanding how to do this... so bear with me :)

We have 1001 pages of download stats.

I go to Admin > Stats > View Hits

I check Delete Download Records

nothing happens

So I click Archive. It allows me to download the records, but it does not delete the records.

Am I doing something wrong?

AndrewD 10-24-2006 04:10 PM

Quote:

Originally Posted by EasyTarget
is there a way to edit all entries which have a url of /forum/files to be changed to http://sitename.com/files?

I moved my hosting to have access to the machine but its a much slower file host. I left all my files on the previous host and want to just keep the path the same except lose the /forum part of it since there will no longer be forums at the old url.

even if its using the db to do it that's fine, I just don't want to go through 1 by 1 and edit them all if I don't have to. (I have a lot of files mixed in with other urls as well so I can't just edit every single entry)

There's a mass edit feature built into the LDM admin/categories - at least per category. See attached image.

AndrewD 10-24-2006 04:12 PM

Quote:

Originally Posted by glenvw
I am using your hack but also had someone create a phrase and integrate it so that the welcome header box appeared the same whether logged in or not not registered. Obviously the message is different on the registered welcome header. I just like the uniform look. Maybe this could be worked into your hack?

See: http://www.warmislands.com

Isn't this just a straightforward edit to the links_main template?

AndrewD 10-24-2006 04:17 PM

Quote:

Originally Posted by Ophelia
I might not be understanding how to do this... so bear with me :)

We have 1001 pages of download stats.

I go to Admin > Stats > View Hits

I check Delete Download Records

nothing happens

So I click Archive. It allows me to download the records, but it does not delete the records.

Am I doing something wrong?

No, it's me - I 'back installed' an extension that I have written for version 2.2.7 into 2.2.6 without checking it. There's a bug.

If you need to clean things out, do the archive, then use a database tool (phpmyadmin) and empty the links_downloads table.

AndrewD 10-24-2006 04:20 PM

Quote:

Originally Posted by Ophelia
Hi Andrew (boy are you going to dread seeing me).

http://www.gottapixel.net/forum/showthread.php?p=74347

Folks are still having an issue with the Accept / Decline page. It appears that there are still some issues with download managers affecting it... but there is one person who claims they don't have a DL Manager. I wish I could sit at a computer that it does this on so I can get the true configurations of what is on it :sigh

My friend, the next time I'm wherever you live, you buy me a really nice dinner.....

I'll take another look !!

EasyTarget 10-24-2006 05:39 PM

thanks andrew, the project was a breeze. Not only can you mass update categories but you can mass update the mass update lol.. so I didn't have to go category by category but I could do every single file that it applied to.

With over 1000 files it was only a matter of minutes to do. I also appreciate the color coding so that I could distinguish easily from local and remote hosting.. that made it so much faster.

Ophelia 10-24-2006 07:25 PM

Quote:

Originally Posted by AndrewD
If you need to clean things out, do the archive, then use a database tool (phpmyadmin) and empty the links_downloads table.

Thank you!

Quote:

Originally Posted by AndrewD
My friend, the next time I'm wherever you live, you buy me a really nice dinner.....

I'll take another look !!

Deal! My favorite is the Outback... you can even order the Alaskan King Crab :)

obmob 10-24-2006 10:36 PM

Outback is good... geez, i love meat :D

OK, here is my spanish translation for 2.2.6... no, i didn't forget, i was just lazy :)

Now, back to business... well, i lost all my templates again when updating to 2.2.6, that was meant to be? :confused:

And... Andrew, how do i use that image resizing feature you told me about?

Is it somewhere in the wiki? :classic:
Thanks

EasyTarget 10-25-2006 05:03 AM

I recently moved all the files off of the server I'm hosting on to a remote url which I also own. If I use the ldm to download the file my speed is MUCH slower than if I link to the file in my browser. (I'm not talking about the time for the download to start, I mean the duration of the entire download). Is there a way to avoid this? it counteracts the whole reason I moved the files.

AndrewD 10-25-2006 07:37 AM

Quote:

Originally Posted by EasyTarget
I recently moved all the files off of the server I'm hosting on to a remote url which I also own. If I use the ldm to download the file my speed is MUCH slower than if I link to the file in my browser. (I'm not talking about the time for the download to start, I mean the duration of the entire download). Is there a way to avoid this? it counteracts the whole reason I moved the files.


I wondered if you'd find this. It's all explained in the wiki, but probably lost in the annals of time.

If you set up LDM with all the (default) security settings turned on, then you've told LDM to keep the file location hidden from the end user. To do this securely for 'downloads' (i.e. files with filetypes that appear in your VB attachments table), it reads the file a block at a time and then transfers these blocks to the user.

This process is:

a) very quick if the file is on the same server as LDM and is referenced just using a local filename
b) slow and expensive if the file is on another server, because the code has to physically read the file over the internet and then retransmit it to the user - everything goes over the internet twice
c) somewhere in between if the file is actually on the same server but is referenced using a full url rather than a local filename.

I 'guestimate' that there is a factor of 1000 difference between case a and b.

When you simply type the url into the browser, then the file is obtained directly from the server on which it is held. There is no need to buffer the file somewhere, and there is also no need to involve a php script in the transfer - everything is dealt with by Apache/IIS/etc, which are 'hard coded' for efficiency.

Now, you can tell LDM to behave the same way as Apache, by setting LDM/admin/settings/force_redirect to 1 or 2. This will recover the speed, but it will no longer guarantee that the file location is secure from prying users. Case 2 is the most visible. Case 1 is partly hidden, but the really inquisitive user can discover where the file is held. Case 0 is fully secure at the cost of slow speed and extra cpu and double bandwidth.

Incidentally, if the file type is not in the VB attachments table, LDM always behaves as if force_redirect = 1

So this is the choice you have to make.

hotwheels 10-25-2006 01:26 PM

I am kind of confused on this. After the install and going to set the local_file_root and local_file_root_prefix. What exactly am i going to put in there.....? I attached an image of the local and icon's not being enabled......I set a path for the icons and they will not appear with ldm. If i go to the icon's through my server and click on the link inside the ldm icons file, i am directed to the icon, but using the same addy inside the ldm setting's page, it keep's saying that it can't find the file......

|oR|Greg 10-25-2006 01:44 PM

Andrew, I added this and a little advertising for ya. https://vborg.vbsupport.ru/showthread.php?t=129933

Ophelia 10-25-2006 02:12 PM

Quote:

Originally Posted by obmob
Outback is good... geez, i love meat :D

Meat is good!

EasyTarget 10-25-2006 02:47 PM

Thanks Andrew, I went with option #1. I'll just add some redirect index pages to keep people from indexing the file server.

hotwheels 10-25-2006 04:27 PM

As well as this 532 where exactly is the php.ini file located......I have looked everywhere that i can think of and i just can't locate it for some reason.
I tried to install a video and it said that it was to large for my php.ini settings.....

|oR|Greg 10-25-2006 04:48 PM

PHP.INI I think is a file PER folder on your server. You can adjust it also usually by the PHPMYADMIN settings on your site. I set mine to 80mb I think.

AndrewD 10-25-2006 06:41 PM

Quote:

Originally Posted by hotwheels
I am kind of confused on this. After the install and going to set the local_file_root and local_file_root_prefix. What exactly am i going to put in there.....? I attached an image of the local and icon's not being enabled......I set a path for the icons and they will not appear with ldm. If i go to the icon's through my server and click on the link inside the ldm icons file, i am directed to the icon, but using the same addy inside the ldm setting's page, it keep's saying that it can't find the file......

local_file_root and local_file_root_prefix are, if you like, specialised features for people who are running the web site on a server that is fully under their own control. They give you the possibility to increase security, but only if you really understand what you are doing and only if you do have full control of your server. If you don't, leave the settings alone.

Basically, these are used to control how LDM locates the downloadable files which it manages and which are stored on the server itself. LDM by default does a pretty good job of hiding the location of file downloads. However, if you really want to make sure that no-one can get at your files except through LDM, then you use these parameters to tell the program whereabouts on the web server the files are to be placed. All 'lookups' are translated to this part of the file system.

Concerning the icons setting, if you upload the icons into subdirectory ldm_icons of your *forums* directory, then set file_icons_dir to ldm_icons.

AndrewD 10-25-2006 06:44 PM

Quote:

Originally Posted by hotwheels
As well as this 532 where exactly is the php.ini file located......I have looked everywhere that i can think of and i just can't locate it for some reason.
I tried to install a video and it said that it was to large for my php.ini settings.....

or_greg's answer is not quite correct.

php.ini is a file that is used by your web server (e.g. Apache) to control how the server handles php scripts. It sets things like maximum time limits for scripts to execute, maximum file upload sizes, and many other settings.

Where the file is stored depends on the web server and the operating system. For example, with a Windows box running Apache, the file is usually dropped into the windows directory itself.

If you do not have full control of your web server, then you will have to ask the system administrators to edit the file on your behalf. Generally, they will know exactly what you are talking about if you mention 'php.ini' and the specific parameters that need changing.

|oR|Greg 10-25-2006 07:02 PM

Andrew, I thought on linux servers you could drop the php.ini per folder and have it be more micro-managed, or, drop it in your root and let it trickle down, assuming you didn't drop another further in your site?

AndrewD 10-26-2006 05:22 AM

Quote:

Originally Posted by |oR|Greg
Andrew, I thought on linux servers you could drop the php.ini per folder and have it be more micro-managed, or, drop it in your root and let it trickle down, assuming you didn't drop another further in your site?

You may be right - I'm not a Linux expert - some parts of the apache configuration can certainly be over-ridden, but I'm not sure about php.

AndrewD 10-26-2006 06:04 PM

Quote:

Originally Posted by obmob
Outback is good... geez, i love meat :D

OK, here is my spanish translation for 2.2.6... no, i didn't forget, i was just lazy :)

Now, back to business... well, i lost all my templates again when updating to 2.2.6, that was meant to be? :confused:

And... Andrew, how do i use that image resizing feature you told me about?

Is it somewhere in the wiki? :classic:
Thanks

Thanks... I'll include these in the official 2.2.6 in a few days.

I wasn't aware that updating would lose templates. I thought I'd corrected that, but will check again. Sorry...

I can't recall your question about image resizing - can you remind me?

obmob 10-26-2006 09:14 PM

Hello... well, Andrew, i wanted to show a a thumbnail, a midsized image and maybe a fullsized image... and you told me there was certain code that can be used in linkbit templates to resize the images.

So i'd be able to set different size for a different template o.o

I'm sure it was here... i don't use any other LDM ^.^
Thanks

AndrewD 10-27-2006 05:10 AM

Quote:

Originally Posted by obmob
Hello... well, Andrew, i wanted to show a a thumbnail, a midsized image and maybe a fullsized image... and you told me there was certain code that can be used in linkbit templates to resize the images.

So i'd be able to set different size for a different template o.o

I'm sure it was here... i don't use any other LDM ^.^
Thanks

The url you need to add into your linkbit template will look something like this:

Code:

<if condition="$linkimg">http://yoursite/yourforums/local_resize.php?linkid=$linkid&size=M</if>
where M is the size at which you want to display the image.

For example, these links pull the same image from my site in tiny, small and medium sizes:

http://www.eirma.org/f3/local_resize...kid=96&size=10

http://www.eirma.org/f3/local_resize...kid=96&size=20

http://www.eirma.org/f3/local_resize...kid=96&size=50

rasun 10-28-2006 12:53 PM

When someone reports a bad link, all mods and admins gets an e-mail with this information. How can I change that. I want that reported links will be displayed in the "moderation" field or that only some mods will get a PN with this information...is this possible?

rasun 10-28-2006 09:30 PM

*deleted*...sorry for double poste, please delete this

phovanxua 10-29-2006 03:11 AM

Hi AndrewD

I Installed LDM tonight on my 3.6.2

Look great ,but when I try to Play ...it's open the Juke box for second and then go straight to Download and save file , This file I used the link URL to Add Link
Did I miss something here ?

The other file I used browser to upload ...it's play fine and No problem .

Thanks .

AndrewD 10-29-2006 05:59 AM

Quote:

Originally Posted by rasun
When someone reports a bad link, all mods and admins gets an e-mail with this information. How can I change that. I want that reported links will be displayed in the "moderation" field or that only some mods will get a PN with this information...is this possible?

Thanks for bringing this to my attention. I discover that VB3.6 behaves differently than VB3.5 (in 3.5 there was a per-forum 'warn all admins' feature, which in 3.6 has changed a selection in the vb/options/user infractions). I had not noticed the change, and there's a bug in the current code for vb3.6 as a result.

However, onto your qestion - if the category containing the reported link is 'associated' with a forum with one or more named moderators, then LDM will (should!!) only inform those moderators. Otherwise it warns all mods and admins. I believe that that logic is still working correctly.

I'll look into the best way of handling this correctly in the 'gold' version of 2.2.6.

AndrewD 10-29-2006 06:00 AM

Quote:

Originally Posted by phovanxua
Hi AndrewD

I Installed LDM tonight on my 3.6.2

Look great ,but when I try to Play ...it's open the Juke box for second and then go straight to Download and save file , This file I used the link URL to Add Link
Did I miss something here ?

The other file I used browser to upload ...it's play fine and No problem .

Thanks .

Difficult for me to imagine what is going on. Can you send me a PM with your site's url, so that I can take a look? Thanks

rasun 10-29-2006 08:01 AM

OK thank you for you answer, looking forward to the "gold" version :)


An other question:

I want that external links use a dereferrer (anonym.to) to hide my site as referrer...the final link should looks like this: http://anonym.to?http://www.posted_site.com
Where should I add this to parse the external links automatically like this?
If it?s possible, local links shouldn?t use the dereferrer.

Can you help me with this?

AndrewD 10-29-2006 09:02 AM

Quote:

Originally Posted by rasun
OK thank you for you answer, looking forward to the "gold" version :)


An other question:

I want that external links use a dereferrer (anonym.to) to hide my site as referrer...the final link should looks like this: http://anonym.to?http://www.posted_site.com
Where should I add this to parse the external links automatically like this?
If it?s possible, local links shouldn?t use the dereferrer.

Can you help me with this?


This is the first occasion for months when I have used the LDM slimmed down mod_rewrite feature....

Create and upload a file (e.g.) 'anon.txt' containing the following:

RewriteRule http: http://anonym.to?http:

and go to LDM/admin/settings/mod_rewrite and point the setting at this file.

rasun 10-29-2006 09:32 AM

Yes this works, thank you! :)

Is it possible to use the dereferrer only for external links and local files do not use it...?
Now all links use it.

AndrewD 10-29-2006 09:36 AM

Quote:

Originally Posted by rasun
Yes this works, thank you! :)

Is it possible to use the dereferrer only for external links and local files do not use it...?
Now all links use it.

Are you setting up your local files with a full url? e.g. http://yoursite/yourdir/file.type? This format will trigger the rule

You can just use /yourdir/file.type for local files, which should not trigger it.

rasun 10-29-2006 10:18 AM

Ah ok I see.

Yes I used the full url also for local links...
OK will use the short url´s insted of it.

Any other solutions to recognize local links in full url isn´t possible?

AndrewD 10-29-2006 10:28 AM

Quote:

Originally Posted by rasun
Ah ok I see.

Yes I used the full url also for local links...
OK will use the short url?s insted of it.

Any other solutions to recognize local links in full url isn?t possible?

Sandwich the rule between rules that temporarily patch your own site, e,g,

RewriteRule http://yoursite gttp://yoursite
RewriteRule http: http://anonym.to?http:
RewriteRule gttp://yoursite http://yoursite

(I haven't yet implemented Apache's mod_rewrite option of breaking out of the rewrite tests at first match, which would make this simpler.)

rasun 10-29-2006 11:35 AM

Thanky you, this seems to work. :)

PitchouneN64ngc 10-29-2006 12:27 PM

AndrewD, can you add a little thing for local_links_admin.php?set=statistics (version 2.2.6)?

When there is nothing to be downloaded in the last 24 hours, for the "Access during last 24 hours" line, you have this:
Code:

    0 Hits
    bytes

The query is ok, but the bytes field from the query is empty (only when you have nothing to be downloaded since 24 hours).

After this:
PHP Code:

$linkstats['downloads'] = $count['downloads']; 

Can you add this?
PHP Code:

        if (empty($count['bytes']))
        {
            
$count['bytes'] = 0;
        } 

The result of this code change will display this:
Code:

    0 Hits
    0bytes

Thanks ;)

PS: The french file for 2.2.6 is ready ;)

phovanxua 10-29-2006 12:44 PM

Quote:

Originally Posted by AndrewD
Difficult for me to imagine what is going on. Can you send me a PM with your site's url, so that I can take a look? Thanks

Hi AndrewD ,

Check PM .

AndrewD 10-29-2006 01:10 PM

Quote:

Originally Posted by PitchouneN64ngc
AndrewD, can you add a little thing for local_links_admin.php?set=statistics (version 2.2.6)?

When there is nothing to be downloaded in the last 24 hours, for the "Access during last 24 hours" line, you have this:
Code:

    0 Hits
    bytes

The query is ok, but the bytes field from the query is empty (only when you have nothing to be downloaded since 24 hours).

After this:
PHP Code:

$linkstats['downloads'] = $count['downloads']; 

Can you add this?
PHP Code:

        if (empty($count['bytes']))
        {
            
$count['bytes'] = 0;
        } 

The result of this code change will display this:
Code:

    0 Hits
    0bytes

Thanks ;)

PS: The french file for 2.2.6 is ready ;)

Thanks - noted - will be fixed in the final upload of 2.2.6.

kompakt 10-29-2006 03:30 PM

I like how LDM has grown to be AndrewD. Thanks for the great work.

I noticed that if I edit a category and try go to the control settings or permisisons page, then right before the page finishes loading it redirects to the forum home page. Has anyone else experienced this? [EDIT- This isnt working for me: #176]

The directory sync seems to be working great, though it does not pick up the id3 tags of the files like it does when scanning the folders. How can I modify it to do so?

Also, how can I create a newest categories module, similar to the newest links module for vba cmps? also keep the autocreated threads limited to categories instead of links?

Thanks again :)


All times are GMT. The time now is 11:35 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.02807 seconds
  • Memory Usage 1,877KB
  • 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
  • (4)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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