Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #31  
Old 02-15-2004, 03:54 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't need that . infront of the =. And what's this 'submitbutton' infront of the eval?
Reply With Quote
  #32  
Old 02-15-2004, 05:58 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by assassingod
You don't need that . infront of the =. And what's this 'submitbutton' infront of the eval?
xeon in another thread told me to add the . before the = sign
also the submitbutton(); replace blahblah(); , see dean's post
Reply With Quote
  #33  
Old 02-15-2004, 06:04 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
xeon in another thread told me to add the . before the = sign
also the submitbutton(); replace blahblah(); , see dean's post
You only need that if you are looping a template. And that submitbutton() is not needed, Dean used blahblah(); as sample code to show where the real code will go - its not needed.
Reply With Quote
  #34  
Old 02-15-2004, 06:58 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh, ok.
ok i added my own search engine to my gallery, but now im getting parse error on line 180.
this is 180:
PHP Code:
?> 
edit:
found it, i forgot a }(silly me )
Reply With Quote
  #35  
Old 02-15-2004, 06:58 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may have forgotten a ; or a } somewhere in the file.
Reply With Quote
  #36  
Old 02-15-2004, 07:07 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah i figured that out, thanks for the help though.
now i added a results page to my search engine thingy but it only shows this:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>
this is my php code:
PHP Code:
if($show==searchresults){
$fresults$DB_site->query("SELECT * FROM gallery WHERE gallery_id='$gallery' OR image_name='$imgname' OR artist_name='$artistname$orderby $orderin");
$numresults$DB_site->num_rows($fresults);
if(
$numresults==0){
    
$navbits = array();
    
$navbits["#"] = "Gallery";
    
$navbits["gallery.php?view=index"] = "Gallery Index";
    
$navbits["#"] = "Search";
    
$navbits[''] = "Search Results";
    
$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('gallery_search_results_none') . '");');
}
else{
while(
$results$DB_site->fetch_array($fresults)){
    
$imagedate=date("m/d/Y - g:i A",$results[image_date]);
    eval(
'$resultsbits .= "' fetch_template('gallery_search_resultsbits') . '";');
}
    
mysql_free_result($fresults);
    
$navbits = array();
    
$navbits["#"] = "Gallery";
    
$navbits["gallery.php?view=index"] = "Gallery Index";
    
$navbits["#"] = "Search";
    
$navbits[''] = "Search Results($numresults)";
    
$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('gallery_search_results') . '");');
}

this is whats in the templates:
gallery_search_results:
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
	<title>$vboptions[bbtitle] - Gallery Search Results:($numresults)</title>
$headinclude
</head>
<body>
$header
$navbar
<br />
<table class="tborder" align="center">
<tr class="tcat">
<td>Search Results for:$imgname&nbsp;&nbsp;$artistname</td>
</tr>
$resultsbits
</table>
<br />
$footer
</body>
</html>
gallery_search_resultsbits:
HTML Code:
<tbody>
<tr>
<td class="tcat" colspan="3">$results[image_name]</td>
</tr>
<tr class="thead">
<td>Thumbnail</td>
<td>Artist Name</td>
<td>Date Added</td>
</tr>
<tr>
<td clas="al2"><a href="gallery.php?view=entry&id=$results[gallery_id]&imgid=$results[image_id]" alt"Click to see full size image of $results[image_name]"><img src="$results[image_url]" alt="Click to see full size image of $results[image_name]" length="40" width="40" border="0"></a></td>
<td class="alt1">$results[artist_name]</td>
<td class="alt2">$imagedate</td>
</tr>
</tbody>
and this is whats in the search template:
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
	<title>$vboptions[bbtitle] - Gallery Search:</title>
$headinclude
</head>
<body>
$header
$navbar
<br />
<form action="gallery.php?show=searchresults" method="post">
<table class="tborder" align="center">
<tr class="tcat">
<td align="center" colspan="2"><font size="2"><b>Search Gallery</b></font></td>
</tr>
<tr>
<td class="alt1">
<fieldset>
<legend>Search by Image Name</legend>
<table>
<tr>
<td><input type="text" name="imgname" value="" size="20"></td>
</tr>
</table>
</fieldset>
</td>
<td class="alt2">
<fieldset>
<legend>Search by Artist Name</legend>
<table>
<tr>
<td><input type="text" name="artistname" value="" size="15"></td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr class="thead">
<td colspan="2">Additional Searching Options</td>
</tr>
<tr>
<td class="alt1">
<table>
<tr>
<td>
<fieldset>
<legend>Order Search Results by:</legend>
<table>
<tr>
<td><select name="orderby">
<optgroup label="orderbytypes">
<option value="ORDER BY gallery.gallery_id" SELECTED>Gallery</option>
<option value="ORDER BY gallery.image_name">Image Name</option>
<option value="ORDER BY gallery.image_date">Image Date</option>
<option value="ORDER BY gallery.arist_name">Artist's Name</option>
</optgroup>
</select>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>Order Results in:</legend>
<table>
<tr>
<td><select name="orderin">
<optgroup label="orderins">
<option value="DESC" SELECTED>Descending</option>
<option value="ASC">Ascending</option>
</optgroup>
</select>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
</td>
<td class="alt2">
<fieldset>
<legend>Search in Gallery</legend>
<table>
<tr>
<td><select name="gallery" size="5">
<optgroup label="galleries">
$listgalleries
</optgroup>
</select>
</td>
</tr>
</table>
</fieldset>
</td>
</tr>
<tr class="thead">
<td colspan="2" align="center"><input type="submit" value="Search Now"></td>
</tr>
</table>
</form>
<br />
$footer
</body>
</html>
Reply With Quote
  #37  
Old 02-15-2004, 09:41 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok suddenly i cant view source anymore for web pages(i know this isnt php,html,etc.). im using windows anyone know how to reactivate it?
Reply With Quote
  #38  
Old 02-15-2004, 09:50 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

www.mozilla.org

OK, if you want to stick with Internet Exploder (which I wouldn't recommend):
http://www.winguides.com/registry/display.php/1246/
http://support.microsoft.com/default...;EN-US;Q306907

Thanks fly out to Google
Reply With Quote
  #39  
Old 02-15-2004, 10:00 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
www.mozilla.org

OK, if you want to stick with Internet Exploder (which I wouldn't recommend):
http://www.winguides.com/registry/display.php/1246/
http://support.microsoft.com/default...;EN-US;Q306907

Thanks fly out to Google
thanks alot, turns out i had to much of temperary files in my temp folder lol
Reply With Quote
  #40  
Old 02-16-2004, 11:02 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anyone help me with my results page?
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 12:39 AM.


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.10860 seconds
  • Memory Usage 2,319KB
  • 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
  • (4)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete