Gossamer Forum
Home : Products : Links 2.0 : Customization :

(strange) problem with Widgetz Category search

Quote Reply
(strange) problem with Widgetz Category search
I've installed Widgetz Category Search Mod (no templates version) according to his advice available at http://widgetz.com/links_mods/

After I build the pages, the option box on screen is empty and the html looks like this :

<option value="">in </option>

It seems that the script cant load the $category_name_escaped variable.
The strange thing is that 5 lines above $category_name_escaped loads and displays nicely on screen.

Any suggestions here?
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
You have the following codes, right?

Code:
<option value="$category_name_escaped"> in $category_name_escaped</option>

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
Yes, this is what I have in $site_cat_search.

I found out that $category_name_escaped will be defined ONLY in sub site_html_category in site_html.pl! When I place this variable i.e. in sub site_html_home (also site_html.pl) for testing purposes to see if it gets 'on screen' the result is negative as in $site_cat_search.
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
That is true...You can only use the Category search in the sub site_html_category routine.

Think about the Mod's name...Category Search.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
So in other words your suggestion is to place the html output of Widgetz category search in sub site_html_category and NOT (as adviced by Widgetz) below $site_search as $site_cat_search and called up in sub site_html_category ?
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
You need to use the HTML codes for the drop-down menu in the sub site_html_category routine...don't know how more clear I can make this.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
I think its absolutely clear to me, but when I start to add the html codes for the dropdown menu in sub site_html_category, I can also place the whole $site_cat_search routine directly there or not??
Otherwise I would break $site_cat_search up in the middle and put the rest in sub site_html_category??!!
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
Use the following codes:

Code:
<form method="get" action="$db_cgi_url/search.cgi">
Search: <input type="query">
<select name="category">
<option value="$category_escaped_name"> in $category_escaped_name
<option value="">Directory
</select>
</form>

Hope this makes sense now.

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
Makes sense, this is like a short version of $site_cat_search.

Just to clear things up for other users:

Following the instructions of the implementation of Widgetz Category Search on above mentioned site will not get this MOD to work properly (ref: no templates version).
Quote Reply
Re: (strange) problem with Widgetz Category search In reply to
Yes...

Regards.

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums