Jump to content
xisto Community
onemillion

Gallery Help Needed errors help help

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

<?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:;" class="navmenu_pic" 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" class="navmenu" width="48">                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>                </td>                <td align="center" valign="middle" class="navmenu" width="100%">                        {PIC_POS}                </td><!-- BEGIN report_file_button -->                <td align="center" valign="middle" class="navmenu" width="48">                        <a href="{REPORT_TGT}" class="navmenu_pic" 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" class="navmenu" width="48">                        <a href="{ECARD_TGT}" class="navmenu_pic" 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" class="navmenu" width="48">                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>                </td>                <td align="center" valign="middle" class="navmenu" width="48">                        <a href="{NEXT_TGT}" class="navmenu_pic" 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" class="display_media" nowrap="nowrap">                        <table cellspacing="2" cellpadding="0" class="imageborder">                                <tr>                                        <td align="center">                                                {IMAGE}                                        </td>                                </tr>                        </table>                </td></tr>                <tr><td>                                                <table width="100%" cellspacing="2" cellpadding="0" class="tableb">                                <tr>                                        <td align="center">                                                {ADMIN_MENU}                                        </td>                                </tr>                        </table>  <!-- BEGIN img_desc -->                        <table cellpadding="0" cellspacing="0" class="tableb" width="100%"><!-- BEGIN title -->                                <tr>                                        <td class="tableb"><center><b>                                                {TITLE}                                        </b></center></td>                                </tr><!-- END title --><!-- BEGIN caption -->                                <tr>                                        <td class="tableb"><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" class="maintable">        <tr>                <td colspan="6" class="tableh2_compact"><b>{TITLE}</b> {VOTES}</td>        </tr>        <tr>                <td class="tableb_compact" width="17%" align="center"><a href="{RATE0}" title="{RUBBISH}" rel="nofollow"><img src="{LOCATION}images/rating0.gif" border="0" alt="{RUBBISH}" /><br /></a></td>                <td class="tableb_compact" width="17%" align="center"><a href="{RATE1}" title="{POOR}" rel="nofollow"><img src="{LOCATION}images/rating1.gif" border="0" alt="{POOR}" /><br /></a></td>                <td class="tableb_compact" width="17%" align="center"><a href="{RATE2}" title="{FAIR}" rel="nofollow"><img src="{LOCATION}images/rating2.gif" border="0" alt="{FAIR}" /><br /></a></td>                <td class="tableb_compact" width="17%" align="center"><a href="{RATE3}" title="{GOOD}" rel="nofollow"><img src="{LOCATION}images/rating3.gif" border="0" alt="{GOOD}" /><br /></a></td>                <td class="tableb_compact" width="17%" align="center"><a href="{RATE4}" title="{EXCELLENT}" rel="nofollow"><img src="{LOCATION}images/rating4.gif" border="0" alt="{EXCELLENT}" /><br /></a></td>                <td class="tableb_compact" width="17%" align="center"><a href="{RATE5}" title="{GREAT}" rel="nofollow"><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" class="maintable">        <tr>                <td>                        <table width="100%" cellpadding="0" cellspacing="0">                           <tr>                                <td class="tableh2_compact" nowrap="nowrap">                                        <b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}"></a> <!-- BEGIN ipinfo -->                                                                                 ({IP})<!-- END ipinfo --></td>                                <td class="tableh2_compact" 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 class="tableh2_compact" align="right" nowrap="nowrap">                                        <span class="comment_date">[{MSG_DATE}]</span>                                </td></tr>                        </table>                </td>        </tr>        <tr>                <td class="tableb_compact">                        <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}" class="textinput" size="25" />                                                </td><td>                                                </tr>                                                <tr>                                                <td width="80%">                                                        <textarea cols="40" rows="2" class="textinput" 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 class="tableb_compact">                                                </td>                                                <td>                                                        <input type="submit" class="comment_button" 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}" class="textinput" size="25" />                                                </td>                                        </tr>                                        <tr>                                                <td width="100%">                                                        <textarea cols="40" rows="2" class="textinput" name="msg_body" style="width: 100%;">{MSG_BODY_RAW}</textarea>                                                </td>                                                <td class="tableb_compact">                                                </td>                                                <td>                                                        <input type="submit" class="comment_button" 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" class="maintable">                        <tr>                                        <td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>                        </tr>                        <tr>                <td colspan="1">                        <table width="100%" cellpadding="0" cellspacing="0"><!-- BEGIN user_name_input -->                                                        <tr>                                                                <td class="tableb_compact">                                        {NAME}                                </td>                                <td class="tableb_compact">                                        <input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value="{USER_NAME}" />                                </td><!-- END user_name_input --><!-- BEGIN input_box_smilies -->                                <td class="tableb_compact">                                {COMMENT}                                                                </td>                                <td width="100%" class="tableb_compact">                                <input type="text" class="textinput" 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 class="tableb_compact">                                {COMMENT}                                                                </td>                                <td width="100%" class="tableb_compact">                                <input type="text" class="textinput" id="message" name="msg_body"  maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />                                </td><!-- END input_box_no_smilies -->                                <td class="tableb_compact">                                <input type="hidden" name="event" value="comment" />                                <input type="hidden" name="pid" value="{PIC_ID}" />                                <input type="submit" class="comment_button" name="submit" value="{OK}" />                                </td>                                                        </tr>                        </table>                </td>        </tr><!-- BEGIN smilies -->        <tr>                <td width="100%" class="tableb_compact">                        {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 class="tableb" 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 class="tableb" align="center">                        <font size="3"><b>{MESSAGE}</b></font>                </td>        </tr><!-- BEGIN button -->                <tr>                        <td align="center" class="tablef">                                <table cellpadding="0" cellspacing="0">                                        <tr>                                                <td class="admin_menu">                                                        <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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.