PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:cannot perform the search (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:cannot perform the search
#377
umutttttt (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
cannot perform the search 3 Months, 1 Week ago Karma: 0  
Hi,
I cannot execute the following code inside an article using directphp. it was a component, namely;
http://kyantonius.com/downloads/dictionary/

but how shall I find which libraries or files that joomla automatically included? I mean in order to include them before the code below?

Thanks
Umut
--------------------------------------------------

=0) {
echo "";
echo "[$min "._PREVIOUSMATCHES."] ";
}

$next=$min+$offset;
if ($inx>=29) {
echo "";
echo "["._NEXTMATCHES."]";
}

echo "";

} // end the display of Search Results

echo "";
echo ""._SEARCHDICTIONARY." "._EXACT.""._STARTSWITH.""._ENDSWITH.""._CONTAINS." ";

?>
 
  The administrator has disabled public write access.
#378
kksou (Admin)
Admin
Posts: 323
graph
User Online Now Click here to see the profile of this user
Re:cannot perform the search 3 Months, 1 Week ago Karma: 8  
I'm not sure what's the error that you're encountering. I went to the page you indicated. The page looks ok.
Would be good if you can set up a test page somewhere showing the error. I need to see the actual page that's having the problem in order to figure out anything.

how shall I find which libraries or files that joomla automatically included

Joomla doesn't magically include all the libraries you need.

When in doubt, just do a include_once or require_once. In this way, even if it has been included before, it will only be loaded once.

Regards,
/kksou
 
  The administrator has disabled public write access.
#379
umutttttt (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:cannot perform the search 3 Months, 1 Week ago Karma: 0  
the page I mentioned in the previous post was the component that I'm trying to embedd in an article as seen below
http://turkic.asia/index.php?option=com_content&view=article&id=1&Itemid=20&lang=tr

the page seems ok but cannot perform a search or display the results. everything seems again ok in the database. I mean the table is there etc.

thank you for your kind reply

Umut
 
  The administrator has disabled public write access.
#380
kksou (Admin)
Admin
Posts: 323
graph
User Online Now Click here to see the profile of this user
Re:cannot perform the search 3 Months ago Karma: 8  
Sorry, I'm still confused.

1. I went to your second page. So, are you saying that the search is not working because of some codes you have written in DirectPHP?

2. If it's because of DirectPHP, can you email me the DirectPHP code you've written. As you've seen above, only some of the codes appear.

3. If it's not because of DirectPHP, then what's the relationship?

4. And can you please elaborate further the relationship between your first page and second page. What are you trying to achieve? What's the error?

Regards,
/kksou
 
  The administrator has disabled public write access.
#382
umutttttt (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:cannot perform the search 3 Months ago Karma: 0  
Ok,

I have sent an email to "support at"

I hope it will clarify the issue.

Thanks

Umut
 
  The administrator has disabled public write access.
#383
kksou (Admin)
Admin
Posts: 323
graph
User Online Now Click here to see the profile of this user
Re:cannot perform the search 3 Months ago Karma: 8  
umutttttt wrote:

I have sent an email to "support at"

I hope it will clarify the issue.


Hi,

I've received your email.

If you do a view source of your page: http://turkic.asia/index.php?option=com_content&view=article&id=1&Itemid=20&lang=tr

Did you notice that:

<form action method="post">

I looked at DirectPHP code. It's the same thing:
echo "<p><form action="" method=post>"...

Any particular reason for action=''? If action='', when the user clicks the submit button, it will usually just reload the same page. Guess that's why you did not see any search result.

By the way, looking at what you want to do, I would strongly encourage you to create a new component to do this, instead of using DirectPHP to embed PHP codes into a content item. It will be much cleaner, and easier to debug and maintain in the future.

Regards,
/kksou

p.s. I usually advice people using DirectPHP that they should first make sure that the code tested ok running standalone first, before embedding the code inside the content item with DirectPHP. This is because when it's embedded, it's relatively difficult to debug the codes.
 
 
Last Edit: 2008/07/05 16:00 By kksou.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Copyright © 2006-2008. kksou.com. All Rights Reserved