SMF Discussbot 4.1 final + Orstio 1.1.5 Bridge + Joomla 1.0.10 + SMF 1.1 RC2

Started by skydig, July 17, 2006, 03:06:59 PM

Previous topic - Next topic

chadness

I don't mind you changing it at all.  I'm actually halfway through a complete re-write of it that doesn't require SSI.php at all, but in the mean time hopefully these modifications will help people.

Orstio is right, I don't have much time these days.  :)  My original changes to the discussbot were more of "sharing" the work I was doing for myself.

-chadness

skydig

Hello Chad!

If you want to take my file and give it away, of course, there is no problem for me!

I'm glad to hear about a new discussbot! Hope you'll find some time to code it...
@ pliss

Orstio

QuoteI don't mind you changing it at all.  I'm actually halfway through a complete re-write of it that doesn't require SSI.php at all,

How do you plan on getting a proper userid/session for posting without SSI.php?

blackfoxz

Quote from: skydig on July 18, 2006, 06:22:30 PM
Here is the link again :

http://skydig.free.fr/smf.discussbot.4.1mod.by.skydig.zip [nofollow]

I just edited the following lines:

line #32
require_once ($smf_path."/SSI.php");

to:
// Get the configuration.  This will tell Mambo where SMF is, and some integration settings
$database->setQuery("
SELECT `variable`, `value1`
FROM #__smf_config
");
$variables = $database->loadAssocList();

foreach ($variables as $variable){
$variable_name = $variable['variable'];
$$variable_name = $variable['value1'];
}

if (!defined('SMF'))
{
require($smf_path . '/SSI.php');
}


This modification corrects the "SSI.php not found" problem when loading joomla's frontpage.

lines #42, 160 and 162
($mosConfig_sef ? "" : $mosConfig_live_site."/").sefRelToAbs

to:
sefRelToAbs

This modification prevents the "http://www.yoursite.url/" from being prepended to the well formed link (which ended up in a 404 not found error when trying to click on the "discuss" link).
Again, this modification may not work on other systems or with SEO turned on, as I only tested it on my website.

Thanks for you comments !

I would be glad if my mod worked to send it to the author so that he can include it in an official release (this is the way I see it : the author is the only one who can approve my modifications, since he knows his code more than I do...)
It's great hacking!long time can't run discussbot,reinstall your bot working fine!!!
thank you!thank you again!
PS:i am no put code
<?php
ob_start('output');
$buffer = ob_get_contents();
ob_end_clean();
$buffer = str_replace('<input type="hidden" name="sc" value="" />'
,'<input type=hidden name="sc" value="'.$sc.'">', $buffer);
echo $buffer;
?>to mambo template. is working fine.
mambo4.5.23
SMF1.1RC2
Bridge SMF Ortisio 1.1.5
on mambo SEF

Quoth

I've followed quite the thread trail to end up here :p

I have the bot installed but even with your modifications i cant get passed the SSI.php error where the bot cannot find the file, which is rather annoying, any suggestions?

Would it work if i just stuck the path into that line in full?

J! 1.0.10
SMF 1.1RC2
Bridge 1.1.5

myuption

Hello, i've tried this, thanks for the effort.

WEll, i've changed the smf_discussbot.php and changed just what it's said above.

But i found 4

($mosConfig_sef ? "" : $mosConfig_live_site."/").sefRelToAbs

is it normal? i shouldn't change the last one?  :o

Cause after i changed exactly what is said... i'm getting this when i click inside joomla.

QuoteAn Error Has Occurred!
The topic or board you are looking for appears to be either missing or off limits to you.

And i have this in my articles html  ???

{mos_smf_discuss:<a name="b1" href="http://localhost/site/index.php?option=com_smf&amp;Itemid=33&amp;board=1.0" title="b1">General Discussion</a>}</strong>

its a fresh install, i tried to use {mos_smf_discuss:General Discussion} :(

Hope someone can guide me.

TheMaTrIx

Could someone explain to me how this is supposed to work with the zip attached?

On
Orstio Bridge 1.1.5+
Joomla 1.0.10+
SMF 1.1 RC+

While Orstio has stated very clearly that config.smf.php DOES NOT exist in the bridge anymore and the bot is calling for that file anyways(subsequently crashing Joomla because a require stated in the bot can't be met)?



Kindred

bridge 1.1.5 is serious outdated and is no longer available.

There are currently no bridges available for joomla, but bridge 1.1.1 is available for Mambo 4.6.x
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: