vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   getting some errors (https://vborg.vbsupport.ru/showthread.php?t=61300)

assassingod 02-15-2004 03:54 PM

You don't need that . infront of the =. And what's this 'submitbutton' infront of the eval?

AN-net 02-15-2004 05:58 PM

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

assassingod 02-15-2004 06:04 PM

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.

AN-net 02-15-2004 06:58 PM

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 :D)

assassingod 02-15-2004 06:58 PM

You may have forgotten a ; or a } somewhere in the file.

AN-net 02-15-2004 07:07 PM

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>


AN-net 02-15-2004 09:41 PM

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?

Andreas 02-15-2004 09:50 PM

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 ;)

AN-net 02-15-2004 10:00 PM

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

AN-net 02-16-2004 11:02 PM

can anyone help me with my results page?


All times are GMT. The time now is 11:11 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.01170 seconds
  • Memory Usage 1,792KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete