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)

AndrewD 09-27-2007 04:17 AM

Quote:

Originally Posted by Tulsa (Post 1347830)
Why both of course. :D

This is only a partial solution - there are a couple of other changes which are needed to make it complete/clean.

Edit includes/local_links_admininclude.php. Scroll down until you find groups of lines which look like the following:

Code:

require_admin_row($seq++, 'title_data_entry', 'll_settings_title_entry', 'title_perms', 1, 1);
        require_admin_row($seq++, 'can_add_link', '6,-1', 'usergroup_check', 1);
        require_admin_row($seq++, 'can_link_files', '2,3,4,5,6,7,-1', 'usergroup_check', 1);
        require_admin_row($seq++, 'can_upload_files', '6,-1', 'usergroup_check', 1);
        require_admin_row($seq++, 'can_select_category', '2,3,4,5,6,7,-1', 'usergroup_check');
        require_admin_row($seq++, 'can_edit_link', '6,-1', 'usergroup_check');
        require_admin_row($seq++, 'can_delete_link', '6,-1', 'usergroup_check');
        require_admin_row($seq++, 'can_add_category', '6,-1', 'usergroup_check');
        require_admin_row($seq++, 'can_edit_category', '6,-1', 'usergroup_check');
...
require_admin_row($seq++, 'close_data_entry', '', 'close', 1);

Each line defines a parameter setting/permission. When there is a fifth parameter set to 1 (as on the can_add_link line), then the permission can be set at global level and at category level. Otherwise, it can only be set at global level.

So to make can_add_category and can_edit_category permissions avaiable on a per-category basis, simply add ", 1 at the end of the lines:

Code:

        require_admin_row($seq++, 'can_add_category', '6,-1', 'usergroup_check', 1);
        require_admin_row($seq++, 'can_edit_category', '6,-1', 'usergroup_check', 1);

Save, then (important) reinstall the LDM product installer via the vb admincp.

Then, these permissions become available on the Add/Edit Category forms, on the third tab (User Group Permissions). If you deny the permission globally and enable it in one of your categories, then the relevant user group can only create subcategories in that category.

As I said, this is not a complete patch - You will find that the 'add category' form always includes a parent category selection box, allowing people to place the new subcategory somewhere else in the category hierarchy. This is probably not what you want. For some reason, I had overlooked to apply the *can_select_category* permission to category creation. I will fix this in 2.2.8.

My answer about users always being able to edit their own categories was also not completely accurate. There's another bug so that the relevant Edit Category menu item does not get displayed even though the user actually has permission to do the edit. This will also be fixed in 2.2.8.

So you may prefer to wait.

Alfa1 09-27-2007 05:17 PM

I have the Dutch translation ready. I want to go over it one more time to see if everything is in order.

Could you please look at this:
Quote:

Originally Posted by Alfa1 (Post 1318456)
Quote:

Originally Posted by AndrewD (Post 1318314)
I never got this sorted out - I took a quick look at the tabs hack but didn't get beyond the introduction.

Basically it adds tabs to the navbar. To let the right tab to highlight according to the members location, the code needs a conditional.

I think this will quickly show you how it works and what is needed:
https://vborg.vbsupport.ru/showthread.php?p=1276144

Something similar to the last option would be needed.


obmob 09-27-2007 11:37 PM

Quote:

Originally Posted by mauro1947 (Post 1347072)
Hi!
I have "allow_html" setted to Yes and when i insert my Google Adsense code into description, ads never shows...:(
Can you help me?
Thanks a lot.
Regards!

Isn't it easier to edit a likbit, that way you add only one adsense code :p

mauro1947 09-28-2007 01:29 AM

Quote:

Originally Posted by obmob (Post 1348609)
Isn't it easier to edit a likbit, that way you add only one adsense code :p

Thanks, fixed by AndrewD :D
Thanks
Regards!

Ophelia 09-28-2007 02:25 AM

So Mr. Andrew.. when can I add this delightful new version to our site? :) I'm itching for the multiple uploads ;)

AndrewD 09-28-2007 03:53 AM

Quote:

Originally Posted by Alfa1 (Post 1348386)
I have the Dutch translation ready. I want to go over it one more time to see if everything is in order.

Could you please look at this:

I'll try to work this out, Alfa - I'm really overwhelmed by work - last time I took a look, it was not obvious to me how it worked.

AndrewD 09-28-2007 03:57 AM

Quote:

Originally Posted by Ophelia (Post 1348685)
So Mr. Andrew.. when can I add this delightful new version to our site? :) I'm itching for the multiple uploads ;)

Well, I'd hoped to come back from holiday and find no bugs to fix, but people seem to keep finding them... I think we're nearly there.

Concerning yout earlier PM'd problem with rogue downloads, this is not going to be easy to sort out from a distance. I have somewhat improved the tool for analysing downloads in 2.2.8, and it may be easiest for you to upgrade before we start investigating.

skooby 09-29-2007 01:51 AM

Awesome mod :) I tried looking through the posts but couldn't find much. Is there a way that when a user uploads a new file (say a mp3), that it creates a new post in a certain forum?

Ipuck 09-29-2007 02:33 AM

Quote:

Awesome mod I tried looking through the posts but couldn't find much. Is there a way that when a user uploads a new file (say a mp3), that it creates a new post in a certain forum?
Yes. That's an extra for the 2.2.7 version , but for is included in the 2.2.8 version. For more inof go to http://www.eirma.org/wikis/index.php/Options_and_Extras

skooby 09-29-2007 03:11 AM

Wow man how did I not see that? Thanks so much for the response.


All times are GMT. The time now is 06:39 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.02868 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
  • (2)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