Jump to content


IP.Downloads fURL templates


  • Please log in to reply
3 replies to this topic

#1 Doppelgaenger

Doppelgaenger

    Advanced Member

  • Members
  • PipPipPipPip
  • 56 posts
  • IPB Version:v2.3.x

Posted 13 May 2011 - 01:45 PM

Hi guys,

I'm trying to change the URL structure of IP.Downloads to something like this:

from

http://www.invisionmodding.com/files/file/1725-cl31-clbank/

to

http://www.invisionmodding.com/failai/f1725/cl31-clbank/

and categories from

http://www.invisionmodding.com/files/category/6-ipboard-modifications/

to

http://www.invisionmodding.com/failai/k6/ipboard-modifications/

I've tried all possible solutions and the one which SHOULD work (because I used the same principle rewriting forum and nexus which work perfect by the way) gives me forbidden error. Strange..

Please, can anybody point me in the right direction?

Edited by Doppelgaenger, 13 May 2011 - 01:46 PM.


#2 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 14 May 2011 - 10:32 AM

Perhaps you should post the solutions you've tried? No point in having us give you the same code you've already tried.

#3 Doppelgaenger

Doppelgaenger

    Advanced Member

  • Members
  • PipPipPipPip
  • 56 posts
  • IPB Version:v2.3.x

Posted 16 May 2011 - 05:02 PM

Okay here's how I do it

it doesnt work though:

$_SEOTEMPLATES = array(
						'idmshowcat' => array( 
											'app'			=> 'downloads',
											'allowRedirect' => 1,
											'out'			=> array( '/app=downloads(&|&)showcat=(.+?)(&|$)/i', 'files/k$2/#{__title__}/$3' ),
											'in'			=> array( 
																		'regex'		=> "#/files/k(\d+?)/#i",
																		'matches'	=> array( 
																								array( 'app'		, 'downloads' ),
																								array( 'showcat'	, '$1' )
																							)
																	) 
										),
						'idmshowfile' => array( 
											'app'			=> 'downloads',
											'allowRedirect' => 1,
											'out'			=> array( '/app=downloads(&|&)showfile=(.+?)(&|$)/i', 'files/f$2/#{__title__}/$3' ),
											'in'			=> array( 
																		'regex'		=> "#/files/f(\d+?)/#i",
																		'matches'	=> array( 
																								array( 'app'		, 'downloads' ),
																								array( 'showfile'	, '$1' )
																							)
																	) 
										),


#4 Doppelgaenger

Doppelgaenger

    Advanced Member

  • Members
  • PipPipPipPip
  • 56 posts
  • IPB Version:v2.3.x

Posted 22 May 2011 - 09:55 AM

well?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users