vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - 8WayRun.Com - Media Library (https://vborg.vbsupport.ru/showthread.php?t=240677)

Rick7C2 06-27-2010 10:46 PM

How do I add remove categories? I cant find the option anywhere.

your24hourstore 06-27-2010 10:55 PM

Quote:

Originally Posted by Rick7C2 (Post 2060754)
How do I add remove categories? I cant find the option anywhere.

oh to remove a Categorie , just rename it or remove the listed nuimber 0 will make it not show i dont think you can actually delete them . so just set to 0 and use it later for anouther Categorie when you need it

Rick7C2 06-27-2010 11:01 PM

Quote:

Originally Posted by harleyparts (Post 2060755)
oh to remove a Categorie , just rename it or remove the listed nuimber 0 will make it not show i dont think you can actually delete them . so just set to 0 and use it later for anouther Categorie when you need it

I'm not finding anything on editing the categories. The only thing I see is submit media.

Lizard King 06-28-2010 09:24 AM

Quote:

Originally Posted by Jaxel (Post 2059881)
I don't have vbseo... can't read vbseo threads...

Here are the directions on how to get your modification compatible with vBSEO ( including titles inside urls )

PHP Code:

    else
    {
        return 
construct_href_main() . "do=details&mid=" $media['mediaID'];
    } 

Replace with
PHP Code:

    else
    {
        
$title construct_href_slug($media['title']);
        return 
construct_href_main() . "do=details&mid=" $media['mediaID'] . "&title=" $title;
    } 

Find

PHP Code:

    else
    {
        return 
construct_href_main() . "do=category&cid=" $category['categoryID'] . ($sort "&sort=".$sort "");
    } 

Replace with
PHP Code:

    else
    {
        
$title construct_href_slug($category['catName']);
        return 
construct_href_main() . "do=category&cid=" $category['categoryID'] . "&title=" $title . ($sort "&sort=".$sort "");
    } 

Then use the following CRR's
Code:

'^media\.php\?do=tag&tid=(.*)$'=>'media-library/tags/$1/'
'^media\.php\?do=details_edit&mid=(.*)$'=>'media-library/edit/$1/'
'^media\.php\?do=tags_edit&mid=(.*)$'=>'media-library/tag-edit/$1/'
'^media\.php\?do=comment_edit&cmt=(.*)$'=>'media-library/comment-edit/$1/'
'^media\.php\?do=category&cid=(\d+)&title=(.+)$'=>'media-library/cat-$1-$2/'
'^media\.php\?do=details&mid=(\d+)&title=(.+)$'=>'media-library/$2-$1/'
'^media\.php\?do=user&uid=(\d+)$'=>'media-library/user-$1/'
'^media\.php\?do=faves&mid=(\d+)$'=>'media-library/love/$1/'
'^media\.php\?do=report&mid=(\d+)$'=>'media-library/report/$1/'
'^media\.php\?do=search&query=(\d+)$'=>'media-library/search/$1/'
'^media\.php\?do=letter&query=(\d+)$'=>'media-library/letter/$1/'
'^media\.php\?do=random$'=>'media-library/random'
'^media\.php\?do=submit$'=>'media-library/submit'
'^media\.php\?do=browse$'=>'media-library/browse'
'^media\.php\?do=tagcloud$'=>'media-library/tagcloud'
'^media\.php\?do=favorites$'=>'media-library/favorites'
'^media\.php\?do=subscriptions$'=>'media-library/subscriptions'
'^media\.php\?do=admin_host_edit&sid=(\d+)$'=>'media-library/admin/edit/$1/'
'^media\.php\?do=admin_host_delete&sid=(\d+)$'=>'media-library/admin/delete/$1/'
'^media\.php\?do=admin_host_export&sid=(\d+)$'=>'media-library/admin/export/$1/'
'^media\.php\?do=admin_(\w+)$'=>'media-library/admin/$1/'
'^media\.php$' => 'media-library/'


EquinoxWorld 06-28-2010 10:55 AM

Quote:

Originally Posted by harleyparts (Post 2060078)
not sure about custom sidebars, sure it could be done but whats posted is a widget for cms and a forum sideblock option for forum sideblock
as far as the error it may be conflicting here in general settings
admincp/settings/options

Message Posting and Editing Options

Minimum Characters Per Post 10 set this lower<---------------

I actually have this set to 1 and I still get that error message when trying to edit cats. Also It is not letting me change the priority of the cats. I believe this is also has to to do with the minimum value for cats , since it will not let me save any changes made to them. Please is there anything else I can check??

This is the error message again:
Quote:

"The category name you have entered is too short (4 characters). Please lengthen your category name to at least 5 characters. ALL CHANGES HAVE BEEN REJECTED!"

Neal-UK 06-29-2010 05:57 PM

Quote:

Originally Posted by Lizard King (Post 2060942)
Here are the directions on how to get your modification compatible with vBSEO ( including titles inside urls )

PHP Code:

    else
    {
        return 
construct_href_main() . "do=details&mid=" $media['mediaID'];
    } 

Replace with
PHP Code:

    else
    {
        
$title construct_href_slug($media['title']);
        return 
construct_href_main() . "do=details&mid=" $media['mediaID'] . "&title=" $title;
    } 

Find

PHP Code:

    else
    {
        return 
construct_href_main() . "do=category&cid=" $category['categoryID'] . ($sort "&sort=".$sort "");
    } 

Replace with
PHP Code:

    else
    {
        
$title construct_href_slug($category['catName']);
        return 
construct_href_main() . "do=category&cid=" $category['categoryID'] . "&title=" $title . ($sort "&sort=".$sort "");
    } 

Then use the following CRR's
Code:

'^media\.php\?do=tag&tid=(.*)$'=>'media-library/tags/$1/'
'^media\.php\?do=details_edit&mid=(.*)$'=>'media-library/edit/$1/'
'^media\.php\?do=tags_edit&mid=(.*)$'=>'media-library/tag-edit/$1/'
'^media\.php\?do=comment_edit&cmt=(.*)$'=>'media-library/comment-edit/$1/'
'^media\.php\?do=category&cid=(\d+)&title=(.+)$'=>'media-library/cat-$1-$2/'
'^media\.php\?do=details&mid=(\d+)&title=(.+)$'=>'media-library/$2-$1/'
'^media\.php\?do=user&uid=(\d+)$'=>'media-library/user-$1/'
'^media\.php\?do=faves&mid=(\d+)$'=>'media-library/love/$1/'
'^media\.php\?do=report&mid=(\d+)$'=>'media-library/report/$1/'
'^media\.php\?do=search&query=(\d+)$'=>'media-library/search/$1/'
'^media\.php\?do=letter&query=(\d+)$'=>'media-library/letter/$1/'
'^media\.php\?do=random$'=>'media-library/random'
'^media\.php\?do=submit$'=>'media-library/submit'
'^media\.php\?do=browse$'=>'media-library/browse'
'^media\.php\?do=tagcloud$'=>'media-library/tagcloud'
'^media\.php\?do=favorites$'=>'media-library/favorites'
'^media\.php\?do=subscriptions$'=>'media-library/subscriptions'
'^media\.php\?do=admin_host_edit&sid=(\d+)$'=>'media-library/admin/edit/$1/'
'^media\.php\?do=admin_host_delete&sid=(\d+)$'=>'media-library/admin/delete/$1/'
'^media\.php\?do=admin_host_export&sid=(\d+)$'=>'media-library/admin/export/$1/'
'^media\.php\?do=admin_(\w+)$'=>'media-library/admin/$1/'
'^media\.php$' => 'media-library/'


Which file do we need to edit?

Rick7C2 06-29-2010 08:17 PM

Quote:

Originally Posted by Rick7C2 (Post 2060754)
How do I add remove categories? I cant find the option anywhere.

Quote:

Originally Posted by harleyparts (Post 2060755)
oh to remove a Categorie , just rename it or remove the listed nuimber 0 will make it not show i dont think you can actually delete them . so just set to 0 and use it later for anouther Categorie when you need it

Quote:

Originally Posted by Rick7C2 (Post 2060757)
I'm not finding anything on editing the categories. The only thing I see is submit media.

Bump!

Xencored 06-29-2010 08:45 PM

Quote:

Originally Posted by Rick7C2 (Post 2061888)
Bump!

Known Bugs:
There is a conflict with this modification and some of Valter's VSA modifications that will prevent navbar permissions from being handled correctly. I don't know exactly who's fault it is; but I'm pretty sure there are no errors in my code that would be causing this problem. There is a work around for this however.

Admin Control Panel > Plugins & Products > Plugin Manager > "media NAVTAB"

Find the code:
Code:
PHP Code:

$perms media_permissions(); 

Replace with:
Code:
PHP Code:

$perms['rate'] = true;
$perms['comment'] = true;
$perms['submit'] = true;

if (
is_member_of($vbulletin->userinfoexplode(',','5,6')))
{
    
$perms['modtags'] = true;
    
$perms['modcategory'] = true;
    
$perms['modservice'] = true;



Rick7C2 06-30-2010 12:46 AM

Quote:

Originally Posted by Animemike (Post 2061899)
Known Bugs:
There is a conflict with this modification and some of Valter's VSA modifications that will prevent navbar permissions from being handled correctly. I don't know exactly who's fault it is; but I'm pretty sure there are no errors in my code that would be causing this problem. There is a work around for this however.

Admin Control Panel > Plugins & Products > Plugin Manager > "media NAVTAB"

Find the code:
Code:
PHP Code:

$perms media_permissions(); 

Replace with:
Code:
PHP Code:

$perms['rate'] = true;
$perms['comment'] = true;
$perms['submit'] = true;

if (
is_member_of($vbulletin->userinfoexplode(',','5,6')))
{
    
$perms['modtags'] = true;
    
$perms['modcategory'] = true;
    
$perms['modservice'] = true;



I did that and all it gave me was...

* Favorites
* Subscriptions
* Submit Media
* Random Media

In the navbar. No admin area or anything that takes me to a page so I can add/edit categories. My usergroup has all permissions with this mod.

Lizard King 06-30-2010 10:01 AM

Quote:

Originally Posted by Neal-UK (Post 2061816)
Which file do we need to edit?

media/media_functions_hrefs.php


All times are GMT. The time now is 05:04 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.04038 seconds
  • Memory Usage 1,800KB
  • 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
  • (12)bbcode_php_printable
  • (12)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