HOME       >>       Programming

Gallery Help Needed errors help help


onemillion

Parse error: syntax error, unexpected $end in /home/nishe/public_html/gallery/include/themes.inc.php on line 1027 i keep getting this error .. anybody can help me plz let me know...email me at onemilliondollarteen2@yahoo.complzplzplzpzlpzlzpzlpzlz


jlhaslip

Sounds to me like you are missing an end curly brace.If you post the code, we might be able to assist you further.

Notice from jlhaslip:
moved to php forum

shadowx

Aye as Jlhaslip said its generally a problem with not ending a logic gate properly (if, while, loop etc...) Either post the code here for us to check and remedy or count all the curly braces: { } and make sure you get an EVEN number, if you get an odd number than you need to find the place where the curly bracket is missing and add it in. For best results get a syntax highlighter, mine highlights curly braces when i click them and automatically highlights the matching close bracket so i know where that part of the code ends. If you use a highlighter and check for an open brace that doesnt have a close brace, and that is your problem.


onemillion

<?php/************************* Coppermine Photo Gallery ************************ Copyright ? 2003-2006 Coppermine Dev Team v1.1 originally written by Gregory DEMAR This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ******************************************** Coppermine version: 1.4.10 $Source$ $Revision: 3325 $ $Author: nibbler999 $ $Date: 2006-10-29 23:39:40 +0100 (So, 29 Okt 2006) $**********************************************/// Do not edit this file. If you need to customize your theme, edit themes/yourtheme/theme.php instead !!!// ----------------------------------------------------------------------------- //// All lines that should NOT be IN themes/sample/theme.php //{THEMES}//// should end in "//{THEMES}" so that they can be easily stripped //{THEMES}//if (!defined('IN_COPPERMINE')) { die('Not in Coppermine...');} //{THEMES}//// The following terms can be defined in theme.php// ('THEME_HAS_RATING_GRAPHICS', 1) : The location for the ratings graphics will// be directed to the themes images folder.// RUBBISH : images/rating0.gif// POOR : images/rating1.gif// FAIR : images/rating2.gif// GOOD : images/rating3.gif// EXCELLENT : images/rating4.gif// GREAT : images/rating5.gif//('THEME_HAS_NAvb script:;" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a> </td> <td align="center" valign="middle" width="48"> <a href="{SLIDESHOW_TGT}" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a> </td> <td align="center" valign="middle" width="100%"> {PIC_POS} </td><!-- BEGIN report_file_button --> <td align="center" valign="middle" width="48"> <a href="{REPORT_TGT}" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a> </td><!-- END report_file_button --><!-- BEGIN ecard_button --> <td align="center" valign="middle" width="48"> <a href="{ECARD_TGT}" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif" border="0" align="middle" alt="{ECARD_TITLE}" /></a> </td><!-- END ecard_button --> <td align="center" valign="middle" width="48"> <a href="{PREV_TGT}" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif" border="0" align="middle" alt="{PREV_TITLE}" /></a> </td> <td align="center" valign="middle" width="48"> <a href="{NEXT_TGT}" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif" border="0" align="middle" alt="{NEXT_TITLE}" /></a> </td> </tr>EOT;// HTML template for intermediate image displayif (!isset($template_display_media)) //{THEMES}$template_display_media = <<<EOT <tr> <td align="center" nowrap="nowrap"> <table cellspacing="2" cellpadding="0" > <tr> <td align="center"> {IMAGE} </td> </tr> </table> </td></tr> <tr><td> <table width="100%" cellspacing="2" cellpadding="0" > <tr> <td align="center"> {ADMIN_MENU} </td> </tr> </table> <!-- BEGIN img_desc --> <table cellpadding="0" cellspacing="0" width="100%"><!-- BEGIN title --> <tr> <td ><center><b> {TITLE} </b></center></td> </tr><!-- END title --><!-- BEGIN caption --> <tr> <td ><center> {CAPTION} </center></td> </tr><!-- END caption --> </table><!-- END img_desc --> </td> </tr>EOT;// HTML template for the image rating boxif (!isset($template_image_rating)) //{THEMES}$template_image_rating = <<<EOT<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" > <tr> <td colspan="6" ><b>{TITLE}</b> {VOTES}</td> </tr> <tr> <td width="17%" align="center"><a href="{RATE0}" title="{RUBBISH}" ><img src="{LOCATION}images/rating0.gif" border="0" alt="{RUBBISH}" /><br /></a></td> <td width="17%" align="center"><a href="{RATE1}" title="{POOR}" ><img src="{LOCATION}images/rating1.gif" border="0" alt="{POOR}" /><br /></a></td> <td width="17%" align="center"><a href="{RATE2}" title="{FAIR}" ><img src="{LOCATION}images/rating2.gif" border="0" alt="{FAIR}" /><br /></a></td> <td width="17%" align="center"><a href="{RATE3}" title="{GOOD}" ><img src="{LOCATION}images/rating3.gif" border="0" alt="{GOOD}" /><br /></a></td> <td width="17%" align="center"><a href="{RATE4}" title="{EXCELLENT}" ><img src="{LOCATION}images/rating4.gif" border="0" alt="{EXCELLENT}" /><br /></a></td> <td width="17%" align="center"><a href="{RATE5}" title="{GREAT}" ><img src="{LOCATION}images/rating5.gif" border="0" alt="{GREAT}" /><br /></a></td> </tr></table>EOT;// HTML template for the display of commentsif (!isset($template_image_comments)) //{THEMES}$template_image_comments = <<<EOT<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" > <tr> <td> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td nowrap="nowrap"> <b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}"></a> <!-- BEGIN ipinfo --> ({IP})<!-- END ipinfo --></td> <td align="right" width="100%"><!-- BEGIN report_comment_button --> <a href="report_file.php?pid={PID}&msg_id={MSG_ID}&what=comment" title="{REPORT_COMMENT_TITLE}"><img src="images/report.gif" width="16" height="16" border="0" align="middle" alt="{REPORT_COMMENT_TITLE}" /></a><!-- END report_comment_button --><!-- BEGIN buttons --> <a href="java script:;" onclick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0" align="middle" /></a> <a href="delete.php?msg_id={MSG_ID}&what=comment" onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0" align="middle" /></a><!-- END buttons --> </td> <td align="right" nowrap="nowrap"> <span >[{MSG_DATE}]</span> </td></tr> </table> </td> </tr> <tr> <td > <div id="cbody{MSG_ID}" style="display:block"> {MSG_BODY} </div> <div id="cedit{MSG_ID}" style="display:none"><!-- BEGIN edit_box_smilies --> <table width="100%" cellpadding="0" cellspacing="0"> <form name="f{MSG_ID}" method="POST" action="db_input.php"> <input type="hidden" name="event" value="comment_update" /> <input type="hidden" name="msg_id" value="{MSG_ID}" /> <tr> <td> <input type="text" name="msg_author" value="{MSG_AUTHOR}" size="25" /> </td><td> </tr> <tr> <td width="80%"> <textarea cols="40" rows="2" name="msg_body" onselect="storeCaret_f{MSG_ID}(this);" onclick="storeCaret_f{MSG_ID}(this);" onkeyup="storeCaret_f{MSG_ID}(this);" style="width: 100%;">{MSG_BODY_RAW}</textarea> </td> <td > </td> <td> <input type="submit" name="submit" value="{OK}" /> </td> </form> </tr> <tr> <td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td> </tr> </table> {SMILIES}<!-- END edit_box_smilies --><!-- BEGIN edit_box_no_smilies --> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <form name="f{MSG_ID}" method="POST" action="db_input.php"> <input type="hidden" name="event" value="comment_update" /> <input type="hidden" name="msg_id" value="{MSG_ID}" /> <td> <input type="text" name="msg_author" value="{MSG_AUTHOR}" size="25" /> </td> </tr> <tr> <td width="100%"> <textarea cols="40" rows="2" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea> </td> <td > </td> <td> <input type="submit" name="submit" value="{OK}" /> </td> </form> </tr> <tr> <td colspan="3"><img src="images/spacer.gif" width="1" height="2" /><br /></td> </tr> </table><!-- END edit_box_no_smilies --> </div> </td> </tr></table>EOT;// HTML template for the form to add commentsif (!isset($template_add_your_comment)) //{THEMES}$template_add_your_comment = <<<EOT <form method="post" name="post" action="db_input.php"> <table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" > <tr> <td width="100%" ><b>{ADD_YOUR_COMMENT}</b></td> </tr> <tr> <td colspan="1"> <table width="100%" cellpadding="0" cellspacing="0"><!-- BEGIN user_name_input --> <tr> <td > {NAME} </td> <td > <input type="text" name="msg_author" size="10" maxlength="20" value="{USER_NAME}" /> </td><!-- END user_name_input --><!-- BEGIN input_box_smilies --> <td > {COMMENT} </td> <td width="100%" > <input type="text" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" /> </td><!-- END input_box_smilies --><!-- BEGIN input_box_no_smilies --> <td > {COMMENT} </td> <td width="100%" > <input type="text" id="message" name="msg_body" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" /> </td><!-- END input_box_no_smilies --> <td > <input type="hidden" name="event" value="comment" /> <input type="hidden" name="pid" value="{PIC_ID}" /> <input type="submit" name="submit" value="{OK}" /> </td> </tr> </table> </td> </tr><!-- BEGIN smilies --> <tr> <td width="100%" > {SMILIES} </td> </tr><!-- END smilies --> </table> </form>EOT;// HTML template used by the cpg_die functionif (!isset($template_cpg_die)) //{THEMES}$template_cpg_die = <<<EOT <tr> <td align="center"> <font size="3"><b>{MESSAGE}</b></font><!-- BEGIN file_line --> <br /> <br /> {FILE_TXT}{FILE} - {LINE_TXT}{LINE}<!-- END file_line --><!-- BEGIN output_buffer --> <br /> <br /> <div align="left"> {OUTPUT_BUFFER} </div><!-- END output_buffer --> <br /><br /> </td> </tr>EOT;// HTML template used by the msg_box functionif (!isset($template_msg_box)) //{THEMES}$template_msg_box = <<<EOT <tr> <td align="center"> <font size="3"><b>{MESSAGE}</b></font> </td> </tr><!-- BEGIN button --> <tr> <td align="center" > <table cellpadding="0" cellspacing="0"> <tr> <td > <a href="{LINK}">{TEXT}</a> </td> </tr> </table> </td> </tr><!-- END button -->EOT;// HTML template for e-cardsif (!isset($template_ecard)) //{THEMES}$template_ecard = <<<EOT<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[url="https://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;<html dir="{LANG_DIR}"><head><meta http-equiv="content-type" content="text/html; charset={CHARSET}" /><title>{TITLE}</title></head><body bgcolor="#FFFFFF" text="#0F5475" link="#0F5475" vlink="#0F5475" alink="#0F5475"><br /><p align="center"><a href="{VIEW_ECARD_TGT}"><b>{VIEW_ECARD_LNK}</b></a></p><table border="0" cellspacing="0" cellpadding="1" align="center"> <tr> <td bgcolor="#000000"> <table border="0" cellspacing="0" cellpadding="10" bgcolor="#ffffff"> <tr> <td valign="top"> <a href="{VIEW_MORE_TGT}displayimage.php?pos=-{PID}"> <img src="{PIC_URL}" border="1" alt="" /></a> <br /> <div align="center"> <h2>{PIC_TITLE}</h2> </div> </td> <td valign="top" width="300"> <div align="right"><img src="{URL_PREFIX}images/stamp.gif" border="0" alt="" /></div> <br /> <b><font face="arial" color="#000000" size="4">{GREETINGS}</font></b> <br /> <br /> <font face="arial" color="#000000" size="2">{MESSAGE}</font> <br /> <br /> <font face="arial" color="#000000" size="2">{SENDER_NAME}</font> (<a href="
i hope you got the full code.

if not reply ASAP!

 

init.inc.php

okay heres the COMPLETE FILE ATTATCHED>> DAWONLOAD AND SAVE >> EDIT AND THEN REATTATCH FOR ME>>

THANK YOU...

 

Notice from rvalkass:

Please put code into Code or Codebox tags. Also, please use the Edit button to add to posts rather than making three posts in a row.

Xisto Readme


galexcd

The problem is in the file themes.inc.php not init.inc.php.

On line 298 in init.inc.php, you require themes.inc.php which is the page returning the error.

require "include/themes.inc.php"; //All Fallback Theme Templates and Functions

If you post themes.inc.php we might be able to find the error for you.

onemillion

themes.inc.phpthemes.inc.phphere is the original file attatched plz edit for me and let me know so i can see if it works... plz i need it ASAP!!!!!!

dragonfang00

you have 2 extra } on line 1006 and 1007.. try to remove it and add an EOT on line 1006.. I really don't know if this will work, I don't have xampp installed on my PC right now so I can't be of help much.. just try it maybe it is the reason the script has an error..


onemilliondollarteen

i dunno wat you're talking abt..can you plz edit ths file and attatch it to the next post.. plz plz plz.


dragonfang00

here.. i just hope it will solve your problem..themes.inc.php


onemilliondollarteen

well. now it saysParse error: syntax error, unexpected $end in /home/nishe/public_html/gallery/include/themes.inc.php on line 1028instaed of line 1027 ..EKKKKHHHHH!!!!ANYBODY CAN HELP>>????


jmark

at line 1005 insert this...1002 <p align="center"><a href="{VIEW_MORE_TGT}"><b>{VIEW_MORE_LNK}</b></a></p>1003 </body>1004 </html>1005 EOT;



VIEW ORIGINAL REGISTER GET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.