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)

pplc 11-11-2006 04:49 PM

Just wanted to give a shout to Andrew! Logged into my forum and fixed the problem with my board and my images are now showing up. Andrew you are the bomb!

Alfa1 11-11-2006 10:03 PM

Andrew, about the vbadvanced plugin blocks:
If I want to add multiple blocks, can I just rename the plugin to whatever I like and use it several times under different names?
What are ldm_cat.php and ldm_tot.php?
If I want to display newest files in a certain category, what do I add/change in ldm_new.php?

And something different: I have been tooling around for a while to get the thunbs displayed, but can't seem to succeed. The dir where the thumbs should be stored is empty. I can not find another place where they are. Seems like the function is off. create_thumbs_oninsert is on. Strangely enough the database lists 3 thumbs, which I can not find. I hit reset to see if that helps. Now I've got 0. Where can I mass generate thumbs?

amnesia623 11-12-2006 02:43 AM

Same here.

Great support from AndrewD and much appreciated.

Thanks Again

AndrewD 11-12-2006 05:20 AM

Quote:

Originally Posted by Alfa1
Andrew, about the vbadvanced plugin blocks:
If I want to add multiple blocks, can I just rename the plugin to whatever I like and use it several times under different names?

I'm no expert on vbadvanced, but it seems you can copy/rename the modules in order to use them multiple times. (Actually, you can use a module multiple times without renaming it, but then it becomes difficult to get it to say different things on different parts of the page ;).) The thing to check is the number of database hits you create in the vba page - every module carries a load, although the LDM modules should do most of the initialisation work only one time regardless of how many LDM modules you load up.

Quote:

Originally Posted by Alfa1
What are ldm_cat.php and ldm_tot.php?

ldm_cats.php creates a block which looks like the categories section of the LDM home page, i.e. a list of the top level categories with direct links to them.

See attached image for an example of how these look.

Quote:

Originally Posted by Alfa1
If I want to display newest files in a certain category, what do I add/change in ldm_new.php?

Find the line which reads $filter= and change it as follows:

Code:

$filter = array("link.linkmoderate = 0", "ltoc.catid IN (1,3,5)");
Quote:

Originally Posted by Alfa1
And something different: I have been tooling around for a while to get the thunbs displayed, but can't seem to succeed. The dir where the thumbs should be stored is empty. I can not find another place where they are. Seems like the function is off. create_thumbs_oninsert is on. Strangely enough the database lists 3 thumbs, which I can not find. I hit reset to see if that helps. Now I've got 0. Where can I mass generate thumbs?

A number of people have been having difficulties with this for some time. Every time I find a way to patch the last problem, a new one appears.

Easiest is for me to take a look - I've forgotten my username on your site, and I'll need full admin perms back again.

Last question: thumbs are generated 'on the fly' if they don't exist, i.e. after you click the 'reset thumbs' link. There used to be a mass recreate function, but I realised it was unnecessary.

Alfa1 11-12-2006 01:45 PM

Thanks for that info. I have created a latest music block. How do I limit the number of files displayed?
Your username is same as here and has full admin perms again.

berayiwu5 11-12-2006 08:49 PM

Thanks, AndrewD. Your support has been nothing but phenomenal.

In the "LDM Usage and Quotas" section of the wiki manual (http://www.eirma.org/wikis/index.php...age_and_Quotas), there is a passage that says:

"Limits can be placed on the number of files a user can access and/or the bytes that she can download in a 24 hour period, or both. If both types of limit apply, the first limit to be hit triggers the block. These limits apply individually to registered users, and collectively for unregistered users. Different limits can apply to each usergroup."

What does applying "collectively for unregistered users" mean? Does it mean that if I assign 200MB daily bandwidth allowance to unregistered users, I can have either 20 users using 10MB per day or 40 users using 5MB per day? If a couple of unregistered users have used up 150MB on a given day, does it mean that there wouldn't be much bandwidth left for other unregistered users to use?

Besides, I don't understand how file limits can be meaningfully set collectively for the group of unregistered users, since there is no telling how many unregistered users will visit a site on any given day.

Thanks for your pointers.

AndrewD 11-13-2006 03:53 AM

Quote:

Originally Posted by berayiwu5 (Post 1115703)
Thanks, AndrewD. Your support has been nothing but phenomenal.

In the "LDM Usage and Quotas" section of the wiki manual (http://www.eirma.org/wikis/index.php...age_and_Quotas), there is a passage that says:

"Limits can be placed on the number of files a user can access and/or the bytes that she can download in a 24 hour period, or both. If both types of limit apply, the first limit to be hit triggers the block. These limits apply individually to registered users, and collectively for unregistered users. Different limits can apply to each usergroup."

What does applying "collectively for unregistered users" mean? Does it mean that if I assign 200MB daily bandwidth allowance to unregistered users, I can have either 20 users using 10MB per day or 40 users using 5MB per day? If a couple of unregistered users have used up 150MB on a given day, does it mean that there wouldn't be much bandwidth left for other unregistered users to use?

Besides, I don't understand how file limits can be meaningfully set collectively for the group of unregistered users, since there is no telling how many unregistered users will visit a site on any given day.

Thanks for your pointers.

The manual is out of date on this point, thanks for highlighting that. For unregistered users, the test is now made using their IP address. If you turn on bandwidth limits and set a limit for unregistered users, each IP address will be allowed the speofied number of files/bytes per day. It's not perfect, but it seems better than giving the whole world a limit that one person could use up.

AndrewD 11-13-2006 03:55 AM

Quote:

Originally Posted by Alfa1 (Post 1115452)
Thanks for that info. I have created a latest music block. How do I limit the number of files displayed?

All the LDM vba modules use the same parameter, links_seen_on_portal, to limit the number of files displayed. You set it on the LDM admin settings page.

See PM concerning thumbs.

Ophelia 11-13-2006 12:53 PM

Andrew,
We started to get the following database error last night. I removed IP and username info.

Code:

> Database error in vBulletin 3.6.2:
>
> Invalid SQL:
>
> INSERT INTO local_linksdownloads
> SET
> linkid=0,
> linkurl='Accepts site terms',
> bytes=0,
> userid='7173',
> username='removed',
> usertime='1163380954',
> userip='00.00.000.00';
>
> MySQL Error  : You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to use near
> 'sgirl',
> usertime='1163380954',
> userip='00.00.000.00'' at line 7
> Error Number : 1064
> Date        : Sunday, November 12th 2006 @ 08:22:34 PM
> Script      : http://www.mysite.net/forum/local_links.php
> Referrer    : http://www.mysite.net/forum/local_links.php
> IP Address  : removed
> Username    : removed
> Classname    : vb_database

Any thoughts?

AndrewD 11-13-2006 01:09 PM

Quote:

Originally Posted by Ophelia (Post 1116235)
Andrew,
We started to get the following database error last night. I removed IP and username info.

Code:

> Database error in vBulletin 3.6.2:
>
> Invalid SQL:
>
> INSERT INTO local_linksdownloads
> SET
> linkid=0,
> linkurl='Accepts site terms',
> bytes=0,
> userid='7173',
> username='removed',
> usertime='1163380954',
> userip='00.00.000.00';
>
> MySQL Error  : You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to use near
> 'sgirl',
> usertime='1163380954',
> userip='00.00.000.00'' at line 7
> Error Number : 1064
> Date        : Sunday, November 12th 2006 @ 08:22:34 PM
> Script      : http://www.mysite.net/forum/local_links.php
> Referrer    : http://www.mysite.net/forum/local_links.php
> IP Address  : removed
> Username    : removed
> Classname    : vb_database

Any thoughts?


This is triggered by a username that has an apostrophe in it. Sorry about that. I'll post a fix this evening.


All times are GMT. The time now is 02:46 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.06031 seconds
  • Memory Usage 1,763KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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