Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: SEO hack for CBB v3.08
by srdjan007 on 2009/6/29 12:48:03

Please help.
So close but cannot get it work.
Re: SEO hack for CBB v3.08
by srdjan007 on 2009/6/24 14:56:34

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



Re: SEO hack for CBB v3.08
by ghia on 2009/6/24 13:59:44

Quote:
and when click there is blank page.
That is not what I see. Header and columns are showed normal, but at the place of the content:
Quote:
Izbrani modul ne obstaja!
Module unknown or not existant?

One weird thing i see is that your Apache rewrite rule in .htaccess uses seoArg to pass data to seo.php, which tries to retrieve the seoArg from seoOp.
Re: SEO hack for CBB v3.08
by srdjan007 on 2009/6/24 11:05:56

Hello,
at first I would really like to thank you for quick respond. Thank you.

No errors are in apache log,
at first when adopting there were errors like file missing...now i did it so that there is no errors (i had a problem with htacces written wrong, now it is correct and after that there is no apache errors).

web page is at: http://crevar.eu/nova (you can click it to see what I mean)

Access log from apache:
213.229.236.82 - - [24/Jun/2009:12:53:27 +0200] "GET /nova/storitve/c/4/izdelava-spletnih-strani/ HTTP/1.1" 200 -

If you put the mouse over the "Spletne strani" link at the left side of the page, you will see that it points to the correct rewrited link:
http://crevar.eu/nova/storitve/c/4/izdelava-spletnih-strani/

original link of that content is:
http://crevar.eu/nova/modules/content/index.php?id=4

and when click there is blank page. There is no php errors, no MySQL errors and no apache errors. I just think that in seo.php file defined in last post is something wrong written -changed.

header.php is included in index.php, i also try to include seo_url.php in index.php and there is no difference. So I put the include back to mainfile.php.

Is there anything else that I can send?
Thank you for your help again.

BR,
Srdan
Re: SEO hack for CBB v3.08
by ghia on 2009/6/23 16:09:11

Quote:
I almost got it work but not really sure where is the problem.
It s not clear if there is anything already working or what the symptons are. Apache logs?
Quote:
I have put the include of seo_url.php in mainfile.php, because I want that rewrite works also at the root not only when I am in module content.
Module content has only index.php and there is no header.php.
Don't do that for a starter. It is already complicated enough to just transpose it from one module to another. Follow as close as possible the original instructions.
If there is no header.php in the module, find the place where the root header.php is included, propably in index.php. Look out for code similarities of the CBB header.php, to spot the insertion point.

Who's Online

208 user(s) are online (162 user(s) are browsing Support Forums)


Members: 0


Guests: 208


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits