Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Ajax Search - How modify index Search?

Aloittaja Reeves, joulukuu 10, 2007, 08:58:09 IP

« edellinen - seuraava »

Reeves

Hi Brothers!

I learning Ajax, and need implement a search in to forum of my Group...
and, I need one basic help of us!

what the file contains this textbox of Search in index.php?

i need insert the my JavaScript in php: import = AjaxSearch.js
and, modify this textbox name, and, add one <div id=suggest>
in down of this Search!

I go codding one solution like it: http://www.google.com/webhp?complete=1&hl=em [nofollow]



my SQL_Search is it:
$_sql = "SELECT ID_FIST_MSG FROM smf_topics
WHERE name like '{$_GET["search_name"]}' AND
ORDER BY name
LIMIT 15
";

is right? if not...
I need understend SMF DB...
where is Topic Name?

I use: SMF 1.1.4 and TinyPortal

one Help?  ;)

Gratz!
Freedom for Everybody!

Reeves

Freedom for Everybody!

SleePy

Are you trying to include the Javascript file? If so simply open the index.template.php and look where we include the Script.js
Just copy and paste that, then change the url to the javascript file you are trying to include.

SMF by default has ajax actions and such so make sure yours do not interferer with SMF, otherwise you may lose functionality.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Reeves

What is the SQL sintax to see all 'Topic Names' From SMF Database?

SELECT 'Topics?' From Where ?

SMF_Database use Criptografy?!

Thx!
Freedom for Everybody!

Advertisement: