_
_ Handy PHP
_
_
Tutorials, Scripts, Information And Other Resources arrow Forum
Sunday, 07 September 2008
_

Refer A Friend using Revolution Money Exchange
Resource Menu
Handy PHP Store
Free Domain Name
PHP Functions
PHP Downloads
PHP Newsfeeds
PHP Tutorials
Webmaster Tools
User Login
TalkPHP
Get friendly help with your PHP problems for free.
www.talkphp.com
The PHP Resource Index
Handy PHP
Free PHP Help!

FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
New JoomlaBoard and FireBoard SearchBots Released. (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: New JoomlaBoard and FireBoard SearchBots Released.
#240
vujsa (Admin)
Admin
Posts: 139
graph
User Online Now Click here to see the profile of this user
Re:New JoomlaBoard and FireBoard SearchBots Releas 11 Months, 3 Weeks ago Karma: 4  
Please read the following to learn how to provide the information needed to resolve this issue: http://www.handyphp.com/component/option,com_fireboard/Itemid,21/func,view/id,239/catid,15/

Thank you,
vujsa
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#241
harrybozack (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:New JoomlaBoard and FireBoard SearchBots Releas 11 Months, 3 Weeks ago Karma: 0  
JTGlenn wrote:
QUOTE:
I'm testing the searchbot with Fireboard and it only works if the user is not logged into the site. I have tested with Fireboard set for all users and registered users. I have also tested several variations and here are the results:

...

Any help would be appreciated to get forum results when the user is logged in.


I'm having the same issue/results. Thanks!

I also debugged my system and got no errors.<br><br>Post edited by: harrybozack, at: 2007/09/18 20:32
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#244
vujsa (Admin)
Admin
Posts: 139
graph
User Online Now Click here to see the profile of this user
Re:New JoomlaBoard and FireBoard SearchBots Releas 11 Months, 3 Weeks ago Karma: 4  
JTGlenn,
Thank you for your email.

I cleaned it up a bit for your security:
QUOTE:

Notice: 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 'SELECT gid FROM jos_users WHERE id = 62) ORDER BY created DESC in /home/username/public_html/includes/database.php on line 294

/home/username/public_html/includes/database.php:485
/home/username/public_html/mambots/search/fireboard.searchbot.php:375
/home/username/public_html/includes/joomla.php:4360
/home/username/public_html/components/com_search/search.php:154
/home/username/public_html/components/com_search/search.php:25
/home/username/public_html/index.php:235
Notice: 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 'SELECT gid FROM jos_users WHERE id = 62) ORDER BY b.time DESC in /home/username/public_html/includes/database.php on line 294

/home/username/public_html/includes/database.php:485
/home/username/public_html/mambots/search/fireboard.searchbot.php:419
/home/username/public_html/includes/joomla.php:4360
/home/username/public_html/components/com_search/search.php:154
/home/username/public_html/components/com_search/search.php:25
/home/username/public_html/index.php:235


This line is where the SearchBot determines what privileges the user has. Later, this data is compared to the permissions required for the forum category in which a matching post is in.

What happens is that if the user is not logged in, then the permission is set to the default but if they are, then this query is run. For some reason, this query is not working on your website. So I'll ask a few more questions:

What version of PHP are you using?
What version of MySQL are you using?
Are you using some authorization system for Joomla other than the default such as JACLPlus?

Are there any other searchbots that seem to have similar problems on your site?

If you could email me the database queries at the bottom of your debugged search result page, it might provide more information.

vujsa
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#245
JTGlenn (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:New JoomlaBoard and FireBoard SearchBots Released. 11 Months, 3 Weeks ago Karma: 0  
QUOTE:

What version of PHP are you using?
What version of MySQL are you using?
Are you using some authorization system for Joomla other than the default such as JACLPlus?
Are there any other searchbots that seem to have similar problems on your site?


  • PHP Version 4.3.11

  • MySQL 4.0.27

  • I use Community Builder for user authorization

  • I don't see any other searchbots having similar problems


I did re-enable the default Joomla login module and the problem existing using the either the Joomla login or the CB login.
I will email you the debug log.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#246
vitbrevis (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:New JoomlaBoard and FireBoard SearchBots Released. 11 Months, 3 Weeks ago Karma: 0  
Search not working while logged in on my site either.

Using CB as the login/auth.

Works great when logged out tho.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#247
vujsa (Admin)
Admin
Posts: 139
graph
User Online Now Click here to see the profile of this user
Re:New JoomlaBoard and FireBoard SearchBots Releas 11 Months, 3 Weeks ago Karma: 4  
vitbrevis,

Please read the following: http://www.handyphp.com/component/option,com_fireboard/Itemid,21/func,view/id,239/catid,15/
You'll have to either post the data here or send it to the email address I'll send you. The email system tries to filter out HTML and as a result, mistakes some of the required data as HTML.

Please answer the following questions as well:
What version of PHP are you using?
What version of MySQL are you using?
Are you using some authorization system for Joomla other than the default such as JACLPlus?
Are there any other searchbots that seem to have similar problems on your site?

My hunch is that you are also using MySQL 4.0 whereas I developed the SearchBot on MySQL 5.0.27

Anyone experiencing a problem with this SearchBot, please do the following:
If you have access to your database with a tool such as phpMyAdmin, please try the following SQL command on your database:
Code:

SELECT b.subject AS title, a.message AS text, b.hits, c.pub_access, c.published, c.description, FROM_UNIXTIME(b.time) AS created, CONCAT('Forum','/', c.name) AS section, '2' AS browsernav, CONCAT('index.php?option=com_fireboard&amp;Itemid=', '26', '&amp;func=view&amp;catid=',b.catid,'&amp;id=',b.thread) AS href FROM jos_fb_messages_text AS a INNER JOIN jos_fb_messages AS b ON b.id = a.mesid INNER JOIN jos_fb_categories AS c ON c.id = b.catid WHERE ( (LOWER(b.subject) LIKE '%sample%' OR LOWER(a.message) LIKE '%sample%' OR LOWER(b.name) LIKE '%sample%') ) AND c.published = 1 AND c.pub_access &lt;= (SELECT gid FROM jos_users WHERE id = 62) ORDER BY b.time DESC LIMIT 50
Be sure to change sample to a term that can actually be found on your forums: '%sample%' -&gt; '%my term%' If there is an error returned, please post that here as well. That will tell me if it is an incompatibility issue or not. If it doesn't give and error AND returns zero results, then I'll know it is a situation where my database somehow differs from yours. I'm sorry, I'm asking for a lot of input from all of you to try and fix this issue. Unfortunately, I can only resolve the problem if I can somehow replicate it on my system. I have looked through all of the queries sent to me so far and have found zero errors in them. The error message I have been sent refers to a MySQL error but the PHP code is generating the exact same MySQL statement that is being produced on my website. That statement is working without error on my website and in my tests directly on the database. I had hoped that there was a PHP bug that was producing a &quot;bad&quot; MySQL statement but that isn't the case. My next focus will be on compatibility. I think that I can resolve the issue by using a less efficient method to gather the user's authorization level but I don't want to get ahead of myself. With any luck, not that I have had any yet, I can simply add a line or two to check the joomla installation and determine the best method to handle the search. Thank you, vujsa<br><br>Post edited by: vujsa, at: 2007/09/20 14:08
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

_
 
_
_
© 2008 Handy PHP