News:

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

Main Menu

Search Topic

Started by winrules, March 12, 2006, 05:45:54 PM

Previous topic - Next topic

winrules

Link to Mod

This mod adds a "Search Topic" field in the display template, as seen in the picture below:


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Prasad007

what does this mod do?
does it search for something inside the topic?
or search for some topic itself ?

no proper discription or explanation has been provided..

winrules

Quote from: Prasad007 on March 14, 2006, 07:29:55 AM
what does this mod do?
does it search for something inside the topic?
or search for some topic itself ?

no proper discription or explanation has been provided..


It adds a field in display.template.php. When you search it, it searchs all the posts in that particular topic.

Demo: http://www.squareeggs.ecwhost.com/smf/index.php?topic=2.0


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Prasad007


kezayah

very good initiative !!!  :P

Skipdawg

kewl!
this should come in handy.  ;)
Skipdawg's Community

Powered by SMF 1.1.3

ivo2296

I like it very much but when you have time can you do it for smf 1.0.5 or 1.0.6, cause those are the latest and final versions of SMF - RC2 is still beta.

Thank you!

ivo2296

i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.

Nice try :)


winrules

#8
Quote from: ivo2296 on May 05, 2006, 12:18:21 AM
i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.

Nice try :)


this mod doesn't work on 1.0.7.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


ivo2296

Quote from: winrules on May 05, 2006, 03:37:22 PM
Quote from: ivo2296 on May 05, 2006, 12:18:21 AM
i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.

Nice try :)


this mod doesn't work on RC2.

I didn't say that i'm using RC2?!?

Teknomancer

this mod works great... I've customized it even.
My SMF Forum:

winrules

Quote from: ivo2296 on May 05, 2006, 10:39:07 PM
Quote from: winrules on May 05, 2006, 03:37:22 PM
Quote from: ivo2296 on May 05, 2006, 12:18:21 AM
i have copied the code in cassic theme (Display.template.php) in smf 1.0.7 but it searches in hole forum.

Nice try :)


this mod doesn't work on RC2.

I didn't say that i'm using RC2?!?

*bangs head*
this mod doesn't work for 1.0.7, only 1.1RC2.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


HaxXxoR

I modified it as well. Anyone help with the code? i got rid of the search box, cause it didnt work with my theme, and added some text that says "Search Topic". How do i make it to when they go to type something in it erases what i have there so they can type something in??
Droppin' shells like a hailstorm, and bodys like a plague!
Http://www.tasty-fragism.com

winrules

You would have to use javascript. You should probobally post in the scripting help board.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


HaxXxoR

The only reason that i posted it here is that i went to Teknomancers site and he has it that way.

Teknomancer how did you get it to do that lol
Droppin' shells like a hailstorm, and bodys like a plague!
Http://www.tasty-fragism.com

Vinspire

How to get this mod to work on other themes ?

vnt87


winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.



vnt87

Quote from: HaxXxoR on May 30, 2006, 06:20:16 PM
I modified it as well. Anyone help with the code? i got rid of the search box, cause it didnt work with my theme, and added some text that says "Search Topic". How do i make it to when they go to type something in it erases what i have there so they can type something in??

I'm wondering the same thing as well. Normally it can be done by inserting an 'onfocus' into the input textfield. I've checked Teknomancer's page and apparently that was what he did also. But I cant get the onfocus to work inside an echo function, I wonder what he did for it to work.

Advertisement: