Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
LaMpiR
Newbie
Newbie



Joined: Oct 01, 2006
Posts: 4

PostPosted: Sat Jan 27, 2007 5:19 am Reply with quote

Hi! I am using Sommaire block and I use Counteudo instead of standard Content block. So i am trying to make my own sommaire block so that all links are short but how would this link look like...
Quote:
modules.php?name=Conteudo&file=index&pa=showpage&pid=1
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Jan 27, 2007 6:57 pm Reply with quote

Well, I would first start with the module itself. I am assuming that you would want that "tapped" as well. What I have found is that in tapping the module, you end up having all the taps that you also need for the blocks.

For the example that you gave, it might look something like this:

GT/GTB File:

Code:

$urlin = array(
'"(?<!/)modules.php\?name=Conteudo&amp;pa=showpage&amp;pid=([0-9]*)"'
);

$urlout = array(
'conteudo-\\1.html'
);


.htaccess equivalent:

Code:

RewriteRule ^conteudo-([0-9]*).html modules.php?name=Conteudo&pa=showpage&pid=$1 [L]


Very close to how the Content module is tapped.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch
linear-bunch