Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-02-2002, 07:07 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Search on Forumhome

as this board and a lot of boards have.. that sweet search option on forumhome.. now I already got it this far:

PHP Code:
<td align="right" width="50%" bgcolor="#13486D"><normalfont><b>Search $bbtitle !
<
input type="text" class="bginput" name="query" size="35">
<
input type="hidden" name="action" value="simplesearch">
    <
input type="submit" class="bginput" name="Submit" value="Search" accesskey="s">    
    </
b></normalfont></td
but when I click Search nothing happens.. so can someone gimme a hand with this please?

thanx
Reply With Quote
  #2  
Old 11-02-2002, 07:31 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're missing the <form> tags! You are using form commands but not telling the code where to go.

Use this code:

Code:
<form action="search.php" method="post">
<input type="hidden" name="searchuser" value="">
<input type="text" name="query" class="search">
<input type="hidden" name="forumchoice" value="-1">
<input type="hidden" name="searchdate" value="-1">
<input type="hidden" name="sortby" value="lastpost">
<input type="hidden" name="sortorder" value="descending">
<input type="hidden" name="beforeafter" value="after">
<input type="hidden" name="action" value="simplesearch">
<input type="hidden" name="titleonly" value="">
<input type="hidden" name="showposts" value="">
<input type="hidden" name="exactname" value="yes">
<input type="submit" class="bginput" name="Submit" value="Search" accesskey="s">    
</form>
Reply With Quote
  #3  
Old 11-02-2002, 09:08 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah worked fine thanks mate.. but for some reason there's a < br > at the end of it.. at least something that has the same effect as a br
Reply With Quote
  #4  
Old 11-02-2002, 09:15 PM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well as I said for some reason it adds some kind of space at the end.. and now it looks fecked..

here's the code:

PHP Code:
<!-- text -->
<
table cellpadding="4" cellspacing="0" border="1" bordercolor="{tablebordercolor}" width="{contenttablewidth}" {tableinvisibleextraalign="center" bgcolor="{tableheadbgcolor}"><td><normalfont><font color="#FFFFFF"><b>Welcome to $bbtitle !!</b></font></normalfont></td>
<
tr valign="top">
    <
td width="50%" bgcolor="{firstaltcolor}"><a href="javascript:window.location=window.location" oncontextmenu="return false;"><img src="{imagesfolder}/vb_bullet.gif" border="0" align="middle" alt="$bbtitle : Powered by vBulletin version $templateversion"></a>
    <
normalfont><b>$bbtitle</b></normalfont></td>
    <
td align="right" width="50%" bgcolor="{secondaltcolor}"><smallfont>$welcometext<br><b>$newposts</b></smallfont></font></td>
</
tr>

$unregwelcomemessage
<tr valign="bottom">
    <
td width="50%" bgcolor="{secondaltcolor}"><smallfont>
    
Members$numbermembersThreads$totalthreadsPosts$totalposts<br>
    
Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid">$newusername</a>
    </
smallfont></td>
    <
td width="50%" bgcolor="{firstaltcolor}"><smallfont><form action="search.php" method="post">
<
input type="hidden" name="searchuser" value="">
<
input type="text" name="query" class="search">
<
input type="hidden" name="forumchoice" value="-1">
<
input type="hidden" name="searchdate" value="-1">
<
input type="hidden" name="sortby" value="lastpost">
<
input type="hidden" name="sortorder" value="descending">
<
input type="hidden" name="beforeafter" value="after">
<
input type="hidden" name="action" value="simplesearch">
<
input type="hidden" name="titleonly" value="">
<
input type="hidden" name="showposts" value="">
<
input type="hidden" name="exactname" value="yes">
<
input type="submit" class="bginput" name="Submit" value="Search" accesskey="s">    
</
form></smallfont>
</
td></tr>
</
table>
<
table cellpadding="4" cellspacing="0" border="1" bordercolor="{tablebordercolor}" width="{contenttablewidth}" {tableinvisibleextraalign="center" bgcolor="white"><tr>
<
td>
<!-- /
text --><br>
$header
<br></td></tr></table>
<!-- /
icons -->

$footer
</body>
</
html></body>
</
html
and this is the pic for when you dont understand..

please help
Attached Images
File Type: gif rip.gif (5.5 KB, 0 views)
Reply With Quote
  #5  
Old 11-03-2002, 04:48 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your code above, find:

Code:
<td width="50%" bgcolor="#F1F1F1"><smallfont><form action="search.php" method="post">
Change it to:

Code:
<form action="search.php" method="post"><td width="50%" bgcolor="#F1F1F1"><smallfont>
Then find:

Code:
</form></smallfont>
</td>
Change it to:

Code:
</smallfont>
</td></form>
This will get rid of the extra line. It happens with the <form> tags. I suspect you are not familiar with HTML.
Reply With Quote
  #6  
Old 11-03-2002, 11:57 AM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

like a glooooove! thanks a lot mate.. worked great
Reply With Quote
  #7  
Old 11-03-2002, 06:16 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problems! Glad to help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05487 seconds
  • Memory Usage 2,280KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete