vb.org Archive

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

AndrewD 04-11-2008 03:29 AM

Quote:

Originally Posted by IR15H (Post 1487561)
Okay. When I install this on my live board, if any of my IE users are able to reproduce this (browser) issue I'll simply disable the JW player, and do it via WMP, as that works fine :).

--------------

I've found another comments bug. With settings of dropdown_width_comment_and_rate = 60 and dropdown_rows_comment_and_rate = 5, I get the following result;
The numbers I chose are arbitrary, but the comments do not match the values I set. This is the same for in-line comments, too.

---------

I also found a picture related bug;
The blank space is a picture upload entry.

EDIT:

Oh, and also, a very minor thing when you create a new entry. If you type something in the "Name" field and then press the TAB key on your keyboard it jumps to the "New Keywords" field, missing out the "Description" input area.

OK, thanks

I know about the tab problem - it's related to the way in which vb builds the editor control - will take another look.

HBAndrew 04-12-2008 08:23 AM

Hello, fantastic mod it will probably get used a lot on my site, have a couple questions.

I have a section for people to release maps for games, and would like a way for them to input the author of the maps to be shown on the entry page in the same area as all the info like filesize etc. Now I know 2.2.9 has this attributes thing, however it feels incomplete or limited to me.

I would like a way to place custom fields to look just like any other field on the entry form in any position, but also be shown on a per category basis so people uploading other things elsewhere don't get this Author option to choose from, and can be set if it should be mandatory or not. I would also like it to not show up with the group name before it, eg. Author: Name instead of Maps: Author: Name, tried putting 0 in display order for the group name and leaving Author as 1 but both vanished.

It seems that allowing general users to add custom attributes to entries shows all the custom attributes every time they create an entry within any category wether or not they are set to 0 display order for the category, just feels like this attributes thing is nothing like custom fields at all and is too limited still.

I have also noticed, using Short (Title+Thumb) for template_altbit has made the title of entries vanish and no way at all to view them.

Any work still being done on custom fields stuff? Currently using 2.2.8 with 3.6.9 so not important untill 2.2.9/3.7 is properly released.

Chewy954 04-12-2008 06:06 PM

when I click a link I get redirected to say:

http://cheatingnetwork.net/local_links/jump/1/1

and it doesnt work, is this a .htaccess issue?

AndrewD 04-13-2008 07:41 AM

Quote:

Originally Posted by HBAndrew (Post 1488896)
Hello, fantastic mod it will probably get used a lot on my site, have a couple questions.

I have a section for people to release maps for games, and would like a way for them to input the author of the maps to be shown on the entry page in the same area as all the info like filesize etc. Now I know 2.2.9 has this attributes thing, however it feels incomplete or limited to me.

I would like a way to place custom fields to look just like any other field on the entry form in any position, but also be shown on a per category basis so people uploading other things elsewhere don't get this Author option to choose from, and can be set if it should be mandatory or not. I would also like it to not show up with the group name before it, eg. Author: Name instead of Maps: Author: Name, tried putting 0 in display order for the group name and leaving Author as 1 but both vanished.

It seems that allowing general users to add custom attributes to entries shows all the custom attributes every time they create an entry within any category wether or not they are set to 0 display order for the category, just feels like this attributes thing is nothing like custom fields at all and is too limited still.

I have also noticed, using Short (Title+Thumb) for template_altbit has made the title of entries vanish and no way at all to view them.

Any work still being done on custom fields stuff? Currently using 2.2.8 with 3.6.9 so not important untill 2.2.9/3.7 is properly released.

Thanks - as you say, the custom fields stuff is new for 2.2.9, and the important first step was to get the plumbing in place. I have every intention to continue developing this according to the interest people express. I will think about what you say regarding extensions.

Its not true that every attribute is offered in every category for every entry. You set up the available attributes on the global admin page, then you set up which of these are relevant for the category on the category page, then you are only given these attributes to define for entries added/edited in the category.

AndrewD 04-13-2008 07:42 AM

Quote:

Originally Posted by Chewy954 (Post 1489216)
when I click a link I get redirected to say:

http://cheatingnetwork.net/local_links/jump/1/1

and it doesnt work, is this a .htaccess issue?

You've probably enabled 'seo_friendly' on the ldm/admin page without configuring your web server/vbseo to deal with the urls that LDM then creates.

RikiB 04-13-2008 05:33 PM

