{SEARCH} Replacement Tag

Use GitHub to post feature requests for phpwcms.
Locked
sunflare
Posts: 6
Joined: Fri 21. Nov 2003, 15:35

{SEARCH} Replacement Tag

Post by sunflare »

What about a replacement tag for the search function?
It would simply do something like this (like in thread http://www.phpwcms.de/forum/viewtopic.php?t=517 )

Code: Select all

{SEARCH:444}

<form action="###search_input_action:444###" method="post">
<input name="###search_input_field###" type="text" size="10" maxlength="200" value="###search_input_value###" style="font-size:10px; width:75px;"> <input type="submit" value="Go" style="font-size:10px;">
</form>
And if you're not glad about it you can change look and feel via the conf.templ.php (like {NAV_TABLE_COLUMN})
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

the only problem is if someone want to use a images as the search button or have a different text on the search button, but then they could use a the search form and a phpwcms newbie could use the replacement tag ;-)
http://www.studmed.dk Portal for doctors and medical students in Denmark
sunflare
Posts: 6
Joined: Fri 21. Nov 2003, 15:35

Post by sunflare »

like I said:
the look and feel should be in conf.template_default.inc.php
It's a nice and easy way to change layout.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

sunflare wrote:like I said:
the look and feel should be in conf.template_default.inc.php
It's a nice and easy way to change layout.
Ahh I see... :-D
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Yes, possible ;-) - sometimes....
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
eglwolf
Posts: 70
Joined: Mon 12. Apr 2004, 01:23

Post by eglwolf »

Is there a replacement tag for the search function? What can the site search be set up, I have read some posts in the fourms ( but the PHPBB search functions sucks everytime I search for things, I get like 100 unrelated forum posts, so it is hard to search and actually find what you want in the forums.
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

No, there is no replacement tag for search - and there is no need for it - in my eyes.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
1996 328ti
Posts: 317
Joined: Mon 19. Apr 2004, 06:10
Location: Greenville, SC USA
Contact:

Post by 1996 328ti »

This is probably far fetched but. . .
I have a phpBB forum on my WCMS site.
Is it possible to include phpBB in the search?
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Not as default.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Will
Posts: 55
Joined: Mon 9. Aug 2004, 05:30

Post by Will »

Oliver Georgi wrote:No, there is no replacement tag for search - and there is no need for it - in my eyes.

Oliver
Hi Oliver, thanks for this damn good thing!!! :)

Could you explain why you don't see the need of this RT???

What if you want to include a little search box in a side bar? not just into a document.

Thanks in advance,
Will
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

this is possible - check forum. There are some replacement tags for having such "external" search form.

Or create one by using the search function and copy the source.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Will
Posts: 55
Joined: Mon 9. Aug 2004, 05:30

Post by Will »

Oh, sure... I meant to say... as an easy and straighforward way to do it: A la phpWCMS so to speak... Not a workaround.

Anyway... Ionly have a bunch of days using phpWCMS... perhaps I still need to play with it a bit longer.

Thanks for your answer,
Will
User avatar
Oliver Georgi
Site Admin
Posts: 9907
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

but this is nearly not possible (at the moment) - there is a replacement tag for search form action and the serach field

Most time people want to use a custom serach forms if outside in another place than the main content section.

Here is a sample (result looks like this http://www.rondo-promotion.de/index.php - right column)

Code: Select all

<form action="###search_input_action:10###" method="post" name="kuenstlersuche" target="_self">
<table width="160" border="0" cellspacing="0" cellpadding="0">
<tr>
  <td><input name="search_input_field" type="text" id="search_input_field" size="20" style="width: 120px" value="###search_input_value###" title="Nutzen Sie Platzhalterzeichen (*/?)"></td>
  <td align="right"><input type="image" src="img/rondo/button/suchen.gif" alt="Senden" width="35" height="17" border="0"></td>
</tr>
</table>
</form>
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Locked