Parse error: syntax error, unexpected '}' in /home/content/t

If you want to update to 1.1, please post in the viewforum.php?f=105
Forum rules
Support ended: 31.12.2011

Parse error: syntax error, unexpected '}' in /home/content/t

Postby ToRmEnTeD » Thu Feb 04, 2010 4:28 pm

Gallery Version: 1.0.4
phpBB Version: 3.0.6
Gallery-Link: http://www.tormented.tv/community/gallery/index.php

PHP Version: 5.2.5
Database Version: 5.0.18


Error message:
    Code: Select all
    Parse error: syntax error, unexpected '}' in /home/content/t/o/r/tormentedtv/html/community/cache/tpl_blackbox-red_memberlist_view.html.php on line 222


    Also


    Parse error: syntax error, unexpected '}' in /home/content/t/o/r/tormentedtv/html/community/includes/template.php(218) : eval()'d code on line 222

Error description and message
I am very new as you already know and i am having some problems getting this MOD completely installed.

Im not sure if i didnt upload some files or something or what but when i go to my site

http://www.tormented.tv/community

And try to click any user to view profile i get these errors,

the first error is

Code: Select all

Parse error: syntax error, unexpected '}' in /home/content/t/o/r/tormentedtv/html/community/cache/tpl_blackbox-red_memberlist_view.html.php on line 222



If i go into the ACP and purge the cache and retry to view the profile i get the second error.

Code: Select all

Parse error: syntax error, unexpected '}' in /home/content/t/o/r/tormentedtv/html/community/includes/template.php(218) : eval()'d code on line 222



The gallery is installed and is working except this issue with the profiles...at least this is my only know problem so far.
ToRmEnTeD
Posts < 10
Posts < 10
 
Posts: 4
Topics: 1
Joined: Thu Feb 04, 2010 4:10 pm
phpBB.com: www.ToRmEnTeD.tv

Re: Parse error: syntax error, unexpected '}' in /home/conte

Postby nickvergessen » Thu Feb 04, 2010 4:47 pm

You miss edited the memberlist_view.html
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Parse error: syntax error, unexpected '}' in /home/conte

Postby ToRmEnTeD » Thu Feb 04, 2010 5:13 pm

Ahh damn, that was the one edit that i didnt fully understand ...i couldnt really find the exact line that i was told to look for so its not a surprise i guess that i messed it up


These are the lines its asking me to find

Code: Select all

<!-- IF S_GROUP_OPTIONS --><dt>{L_USERGROUPS}:</dt> <dd><select name="g">{S_GROUP_OPTIONS}</select> <input type="submit" name="submit" value="{L_GO}" class="button2" /></dd><!-- ENDIF -->




and also

Code: Select all

         <dt>{L_TOTAL_POSTS}:</dt>
            <dd>{POSTS} <!-- IF S_DISPLAY_SEARCH -->| <strong><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></strong><!-- ENDIF -->
               <!-- IF POSTS_PCT --><br />({POSTS_PCT} / {POSTS_DAY})<!-- ENDIF -->
               <!-- IF POSTS_IN_QUEUE and U_MCP_QUEUE --><br />(<a href="{U_MCP_QUEUE}">{L_POSTS_IN_QUEUE}</a>)<!-- ELSEIF POSTS_IN_QUEUE --><br />({L_POSTS_IN_QUEUE})<!-- ENDIF -->
            </dd>





I cant find these lines. I can find partal matches but im not sure what to do in such a case.
This is my edited file as is on my server...Can you spot my mistake ?


Code: Select all

<!-- INCLUDE overall_header.html -->

<div id="pagecontent">

   <form method="post" action="{S_PROFILE_ACTION}">

   <table class="tablebg" width="100%" cellspacing="1">
   <tr>
      <th colspan="2" nowrap="nowrap">{L_VIEWING_PROFILE}</th>
   </tr>
   <tr>
      <td class="cat" width="40%" align="center"><h4>{L_USER_PRESENCE}</h4></td>
      <td class="cat" width="60%" align="center"><h4>{L_USER_FORUM}</h4></td>
   </tr>
   <tr>
      <td class="row1" align="center">

         <table cellspacing="1" cellpadding="2" border="0">
         <!-- IF S_USER_INACTIVE -->
         <tr>
            <td align="center" style="color: red;"><b class="gen">{L_USER_IS_INACTIVE}</b><br />{L_INACTIVE_REASON}: {USER_INACTIVE_REASON}<br /><br /></td>
         </tr>
         <!-- ENDIF -->
         <tr>
            <td align="center"><!-- IF USER_COLOR --><b class="gen" style="color: {USER_COLOR}"><!-- ELSE --><b class="gen"><!-- ENDIF -->{USERNAME}</b><!-- IF U_USER_ADMIN --><span class="genmed"> [ <a href="{U_USER_ADMIN}">{L_USER_ADMIN}</a> ]</span><!-- ENDIF --></td>
         </tr>
         <!-- IF RANK_TITLE -->
            <tr>
               <td class="postdetails" align="center">{RANK_TITLE}</td>
            </tr>
         <!-- ENDIF -->
         <!-- IF RANK_IMG -->
            <tr>
               <td align="center">{RANK_IMG}</td>
            </tr>
         <!-- ENDIF -->
         <!-- IF AVATAR_IMG -->
            <tr>
               <td align="center">{AVATAR_IMG}</td>
            </tr>
         <!-- ENDIF -->
         <!-- IF ONLINE_IMG -->
         <tr>
            <td align="center">{ONLINE_IMG}</td>
         </tr>
         <!-- ENDIF -->
         <!-- IF U_SWITCH_PERMISSIONS -->
            <tr>
               <td class="genmed" align="center">[ <a href="{U_SWITCH_PERMISSIONS}">{L_USE_PERMISSIONS}</a> ]</td>
            </tr>
         <!-- ENDIF -->
         <!-- IF S_USER_LOGGED_IN and S_ZEBRA -->
            <tr>
               <td class="genmed" align="center">[ <!-- IF U_ADD_FRIEND and U_ADD_FOE--><a href="{U_ADD_FRIEND}">{L_ADD_FRIEND}</a> | <a href="{U_ADD_FOE}">{L_ADD_FOE}</a><!-- ENDIF --><!-- IF U_REMOVE_FRIEND --><a href="{U_REMOVE_FRIEND}">{L_REMOVE_FRIEND}</a><!-- ENDIF --><!-- IF U_REMOVE_FOE --><a href="{U_REMOVE_FOE}">{L_REMOVE_FOE}</a><!-- ENDIF --> ]</td>
            </tr>
         <!-- ENDIF -->
         </table>
      </td>
      <td class="row1">
         <table width="100%" cellspacing="1" cellpadding="2" border="0">
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_JOINED}: </td>
            <td width="100%"><b class="gen">{JOINED}</b></td>
         </tr>
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_VISITED}: </td>
            <td width="100%"><b class="gen">{VISITED}</b></td>
         </tr>
         <!-- IF U_NOTES or U_WARN -->
            <tr>
               <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_WARNINGS}: </td>
               <td width="100%"><b class="gen">{WARNINGS}</b><br /><span class="genmed">[ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> <!-- IF U_WARN --> | <a href="{U_WARN}">{L_WARN_USER}</a> <!-- ENDIF -->]</span></td>
            </tr>
         <!-- ENDIF -->
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_TOTAL_POSTS}: </td>
            <td><b class="gen">{POSTS}</b><span class="genmed"><!-- IF POSTS_PCT --><br />[{POSTS_PCT} / {POSTS_DAY}]<!-- ENDIF --><br /><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></span></td>
         </tr>
                  <!-- IF TOTAL_IMAGES -->
            <tr>
               <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_TOTAL_IMAGES}: </td>
               <td><b class="gen">{IMAGES}</b><span class="genmed"><!-- IF IMAGES_PCT --><br />[{IMAGES_PCT} / {IMAGES_DAY}]<!-- ENDIF --><br /><a href="{U_SEARCH_GALLERY}">{L_SEARCH_USER_IMAGES}</a></span></td>
            </tr>
         <!-- ENDIF -->
      <!-- IF S_HAS_HIGHSCORES -->
      <tr>
         <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_ARCADE_HIGHSCORES}: </td>
         <td><b class="gen">{TOTAL_HIGHSCORES}</b><span class="genmed"><br /><a href="{U_ARCADE_STATS}">{L_ARCADE_VIEW_USERS_STATS}</a></span></td>
      </tr>
      <!-- ENDIF -->
         <!-- IF S_SHOW_ACTIVITY -->
            <tr>
               <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_ACTIVE_IN_FORUM}: </td>
               <td><!-- IF ACTIVE_FORUM --><b><a class="gen" href="{U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></b><br /><span class="genmed">[ {ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT} ]</span><!-- ELSE --><span class="gen">-</span><!-- ENDIF --></td>
            </tr>
            <tr>
               <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_ACTIVE_IN_TOPIC}: </td>
               <td><!-- IF ACTIVE_TOPIC --><b><a class="gen" href="{U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></b><br /><span class="genmed">[ {ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT} ]</span><!-- ELSE --><span class="gen">-</span><!-- ENDIF --></td>
            </tr>
         <!-- ENDIF -->
         </table>
      </td>
   </tr>
   <tr>
      <td class="cat" align="center"><h4>{L_CONTACT_USER}</h4></td>
      <td class="cat" align="center"><h4>{L_ABOUT_USER}</h4></td>
   </tr>
   <tr>
      <td class="row1">
         <table width="100%" cellspacing="1" cellpadding="2" border="0">
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_EMAIL_ADDRESS}: </td>
            <td width="100%"><!-- IF U_EMAIL --><a href="{U_EMAIL}">{EMAIL_IMG}</a><!-- ENDIF --></td>
         </tr>
         <!-- IF U_PM -->
            <tr>
               <td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_PM}: </td>
               <td><a href="{U_PM}">{PM_IMG}</a></td>
            </tr>
         <!-- ENDIF -->
         <tr>
            <td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_MSNM}: </td>
            <td><!-- IF U_MSN --><a href="{U_MSN}" onclick="popup(this.href, 550, 320); return false">{MSN_IMG}</a><!-- ELSEIF USER_MSN -->{USER_MSN}<!-- ENDIF --></td>
         </tr>
         <tr>
            <td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_YIM}: </td>
            <td><!-- IF U_YIM --><a href="{U_YIM}" onclick="popup(this.href, 780, 550); return false">{YIM_IMG}</a><!-- ELSEIF USER_YIM -->{USER_YIM}<!-- ENDIF --></td>
         </tr>
         <tr>
            <td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_AIM}: </td>
            <td><!-- IF U_AIM --><a href="{U_AIM}" onclick="popup(this.href, 550, 320); return false">{AIM_IMG}</a><!-- ELSEIF USER_AIM -->{USER_AIM}<!-- ENDIF --></td>
         </tr>
         <tr>
            <td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_ICQ}: </td>
            <td><!-- IF U_ICQ --><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false">{ICQ_IMG}</a><!-- ELSEIF USER_ICQ -->{USER_ICQ}<!-- ENDIF --></td>
         </tr>
         <tr>
            <td class="gen" nowrap="nowrap" align="{S_CONTENT_FLOW_END}">{L_JABBER}: </td>
            <td><!-- IF U_JABBER and S_JABBER_ENABLED --><a href="{U_JABBER}" onclick="popup(this.href, 550, 320); return false">{JABBER_IMG}</a><!-- ELSEIF USER_JABBER -->{USER_JABBER_IMG}<!-- ENDIF --></td>
         </tr>
         </table>
      </td>
      <td class="row1">
         <table cellspacing="1" cellpadding="2" border="0">
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_USERGROUPS}: </td>
            <td><select name="g">{S_GROUP_OPTIONS}</select> <input class="btnlite" type="submit" name="submit" value="{L_GO}" /></td>
         </tr>
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_LOCATION}: </td>
            <td><!-- IF LOCATION --><b class="genmed">{LOCATION}</b><!-- ENDIF --></td>
         </tr>
         <!-- IF AGE -->
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_AGE}: </td>
            <td><b class="genmed"><!-- IF AGE -->{AGE}<!-- ELSE --> - <!-- ENDIF --></b></td>
         </tr>
         <!-- ENDIF -->
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_OCCUPATION}: </td>
            <td><!-- IF OCCUPATION --><b class="genmed">{OCCUPATION}</b><!-- ENDIF --></td>
         </tr>
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_INTERESTS}: </td>
            <td><!-- IF INTERESTS --><b class="genmed">{INTERESTS}</b><!-- ENDIF --></td>
         </tr>
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_WEBSITE}: </td>
            <td><!-- IF U_WWW --><b><a class="genmed" href="{U_WWW}">{U_WWW}</a></b><!-- ENDIF --></td>
         </tr>
                  <!-- IF U_GALLERY -->
         <tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{L_GALLERY}: </td>
            <td><b><a class="genmed" href="{U_GALLERY}">{SHOW_PERSONAL_ALBUM_OF}</a></b></td>
         </tr>
         <!-- ENDIF -->
         <!-- IF S_PROFILE_FIELD1 -->
            <!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
            <tr>
               <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{PROFILE_FIELD1_NAME}: </td>
               <td><b class="genmed">{PROFILE_FIELD1_VALUE}</b></td>
            </tr>
         <!-- ENDIF -->
         <!-- BEGIN custom_fields -->
            <tr>
               <td class="gen" align="{S_CONTENT_FLOW_END}" nowrap="nowrap">{custom_fields.PROFILE_FIELD_NAME}: </td>
               <td><b class="genmed">{custom_fields.PROFILE_FIELD_VALUE}</b></td>
            </tr>
         <!-- END custom_fields -->
         </table>
      </td>
   </tr>
   <!-- IF SIGNATURE -->
      <tr>
         <td class="cat" colspan="2" align="center"><h4>{L_SIGNATURE}</h4></td>
      </tr>
      <tr>
         <td class="row1" colspan="2"><div class="postbody" style="padding: 10px;">{SIGNATURE}</div></td>
      </tr>
   <!-- ENDIF -->
   </table>

   </form>

</div>

<br clear="all" />
<!-- INCLUDE gallery/recent_body.html -->
<!-- INCLUDE breadcrumbs.html -->

<br clear="all" />

<div style="float: {S_CONTENT_FLOW_END};"><!-- INCLUDE jumpbox.html --></div>

<!-- INCLUDE overall_footer.html -->

ToRmEnTeD
Posts < 10
Posts < 10
 
Posts: 4
Topics: 1
Joined: Thu Feb 04, 2010 4:10 pm
phpBB.com: www.ToRmEnTeD.tv

Re: Parse error: syntax error, unexpected '}' in /home/conte

Postby nickvergessen » Thu Feb 04, 2010 6:42 pm

please try using the code of the contrib/subsilver2.xml
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Parse error: syntax error, unexpected '}' in /home/conte

Postby ToRmEnTeD » Thu Feb 04, 2010 6:47 pm

use that code where? I am sorry. I am very confused and also a beginner at MODs. What code should the subsilver2.xml code replace ?

Are you asking me to replace the code in the memberslist_view.html file with the code inside the Subsilver2.xml file ?
ToRmEnTeD
Posts < 10
Posts < 10
 
Posts: 4
Topics: 1
Joined: Thu Feb 04, 2010 4:10 pm
phpBB.com: www.ToRmEnTeD.tv

Re: Parse error: syntax error, unexpected '}' in /home/conte

Postby ToRmEnTeD » Thu Feb 04, 2010 8:49 pm

ok that ended up just all messed up..restored my whole forum to the beginning ...
I need to figure out whats wrong with the members file
ToRmEnTeD
Posts < 10
Posts < 10
 
Posts: 4
Topics: 1
Joined: Thu Feb 04, 2010 4:10 pm
phpBB.com: www.ToRmEnTeD.tv

Re: Parse error: syntax error, unexpected '}' in /home/conte

Postby nickvergessen » Fri Feb 05, 2010 1:36 am

just open the contrib/subsilver2.xml like the install.xml that tells you than how to edit your template-files of subsilver2 based styles.
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen


Return to Installation, Update & Conversion

Who is online

Users browsing this forum: No registered users and 0 guests