Is there a way to reset the download count on a per user basis? I have the download limit set but I would LOVE the ability to reset it for some people if they run out of download attempts for technical reasons.

Riki

anarx 04-15-2008 10:00 AM

damn, this is hot! ty! - installed -

edit: The images don't show up in the description:

AndrewD 04-15-2008 01:45 PM

Quote:

Originally Posted by anarx (Post 1491116)
damn, this is hot! ty! - installed -

edit: The images don't show up in the description:

Have you set *link_imagesize*? ldm/admin/settings

anarx 04-15-2008 02:29 PM

Quote:

Originally Posted by AndrewD (Post 1491264)
Have you set *link_imagesize*? ldm/admin/settings

that was the problem - fixed, ty !

another problem: If I use the "modern - short desription" style I just see a short descripton ... yes, that's what I wanted. But I don't see a "read more" link. I am just able to see the whole description if I click the "rate/comment" button.

Is there a way to add a "Read more" button? Maybe with a simple template edit?

ty, anarx

EDIT: I found a way:
in template links_linkbit_mshort :

under $linkshortdesc add:
Code:

        <a href="$LINKS_SCRIPT.php?linkid=$linkid&amp;catid=$viewcatid&amp;lpage=$pagenumber"> [Read more]</a>

AndrewD 04-15-2008 05:10 PM

Quote:

Originally Posted by anarx (Post 1491292)
that was the problem - fixed, ty !

another problem: If I use the "modern - short desription" style I just see a short descripton ... yes, that's what I wanted. But I don't see a "read more" link. I am just able to see the whole description if I click the "rate/comment" button.

Is there a way to add a "Read more" button? Maybe with a simple template edit?

ty, anarx

EDIT: I found a way:
in template links_linkbit_mshort :

under $linkshortdesc add:
Code:

        <a href="$LINKS_SCRIPT.php?linkid=$linkid&amp;catid=$viewcatid&amp;lpage=$pagenumber"> [Read more]</a>

Just so, I'll include this in the 2.2.9 RC. You don't need the lpage param - that's for paginating inside the ratings.

RikiB 04-16-2008 05:46 PM

</invisibility>

;D

AndrewD 04-17-2008 05:50 AM

Quote:

Originally Posted by RikiB (Post 1492339)
</invisibility>

;D

Me? You? Something else?

RikiB 04-17-2008 12:55 PM

oh, sorry. I asked is there a way to reset the download count on a per user basis? I have the download limit set but I could really use the ability to reset it for some people if they run out of download attempts for technical reasons.

thanks again :)

Riki

Mazzle 04-17-2008 03:45 PM

Would the downloads provided in such a setup be secure? In other words, would only members of the forums be able to download it? Would there be any way for a member to give a valid url of some sort to a non-member so that they could download it without joining? I was thinking about making a paid membership site for certain piece of software I want to sell and was wondering if this would be a good solution.

RikiB 04-17-2008 03:56 PM

I would say that this is a great solution for what you want. The downloads are 100% secure as far as I can tell. You cannot give your friend a link that would work. Im sure Andrew could explain it better than me, but I have paid membership download section and it works amazing well for it.

AndrewD 04-17-2008 05:37 PM

Quote:

Originally Posted by RikiB (Post 1492931)
oh, sorry. I asked is there a way to reset the download count on a per user basis? I have the download limit set but I could really use the ability to reset it for some people if they run out of download attempts for technical reasons.

thanks again :)

Riki

I've just had a few days vacation, so I've only been answering the quick questions. I think this is straightforward, but will give you a full answer over the weekend.

AndrewD 04-17-2008 05:39 PM

Quote:

Originally Posted by Mazzle (Post 1493060)
Would the downloads provided in such a setup be secure? In other words, would only members of the forums be able to download it? Would there be any way for a member to give a valid url of some sort to a non-member so that they could download it without joining? I was thinking about making a paid membership site for certain piece of software I want to sell and was wondering if this would be a good solution.

Provided you set up the correct permissions, the download links are fully secure. Furthermore, if you configure lDM to store files outside the web space, they are also completely secure against someone guessing the filename (which is not easy anyway as uploads are stored using random filenames)

webgeek247 04-17-2008 07:00 PM

Hmmm, how come i have the below extra fields on my forums profile...

My Recent LDM Hits

My Recent LDM Entries

nothing in them. where are the settings for them please, Andrew?

webgeek247 04-17-2008 09:56 PM

Also, is it possible to stop a certain usergroup adding entries to a parent category for example

I have

Mixes
--Trance
--Techno
--House

etc etc

I only want a certain usergroup to be allowed to add entries to the Trance, Techno and House categories only, NOT the parent Mixes section

I've had a look through the settings but can not work out how do set it like this

RikiB 04-17-2008 10:17 PM

Andrew, I am currently having issues with a few people having severely slow download speeds unless they use a download manager, and when they do use a dlm it can sometimes stop before its complete. I am currently distributing very large files (up to 1GB) and have the file on 2 servers different than ldlm (1 is a mirror). One solution I am considering is splitting the files into smaller sizes (500MB), also I will either upgrade to B1 or downgrade to 2.8. Do you think any of this will help?
Thanks

RikiB 04-18-2008 01:23 AM

Ok, so what I discovered is the reason its fast with a dlm is because of the "allow_http_ranges " is enabled. If I disable this, the speed go dramatically down.

Now, if I link directly to the external file I want, the speed is 800k/s super fast.
If I stream an external link through ldlm the speed is slow and variable (50k-130k).

Why would streaming (force_redirect=0) a file through ldlm cause the speed to go down so much? Also, why would using http ranges make the speed faster (yet in some cases a tad unstable)?

Is there any way I can fix this? I use a shared server, perhaps tweaking the php.ini file? Does the speed of the server ldlm lives on limit the speed files are streamed through ldlm?

Please help me understand my situation so I can make a smart decision on how to make ldlm work.
Thanks again!
Riki

AndrewD 04-18-2008 08:11 AM

Quote:

Originally Posted by RikiB (Post 1493429)
Ok, so what I discovered is the reason its fast with a dlm is because of the "allow_http_ranges " is enabled. If I disable this, the speed go dramatically down.

Now, if I link directly to the external file I want, the speed is 800k/s super fast.
If I stream an external link through ldlm the speed is slow and variable (50k-130k).

Why would streaming (force_redirect=0) a file through ldlm cause the speed to go down so much? Also, why would using http ranges make the speed faster (yet in some cases a tad unstable)?

Is there any way I can fix this? I use a shared server, perhaps tweaking the php.ini file? Does the speed of the server ldlm lives on limit the speed files are streamed through ldlm?

Please help me understand my situation so I can make a smart decision on how to make ldlm work.
Thanks again!
Riki

Here's the story:

- When you use LDM in its default configuration (force_redirect=0), LDM reads the file and retransmits it to the user. If the cURL library is available to PHP on your server and the download has been specified using a full url, the transfer runs as efficiently as is possible. If you do not have cURL or if the file is on the server and specified using a local filename (i.e. no http: at the front), the file is read and transmitted in blocks (by default 32Kbytes in size; 256K bytes on Windows servers). In that situation, it is possible that transfers of large files will proceed faster with a larger block size, at cost of larger memory requirement. We need to do some tests.

- Download managers gain their speed improvement by making multiple connections to LDM, to request different sections of the file. Within the limits of server capacity, these sections are transmitted in parallel, and the download manager then reconstructs the whole file. This process speeds things up for the user but increases load on the server, and can quickly kill a shared server. If you disable allow_http_ranges, then download managers are not allowed to make multiple requests. The file gets transferred sequentially.

- If you set force_redirect to 1, then LDM does not intervene in the handling of the transfer. The speed of the transfer depends entirely on the construction of the web server. One side effect is that inquisitive users can find out where the file is stored, and bypass your security.

Transfer efficiency and speed (and also server load) depend critically on certain factors. If the file is physically stored on a different server, there is a *large* overhead involved in fetching the file and retransmitting it. Transfer of remote files will *always* be much faster if force_redirect is set to 1, at the costs of reduced security, because the transfer is being handled directly (and solely) by the server on which the file is stored.

Here's the catch: If you set up a local file using its full url (i.e. http: // yoursite / yourdir / yourfile.typ) instead of using the local filename ( / yourdir / yourfile.typ), LDM has to assume that the file is remote. This is because web servers may have been set up with redirections, mod_rewrite, etc.) So transfers of local files specified with full urls are much slower (and also more expensive in server load) than when specified as local files.

So the broad answer to your question is 'yes, you can certainly tweak LDM to work faster', but you may end up putting a very large load on the server if you try to squeeze every drop of speed by allowing too many simultaneous transfers. Other sites have had to limit their use of LDM for transferring large files because they have put too much load on the server.

My recommendation is:

- specify local files using local file names, not full urls
- do not offer downloads of large files hosted on other servers
- make sure the curl library is available

RikiB 04-18-2008 01:14 PM

wow, thanks for the detailed explanation. This does make a lot of since. I have been avoiding this, but it seems if I want to sell large downloads, I will have to pay for a dedicated server..ouch. I was hoping ldlm would prevent me from having to go that rout with the clever hidden external links. I appreciate your time.
Riki

RikiB 04-18-2008 06:16 PM

about the cURL, these are my php settings

PHP
allow_url_fopen Yes
cURL Yes
GD2 Yes
open_basedir not set
post_max_size 8M
upload_max_filesize 2M
MySQL 5.0.45-community
wait_timeout 200

What will happen if I change this setting to Yes?
force_fopen
Prevent use of cURL library for network file handling. Only meaningful when cURL library is installed. Do not change this setting unless you know what you are doing.

AndrewD 04-18-2008 07:12 PM

Quote:

Originally Posted by RikiB (Post 1493978)
about the cURL, these are my php settings

PHP
allow_url_fopen Yes
cURL Yes
GD2 Yes
open_basedir not set
post_max_size 8M
upload_max_filesize 2M
MySQL 5.0.45-community
wait_timeout 200

What will happen if I change this setting to Yes?
force_fopen
Prevent use of cURL library for network file handling. Only meaningful when cURL library is installed. Do not change this setting unless you know what you are doing.

Your settings suggest that everything is installed correctly.

As the parameter name suggests, it will disable use of the cURL library, which is used for transferring files from remote servers. The alternative code uses functions built into php, which I think are not as efficient, but are sometimes useful for debugging.

fortnox 04-19-2008 09:50 AM

Hi!

In Moment I Use Vb 3.5 and LDM 2.1.2.

Next Time i want upgrade my VBulletin and LDM. Can anybody say me, what i have to do if i want to hold the links etc.... ?

Very Thanks :)

AndrewD 04-20-2008 12:53 PM

Quote:

Originally Posted by fortnox (Post 1494356)
Hi!

In Moment I Use Vb 3.5 and LDM 2.1.2.

Next Time i want upgrade my VBulletin and LDM. Can anybody say me, what i have to do if i want to hold the links etc.... ?

Very Thanks :)

I've run a quick test - the upgrade process seems to work correctly from version 2.1.2. First upgrade vbulletin to version 3.7, then upgrade LDM by uploading the version 2.2.9 of the code and installing the product xml file.

AndrewD 04-20-2008 01:54 PM

Quote:

Originally Posted by RikiB (Post 1492931)
oh, sorry. I asked is there a way to reset the download count on a per user basis? I have the download limit set but I could really use the ability to reset it for some people if they run out of download attempts for technical reasons.

thanks again :)

Riki

I'll add the facility on the 2.2.9 RC admin/allowances page to clear bandwidth consumed by individual users during the last 24 hours.

fortnox 04-20-2008 05:00 PM

Quote:

Originally Posted by AndrewD (Post 1495147)
I've run a quick test - the upgrade process seems to work correctly from version 2.1.2. First upgrade vbulletin to version 3.7, then upgrade LDM by uploading the version 2.2.9 of the code and installing the product xml file.

Wow, that`s Great, very Thanks.:)

RikiB 04-20-2008 08:50 PM

Quote:

Originally Posted by AndrewD (Post 1495175)
I'll add the facility on the 2.2.9 RC admin/allowances page to clear bandwidth consumed by individual users during the last 24 hours.

The main thing was the hits, I have a limit set to like 5 hits per user. It would be easiest if I could just reset those hit values on a per user basis. Currently, the only way to give a user more hits is to raise the global hit number, which gives everyone more hits. If I could perhaps give individual users more hits or reset the hits they currently used, either would be great!

Thanks man.

Riki

AndrewD 04-21-2008 03:51 AM

Quote:

Originally Posted by RikiB (Post 1495396)
The main thing was the hits, I have a limit set to like 5 hits per user. It would be easiest if I could just reset those hit values on a per user basis. Currently, the only way to give a user more hits is to raise the global hit number, which gives everyone more hits. If I could perhaps give individual users more hits or reset the hits they currently used, either would be great!

Thanks man.

Riki

It's not easy (without rewriting quite a lot of the code) to give individual users a temporary extra allowance or temporarily ignore the allowances for them only. The change I've made will allow you to tell LDM to treat an individual user's hits for the last 24 hours as being 'zero size'. LDM does not count such hits against either the files or the bytes allowances.

AndrewD 04-21-2008 04:25 AM

Edited - moved to start of thread

RikiB 04-21-2008 06:29 AM

I tested the feature and it looks like it only works with the allowances and not the limitaccess-byhits-plugin. I like the idea a lot but is there a way to make it work with this plugin as well?

Nice updates in the RC btw! :)

Riki

AndrewD 04-21-2008 06:49 AM

Quote:

Originally Posted by RikiB (Post 1495600)
I tested the feature and it looks like it only works with the allowances and not the limitaccess-byhits-plugin. I like the idea a lot but is there a way to make it work with this plugin as well?

Nice updates in the RC btw! :)

Riki

OK, will check.

Rouzbeh1 04-22-2008 07:21 AM

hi Andrew,
thanks for the update :)
i have tested the new version, but it seems not to be able to seo category names correctly
example:
catid:13
catname: Some Name
seo name (output): c-Some Name-13
which should be: c-some-name-13 (no CAPS and - instead of space)
and for some reason i couldn't get it to work.

thanks a lot again

webgeek247 04-22-2008 03:09 PM

Quote:

Originally Posted by AndrewD (Post 1495560)
SWFUpload extra works correctly when wrapped in subdreamer site

Yes, this works fine now. Thanks

Edit: I couldn't get the seo links to work with vBSEO. I asked on their forums last night but haven't had a reply yet

Feel free to test it if you like Andrew

AndrewD 04-22-2008 04:15 PM

Quote:

Originally Posted by Rouzbeh1 (Post 1496373)
hi Andrew,
thanks for the update :)
i have tested the new version, but it seems not to be able to seo category names correctly
example:
catid:13
catname: Some Name
seo name (output): c-Some Name-13
which should be: c-some-name-13 (no CAPS and - instead of space)
and for some reason i couldn't get it to work.

thanks a lot again

Sorry, I'd missed the capitals and spaces. Here's a modified version of includes/local_links_include.php

If you set seo_friendly to 2, you need a different set of mod_rewrite rules. These are the ones I am using as test. If you also set seo_title, then you need to replace local_links in the first part of each rule by your seo_title:

Code:

RewriteRule (.*)local_links/links/c-[^/]+-([0-9]+)$        $1local_links.php?catid=$2 [R,L]
RewriteRule (.*)local_links/links/c-[^/]+-([0-9]+)/([0-9]+)$                $1local_links.php?catid=$2&linkid=$3 [R,L]
RewriteRule (.*)local_links/jump/c-[^/]+-([0-9]+)/([0-9]+)$        $1local_links.php?action=jump&catid=$2&id=$3 [R,L]
RewriteRule (.*)local_links/play/c-[^/]+-([0-9]+)/([0-9]+)$        $1local_links.php?action=play&catid=$2&linkid=$3 [R,L]
RewriteRule (.*)local_links/links/c-[^/]+-([0-9]+)(\?page=[0-9]+)$        $1local_links.php?catid=$2&page=$3        [R,L]
RewriteRule (.*)local_links/play/c-[^/]+-([0-9]+)/([0-9]+)(\?page=[0-9]+)$        $1local_links.php?action=play&catid=$2&linkid=$3&page=$4        [R,L]


AndrewD 04-22-2008 04:19 PM

Quote:

Originally Posted by djpassion (Post 1496622)
Yes, this works fine now. Thanks

Edit: I couldn't get the seo links to work with vBSEO. I asked on their forums last night but haven't had a reply yet

Feel free to test it if you like Andrew

I don't have access to the relevant part of the LDM admin - the maintenance section is restricted to superadmins.

Have you taken a look at the mod_rewrite rules I have posted in the wiki? I don't know how vbseo works - I have never bought a copy.

webgeek247 04-22-2008 04:32 PM

Hmm, you have the same admin rights as me. There isnt and Super Admin group on my forum. Just Admin. Will send you pm Andrew.

webgeek247 04-22-2008 04:43 PM

Pm sent.


All times are GMT. The time now is 11:40 PM.

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.02560 seconds
  • Memory Usage 1,870KB
  • 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
  • (3)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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