Wie SEF URLs in ssi.php bei ssi_boardNews und ssi_recentPoll?

Started by Sven0, January 11, 2006, 06:02:51 AM

Previous topic - Next topic

Sven0

Hallo,

ich benutze ssi.php in Joomla und SMF 1.1 RC2 und zwar ssi_boardNews und ssi_recentPoll

das Problem ist bei ssi_boardNews das folgender Link bei Kommentar erscheint: http://www.domain.de/index.php?option=com_smf&Itemid=198&?topic=21415.0 und bei Kommentar schreiben: http://www.domain.de/index.php?option=com_smf&Itemid=198&?action=post;topic=21415.1;num_replies=1

also keine SEF URLs

mod_smf_boardnews.php hierzu ist:

<?php

global $context, $txt, $scripturl, $mosConfig_dbprefix, $mosConfig_db, $db_name;

mysql_select_db($mosConfig_db);
$sql = "SELECT id FROM ".$mosConfig_dbprefix."menu WHERE link='index.php?option=com_smf'";

$result = mysql_query ($sql);

$row = mysql_fetch_array($result);

$myurl = $_SERVER['PHP_SELF'] . "?option=com_smf&Itemid=" . $row[0]."&";

$scripturl = $myurl;

ssi_boardNews();

?>


noch schlimmer ist es bei ssi_recentPoll , hier wird beim Abstimmen auf das unwrapped SMF verwiesen (welches normalerweise wrapped eingebunden ist): http://www.domain.de/forum/index.php/topic,18464.0.html

mod_smf_poll.php hierzu ist:

<?php
// This module is copied/ripped and adapted from Orstio's RecentTopics module.
// Edited to v1.1 (1/7-05) to automatically pick databasename and support bridge 3.19 /
// Thanks Orstio for doing the groundwork.


global $context, $txt, $scripturl, $mosConfig_dbprefix, $mosConfig_db, $db_name;

mysql_select_db($mosConfig_db);
$sql = "SELECT id FROM ".$mosConfig_dbprefix."menu WHERE link='index.php?option=com_smf'";

$result = mysql_query ($sql);

$row = mysql_fetch_array($result);

$myurl = $_SERVER['PHP_SELF'] . "?option=com_smf&Itemid=" . $row[0]."&";

$scripturl = $myurl;

ssi_recentPoll();
?>


Wie kann man beides verändern auf SEF URLs bzw. nur SEF URLs in ssi_boardNews und wrapped SMF URLs in ssi_recentPoll?

Sven0


mediman

Das ist ein Joomla-Problem, welches so mit einem Standalone nicht auftritt/auftreten sollte.
Eine Lösung wäre eine .htaccess.
My Projects: http://ticker-oase.de 
Please do not PM me with support requests.

Advertisement: