Menú principal
dzStaffStatus
Administradores
el_cuervo
Dixso
Colaboradores
AnyKiller
nestormateo
docser
Moderadores
cardiru
javiermisol
Traductores
gnrx
Miembros:
Nuevos Hoy:
8
Nuevos Ayer:
12
Total:
71582
Ultimo:
ixbt
Conectados
Miembros:
3
Invitados:
43
Total:
46
Miembros Online
quiquepool
bugmenot
ixbt
Sponsor
dp-Tools
Enlázanos
Theme creado pordev-postnuke.com
supa
Enviado: 13/04/2004 a las 21:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
Hi,
As madbull and cuervo have requested in my other posts. Here are my files in question:
I used the:
1. NS-Settings (admin.php & version.php) from dp-Shorturls 1.0
2. header.php from dp-ShortUrls 2.0
3. footer.php from dp-ShortUrls 2.0
4. modded headerBB.php by myself
5. .htaccess from mashdeco heavily modded by myself to incl. proper Newsmod pagination (see below)
6. functions.php by mashdeco modded by myself to work with dp-ShortUrls
NOTE:
1. I did/do NOT use pnHTML.php
2. I did/do not need to use : $short_uls = ( pnConfigGetVar('UseShortUrls') == 1 ); in my theme.php, it is not necessary as footer.php does that check.
*************************************
Cita
footer.php - use from dp-shorturls 2.0 [tested and works now]
-----------
Next... headerBB.php
[Editado el 13/4/2004 por supa]
[Editado el 14/4/2004 por supa]
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
supa
Enviado: 13/04/2004 a las 21:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
headerBB.php - located in modules\PNPHPBB2\templates\PNTheme\
Code:
Insert
Cita
$simple_urls,
$hide_email,
$simple_uri;
after $pagetitle at around Line 81
Next:
Insert
Cita
// Modification -- Integrating Short URLs in PostNuke by dev-postnuke.com
// Modificacion -- Integracion de las URLs Cortas en PostNuke por dev-postnuke.com
$simple_urls = (pnConfigGetVar('UseShortUrls') == 1); //Activa o desactivar url's cortas (true = activadas ; false = desactivadas)
$hide_email = false;
$simple_uri = "";
if ($simple_urls || $hide_email)
{
require_once("functions.php");
$simple_uri = simple_uri();
if ($simple_uri == "old")
{
ob_start();
}
}
Directly after head(); down to the end
*************************************
That will now correctly activate the links from Main Menu or anywhere to pnPHPbb2, instead of the Blank Screen many now face.
Next... .htaccess
[Editado el 13/4/2004 por supa]
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
supa
Enviado: 13/04/2004 a las 21:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
Here is my .htaccess (orignally from mashdeco, mtrad & co.). I have made some changes.
NB. I kill my sids and globals using a php.ini file in my postnuke root, that's why they are commented out here.
Uncomment the Rewrite Rules i commented out. Please note i have not had to add anything to this .htaccess except for the pagination. ALL other modules WORK WITH THIS thus far.
Cita
# Place this file in the site root alongside the main index.php file
#ErrorDocument 404 http://www.mashdeco.com/error.php
RewriteEngine On
Options FollowSymLinks
# Remove if Error 500 - can also be set in php.ini
# php_flag session.use_trans_sid off
# Turn register_globals off - can also be set in php.ini
# php_flag register_globals off
# -- For general redirection at root
RewriteBase /pn
# Sample excluded directory
#RewriteRule ^test/.*$ - [PT]
# Don't process if not .html files
RewriteCond %{REQUEST_URI} !^.*\.html$
RewriteRule ^.*$ - [PT]
# This option is for use in Virtual Hosts or .htaccess files to inherit rewrite rules in the main section,
# so if you have your own server you don't have to copy the rules into every Virtual Host you run.
# Will cause an error if placed in the main httpd.conf section, as there's nothing to inherit.
# RewriteOptions 'inherit'
RewriteRule ^index\.html$ index.php [L]
# Gallery module
# RewriteRule ^Gallery\-([^*\.]+)\+([^*.]+)\.html$ modules.php?set_albumName=$1&op=modload&name=Gallery&file=index&include=$2.php [L]
# RewriteRule ^Gallery\+([^*\.]+)\+([^*\.]+)\.html$ modules.php?set_albumName=$1&id=$2&op=modload&name=Gallery&file=index&include=view_photo.php [L]
# RewriteRule ^Gallery\+([^*\.]+)-([^*\.]+)\-full\.html$ modules.php?full=1&set_albumName=$1&id=$2&op=modload&name=Gallery&file=index&include=view_photo.php [L]
# RewriteRule ^Gallery\+([^*\.]+)\-page([0-9]+)\.html$ modules.php?set_albumName=$1&op=modload&name=Gallery&file=index&include=view_album.php&page=$2 [L]
# RewriteRule ^Gallery\+([^*\.]+)\-index([0-9]+)\-add_comment\.html$ modules.php?set_albumName=$1&index=$2&op=modload&name=Gallery&file=index&include=add_comment.php [L]
# RewriteRule ^Gallery\+([^*\.]+)\-slideshow_full\.html$ modules.php?set_albumName=$1&slide_full=1&op=modload&name=Gallery&file=index&include=slideshow.php [L]
# Article Full Story with default parameters
RewriteRule ^Article([0-9]+)\.html$ modules.php?op=modload&name=News&file=article&sid=$1&mode=thread&order=0&thold=0 [L,NS,NC]
# Article Full Story with parameters
RewriteRule ^Article([0-9]+)-([A-Za-z=]+)(-order([0-9]))?(-threshold([0-9\-]{1,2}))?\.html$ modules.php?op=modload&name=News&file=article&sid=$1&mode=$2&order=$4&thold=$6 [L,NS,NC]
# Categories
RewriteRule ^Category([0-9]+)\.html$ index.php?catid=$1 [L,NC,NS]
RewriteRule ^Category([0-9]+)-All\.html$ modules.php?op=modload&name=News&file=index&catid=$1&allstories=1 [L,NC,NS]
# Proper pagination
RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]*)-([^-]+)-([^-]*)-([^-]+)-([a-zA-Z0-9_]*).html$ modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8 [L]
# Topics
RewriteRule ^Topic([0-9]+)\.html$ modules.php?op=modload&name=News&file=index&catid=&topic=$1 [L,NC,NS]
RewriteRule ^Topic([0-9]+)all\.html$ modules.php?op=modload&name=News&file=index&catid=&topic=$1&allstories=1 [L,NC,NS]
#FAQs
RewriteRule ^FAQ-Category([0-9]+)-([^-]+)-Parent([0-9]+)-myfaq-([^-\.]+).html$ modules.php?op=modload&name=FAQ&file=index&myfaq=$4&id_cat=$1&categories=$2&parent_id=$3 [L,NC,NS]
# Section articles
RewriteRule ^Section-([0-9]+)\.html$ modules.php?op=modload&name=Sections&file=index&req=listarticles&secid=$1 [L,NC,NS]
RewriteRule ^Sections-article([0-9]+)(-p([0-9]*))?\.html$ modules.php?op=modload&name=Sections&file=index&req=viewarticle&artid=$1&page=$3 [L,NC,NS]
# Send an email about an article
RewriteRule ^SendArticle([0-9]+)\.html$ modules.php?op=modload&name=Recommend_Us&file=index&req=FriendSend&sid=$1 [L,NS,NC]
# Print an article
RewriteRule ^PrintArticle([0-9]+)\.html$ print.php?sid=$1 [L,NS,NC]
# Userinfo
RewriteRule ^UserInfo-([^-\.]+)\.html$ user.php?op=userinfo&uname=$1 [L,NS,NC]
# Module (old style call) default action.
# Sample RewriteCond for file exemption where URI contains 'www'
#RewriteCond %{REQUEST_URI} !^.*www.*\.html$
RewriteRule ^([^-+]+|NS-Polls)\.html$ modules.php?op=modload&name=$1&file=index [L,NS]
# Module (old style call) with just a req parameter
RewriteRule ^([^\+]+)\+([^-\.]+)\.html$ modules.php?op=modload&name=$1&file=index&req=$2 [L,NS]
# Module (new style call) default action.
RewriteRule ^([^-]+)-main\.html$ index.php?module=$1&func=main [L,NS]
# Polls
RewriteRule ^Poll-([0-9]{1,3})([A-Za-z]*)?\.html$ modules.php?op=modload&name=NS-Polls&file=index&req=$2&pollID=$1 [L,NC,NS]
# PostCalendar: See http://www.postcalendar.tv/
RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})-event-([0-9]+)\.html$ index.php?module=PostCalendar&func=view&Date=$3$2$1&tplview=&viewtype=details&eid=$4&print= [L,NS]
RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})-([A-Za-z]+)-([^-\.]+)\.html$ index.php?module=PostCalendar&func=view&tplview=$5&viewtype=$4&Date=$3$2$1&pc_username=&pc_category=&pc_topic=&print= [L,NS]
RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})-([A-Za-z]+)\.html$ index.php?module=PostCalendar&func=view&tplview=&viewtype=$4&Date=$3$2$1&pc_username=&pc_category=&pc_topic=&print= [L,NS]
RewriteRule ^PostCalendar-([0-9]{2})-([0-9]{2})-([0-9]{4})\.html$ index.php?module=PostCalendar&func=view&tplview=default&viewtype=month&Date=$3$2$1 [L,NS]
RewriteRule ^PostCalendar-AddEvent-([0-9]{2})-([0-9]{2})-([0-9]{4})\.html$ index.php?module=PostCalendar&func=submit&tplview=&Date=$3$2$1 [L,NC,NS]
RewriteRule ^PostCalendar-([A-Za-z]+)\.html$ index.php?module=PostCalendar&func=$1 [L,NC,NS]
# RewriteRule ^PostCalendar3-([0-9]{2})-([0-9]{2})-([0-9]{4})-([a-zA-Z]+)\.html$ index.php?module=PostCalendar&func=view&viewtype=$4&Date=$2/$1/$3 [L,NC,NS]
# PNphpBB2 forum
RewriteRule ^(PNphpBB2)-([A-Za-z]+)-([tfc]?)([0-9]*)-(sid([A-Za-z0-9]*))?\.html$ index.php?name=$1&file=$2&$3=$4&sid=$6 [L,NS]
# Old version, prior to PNphpBB2 v1.1
# RewriteRule ^([A-Za-z]{5,7}[0-9])-([A-Za-z]+)-t([0-9]*)-f([0-9]*)-([A-Za-z0-9]*)\.html$ modules.php?op=modload&name=$1&file=$2&t=$3&f=$4&sid=$5 [L,NC,NS]
#Search
RewriteRule ^Search-([^-]*)-([0-9]*)-([0-9]*)-([0-9]*)\.html$ modules.php?op=modload&name=Search&file=index&action=search&overview=$2&active_stories=$3&stories_author=$1&stories_topics[0]=$4 [L,NS]
# Content Express links for menus
RewriteRule ^Content-([^-]+)-([0-9]+)-([0-9]+)-menu\.html$ index.php?module=ContentExpress&func=display&bid=$2&btitle=$1&mid=$3&ceid=-1 [L,NS]
# Content Express links
RewriteRule ^Content-([^-]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ index.php?module=ContentExpress&func=display&bid=$2&btitle=$1&mid=$3&ceid=$4 [L,NS]
# Module (old style call) 5 parameters
# Taken out for now because older Apache versions on some platforms don't like it
# RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]*)-([^-\.]*)\.html$ modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8&$9=$10 [L,NS]
# Module (old style call) 4 parameters
RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-\.]+)\.html$ modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6&$7=$8 [L,NS]
# Module (old style call) 3 parameters
RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^-]+)-([^-]+)-([^-\.]*)?\.html$ modules.php?op=modload&name=$1&file=$2&$3=$4&$5=$6 [L,NS]
# Module (old style call) 2 parameters
RewriteRule ^([^\+]+)\+([^-]+)-([^-]+)-([^\.]+)\.html$ modules.php?op=modload&name=$1&file=$2&$3=$4 [L,NS]
# Module (new style call) 1 parameters
RewriteRule ^([^\+]+)-([^-]+)-([^-]+)-([^-\.]+)\.html$ index.php?module=$1&func=$2&$3=$4 [L,NS]
# International characters: ([0-9A-Za-zÀ-ÖØ-öø-ÿ_]+)
I prefer this .htaccess cause it doesn't have the Article45-main.html format. it uses dtr8 Article#.html format.
It is also modded to incl. proper pagination, thanks to a post by CRS (Colled Rolled Steel) mtrad over at postnuke.
[Editado el 13/4/2004 por supa]
[Editado el 13/4/2004 por supa]
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
supa
Enviado: 13/04/2004 a las 21:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
here is my functions.php also modded from mashdeco, mtrad and others. i just added mashdeco's if script to make a shorter and to the point.
Cita
<?php
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// 12-01-02 ColdRolledSteel: Created
// 01-04-03 ColdRolledSteel: Cleaned up debugging code
// 16-04-03 Martin Stær Andersen: Replaced simple_uri function; separate function redundant as small enough for theme
// edited the rewrite regex and htaccess rewrite rules
//
// If you control the server, it is preferable for better performance to put rewrite rules
// from the htaccess file into main configuration file, httpd.conf.
//
// Rule Legend (note that this order doesn't match the order in .htaccess)
//
// 1: PostCalendar events: PostCalendar-event-[eventID]-[day]-[month]-[year].html
// 2: PostCalendar monthly calendar view: PostCalendar-[day]-[month]-[year].html
// 3: PostCalendar calendar view with template: PostCalendar-[day]-[month]-[year]-['day'|'week'|'month'|'year']-[template].html
// 4: PostCalendar calendar view: PostCalendar-[day]-[month]-[year]-['day'|'week'|'month'|'year'].html
// 5: PostCalendar general function, like 'search' or 'submit'
// 6: Poll-[pollID].html
// 7: Module (old style call) with a single req parameter [module]+[parameter].html eg Downloads+MostPopular.html
// 8: Module (old style call) default action: [module].html, eg News.html
// 9: Module (new style call) default action: [module]-main.html
// 10: Article Full Story: displayarticle[StoryID].html
// 11: Article Full Story, comment mode specified: displayarticle[StoryID]-[mode].html
// 12: Send an email about an article: sendarticle[storyID].html
// 13: Section-X.html
// 14: Sections-articleX-p[page].html
// 15: Print an article: printarticle[StoryID].html
// 16: List category: Category[CatID].html
// 17: List stories for a topic: Category[CatID]-All.html
// 18: List all sories on a topic: Topic[Topic]allstories.html
// 19: FAQ-CategoryX-[Category]-ParentX-myfaq-[yes].html
// 19: PNphpBB2 links
// 20: Search strings, like from article page and Top Ten list: "News by [username]"
// 21: Content Express menu-only links
// 22: Content Express content links
// 23-25: Renders generic links for old-style modules
// 26: New-style module calls with one parameter
//
// For PostCalendar 3, use this format in the $in array:
// $prefix . 'index.php\?module=PostCalendar&(?:amp ?func=view(?:&(?:amp ?tplview=)?&(?:amp ?viewtype=([^&]\w+)&(?:amp ?Date=(\d{2})/(\d{2})/(\d{4})"|',
// and the following in the corresponding position in the $out array:
// '"PostCalendar3----.html"|',
// and add this to the htaccess file:
// RewriteRule ^PostCalendar3-([0-9]{2})-([0-9]{2})-([0-9]{4})-([a-zA-Z_]+)\.html$ index.php?module=PostCalendar&func=view&viewtype=&Date=// [L,NC]
// Old PNphpBB2 rule, prior to V1.1
// $prefix . 'modules.php\?op=modload&(?:amp ?name=((?:PN)?phpBB2)&(?:amp ?file=(\w+)(?:&(?:amp ?t=(\d{1,2}))?(?:&(?:amp ?f=(\d{1,2}))?(?:&(?:amp ?sid=([\w\d]+))?"|',
// '"--t-f-.html"',
// 5-parameter generic rule taken out (after Content Express)
// $prefix . 'modules.php\?op=modload&(?:amp ?name=([\w\d]+)&(?:amp ?file=([\w\d]+)&(?:amp ?([\w\d]+)=([\w\d]*)&(?:amp ?([\w\d]+)=([\w\d]*)&(?:amp ?([\w\d]+)=([\w\d]*)&(?:amp ?([\w\d]+)=([\w\d]*)"|',
//'"+--------.html"',
// modded by supa - this simplifies the whoe function simple_uri() to 4 lines instead of 15
function simple_uri()
{
$uri=basename($_SERVER['PHP_SELF']); // Note: For PHP earlier than 4.1.0, use $HTTP_SERVER_VARS instead
if ($uri == "user.html" || $uri == "admin.html" || defined("LOADED_AS_MODULE"))
{ $uri="old"; }
else{ $uri="new"; }
return $uri;
}
// end of supa mod
function simplify_urls(&$s) {
$base_url = pnGetBaseURL();
$prefix = '|"(?:'.$base_url.')?';
// (?i) means case insensitive; \w='word' character; \d=digit; (amp ? means optional; (?:catid=)? means optional and won't capture string for backreferences
$in = array(
//Gallery index
$prefix . 'modules.php\?op=modload&(?:amp ?name=Gallery&(?:amp ?file=index&(?:amp ?include=albums.php"|',
//test link
//$prefix . 'modules.php\?set_albumName=([\-\w\d+]+)&(?:amp ?op=modload&(?:amp ?name=Gallery&(?:amp ?file=index&(?:amp ?include=sort_album.php"|',
//albums navigation
$prefix . 'modules.php\?set_albumName=([\-\w\d+]+)&(?:amp ?op=modload&(?:amp ?name=Gallery&(?:amp ?file=index&(?:amp ?include=view_album.php&(?:amp ?page=(\d+)"|',
//photos link
$prefix . 'modules.php\?set_albumName=([\-\w\d+]+)&(?:amp ?id=([^&-]+)&(?:amp ?op=modload&(?:amp ?name=Gallery&(?:amp ?file=index&(?:amp ?include=view_photo.php"|',
//full preview link
$prefix . 'modules.php\?full=1&(amp ?set_albumName=([\-\w\d+]+)&(amp ?id=([^&-]+)&op=modload&name=Gallery&(amp ?file=index&(amp ?include=view_photo.php"|',
//view albums, view comments and slideshow
$prefix . 'modules.php\?set_albumName=([\-\w\d+]+)&(?:amp ?op=modload&(?:amp ?name=Gallery&(?:amp ?file=index&(?:amp ?include=(\w*).php"|',
//add comment
$prefix . 'modules.php\?set_albumName=([\-\w\d+]+)&(?:amp ?index=([^&-]+)&(?:amp ?op=modload&(?:amp ?name=Gallery&(?:amp ?file=index&(?:amp ?include=add_comment.php"|',
//slideshow full
$prefix . 'modules.php\?set_albumName=([\-\w\d+]+)&(?:amp ?slide_full=1&(?:amp ?op=modload&(?:amp ?name=Gallery&(?:amp ?file=index&(?:amp ?include=slideshow.php"|',
//added for page numbers to work
$prefix . 'modules.php\?op=modload&(?:amp ?name=([\w\d]+)&(?:amp ?file=([\w\d]+)&(?:amp ?catid=([\w\d]*)&(?:amp ?topic=([\w\d]*)&(?:amp ?startnums=([\w\d]*)"|',
$prefix . 'index.php\?module=PostCalendar&(?:amp ?func=view&(?:amp ?Date=(\d{4})(\d{2})(\d{2})(?:&(?:amp ?tplview=)?&(?:amp ?viewtype=details&(?:amp ?eid=(\d+)&(?:amp ?print="|',
$prefix . 'index.php\?module=PostCalendar&(?:amp ?func=view&(?:amp ?tplview=default&(?:amp ?viewtype=month&(?:amp ?Date=(\d{4})(\d{2})(\d{2})"|',
$prefix . 'index.php\?module=PostCalendar&(?:amp ?func=view&(?:amp ?tplview=(\w+)&(?:amp ?viewtype=(\w+)&(?:amp ?Date=(\d{4})(\d{2})(\d{2})(?:&(?:amp ?pc_username=)?(?:&(?:amp ?pc_category=)?(?:&(?:amp ?pc_topic=)?(?:&(?:amp ?print=)?"|',
$prefix . 'index.php\?module=PostCalendar&(?:amp ?func=view(?:&(?:amp ?tplview=)?&(?:amp ?viewtype=(\w+)&(?:amp ?Date=(\d{4})(\d{2})(\d{2})(?:&(?:amp ?pc_username=)?(?:&(?:amp ?pc_category=)?(?:&(?:amp ?pc_topic=)?(?:&(?:amp ?print=)?"|',
$prefix . 'index.php\?module=PostCalendar&(?:amp ?func=(\w+[^&])"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=([^&]+)&(?:amp ?file=index(?:&(?:amp ?req=(\w*))?&(?:amp ?pollID=(\d{1,2})(?:&(?:amp ?mode=(\w*))?(?:&(?:amp ?order=(\d))?(?:&(?:amp ?thold=(\d))?"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=([^&]+)&(?:amp ?file=index&(?:amp ?req=([\w\d+]+)"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=([^&]+)&(?:amp ?file=index"|',
$prefix . 'index.php\?module=([^&]+)&(?:amp ?func=main"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=News&(?:amp ?file=article&(?:amp ?sid=(\d+)(&(?:amp ?mode=thread&(?:amp ?order=0&(?:amp ?thold=0)?"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=News&(?:amp ?file=article&(?:amp ?sid=(\d+)&(?:amp ?mode=([^&]+)&(?:amp ?order=(\d)&(?:amp ?thold=([-\d]{1,2})"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=Recommend_Us&(?:amp ?file=index&(?:amp ?req=FriendSend&(?:amp ?sid=(\d+)"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=Sections&(?:amp ?file=index&(?:amp ?req=listarticles&(?:amp ?secid=(\d+)"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=Sections&(?:amp ?file=index&(?:amp ?req=viewarticle&(?:amp ?artid=(\d+)(?:&(?:amp ?page=(\d*))?"|',
$prefix . 'print.php\?sid=(\d+)"|',
$prefix . 'index.php\?(?:&(?:amp ?)?catid=(\d+)"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=News&(?:amp ?file=index&(?:amp ?catid=(\d{1,2})(?:&(?:amp ?topic=(\d{0,3}))?(?:&(?:amp ?allstories=1)?"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=News&(?:amp ?file=index(?:&(?:amp ?catid=)?&(?:amp ?topic=(\d{1,3})(?:&(?:amp ?(all)stories=1)?"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=FAQ&(?:amp ?file=index&(?:amp ?myfaq=(\w+)&(?:amp ?id_cat=(\d+)&(?:amp ?categories=([^&-]+)&(?:amp ?parent_id=(\d+)"|',
$prefix . 'index.php\?name=(PNphpBB2)&(?:amp ?file=(\w+)(?:&(?:amp ?([tfc])=(\d+))?(?:&(?:amp ?(sid)=([\w\d]*))?"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=Search&(?:amp ?file=index&(?:amp ?action=search(?:&(?:amp ?overview=(\d+))?&(?:amp ?active_stories=(\d+)(?:&(?:amp ?stories_author=([0-9A-Za-zÀ-ÖØ-öø-ÿ_]+))?(?:&(?:amp ?stories_topics\[0\]=(\d+))?"|',
$prefix . 'index.php\?module=ContentExpress&(?:amp ?func=display&(?:amp ?bid=(\d+)&(?:amp ?btitle=([^&]+)&(amp ?mid=(\d+)&(?:amp ?ceid=-1"|',
$prefix . 'index.php\?module=ContentExpress&(?:amp ?func=display&(?:amp ?bid=(\d+)&(?:amp ?btitle=([^&]+)&(amp ?mid=(\d+)&(?:amp ?ceid=(\d+)"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=([\w\d]+)&(?:amp ?file=([\w\d]+)&(?:amp ?([\w\d]+)=([\w\d]*)&(?:amp ?([\w\d]+)=([\w\d]*)&(?:amp ?([\w\d]+)=([\w\d]*)"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=([\w\d]+)&(?:amp ?file=([\w\d]+)&(?:amp ?([\w\d]+)=([\w\d]*)&(?:amp ?([\w\d]+)=([\w\d]*)"|',
$prefix . 'modules.php\?op=modload&(?:amp ?name=([\w\d]+)&(?:amp ?file=([\w\d]+)&(?:amp ?([\w\d]+)=([\w\d]*)"|',
$prefix . 'index.php\?module=([\w\d]+)&(?:amp ?func=([\w\d]+)&(?:amp ?([\w\d]+)=([\w\d]*)"|'
);
// Changed $1+main.html to $1.html, eg FAQ.html instead of FAQ+main.html
$out = array(
'"Gallery.html"',
//'"Gallery-$1"',
'"Gallery+$1-page$2.html"',
'"Gallery+$1+$2.html"',
'"Gallery+$2-$4-full.html"',
'"Gallery-$1+$2.html"',
'"Gallery+$1-index$2-add_comment.html"',
'"Gallery+$1-slideshow_full.html"',
//page numbers
'"$1+$2-catid-$3-topic-$4-startnums-$5.html"',
'"PostCalendar-$3-$2-$1-event-$4.html"',
'"PostCalendar-$3-$2-$1.html"',
'"PostCalendar-$5-$4-$3-$2-$1.html"',
'"PostCalendar-$4-$3-$2-$1.html"',
'"PostCalendar-$1.html"',
'"Poll-$3$2.html"',
'"$1+$2.html"',
'"$1.html"',
'"$1-main.html"',
'"Article$1.html"',
'"Article$1-$2-order$3-threshold$4.html"',
'"SendArticle$1.html"',
'"Section-$1.html"',
'"Sections-article$1-p$2.html"',
'"PrintArticle$1.html"',
'"Category$1.html"',
'"Category$1-All.html"',
'"Topic$1$2.html"',
'"FAQ-Category$2-$3-Parent$4-myfaq-$1.html"',
'"$1-$2-$3$4-$5$6.html"',
'"Search-$3-$1-$2-$4.html"',
'"Content-$2-$1-$3-menu.html"',
'"Content-$2-$1-$3-$4.html"',
'"$1+$2-$3-$4-$5-$6-$7-$8.html"',
'"$1+$2-$3-$4-$5-$6.html"',
'"$1+$2-$3-$4.html"',
'"$1-$2-$3-$4.html"'
);
$s = preg_replace($in, $out, $s);
// Debugging
// echo"<div align=\"left\">"; print_r($in); echo " ";
// echo"<div align=\"left\">"; print_r($out); echo " ";
// Debugging code to save what is generated, in case the output is mangled
// so horribly that the browser won't display it.
//
// Make sure that the path and file specified in the fopen() exist & writeable
//
// $fp=fopen("/var/www/html/themes/$GLOBALS[thename]/debug.log", "a");
// fwrite($fp, $s);
// fclose($fp);
// $s .= "";
return $s;
}
?>
This was also slightly modded to work with pagination (startnums)
Also: get rid of the smilies
[Editado el 13/4/2004 por supa]
[Edit by el_cuervo]
smilies deleted
[Editado el 13/4/2004 por el_cuervo]
[Editado el 13/4/2004 por supa]
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
supa
Enviado: 13/04/2004 a las 21:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
so u peeps tell me what u think, any questions i will answer to the best of my abilities..
and these fixes brought to you by the team at www.ttgapers.com - get in the know..
the ONLY truly Caribbean Portal....
cuervo & madbull u can email me if you have any problems.
glad to be of assitance to the postnuke community.
MY only WISH now is integration with SNakeSEO which i am working on.
supa
[Editado el 13/4/2004 por supa]
[Editado el 13/4/2004 por supa]
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
©madbull
Enviado: 15/04/2004 a las 16:04
Novato
Karma: 0 (0 Votos)
Registrado: 05/04/04
Mensajes: 5
Estado: Desconectado Ultima visita: 10/04/05
hi supa...
with ur htaccess i just get an 500
with another one, don't ask me wich one, just don't know anymore, it seems to work partially but i get following errors:
Parse error: parse error, unexpected '}' in /www/htdocs/v099401/footer.php on line 105
Parse error: parse error, unexpected ',' in /www/htdocs/v099401/modules/PNphpBB2/templates/subSilver/headerBB2.php on line 82
also my right column doesn't seem to work, or isn't showing up at all...
the pnbloodhound-block isn't working either, but i think that is a minor prob/detail...
i sent u an email with used files (just copies of urs) and the .htaccess i used...
greetz...
madbull...
[{b]EDIT:[/b] well actually, i would like to sentd u a mail, but just can't trace ur adress anywhere... even not on ur site...
[Editado el 15/4/2004 por ©madbull]
still having phpbb2, pre-modded plus 1.03 with a lot of integrated mods...
starting a postnuke-conversion now... <<<===== conversion done and PN running
supa
Enviado: 15/04/2004 a las 18:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
hey
Please take these lines out your .htaccess:
# -- For general redirection at root
RewriteBase /pn
They are there because my postnuke is installed in a sub-directory and not the root on my webserver.
I edited my initial posts, so please read higher up. I am using dp-shorturls 2.0's header and footer. the .htaccess and functions remain the same with the exception of editing out the line above if your postnuke is in the root.
send me your URL to your site and i can have a look at it for you.
supa
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
teddy
Enviado: 15/04/2004 a las 20:04
Novato
Karma: 0 (0 Votos)
Registrado: 15/01/04
Mensajes: 12
Estado: Desconectado Ultima visita: 10/04/05
Hi supa, thank you for your work!
I had same results of madbull (after becoming error 500 and replacing with my old one), but for the parse error, that's the following:
Parse error: parse error, expecting `')'' in /home/asisi/public_html/functions.php on line 101
Fatal error: Call to undefined function: simplify_urls() in /home/asisi/public_html/footer.php on line 103
I can infer that these errors depends not on your settings, but on ours own settings.
I tried taking out the redirection lines too...
supa
Enviado: 15/04/2004 a las 21:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
i am experiencing your same issues on my dev site.
it "seems" there are issues with the functions.php
i have tested the following "user-related" rewrites that work from the address bar, but run into problems when processed normally.
'"admin.html"',
'"index.html"',
'"user.html"',
if u use the functions.php and the .htaccess that i provided there is no problem.
supa
[Editado el 15/4/2004 por supa]
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
supa
Enviado: 16/04/2004 a las 17:04
Frecuente
Karma: 0 (0 Votos)
Registrado: 27/02/04
Mensajes: 27
Estado: Desconectado Ultima visita: 10/04/05
you are correct...i have edited my headerBB.php to remove the globals, and inserted the above code.
http://www.ttgapers.com - the ultimate caribbean portal - with shorturls
teddy
Enviado: 16/04/2004 a las 19:04
Novato
Karma: 0 (0 Votos)
Registrado: 15/01/04
Mensajes: 12
Estado: Desconectado Ultima visita: 10/04/05
Ok, I installed the new package, but I still get an error only on these link: forum entrance, member list, search, FAQ
http://www.volleyclub.it/-PNphpBB2-index-.html
http://www.volleyclub.it/-PNphpBB2-search-.html
and so on...
what can I correct?
el_cuervo
Enviado: 17/04/2004 a las 03:04
Administrador
Karma: 9 (83 Votos)
Registrado: 12/06/03
Mensajes: 6528
Estado: Desconectado Ultima visita: 23/07/07
try this:
1 > Edit functions.php file and go to $in = array (...)
2 > look for this lines:
/*
'"PNphpBB2.'.$extension.'"',
'"PNphpBB2.'.$extension.'"',
'"PNphpBB2-$1.'.$extension.'"',
'"PNphpBB2-$1-$2-$3.'.$extension.'"',
'"PNphpBB2-$1-$2-$3-$4-$5.'.$extension.'"',
'"PNphpBB2-$1-$2-$3-$4-$5-$6-$7.'.$extension.'"',
'"PNphpBB2-$1-$2-$3-$4-$5-$6-$7-$8-$9.'.$extension.'"',
*/
'"PNphpBB2.html"',
'"PNphpBB2.html"',
'"PNphpBB2-$3.html"',
'"PNphpBB2-$3-$5-$6.html"',
'"PNphpBB2-$3-$5-$6-$8-$9.html"',
'"PNphpBB2-$3-$5-$6-$8-$9-$11-$12.html"',
'"PNphpBB2-$3-$5-$6-$8-$9-$11-$12-$14-$15.html"',