[Aphrodite] Simple Subforums MOD

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

Postby X_SD_X on Sat Mar 04, 2006 7:13 am

i cant find <a href="{U_INDEX}" class="nav">{L_INDEX}</a> on line 232
is it the first or second <a href="{U_INDEX}">{L_INDEX}</a> because i dont have <a href="{U_INDEX}" class="nav">{L_INDEX}</a> but i have <a href="{U_INDEX}">{L_INDEX}</a> twice...
i like pie...
User avatar
X_SD_X
Registered User
Registered User
 
Posts: 280
Joined: Sun Jan 22, 2006 4:13 am
Location: Just around the corner

Postby magicfun on Wed May 31, 2006 6:45 pm

Hi I am getting the following error:

FIND FAILED: In file [templates/ca_aphrodite/viewtopic_body.tpl] could not find:

<a href="{U_INDEX}" class="nav">{L_INDEX}</a>

MOD script line #230 ::

___________________________________


Critical Error

IN-LINE FINDFAILED: malformed script. A FIND was not previously performed.
MOD script line #236


What do I do to fix this? This is throwing an error on my forum, and its down! So please hurry with a response! Thanks.
magicfun
Registered User
Registered User
 
Posts: 33
Joined: Wed Apr 26, 2006 4:27 am

Postby magicfun on Wed May 31, 2006 6:58 pm

I found the "find" error on this code, and worked it out....however, I have a new problem.

I get this error:

Parse error: syntax error, unexpected $end in /www/m/magicianscho/htdocs/forum/cache/tpl_ca_aphrodite.index_body.php on line 317

when I try to run my forum...it doesn't display anything accept this code.

317 doesn't have any code in it. It is the end of the document.

Any ideas anyone? Does this MOD use the /cache folder? For what? Is this because I installed using EasyMOD?
magicfun
Registered User
Registered User
 
Posts: 33
Joined: Wed Apr 26, 2006 4:27 am

Postby DooBDee on Wed May 31, 2006 8:00 pm

Check the file 'templates/ca_aphrodite/index_body.tpl' and look for

'<!-- END bla -->' that is either before a '<!-- BEGIN bla -->'

or

does not have a corresponding '<!-- BEGIN bla -->'.
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby magicfun on Wed May 31, 2006 8:10 pm

why is it referring to the /cache folder? So ignore the /cache folder error and check in templates/ca_aphrodite/index_body.tpl ??
magicfun
Registered User
Registered User
 
Posts: 33
Joined: Wed Apr 26, 2006 4:27 am

Postby magicfun on Wed May 31, 2006 8:12 pm

Here is what I have in the index_body.tpl

Code: Select all
<div class="forumline nav-div">
   <p class="nav-header">
      <a href="{U_INDEX}">{L_INDEX}</a>
   </p>
   <div class="nav-links">
      <div class="nav-links-left">
         <!-- BEGIN switch_user_logged_in -->
         <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a><br />
         <!-- END switch_user_logged_in -->
         {CURRENT_TIME} | {S_TIMEZONE}
      </div>
      <!-- BEGIN switch_user_logged_in -->
      <a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a> | <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
      <a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> | <a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      <!-- END switch_user_logged_in -->
      <!-- BEGIN switch_user_logged_out --> 
      <a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a>
      <!-- END switch_user_logged_out -->
   </div>
</div>

<!-- BEGIN switch_user_logged_out -->
<div align="right">
   <form method="post" action="{S_LOGIN_ACTION}"><input type="hidden" name="autologin" value="checked" />
   <span class="gensmall">{L_USERNAME}:
      <input class="post" type="text" name="username" size="10" />
      &nbsp;{L_PASSWORD}:
      <input class="post" type="password" name="password" size="10" maxlength="32" />
      &nbsp;
      <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
      </span>
   </form>
</div>
<!-- END switch_user_logged_out -->

<!-- BEGIN catrow -->
<table width="100%" cellspacing="0" class="forumline">
<tr>
   <td colspan="5" class="row-header"><span>{catrow.CAT_DESC}</span></td>
</tr>
<tr>
   <th colspan="2">{L_FORUM}</th>
   <th>{L_TOPICS}</th>
   <th>{L_POSTS}</th>
   <th>{L_LASTPOST}</th>
</tr>
<!-- BEGIN forumrow -->
<!-- IF ! forumrow.PARENT -->

  <!-- IF ! forumrow.PARENT -->


<tr>   
   <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>   
   <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />   
     <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /> 
<!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->   
     <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><!-- ENDIF --> 
       </span><span class="moderators"> <!-- IF catrow.forumrow.MODERATORS -->{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /><!-- ENDIF --> </span></td>   
   <td class="row2 row-center-small">{catrow.forumrow.TOTAL_TOPICS}</td>   
   <td class="row2 row-center-small">{catrow.forumrow.TOTAL_POSTS}</td>   
   <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td>   
</tr>

<!-- ENDIF -->

<!-- END forumrow -->
</table>
<!-- END catrow -->

<div class="forumline">
   <p class="row-header"><span><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></span></p>
   <p class="row1 gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</p>
   <p class="row1 gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}</p>
</div>


<table cellspacing="3" align="center" cellpadding="0" class="forumline no-width">
<tr>
   <td class="row-center-small"><img src="templates/ca_aphrodite/images/folder_new.gif" alt="{L_NEW_POSTS}"/></td>
   <td class="row-center-small">{L_NEW_POSTS}</td>
   <td class="row-center-small">&nbsp;&nbsp;</td>
   <td class="row-center-small"><img src="templates/ca_aphrodite/images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td>
   <td class="row-center-small">{L_NO_NEW_POSTS}</td>
   <td class="row-center-small">&nbsp;&nbsp;</td>
   <td class="row-center-small"><img src="templates/ca_aphrodite/images/folder_locked.gif" alt="{L_FORUM_LOCKED}" /></td>
   <td class="row-center-small">{L_FORUM_LOCKED}</td>
</tr>
</table>
Last edited by magicfun on Wed May 31, 2006 9:20 pm, edited 2 times in total.
magicfun
Registered User
Registered User
 
Posts: 33
Joined: Wed Apr 26, 2006 4:27 am

Postby magicfun on Wed May 31, 2006 8:31 pm

I'm not sure what in this code isn't working properly...any help?
magicfun
Registered User
Registered User
 
Posts: 33
Joined: Wed Apr 26, 2006 4:27 am

Postby UseLess on Wed May 31, 2006 10:00 pm

Greetings,

Lines 48 and 50 remove one of them...
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby magicfun on Wed Jun 21, 2006 8:13 pm

that worked...thanks, im up and running.
magicfun
Registered User
Registered User
 
Posts: 33
Joined: Wed Apr 26, 2006 4:27 am

error

Postby shadowcodes on Fri Jul 07, 2006 6:25 pm

im getting this error

Code: Select all
Warning

FIND FAILED: In file [templates/ca_aphrodite/viewtopic_body.tpl] could not find:

<a href="{U_INDEX}" class="nav">{L_INDEX}</a>



and


Code: Select all

Critical Error

IN-LINE FINDFAILED: malformed script. A FIND was not previously performed.


i used the code given in the start of this thread
beginner...so dont blame me:)
User avatar
shadowcodes
Registered User
Registered User
 
Posts: 79
Joined: Wed Jul 05, 2006 10:23 am

Postby shadowcodes on Sun Jul 09, 2006 12:51 pm

yuppiieee it worked.. thanx buddy good work:)
Last edited by shadowcodes on Thu Jul 27, 2006 4:05 pm, edited 1 time in total.
beginner...so dont blame me:)
User avatar
shadowcodes
Registered User
Registered User
 
Posts: 79
Joined: Wed Jul 05, 2006 10:23 am

hellpeeeeeeeeeeeeeeeeeeeeeeeee

Postby shadowcodes on Sun Jul 09, 2006 1:01 pm

guys i installed it and jumped up to the roof.. but when i try to reply or post a new thread it gives me this errror...



Code: Select all
Template->make_filename(): Error - file ./templates/ca_aphrodite/add_attachment_body.tpl does not exist




__________________________________________________
Edited:::: i replaced add_attachment_body.tpl with subsilvers one.. and it worked did i do the right thing????
beginner...so dont blame me:)
User avatar
shadowcodes
Registered User
Registered User
 
Posts: 79
Joined: Wed Jul 05, 2006 10:23 am

Can you help me on Sub Forums

Postby Paffendorf on Thu Jul 27, 2006 1:55 pm

I have had the hardest time installing this. I can get everything done except for the index_body.tpl

What is suspose to be replaced is totally different from mine. And I have done nothing but installed the XS mod and the Aphrodite theme. How would I change the below to be correct?

Code: Select all
<!-- BEGIN forumrow -->
<tr>
   <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
     <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
     </span><span class="moderators">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>
     <!-- BEGIN switch_attached_forums -->
     <!-- BEGIN br -->
     <br />
     <!-- END br -->
     <span class="moderators"><b>{catrow.forumrow.switch_attached_forums.L_ATTACHED_FORUMS}:</b>
          <!-- BEGIN attached_forums -->
           <a class="nav" href="{catrow.forumrow.switch_attached_forums.attached_forums.U_VIEWFORUM}"><img alt="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" border="0" src="{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_IMAGE}" title="{catrow.forumrow.switch_attached_forums.attached_forums.L_FORUM_IMAGE}" />{catrow.forumrow.switch_attached_forums.attached_forums.FORUM_NAME}</a>
          <!-- END attached_forums -->
     <span class="genmed">
     <!-- END switch_attached_forums -->
   </td>
   <td class="row2 row-center-small">{catrow.forumrow.TOPICS}</td>
   <td class="row2 row-center-small">{catrow.forumrow.POSTS}</td>
   <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td>
</tr>
<!-- END forumrow -->


Below is what Im spose to find.. Its NOT there..
Code: Select all
#
#-----[ FIND ]------------------------------------------
#
<tr>
   <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
     <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
     </span><span class="moderators">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row2 row-center-small">{catrow.forumrow.TOPICS}</td>
   <td class="row2 row-center-small">{catrow.forumrow.POSTS}</td>
   <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td>
</tr>


Please help...


[/code]
Paffendorf
Registered User
Registered User
 
Posts: 12
Joined: Thu Jul 27, 2006 1:50 pm

Postby Paffendorf on Thu Jul 27, 2006 7:25 pm

Parse error: syntax error, unexpected T_FOR in /home/toontown/public_html/admin/admin_forums.php on line 1165

WTF? And I done everything to the letter.....
Paffendorf
Registered User
Registered User
 
Posts: 12
Joined: Thu Jul 27, 2006 1:50 pm

Postby UseLess on Thu Jul 27, 2006 7:34 pm

Greetings,

What other mods do you have installed?

As obviously one of them has altered 'index_body.tpl' (the one that added the 'attach_forums' stuff) and that's why you cannot find the code your looking for.
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

PreviousNext

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 1 guest