Customizing SMF > Joomla Bridge Support

Rewriting com_smf URLs to standalone URLS

(1/2) > >>

desquinn:
Hi,

Is there a method for rewriting com_smf urls to standalone "community/index.php?topic=58.0" type urls. Either a mod_rewrite or a database update method would be great.

I have swapped from joomla bridged to standalone and want to handle url's embedded in messages.

TIA

regards
Des Quinn

Kindred:
do the reverse of the database change that Goosemoose provided (listed in the combines readme thread)

desquinn:
I had looked at that and thought that it was something like that but to be honest my eyes are failing and brain is confused :(

I might be better at it in the morning but any help / guidance that you can give would be great. Was unsure of doing anything like that without have some sor tof limit on it so that any mistakes are limited to one post for example

in case it helps the urls in question are as follows:

old URL:
http://www.domain.org/component/option,com_smf/Itemid,83/topic,3402.0

New URL
http://www.domain.org/community/index.php?topic=3402.0

any clarification would be great but I think that the thought of sleep is starting to win me over :)



Kindred:

--- Quote from: Kindred on April 11, 2006, 10:55:16 AM ---FIXING LINKS IN SMF MESSAGES FROM PRE-BRIDGED FORUMS

(thanks to Goosemoose for this)
If you were running a forum prior to bridging it with mambo/joomla, there will be links in
messages that point to the unbridged forum location. You can change these by going
into phpMyAdmin and running a simple SQL command on the smf_messages table.

The format is:


--- Code: ---UPDATE smf_messages SET `body` = replace(`body`,"http://www.yoursite.com/forum/index.php?","http://www.yoursite.com/mambo/index.php?option=com_smf&Itemid=##&")

--- End code ---

where smf_messages is your actual table (change the smf_ if you are using a different
prefix, obviously)
where http://www.yoursite.com/forum/index.php is the actual URL of your previous
(unbridged) SMF index.php.
where http://www.yoursite.com/mambo/index.php is the actual location of your MAMBO/JOOMLA
index.php
where Itemid=## is your actual SMF component Itemid

so, an example, (as provided by Goosemoose)


--- Code: ---UPDATE rfc_messages SET `body` = replace(`body`,"http://www.goosemoose.com/rfc/index.php?topic=","http://www.goosemoose.com/index.php?option=com_smf&Itemid=70&topic=")

--- End code ---

He used rfc_ as his SMF database table prefix and rfc was the SMF directory.
note that his mambo is installed in the root directory...


--- End quote ---


so, instead you want to do:


--- Code: ---UPDATE smf_messages SET `body` = replace(`body`,"http://www.yoursite.com/component/option,com_smf/Itemid,83/","http://www.yoursite.com/community/index.php?")

--- End code ---

desquinn:
Just realised I forgot to say thanks for this help.

cheers.

Navigation

[0] Message Index

[#] Next page

Go to full version