Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Zmiana "gallery" w linku na coś innego


DEMIGOD
Przejdź do rozwiązania Rozwiązane przez pawel7121,

Rekomendowane odpowiedzi

[long]

<?php
/**
 * <pre>
 * Invision Power Services
 * IP.Board v5.0.5
 * Sets up SEO templates
 * Last Updated: $Date: 2012-09-19 18:02:05 -0400 (Wed, 19 Sep 2012) $
 * </pre>
 *
 * @author 		$Author: bfarber $
 * @copyright	(c) 2001 - 2009 Invision Power Services, Inc.
 * @license		http://www.invisionpower.com/company/standards.php#license'>http://www.invisionpower.com/company/standards.php#license
 * @package		IP.Board
 * @subpackage	Forums
 * @link		http://www.invisionpower.com
 * @version		$Rev: 11352 $
 *
 */
$_SEOTEMPLATES = array(
						
						'viewsizes' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery(??:&|&))image=(.+?)(??:&|&))size=(.+?)(&|$)/i', 'gallery/sizes/$1-#{__title__}/$2/$3' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/sizes/(\d+?)-(.+?)/(?.+?)(/|$))?#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'module'		, 'images' ),
																								array( 'section'	, 'sizes' ),
																								array( 'image'		, '$1' ),
																								array( 'size'		, '$3' ),
																							)
																	) 
										),
						'viewimage' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery(??:&|&))image=(.+?)(&|$)/i', 'gallery/image/$1-#{__title__}/$2' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/image/(\d+?)-#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'image'		, '$1' )
																							)
																	) 
										),

						'slideshow' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery(??:&|&))module=images(??:&|&))section=slideshow(??:&|&))type=(album|category)(??:&|&))typeid=(.+?)(&|$)/i', 'gallery/slideshow/$1-$2/$3' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/slideshow/(album|category)-(\d+?)(/|$)#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'module'		, 'images' ),
																								array( 'section'	, 'slideshow' ),
																								array( 'type'		, '$1' ),
																								array( 'typeid'		, '$2' )
																							)
																	) 
										),
										
						'editalbum' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery(??:&|&))albumedit=(.+?)(&|$)/i', 'gallery/album/$1-#{__title__}/edit/$2' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/album/(\d+?)-(.+?)/edit(/|$)#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'module'		, 'images' ),
																								array( 'section'	, 'review' ),
																								array( 'album_id'	, '$1' )
																							)
																	) 
										),
														
						'viewalbum' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery(??:&|&))(?:module=user(?:&|&)user=\d+?(?:&|&)do=view_album(?:&|&))?album=(.+?)(&|$)/i', 'gallery/album/$1-#{__title__}/$2' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/album/(\d+?)-#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'album'		, '$1' )
																							)
																	) 
										),

						'viewcategory' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 0,
											'out'			=> array( '/app=gallery(?:&|&)category=(\d+?)(&|$)/i', 'gallery/category/$1-#{__title__}/$2' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/category/(\d+?)-#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'category'	, '$1' )
																							)
																	)
										),

						'galleryrss' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery(??:&|&))module=albums(??:&|&))section=rss(??:&|&))type=(album|category)(??:&|&))typeid=(\d+?)(&|$)/i', 'gallery/rssfeed/#{__title__}/$1-$2/$3' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/rssfeed/(.+?)/(album|category)-(\d+?)(/|$)#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'module'		, 'albums' ),
																								array( 'section'	, 'rss' ),
																								array( 'type'		, '$2' ),
																								array( 'typeid'		, '$3' )
																							)
																	) 
										),
										
						'useralbum' => array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery(??:&|&))user=(.+?)(&|$)/i', 'gallery/member/$1-#{__title__}/$2' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery/member/(\d+?)-#i',
																		'matches'	=> array( 
																								array( 'app'		, 'gallery' ),
																								array( 'module'		, 'albums' ),
																								array( 'section'	, 'user' ),
																								array( 'member_id'	, '$1' )
																							)
																	) 
										),
						
						'app=gallery'		=> array( 
											'app'			=> 'gallery',
											'allowRedirect' => 1,
											'out'			=> array( '/app=gallery/i', 'gallery/' ),
											'in'			=> array( 
																		'regex'		=> '#^/gallery(/|$|\?)#i',
																		'matches'	=> array( array( 'app', 'gallery' ) )
																	) 
														),
					);
[/long]
Odnośnik do komentarza
Udostępnij na innych stronach

  • Rozwiązanie

Nie tutaj.

FTP :a: public_html :a: admin :a: applications_addon :a:ips :a: gallery :a: extensions :a: furlTemplates.php i tutaj edytuj, późneij przebuduj furle etc.

Nie wiem czy jest wgl. taki folder, ponieważ nie instalowałem tej aplikacji.

Domagasz się szybkiej reakcji z mojej strony? Proszę, zacytuj post.

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.