Seite 1 von 1

Aphrodite und Global Announcement

Verfasst: 26.12.2006 12:32
von Mahatma
Hi,
habe gerade in einem Forum von mir, das in Aphrodite-Style ist, den Global Announcement Hack installiert. Er funktioniert auch so weit. Man kann Topics zu Global Announcements machen und diese erscheinen dann in allen Foren ganz oben. Das Problem ist nur, dass die Bilder noch nicht korrekt angezeigt werden.

Das liegt an dem Code der viewforum_body.tpl. Er wurde noch nicht von mir abgeändert, weil ich nicht recht weiß, was ich dort tun soll.

Hier der Code:

Code: Alles auswählen

<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">  
<tr>  
   <td align="left" valign="top" nowrap="nowrap">  
       <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a><br /><br />  
<table width="100%" cellspacing="0" cellpadding="0">  
<tr>  
   <td align="left" valign="top" nowrap="nowrap">  
       <a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" /></a><br />  
       <table cellspacing="2" cellpadding="0" border="0" class="forumline">  
           <tr>  
               <td width="20" align="center"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" width="15" height="15" /></td>  
               <td class="gensmall">{L_NEW_POSTS}</td>  
               <td>&nbsp;&nbsp;</td>  
               <td width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" width="15" height="15" /></td>  
               <td class="gensmall">{L_NO_NEW_POSTS}</td>  
               <td>&nbsp;&nbsp;</td>  
           </tr>  
           <tr>  
               <td class="gensmall" align="center"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_TOPIC_LOCKED}" width="15" height="15" /></td>  
               <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>  
               <td>&nbsp;&nbsp;</td>  
               <td class="gensmall" align="center"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_TOPIC_LOCKED}" width="15" height="15" /></td>  
               <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>  
               <td>&nbsp;&nbsp;</td>  
           </tr>  
       </table>  
       {JUMPBOX}<br />  
   </td>  
   <td align="right" valign="top" nowrap="nowrap">  
       <span class="pagination">{PAGINATION}</span><br />  
       <span class="gensmall">{S_AUTH_LIST}</span><br />  
   </td>  
</tr>  
</table> 
Da muss jetzt irgendwo das mit den Global Announcements rein. Kann einer von euch, der auch Aphrodite hat und den Global Announcement Hack schon erfolgreich installiert hat, hier den abgeänderten Code posten?
Danke.

Verfasst: 27.12.2006 14:27
von Mahatma
Hi!
Kann mir keiner helfen?

Hier die entsprechenden Zeilen aus dem Mod. Wie verändere ich jetzt die Datei korrekt?

Code: Alles auswählen

# 
#-----[ OPEN ]------------------------------------------------ 
# 
# Remember to do this to all instaled template on the board
#
templates/subSilver/viewforum_body.tpl

# 
#-----[ FIND ]------------------------------------------------ 
# 
<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>

# 
#-----[ REPLACE WITH ]---------------------------------------- 
# 

<!-- Start replacement - Global announcement MOD -->
<td width="20" align="center"><img src="{FOLDER_GLOBAL_ANNOUNCE_IMG}" alt="{L_GLOBAL_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_GLOBAL_ANNOUNCEMENT}</td>
<!-- End replacement - Global announcement MOD -->

# 
#-----[ FIND ]------------------------------------------------ 
# 
<td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" width="19" height="18" /></td>
<td class="gensmall">{L_STICKY}</td>

# 
#-----[ REPLACE WITH ]---------------------------------------- 
# 

<!-- Start replacement - Global announcement MOD -->
<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="19" height="18" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
<!-- End replacement - Global announcement MOD -->

# 
#-----[ FIND ]------------------------------------------------ 
# 
<td class="gensmall"><img src="{FOLDER_LOCKED_IMG}"
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

<!-- Start add - Global announcement MOD -->
<td>&nbsp;&nbsp;</td>
<td width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" width="19" height="18" /></td>
<td class="gensmall">{L_STICKY}</td>
<!-- End add - Global announcement MOD -->