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)

wolfe 05-30-2007 12:22 PM

is it possible to make it post threads for downloads already in system. before the patch was added.

obmob 05-31-2007 01:55 AM

Quote:

Originally Posted by AndrewD (Post 1257360)
It won't be a patch - it will be a plugin, an 'extra'.

I'm having some difficulties with the next release - I made a commitment to a) multiple urls and b) metadata, and they're hard to retrofit!

Take your time! :D

AndrewD 05-31-2007 03:58 AM

Quote:

Originally Posted by itsblack (Post 1256694)
Hi Andrew, do you remember the download allowance problem I mentioned before?
I edited local_links.php file, moved these codes
PHP Code:

// Use filesize recorded in database to check that user has sufficient allowance to complete the download
    
$allow check_user_allowances($linksize$linkid);
    if (!
$allow['can_download']) {
        eval(
standard_error($allow['errormessage']));
        exit;
    } 

before these codes
PHP Code:

    if (!$links_permissions["can_access_link"]) {
        
ldmjump_access_error();
        exit;
    } 

now everything goes OK.

Thanks - glad you've got things going how you want - but I don't think that that is a proper fix. You've moved the test to before the point where the code has worked out the size of the download. It's correct for links, but not for downloads.

digital3 05-31-2007 10:06 PM

Why is it that when I create a new usergroup based off of "Administrators" usergroup and set the permissions in the LDM admin area to match those of Administrators, that usergroup cannot access the LDM Admin area (they can only access the moderator area). I REALLY need to deny forum admins access to this area and only grant it to the webmaster usergroup I created. A rogue admin could go in there and delete *everything* in the LDM database the way it's currently configured. I searched the LDM admin file for some reference to usergroup numbers but could find nowhere to add this new usergroup. Just to clarify, the webmaster usergroup is configured properly and "can_set_permissions" is checked for this group. However, when trying to access the LDM admin area I am getting the ol' "Insufficient Permissions" error.

How can I configure this?

welo 05-31-2007 10:44 PM

What I can't figure out is why you're so paranoid about Admin access to LDM when the rest of your board is obviously twice as vulnerable due to this factor. You might wanna rethink your permissions strategy, period.

digital3 06-01-2007 12:14 AM

Quote:

Originally Posted by welo (Post 1258636)
What I can't figure out is why you're so paranoid about Admin access to LDM when the rest of your board is obviously twice as vulnerable due to this factor. You might wanna rethink your permissions strategy, period.

Well the only part of it which concerns me (forum wise) is an admins ability to hard delete posts. I have a friend who owns a 1.3 million post board and he had a rogue admin delete 10,000 posts on him. That's kind of scary. I've never had such incident myself but his situation made me very aware of how easily one person can screw a board up. With my site, it's doubly critical because my LDM has around 100 GB of content hosted and growing daily. I'd say it's pretty reasonable for me to not want every admin to have access to it.

AndrewD 06-01-2007 04:10 AM

Quote:

Originally Posted by digital3 (Post 1258676)
Well the only part of it which concerns me (forum wise) is an admins ability to hard delete posts. I have a friend who owns a 1.3 million post board and he had a rogue admin delete 10,000 posts on him. That's kind of scary. I've never had such incident myself but his situation made me very aware of how easily one person can screw a board up. With my site, it's doubly critical because my LDM has around 100 GB of content hosted and growing daily. I'd say it's pretty reasonable for me to not want every admin to have access to it.

Access to the LDM admin page is given to users who are members of the ADMIN_USER_GROUP usergroup, where ADMIN_USER_GROUP is defined in the file includes/local_links_init.php. In the standard release, ADMIN_USER_GROUP has the value 6. You can edit that as you like. It's hard coded into the init file to avoid the situation where you completely lock yourself out.

The code looks for extended group membership, so all you need to do (I did a quick test, seems ok) is to create a new user group, give the authorised admins extended right to that group via the vb admincp, and edit the ldm init file

Zaguzin 06-01-2007 08:30 AM

Thanks! Mark as Installed.

Ipuck 06-02-2007 01:48 AM

Hello

Is there any way I can remove the section: "See also", I have links that are included in many categories and is getting very crowded with links.

Thank you :-)

AndrewD 06-02-2007 04:10 AM

Quote:

Originally Posted by Ipuck (Post 1259521)
Hello

Is there any way I can remove the section: "See also", I have links that are included in many categories and is getting very crowded with links.

Thank you :-)

Three of the linkbit templates (the templates that create the main layout for displaying an entry in your LDM database) contain the line:

Code:

<if condition="$linkshowothercatbit>0"><br /><br />$vbphrase[ll_seealso] $linkothercatsbit</if>
You can get rid of the "See also:" lines by editing these templates (vb/admincp/styles and templates) and deleting that line.

The templates concerned are:

links_linkbit (used for the normal display)
links_linkbit_featured (used for featured entries)
links_linkbit_table (used for the tabular layout)


All times are GMT. The time now is 09:57 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.02782 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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