Jump to content


Corporate Sponsors


Latest News: (loading..)

zipicip

Member Since 22 Jan 2009
Offline Last Active Yesterday, 13:29
-----

Posts I've Made

In Topic: ULTIMATE Seo Urls 5 - by FWR Media

01 February 2012, 06:38

Hello.

I have a question .....

ultimate_seo_urls5/includes/usu_general_functions

This is the original function

  function usu_cleanse( $value ) {
	    return preg_replace( '@[^a-z0-9_]@i', '', $value );
  }

I need [] because I use query array like gender[]=male&gender[]=female
And also I need "-" character because for example http://www.domain.com/product_info.php?products_id=6770&utm_campain=zz-cc it redirect to
http://www.domain.com/products-name-p-6770.html?utm_campain=zzcc and it removes the - character from the query

It is safe to change function to?

  function usu_cleanse( $value ) {
    return preg_replace( '@[^a-z0-9_ \%\+\[\]-]@i', '', $value );
  }

I added [], -

In Topic: ULTIMATE Seo Urls 5 - by FWR Media

20 October 2011, 11:25

and ultimate_seo_urls5/includes/usu_general_functions

change

  function usu_cleanse( $value ) {
	return preg_replace( '@[^a-z0-9_]@i', '', $value );
  }

into

function usu_cleanse( $value ) {
	return preg_replace( '@[^a-z0-9_\[\]]@i', '', $value );
  }

In Topic: ULTIMATE Seo Urls 5 - by FWR Media

20 October 2011, 10:54

I did a hack

$custom_url_allow_array = http_build_query( $_GET );
$custom_url_allow_array = preg_replace('/%5B([0-9]+)%5D/', '[]',  $custom_url_allow_array );

ultimate_seo_urls5/uri_modules search for http_build_query( $_GET )

Usu_Main::i()->setVar( 'request_querystring', $custom_url_allow_array );

In Topic: ULTIMATE Seo Urls 5 - by FWR Media

20 October 2011, 10:31

I found out that this is the function that translate url

setVar( 'request_querystring', http_build_query( $_GET ) )

(search for all apperences in ultimate_seo_urls5 folder )

other alternative to keep []

In Topic: ULTIMATE Seo Urls 5 - by FWR Media

20 October 2011, 08:58

how can I allow something like this

http://www.domain.com/adidas-m-10.html?form_arrray_variable[]=zz

because it automated translated in

http://www.domain.com/adidas-m-10.html?form_arrray_variable5B05D=zz