xoops forums

soconfused

Not too shy to talk
Posted on: 2005/9/9 10:36
soconfused
soconfused (Show more)
Not too shy to talk
Posts: 108
Since: 2005/4/2 1
#1

problem with search after cloning module

Hi,
I made a clone of the smart section module (xoops 2.0.9.2)
Everything works fine except there is a format/style sheet problem with the XOOPS search, for some reason if you search for anything the resuts are outputted with no header, footer or stylesheet just the results, it still returns results ok. It's probably something quite simple to fix (I hope) Any clues as to how I might fix it?

I've saved the search results page so you can see what I mean - this is all the html the search page generates:

<html>

<head>
</head>

<body>

<h3>Search Results</h3>
Keyword(s): <b>ghtyth</b><br>
<h4>Message Board</h4>
<p>No Match Found for your Query</p>
<h4>xcGallery</h4>
<p>No Match Found for your Query</p>
<h4>SmartSection</h4>
<p>No Match Found for your Query</p>
<h4>Edito</h4>
<p>No Match Found for your Query</p>
<h4>Articles</h4>
<p>No Match Found for your Query</p>
<h4>Articles</h4>
<p>No Match Found for your Query</p>
<h4>WF-Channel</h4>
<p>No Match Found for your Query</p>
<h4>wfsection</h4>
<p>No Match Found for your Query</p>
<h4>SmartClone</h4>
<p>No Match Found for your Query</p>
<h4>AM Events</h4>
<p>No Match Found for your Query</p>
<h4>weBLog</h4>
<p>No Match Found for your Query</p>
<h4>myMedia</h4>
<p>No Match Found for your Query</p>
<h4>Small ads</h4>
<p>No Match Found for your Query</p>

</body>

</html>

Once the cloned module is disabled the results return to normal.

LazyBadger

Home away from home
Posted on: 2005/9/9 11:00
LazyBadger
LazyBadger (Show more)
Home away from home
Posts: 1187
Since: 2004/6/7 9
#2

Re: problem with search after cloning module

Try to check deeply smartsection_search function in cloned module... Maybe some old names wasn't replaced?
Quis custodiet ipsos custodes?

Webmaster of
XOOPS2.RU
XOOPS Modules Proving Ground
XOOPS Themes Exhibition

soconfused

Not too shy to talk
Posted on: 2005/9/9 11:14
soconfused
soconfused (Show more)
Not too shy to talk
Posts: 108
Since: 2005/4/2 1
#3

Re: problem with search after cloning module

Hi,
Thanks for replying, I've looked through the code & searched it but can't see anything.

marcan

Just can't stay away
Posted on: 2005/9/9 11:38
marcan
marcan (Show more)
Just can't stay away
Posts: 824
Since: 2003/10/8
#4

Re: problem with search after cloning module

Hi,

Thanks for the feedback. I was able to easily reproduce teh bug and if the phpdebug is active , a nice little fatal error is displayed, telling us exactly where the bug is coming from .

This is indeed a bug that will be fixed in next release.

In the mean time, you can perform these Find and Replace action on the original smartsection in order to fix the bug and be able to clone it again properly, following the same instructions in clone.txt. Remember, case sensitivity is essential.

ssItem => SmartsectionItem
ssitem => smartsectionitem
ssCategory => SmartsectionCategory
sscategory => smartsectioncategory
ssFile => SmartsectionFile
ssfile => smartsectionfile

Let me know !
.:: marcan (aka mal aka Marc-André) ::.
.:: Open Source :: The SmartFactory ::.
.:: XOOPS Professional Services :: INBOX International ::.