xoops forums

srdjan007

Just popping in
Posted on: 2009/6/24 14:56
srdjan007
srdjan007 (Show more)
Just popping in
Posts: 6
Since: 2008/7/9 9
#51

Re: SEO hack for CBB v3.08

Hello,
thats correct, i somehow found which line in seo.php is causing me troubles, if I comment:
//$newUrl = ('/modules/content/'.$seoMap[$seoOp]);

---------------------

<?php
/*
* $Id: seo.php,v 1.5 2006/08/15 19:52:08 malanciault Exp $
* Module: newbbss
* Author: Sudhaker Raj <http://xoops.biz>
* Licence: GNU
*/

$seoOp = $_GET['seoOp'];
$seoArg = $_GET['seoArg'];
$seoOther = $_GET['seoOther'];


if (!empty($seoOther))
{
$seoOther = explode("/",$seoOther);
}

$seoMap = array('c' => "index.php");

if (! empty($seoOp) && ! empty($seoMap[$seoOp]))
{
// module specific dispatching logic, other module must implement as
// per their requirements.

//$newUrl = ('/modules/content/'.$seoMap[$seoOp]);




$_ENV['PHP_SELF'] = $newUrl;
$_SERVER['SCRIPT_NAME'] = $newUrl;
$_SERVER['PHP_SELF'] = $newUrl;
switch ($seoOp) {
case 'c':
$_SERVER['REQUEST_URI'] = $newUrl . '?id=' . $seoArg;
$_GET['id'] = $seoArg;

include($seoMap[$seoOp]);
}

}

exit;

?>


------------------
than I get page but with msg: module does not exist.

if i put: $newUrl = ('/modules/content/'.$seoMap[$seoOp]);
back,then i get blank page...what do you think it could be?
some modifications should be done in index.php?

Did you mean that rewrite rule is not correct?

br,
Srdan



srdjan007

Just popping in
Posted on: 2009/6/29 12:48
srdjan007
srdjan007 (Show more)
Just popping in
Posts: 6
Since: 2008/7/9 9
#52

Re: SEO hack for CBB v3.08

Please help.
So close but cannot get it work.