Home arrow Forum (SOLVED)[Joomla-SMF Recent Topics 1.6] No topics shown with Orstio's bridge
  Welcome, Guest. Please login or register.
Did you miss your activation email?
September 06, 2008, 01:24:15 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 1.6] No topics shown with Orstio's bridge
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: (SOLVED)[Joomla-SMF Recent Topics 1.6] No topics shown with Orstio's bridge  (Read 5492 times)
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
(SOLVED)[Joomla-SMF Recent Topics 1.6] No topics shown with Orstio's bridge
« on: January 08, 2006, 05:35:49 PM »

Joomla-SMF Recent Topics 1.6 does not work with Orstio's bridge.
« Last Edit: January 10, 2006, 10:34:23 AM by -Wolverine » Logged

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

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #1 on: January 09, 2006, 12:17:07 PM »

My new forum topics 1.6 just dont come up at all. any ideas?
You may checked it out here:
http://www.chip.co.id/elex/index.php?option=com_content&task=blogsection&id=1&Itemid=75

My New Forum Topics is on right side!
« Last Edit: January 09, 2006, 12:20:23 PM by Benediktus » Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #2 on: January 09, 2006, 02:07:24 PM »

this happens for both logged in and guest users?  I am going to post the SQL, do you have access to phpmyadmin or similar?
Logged

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

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #3 on: January 09, 2006, 02:28:52 PM »

this happens for both logged in and guest users?  I am going to post the SQL, do you have access to phpmyadmin or similar?

Yes please.. Thanks
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #4 on: January 09, 2006, 02:40:29 PM »

guest user query:
Code:
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,
0 AS new_from
FROM (smf_members AS mem, smf_topics AS t, smf_messages AS m, smf_messages AS m2, smf_boards AS b )
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 FIND_IN_SET(-1, b.memberGroups)
ORDER BY m.ID_MSG DESC
LIMIT 5

And a logged user SQL is:
Code:
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 = 308)
LEFT JOIN smf_log_mark_read AS lmr ON (lmr.ID_BOARD = t.ID_BOARD AND lmr.ID_MEMBER = 308))
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 1 ORDER BY m.ID_MSG DESC
LIMIT 5

you must replace the above references to user id 308 with a valid user id for your site

Execute thes in the SQL tab not the Query tab.  Post the results.
Logged

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

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #5 on: January 09, 2006, 09:20:39 PM »

guest user query:
Code:
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,
0 AS new_from
FROM (smf_members AS mem, smf_topics AS t, smf_messages AS m, smf_messages AS m2, smf_boards AS b )
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 FIND_IN_SET(-1, b.memberGroups)
ORDER BY m.ID_MSG DESC
LIMIT 5

And a logged user SQL is:
Code:
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 = 308)
LEFT JOIN smf_log_mark_read AS lmr ON (lmr.ID_BOARD = t.ID_BOARD AND lmr.ID_MEMBER = 308))
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 1 ORDER BY m.ID_MSG DESC
LIMIT 5

you must replace the above references to user id 308 with a valid user id for your site

Execute thes in the SQL tab not the Query tab.  Post the results.


I've done it in phpmyadmin, and the 5 new forum post come up. ok, so what next should I do with these query?
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #6 on: January 09, 2006, 10:00:00 PM »

uninstall and reinstall the module is the only other thing I can think of.  If it works in phpmyadmin then it should work in the module.
Logged

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

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #7 on: January 09, 2006, 11:46:11 PM »

uninstall and reinstall the module is the only other thing I can think of.  If it works in phpmyadmin then it should work in the module.

But still dont come up  Huh You may check it out here: http://www.chip.co.id/elex/index.php?option=com_jd-wp&Itemid=61

See on the right side bar
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #8 on: January 10, 2006, 08:37:47 AM »

Try this, it has more debugging in it.  This will break your site temporarily to gather more information.  So make sure you backup the current file first.

1) Create backup of modules/mod_smf_recent_topics.php by copying the file to modules/mod_smf_recent_topics.php.bak
2) Extract the attached file mod_smf_recent_topics.zip
3) Upload the file mod_smf_recent_topics.php to modules/mod_smf_recent_topics.php
3) Reload your site and post the information that is presented in the Recent Topics module.

Logged

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

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #9 on: January 10, 2006, 09:03:05 AM »

Try this, it has more debugging in it.  This will break your site temporarily to gather more information.  So make sure you backup the current file first.

1) Create backup of modules/mod_smf_recent_topics.php by copying the file to modules/mod_smf_recent_topics.php.bak
2) Extract the attached file mod_smf_recent_topics.zip
3) Upload the file mod_smf_recent_topics.php to modules/mod_smf_recent_topics.php
3) Reload your site and post the information that is presented in the Recent Topics module.

This is the result in the recent topics module when reload:

 New Forum Post
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 (members AS mem, topics AS t, messages AS m, messages AS m2, boards AS b LEFT JOIN log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = 5) LEFT JOIN log_mark_read AS lmr ON (lmr.ID_BOARD = t.ID_BOARD AND lmr.ID_MEMBER = 5)) 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 (FIND_IN_SET(9, b.memberGroups) OR FIND_IN_SET(5, b.memberGroups)) ORDER BY m.ID_MSG DESC LIMIT 5posts is empty
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #10 on: January 10, 2006, 09:08:22 AM »

This is the result in the recent topics module when reload:

 New Forum Post
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 (members AS mem, topics AS t, messages AS m, messages AS m2, boards AS b LEFT JOIN log_topics AS lt ON (lt.ID_TOPIC = t.ID_TOPIC AND lt.ID_MEMBER = 5) LEFT JOIN log_mark_read AS lmr ON (lmr.ID_BOARD = t.ID_BOARD AND lmr.ID_MEMBER = 5)) 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 (FIND_IN_SET(9, b.memberGroups) OR FIND_IN_SET(5, b.memberGroups)) ORDER BY m.ID_MSG DESC LIMIT 5

posts is empty
The query is not returning any results(see last line) as indicated by posts is empty.  Execute the above SQL in phpmyadmin SQL tab and see what you get.

Logged

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

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #11 on: January 10, 2006, 09:32:02 AM »

The query is not returning any results(see last line) as indicated by posts is empty.  Execute the above SQL in phpmyadmin SQL tab and see what you get.

Get an error this:

MySQL said: Documentation
#1146 - Table 'emk.members' doesn't exist
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #12 on: January 10, 2006, 09:34:41 AM »

uhhhhhhh, checking your SQL the prefix for the smf tables are not being populated.  What is your smf table prefix?  Have you saved the bridge configuration field that stores the smf table prefix?
Logged

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

Karma: +0/-0
Offline Offline

Posts: 28


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #13 on: January 10, 2006, 09:41:54 AM »

uhhhhhhh, checking your SQL the prefix for the smf tables are not being populated.  What is your smf table prefix?  Have you saved the bridge configuration field that stores the smf table prefix?

I use smf_ for smf table prefix
Logged

--Benediktus Yosef
EMO - Elex Media Online
http://www.elexmedia.co.id
-Wolverine
Moderator
Joomla Guru
*****

Karma: +374/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: [Joomla-SMF Recent Topics 1.6] guests shown private topics
« Reply #14 on: January 10, 2006, 09:43:27 AM »

post the text from the file administrator/components/com_smf/config.smf.php
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Pages: [1] 2 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