TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 195,994
  • Total Topics: 21,325
  • Online today: 114
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 76
  • Total: 76

[SMF 1.1.12 / TP 1.0 RC 1] Search function doesn't include articles/downloads

Started by Lum-chan, January 29, 2011, 05:25:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lum-chan

Link to my site: http://forum.lum-chan.com
SMF version: SMF 1.1.12
TP version: TP 1.0RC1
Default Forum Language: English
Theme name and version: Default with color variation
Browser Name and Version: Firefox 3.6.13
Mods installed: No mods for TP itself...
Related Error messages: none

When I'm searching from my forum, the search function only searches the forum but it doesn't include articles and downloads which are inside TinyPortal. Is there a way to get this working? It looks a bit overdone to have 3 pages each for searching a part of the website.

The nicest would be a search form/page in which you can select what to search for (or include just all of TP articles, downloads and SMF forum. Maybe like a sort of mod for TP and/or SMF?

Any thoughts on this?

ZarPrime

Try saving this code in a left or right block ...


echo '
<b><a href=http://YourSite.com/index.php?action=search>Search Forum</b></a>';
echo '
<b><hr><a href=http://YourSite.com/index.php?action=tpmod;sa=searcharticle>Search Articles</b></a>';
echo '
<b><hr><a href=http://YourSite.com/index.php?action=tpmod;dl=search>Search Downloads</b></a>';


So, for your site, it would be ...


echo '
<b><a href=http://forum.lum-chan.com/index.php?action=search>Search Forum</b></a>';
echo '
<b><hr><a href=http://forum.lum-chan.com/index.php?action=tpmod;sa=searcharticle>Search Articles</b></a>';
echo '
<b><hr><a href=http://forum.lum-chan.com/index.php?action=tpmod;dl=search>Search Downloads</b></a>';


If it doesn't work, post back.

ZarPrime

IchBin

I'd rather not alter SMF's search function to be honest. But it would be nice if there was an easy way to do it.

Lum-chan

I got this working, thanks to your code-snippets.
I'll check the SMF site again to find out more and/or a more suitable solution ie. mod or something in the request section (is it's there, that is).

Fiddling with the code of SMF for searging isn't my favorite too  ;)

I'll keep you informed here

USO_Joe

Also VERY interested in this subject. What would be useful for me, and could halfway solve this problem, is if there was an option to let new articles create a forum post.

USO_Joe


USO_Joe

Ok I had to keep the "www" in there... but now that it works, it still doesn't work.

I mean it doesn't return any results where it should.

This website is proudly hosted on Crocweb Cloud Website Hosting.