Home arrow Forum (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 06:12:05 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.0.x (Moderators: -Wolverine, kai920)
| | | |-+  (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 3 4 [5] 6 Go Down Print
Author Topic: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem  (Read 18280 times)
Rick Henson
Joomla Pro
**

Karma: +3/-0
Offline Offline

Posts: 82


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #60 on: January 26, 2006, 11:06:30 AM »

Wolverine,

Not sure what is up with mine over Benediktus's, This is the latest error, would it be easier if you had direct access to my site? Thanks again for all you do.

Code:
Error fetching Recent Topics: 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY m.ID_MSG DESC LIMIT 5' at line 30
Logged

Rick

Running:
Joomla! 1.0.7 Stable
Community Builder 1.0 rc2
SMF 1.1 RC2
JSMF 1.1 RC2 patch1
JSMF CB Plugin 1.0.1
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #61 on: January 26, 2006, 11:12:06 AM »

maybe... but first, just use this debug version, it will again display the entire SQL query.  Can you just post it or send it to me?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Rick Henson
Joomla Pro
**

Karma: +3/-0
Offline Offline

Posts: 82


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #62 on: January 26, 2006, 11:23:32 AM »

Here is the query and the results.

Code:
SQL query:

SELECT mem.realName, m.posterTime, m2.subject, t.ID_TOPIC, t.ID_MEMBER_UPDATED, t.ID_LAST_MSG, m.ID_MSG_MODIFIED, m.ID_BOARD, b.name AS bName, t.numReplies, m.posterName AS memberName, IFNULL( lt.ID_MSG, IFNULL( lmr.ID_MSG, -1 ) ) +1 AS new_from
FROM (

smf_members AS mem, smf_topics AS t, smf_messages AS m, smf_messages AS m2, smf_boards AS b
LEFT JOIN smf_log_topics AS lt ON ( lt.ID_TOPIC = t.ID_TOPIC
AND lt.ID_MEMBER = '' )
LEFT JOIN smf_log_mark_read AS lmr ON ( lmr.ID_BOARD = t.ID_BOARD
AND lmr.ID_MEMBER = '' )
)
WHERE t.ID_BOARD = m.ID_BOARD
AND t.ID_BOARD = b.ID_BOARD
AND t.ID_LAST_MSG = m.ID_MSG
AND t.ID_FIRST_MSG = m2.ID_MSG
AND mem.memberName = m.posterName
AND ORDER BY m.ID_MSG DESC
LIMIT 5


MySQL said: 

#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY m.ID_MSG DESC LIMIT 5' at line 1
Logged

Rick

Running:
Joomla! 1.0.7 Stable
Community Builder 1.0 rc2
SMF 1.1 RC2
JSMF 1.1 RC2 patch1
JSMF CB Plugin 1.0.1
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #63 on: January 26, 2006, 11:27:12 AM »

Quote from: Rick Henson
SELECT mem.realName, m.posterTime, m2.subject, t.ID_TOPIC, t.ID_MEMBER_UPDATED, t.ID_LAST_MSG, m.ID_MSG_MODIFIED, m.ID_BOARD, b.name AS bName, t.numReplies, m.posterName AS memberName, IFNULL( lt.ID_MSG, IFNULL( lmr.ID_MSG, -1 ) ) +1 AS new_from
FROM (

smf_members AS mem, smf_topics AS t, smf_messages AS m, smf_messages AS m2, smf_boards AS b
LEFT JOIN smf_log_topics AS lt ON ( lt.ID_TOPIC = t.ID_TOPIC
AND lt.ID_MEMBER = '' )
LEFT JOIN smf_log_mark_read AS lmr ON ( lmr.ID_BOARD = t.ID_BOARD
AND lmr.ID_MEMBER = '' )
)
WHERE t.ID_BOARD = m.ID_BOARD
AND t.ID_BOARD = b.ID_BOARD
AND t.ID_LAST_MSG = m.ID_MSG
AND t.ID_FIRST_MSG = m2.ID_MSG
AND mem.memberName = m.posterName
AND ORDER BY m.ID_MSG DESC
LIMIT 5


Not much I can do about this.  $user_info is not global and I cannot get SMF information from Joomla/Mambo.  $user_info is how I get the ID_MEMBER and the info on what this user has permission to view.  If it isn't global at this point then I don't know that there is any way to get those.  I will look around.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Rick Henson
Joomla Pro
**

Karma: +3/-0
Offline Offline

Posts: 82


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #64 on: January 26, 2006, 11:37:56 AM »

Do you think this has something to do with the com_connector that I have been forced to use? I would really like to use cowboys but since it no longer works and my forums have been down for about a month now I had to do soemthing else in the interim. Do you have anykind of time line for an update to the bridge?

I have seen a lot of references both here and on other boards that people are waiting on Joomla 1.1 but I have not seen any firm dates for that yet. The road map says Q1 2006 but that could be up to 2 months from now.

Again thanks for all you are doing. Have a great day,
Logged

Rick

Running:
Joomla! 1.0.7 Stable
Community Builder 1.0 rc2
SMF 1.1 RC2
JSMF 1.1 RC2 patch1
JSMF CB Plugin 1.0.1
Benediktus
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #65 on: January 28, 2006, 10:53:43 AM »

Code:
Error fetching Recent Topics: 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY m.ID_MSG DESC LIMIT 5' at line 30

What if try Orstio's "Bridge Mambo,Joomla SMF 1.1 RC2.zip". You know where is to download? Yes SMF forum. Please read "readme.html" file first, and good luck!
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
Rick Henson
Joomla Pro
**

Karma: +3/-0
Offline Offline

Posts: 82


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #66 on: January 28, 2006, 11:03:18 PM »

It's a nice bridge but does not support Community Builder. Most of the time they are even hostile towards even discussing it so that is not a solution for me. Thanks
Logged

Rick

Running:
Joomla! 1.0.7 Stable
Community Builder 1.0 rc2
SMF 1.1 RC2
JSMF 1.1 RC2 patch1
JSMF CB Plugin 1.0.1
enuttage
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #67 on: January 30, 2006, 05:35:01 PM »

Newb here.

I too am having trouble with this module (v. 1.6.1). I'm probably doing something painfully obvious in my wrongness. But I can't figure it out.

SMF 1.1 RC2
Joomla 1.0.3
Apache
php 4.4.2

Site here:

http://whbl.org

Warning is:

Quote
Warning: main(/home/whbl/www/www/administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /home/whbl/www/www/modules/mod_smf_recent_topics.php on line 31

Warning: main(/home/whbl/www/www/administrator/components/com_smf/config.smf.php): failed to open stream: No such file or directory in /home/whbl/www/www/modules/mod_smf_recent_topics.php on line 31

Fatal error: main(): Failed opening required '/home/whbl/www/www/administrator/components/com_smf/config.smf.php' (include_path='.:/usr/local/lib/php') in /home/whbl/www/www/modules/mod_smf_recent_topics.php on line 31

Can anyone immediately see what's happening?

I am NOT using the bridge, but would still very much like to see the most recent topics via a Joomla module on the front page.

TIA,

-E
Logged
Rick Henson
Joomla Pro
**

Karma: +3/-0
Offline Offline

Posts: 82


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #68 on: January 30, 2006, 06:17:25 PM »

Have you tried 1.6.2? You can find it at http://www.joomlahacks.com/component/option,com_smf/Itemid,94/action,dlattach/topic,1161.0/attach,317
Logged

Rick

Running:
Joomla! 1.0.7 Stable
Community Builder 1.0 rc2
SMF 1.1 RC2
JSMF 1.1 RC2 patch1
JSMF CB Plugin 1.0.1
enuttage
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #69 on: January 30, 2006, 06:57:40 PM »


Thanks, Rick.

I downloaded it and installed it.

No dice so far. Looks like I've got the exact same error message.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #70 on: January 30, 2006, 09:33:23 PM »

This is a bug, that file shouldn't be included in 1.6.2.  Edit the file mod_smf_recent_topics.php and comment the following line:

Code:
require($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");

Change it to look like:

Code:
//require($mosConfig_absolute_path."/administrator/components/com_smf/config.smf.php");

That should resolve the issue. 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
enuttage
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #71 on: January 30, 2006, 10:20:16 PM »

Very cool. Thank you very much, -Wolverine.

Now I'm getting this message:

Quote
Error fetching ID_MEMBER: 1146 Table 'joomla.smf_members' doesn't exist

What do you make of that.

And again, thank you for your patience.

-E
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #72 on: January 30, 2006, 10:43:42 PM »

are joomla and smf in the same db?  Do you have SMF installed?
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
enuttage
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #73 on: January 30, 2006, 10:56:04 PM »

are joomla and smf in the same db?  Do you have SMF installed?

For the first question, 'no'.

For the secone, 'yes'.

Forum link is here:

http://www.whbl.org/forum/

I'm not using the bridge. Does SMF still need to be in the same database? It makes me nervous (for no good reason Smiley).

If I need to re-install on the same DB, I can. Just let me know and I'll give it a shot.

Thanks again,

-E
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: (SOLVED) Joomla-SMF Recent Topics module and SMF 1.1RC2 display problem
« Reply #74 on: January 30, 2006, 11:01:51 PM »

For this module, and most of the other joomla_smf modules, you will need them both on the same db.  At least for now, maybe in the future I cna adapt them to work on two separate dbs, but for now it needs to be one to use it.  Which bridge or connector are you using.  Many times I can take a look at how they implemented the two separate db functionality and mimic it for the modules.  Don't expect anything soon though... I've been extremely busy lately, sorry...  Lips Sealed
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Pages: 1 ... 3 4 [5] 6 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login