Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:24:55 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155550 Posts in 21714 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Search in news  (Read 431 times)
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« on: July 31, 2011, 11:18:45 AM »

Hi,

currently when I search some news, on search result page it appears twice: First result goes to page where news section is (where that and other news from that group are displayed) and Second points to that exaxt post (page under /posts/).

I would like to exclude First case.. How can I do that ?

cheers
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2297



WWW
« Reply #1 on: July 31, 2011, 09:27:36 PM »

I cannot reproduce that behavour. I only get the full posts as result.
Do you have an example link for us? (maybe using this WB site?)
Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #2 on: July 31, 2011, 10:35:42 PM »

The site is still under development and running under wb portable.. It will be live in a few days, then I will post a link Smiley
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #3 on: July 31, 2011, 11:44:39 PM »

For example if you type "a", you will get lots of results, then hover on titles to find link with "&g=X" where X is that group number..

I found the code which creates those links under /news/search.php at the bottom of the page.. I will comment it as temp solution Smiley
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2297



WWW
« Reply #4 on: August 01, 2011, 09:43:43 AM »

That part will just look for the name and description of the groups. So actually this is correct.

If someone searches for "Computer Games" and you have a group called "The best computer games" I would like to see this as a search result.
Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #5 on: August 01, 2011, 11:23:58 AM »

Oh ok, I understand now..

So if I comment the last mini function in search.php I will exclude that from search right ? Smiley
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Ruud
WebsiteBaker Org e.V.

Offline Offline

Posts: 2297



WWW
« Reply #6 on: August 01, 2011, 11:41:57 AM »

correct
Logged

Professional WebsiteBaker Solutions
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #7 on: August 01, 2011, 11:49:18 AM »

Tnx Ruud
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!