Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> Portal components
CodyT07

Please see SEARCHFORM Thread

This was the thread for adding HTML for a search bar but to prevent this "dead" thread from "bumping" please see this thread http://forum.myfreeforum.org/ftopic5426.php for an easier way to add it.
admin (no pm's please)

Will have a look at making these simple components to add.
CodyT07

kool.
Nick(NR)

Just thought I'd tidy this one up for you Cody, admin everything works fine looks good as well, everything is centered clean and crisp looking.

Nice Idea Cody

Spoiler:

<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="forumline">
<tr>
<th colspan="1" align="center" height="25" class="thCornerL" nowrap="nowrap">Search The Forum</th>
</td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td align="center" valign="top">
<form action="search.php?mode=results" method="POST">
<input type="width: 150px" class="post" name="search_keywords" size="20" /><input type="hidden" name="search_terms" value="all" ><input type="hidden" name="search_forum" value="-1"><input type ="hidden" name="search_time" value="9999"><input type="hidden" name="search_fields" value="all" /> <input type="hidden" name="search_cat" value="-1"><input type="hidden" name="sort_by" value="0"/><input type="hidden" name="sort_dir" value="DESC" /><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="return_chars" value="-1"/><input class="liteoption" type="submit" value="Search" /></form>
</td>
</tr>
</table></td>
</tr>
</table>



Working example, in a bordered table:
http://asraifans.myfastforum.org/index.php?component=indexpage
Andrew(AP)

sweet
Speckle Frew

Re: Search Bar Portal Component (BETA 2 - Code Fix)

Codyt07 wrote:
I added a search bar in the sub portals. A trial and error fun code to get it right, since it isnt a component this is the best i could do. Mind you the portal didnt have a search bar in mind (nor me for that case) So it isnt a { component here } thing. This is for more of an advance portal user as its a BETA as i might make some changes. NEVER REMOVE THE TABLE BORDER CODE! As a warning as i just did that and hell it messed up my forum. As long as you dont edit it its okay. NO GUARENTEE it will work on all template. a demo of it can be seem at http://linkexchange.myfastforum.org ugly yes but it isnt an official component. just something i did.

Heres the code i added (lengthy yes)
Spoiler:

Code:
 
<form action="search.php?mode=results" method="POST">
<input type="width: 150px" class="post" name="search_keywords" size="20" /><input type="hidden" name="search_terms" value="all" ><input type="hidden" name="search_forum" value="-1"><input type ="hidden" name="search_time" value="9999"><input type="hidden" name="search_fields" value="all" /> <input type="hidden" name="search_cat" value="-1"><input type="hidden" name="sort_by" value="0"/><input type="hidden" name="sort_dir" value="DESC" /><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="return_chars" value="-1"/><input class="liteoption" type="submit" value="Search" /></form>


Heres my left portal code (as i run dual)
Spoiler:

Code:
<!-- BEGIN switch_forum_view -->
<table><tr>
<td valign="top">
<table border="0">
<tr>
<th><center>Search</center></th>
</tr>
<tr>
<td><form action="search.php?mode=results" method="POST">
<input type="width: 150px" class="post" name="search_keywords" size="20" /><input type="hidden" name="search_terms" value="all" ><input type="hidden" name="search_forum" value="-1"><input type ="hidden" name="search_time" value="9999"><input type="hidden" name="search_fields" value="all" /> <input type="hidden" name="search_cat" value="-1"><input type="hidden" name="sort_by" value="0"/><input type="hidden" name="sort_dir" value="DESC" /><input type="hidden" name="show_results" value="topics" /><input type="hidden" name="return_chars" value="-1"/><input class="liteoption" type="submit" value="Search" /></form></td>
</tr>
</table>
{MYFF.MAINMENU}{MYFF.ANNOUNCE show_results="topics" link="fFORUM"}{MYFF.STICKY show_results="topics" link="FORUM"}{MYFF.TOPPOSTERS}{MYFF.LINKSMENU} 
</td>
<td width="125%" valign="left">
<!-- END switch_forum_view -->


Plus the one in the overall footer.

Edit Beta 2 I accidentally posted to much code on the last post. But now im running a different code. Instead of the normal search bar im using the search bar thats able to be used in posts. Looks a little bit nicer but until it becomes and actual component best i can do for ya.


Ummm...where do you add those two codes? I can't figure out where to go for that...sorry :P
admin (no pm's please)

Don't try and edit at a level you do not understand. No forum really needs this.
MasterPogi

um, which file do we edit?
Nick(NR)

you don't have to do anything apart from add {MYFF.SEARCHFORM} to the portals you currently have.

Also none of you seem to bother looking: http://forum.myfreeforum.org/ftopic5426.php all about the forum search portal

       myfreeforum.org Forum Index -> Portal components
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum