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 06-27-2008 05:24 AM

Quote:

Originally Posted by stwilson (Post 1560149)
Is there any way you can allow for multiple attachments and multiple images per entry? That would be killer.

Yes, it's there in 2.2.9.

You need to use the 'Entry Attributes' feature. See the online wiki for an explanation, http://www.eirma.org/wikis/index.php/Entry_Attributes

juzernie 06-27-2008 10:53 AM

Quote:

Originally Posted by AndrewD (Post 1558833)
These are parameters in the php.ini file which controls your web server. They both place limits on the maximum size of uploads. There is a potential problem when post_max_size is smaller than upload_max_filesize. If a user tries to upload a file that is bigger than post_max_size but smaller than upload_max_filesize, some versions of php are unable to give proper error messages. The solution is that post_max_size should be set to a value that is bigger than upload_max_filesize

thanks so that means i will have to ask my hosting provider to change the limit for the post_max_size?

AndrewD 06-27-2008 11:01 AM

Quote:

Originally Posted by juzernie (Post 1560313)
thanks so that means i will have to ask my hosting provider to change the limit for the post_max_size?

Yes. Ask them to make post_max_size slightly bigger than upload_max_filesize

mhmd1983 06-28-2008 06:54 AM

can anyone tell me what's "Use post count to define allowances" plugin do !! , i have it installed but it doesn't do anything

http://img72.imageshack.us/img72/1511/ldmei0.jpg

never mind the NO choice it means Yes cause i'm using rtl language

what i understand is this i can prevent download for selected group by post number but i can't understand if it (x)posts for (x)downloads or like example : 10 posts for 1 download so users with 20 posts can download 2 files , or all users more than 10 posts will download 1 files , i'm using count all posts not an hour period

and with all that i can't get it work at all

AndrewD 06-28-2008 09:41 AM

Quote:

Originally Posted by mhmd1983 (Post 1560991)
can anyone tell me what's "Use post count to define allowances" plugin do !! , i have it installed but it doesn't do anything

never mind the NO choice it means Yes cause i'm using rtl language

what i understand is this i can prevent download for selected group by post number but i can't understand if it (x)posts for (x)downloads or like example : 10 posts for 1 download so users with 20 posts can download 2 files , or all users more than 10 posts will download 1 files , i'm using count all posts not an hour period

and with all that i can't get it work at all

When you enable this extra, users in the indicated user groups have the allowances specified here until their post count reaches the specified level. It seems to work for me.

You seem to have set this to limit root admins to 1 file maximum until they have 1000 posts. The attachment shows the message that should be displayed.

Question: is your root admin account also a member of another usergroup? LDM always grants the most generous usergroup allowances. You have not limited other groups.

roymogg 06-28-2008 03:01 PM

Quote:

Originally Posted by AndrewD (Post 1545948)
Kevin, the change to the template is straightforward:

Code:

<if condition="$linkkeys"><br />$vbphrase[ll_keywords]: $linkkeys</if>
This works if you tell a normal LDM display to use the featured linkbit. However, it will not work with the standard 'featured' display as it stands, because (for reasons of efficiency) the keywords are not cached at that point in the code. It's an easy change to make to the code - let me know what you need.

Andrew,

I was thinking about doing something similar and added some attributes (contact name email etc.) and wanted to show these in the featured template (or similar shorter catlink template). The extra attributes do not show up - OK in the larger templates.

Have I done something wrong (the answer is probably yes but would like to know how to correct)

can you advise

cheers

Roy

Is it possible to add another catlink template?

AndrewD 06-28-2008 03:22 PM

Quote:

Originally Posted by roymogg (Post 1561296)
Andrew,

I was thinking about doing something similar and added some attributes (contact name email etc.) and wanted to show these in the featured template (or similar shorter catlink template). The extra attributes do not show up - OK in the larger templates.

Have I done something wrong (the answer is probably yes but would like to know how to correct)

can you advise

cheers

Roy

Is it possible to add another catlink template?

The attributes are patched into the linkbits part way through processing. For them to appear, the following line has to appear somewhere in the relevant linkbit template. (Currently, the featured linkbit does not have this line)

Code:

<!--$linkid::entities-->
The entities themselves are built up using the links_viewone_entity template and then inserted at the marked point in the template.

Currently, new linkbit and catbit templates are added programmatically. Take a look at includes/local_links_admininclude.php. At around line 626, there's a sequence:

Code:

// Pre-defined catbits - extend to match catbits available in templates.xml -----------------------------------------
// name=X: name used in selection menus
// defcol=N: default number of display columns
// maxcol=N: maximum number of columns that it makes sense to display
// subbit=M: template used for displaying subcategories within this catbit
        require_LDMadminrow($seq++, 'links_catbit', serialize(array("name"=>"Tabular", "defcol"=>1, "maxcol"=>4, "subbit"=>"links_subcatbit")), 'define_catbit', 1);
        require_LDMadminrow($seq++, 'links_catbit_brief', serialize(array("name"=>"Brief", "defcol"=>2, "maxcol"=>4, "subbit"=>"links_subcatbit")), 'define_catbit', 1);
// Pre-defined catbits - extend to match catbits available in templates.xml -----------------------------------------

To add a new catbit, add another line of code:
Code:

        require_LDMadminrow($seq++, 'links_your_catbit', serialize(array("name"=>"YourCatName", "defcol"=>1, "maxcol"=>4, "subbit"=>"links_subcatbit")), 'define_catbit', 1);
Save, upload, and re-install the LDM product loader. The new catbit will appear on the selection menus.

juzernie 06-29-2008 09:56 AM

Quote:

Originally Posted by AndrewD (Post 1560321)
Yes. Ask them to make post_max_size slightly bigger than upload_max_filesize

thanks for the help! :)

Bexter 06-29-2008 10:16 AM

Thanks for your help before, seem to have another small little problem though. Thought itd be a good idea to autocreate threads for entries based on my site, so I've turned the settings on, gone through all the categories assigning the correct forum to post in (but it gives me an option of changing where its posted when I upload the file)
My problem though is, it uploads the file fine, but it says it can't create a thread. The reason it gives is: Forum does not exist
Yet the forum does exist. Any ideas?

AndrewD 06-29-2008 11:17 AM

Quote:

Originally Posted by Bexter (Post 1561940)
Thanks for your help before, seem to have another small little problem though. Thought itd be a good idea to autocreate threads for entries based on my site, so I've turned the settings on, gone through all the categories assigning the correct forum to post in (but it gives me an option of changing where its posted when I upload the file)
My problem though is, it uploads the file fine, but it says it can't create a thread. The reason it gives is: Forum does not exist
Yet the forum does exist. Any ideas?

I will find it easiest to help with this if I take a look at your site. If you like, send me a PM with details of an admin account.


All times are GMT. The time now is 01:36 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.02805 seconds
  • Memory Usage 1,758KB
  • 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
  • (4)bbcode_code_printable
  • (8)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