Thread: Major Additions - 8WayRun.Com - Media Library
View Single Post
  #1147  
Old 06-29-2010, 05:57 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King View Post
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?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02929 seconds
  • Memory Usage 1,807KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete