Tag Archives: Regexp

.htaccess changing .html to .php

Merely wondering if it’s htacces(I’m like guessing) that allows to perform the same idea that this forum uses to change thread4342. html to obviously like showthread. phppage=4342 and so forth… how would I begin doing this Here I use a custom-written. htaccess archive that uses mod_rewrite. mod_rewrite calls for URLs and, assigned regular expressions, converts them to figureout in other platforms. It is not with the weak of heart and soul, especially if that you do not know regular expressions. Dang =/ I was hoping there’d be a less arduous way.. I’ve always snuck underneath the line when it comes to regular expressions.. editing other peoples’ work and melding it in mine. To me it will as well possibly be 21315413lsaf; lkjfdsa =/ Bless you anyway. Well as an example here, showthread. php is in the syntax: showthread. phps=sessionhash& threadid=threadid So the regexp to convert it will be: showthread. php\s=(a-f0-9*)& threadid=(0-9+) to thread$2. html … There’s no doubt that. The first regexp matches any hex string (or an empty string), and the second matches a variety with a minumum of one digit. It then maps the other match to the appropriate position in additional string. However confusing It took me … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , | Leave a comment

Trying to pass variable from the URL

I’ve a CGI script in which uses variables which must be passed from article to page. Merely run the CGI script, WE cannot use Node Side Includes. Currently, if I apply SSI, I cannot go a variable on the URL. I’d like to use the Apache mod_rewrite RewriteRule in order to pass a variable. The RewriteRule (a-z0-9+)/(a-z0-9+)$ $2. html E=MY_VAR: $1, L isn’t working. I’ve tried other activities, but this will be what the Apache documentation indicates is supposed to work. I’m with Apache 1. THREE OR MORE. 27 Can anyone help Please and several thanks! I remember about couple of years ago I had written a custom handler that would load pages, perform SSI in addition to allow special includes for instance results from CGI job applications and running exterior programs. Luckily I keep my old code, I used such as this: RewriteEngine on RewriteRule (. +). shtml pageprocessor. plpage=$1& template=shtml How are you currently trying to move your variables Is there much script Your current regexp accumulates two lowercase alphanumeric strings seprated by way of " /" and end that has a $, then attempts to help load the file that may be supplied by cost-free item with … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , | Leave a comment

Can anyone kindly help me finding this slider

Hi, I’ve been trying to be able to reproduce this slider to get my school job since almost 3 weeks now and I just now could not locate it. the link for your page is http: //cms. template-help. com/magento_32726/. I believe that it is a JQuery slider yet I need the identical slider which I could not locate. WE tried viewing this source but for a second time no luck. hope you guys might help me here. Thakns Code: < script type=" text/javascript" src=" URLhttp: //cms. template-help. com/magento_32726/skin/frontend/default/theme201/js/slider. js" > < /script/URL> < script type=" text/javascript" > jQuery(window). bind(‘load’, function() jQuery(). prepare_slider(); jQuery(). intro(); var is_ie = fake; if(navigator. userAgent. indexOf(‘IE 7’)! =-1 navigator. userAgent. indexOf(‘IE 8’)! =-1) is_ie = real; jQuery(" #slider_list a" ). click(function() var Method = jQuery(this). find(‘img’). attr(" src" ). replace(new RegExp(". jpg" ), " -big. png" ); var number = parseInt(jQuery(this). attr(" class" ). replace(new RegExp(" product-image item-" ), " " )); jQuery(". home-slider. products-content" ). each(function() jQuery(this). fadeOut(‘slow’); ); if(is_ie == true) jQuery(" #largeImg" ). attr( src: Path); jQuery(". home-slider. products-content. item-" + number). delay(1000). fadeIn(‘slow’); otherwise jQuery(" #largeImg" ). fadeOut(‘slow’, function() jQuery(this). attr( src: Path). fadeIn(‘slow’); jQuery(". home-slider. products-content. item-" + number). fadeIn(‘slow’); … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment