Code: Selecteer alles
Hack Title: Viewtopic Nav-Slices 1
## Hack Version: 1.1.1
## Author: Daz (Darren Burnhill) <webmaster@forumimages.com> http://www.forumimages.com
## Rondom (Andreas Gnau) <rondom@arcor.de> http://www.rondom.gu2.info
##
## Description: Saves space in viewtopic.php. This hack provides smaller buttons for
## hacks like "Tell a Friend" or "Print Topic". You can see a preview in
## the included nav_slices_1.jpg
##
## Compatibility: 2.0.4 - 2.0.6
##
## Installation Level: Easy
## Installation Time: 4 minutes
## Files To Edit: 3
## index.php
## language/lang_english/lang_main.php
## templates/subSilver/index_body.tpl
##
##
## History:
## 1.1.1 (1st November, 2003)
## - I forgot some changings
##
## 1.1.0 (30th October, 2003)
## - After Daz has changed the filenames in the image archives,
## I (Rondom) decided to update this hack
## - New images
## - Go to top/bottom images
## - No hardcoded images
##
## 1.0.0 (???)
## - Thats is "my" (Rondom's) version number for the original hack that was made by Daz
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: © 2003 Viewtopic Nav-slices 1 - Rondom (Andreas Gnau) and Daz (Darren Burnhill)
##
###############################################
## Note:
## You need the images of Daz. You can get them at http://www.forumimages.com/????????
## After downloading the images for your theme, unpack them into your images directory
## of your template.
##
## Please note that I (Rondom) provide support. You won't get any support from Daz.
##
## Thanks have to go to Daz. He gave me the idea an made the original hack. And of
## course he makes the images!
###############################################
## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
## Please visit http://www.phpbbhacks.com/forums for support.
###############################################
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property is retained by the hack author(s) listed above.
###############################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
'S_WATCH_TOPIC_IMG' => $s_watching_topic_img,
#
#-----[ AFTER ADD ]------------------------------------------
#
// Nav-slices 1 by Rondom and Daz
'NS_PAGE_BOTTOM_IMG' => $images['ns_icon_down'],
'L_PAGE_BOTTOM' => $lang['Go_to_bottom'],
'NS_PAGE_TOP_IMG' => $images['ns_icon_up'],
'VIEW_PREVIOUS_TOPIC_IMG' => $images['topic_previous'],
'VIEW_NEXT_TOPIC_IMG' => $images['topic_next'],
'PRINTER_TOPIC_IMG' => $images['ns_print'],
'TELL_FRIEND_IMG' => $images['ns_email'],
// Nav-slices 1 by Rondom and Daz
#
#-----[ OPEN ]------------------------------------------
#
templates/fisubsilver/fisubsilver.cfg
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$ns_big_iw = "22";
$ns_sm_iw = "18";
$ns_corner_iw = "12";
$images['pm_new_msg'] = "$current_template_images/ns_pm_new.gif\" width=\"$ns_big_iw\" height=\"$post_ih";
$images['pm_no_new_msg'] = "$current_template_images/ns_pm_no_new.gif\" width=\"$ns_big_iw\" height=\"$post_ih";
$images['topic_watch'] = "$current_template_images/ns_topic_watch.gif\" width=\"$ns_big_iw\" height=\"$post_ih";
$images['topic_un_watch'] = "$current_template_images/ns_topic_unwatch.gif\" width=\"$ns_big_iw\" height=\"$post_ih";
$images['ns_email'] = "$current_template_images/ns_topic_email.gif\" width=\"$ns_big_iw\" height=\"$post_ih";
$images['ns_print'] = "$current_template_images/ns_topic_print.gif\" width=\"$ns_big_iw\" height=\"$post_ih";
$images['ns_icon_up'] = "$current_template_images/ns_icon_up.gif\" width=\"$ns_sm_iw\" height=\"$post_ih";
$images['ns_icon_down'] = "$current_template_images/ns_icon_down.gif\" width=\"$ns_sm_iw\" height=\"$post_ih";
$images['topic_previous'] = "$current_template_images/ns_topic_previous.gif\" width=\"$ns_corner_iw\" height=\"$post_ih";
$images['topic_next'] = "$current_template_images/ns_topic_next.gif\" width=\"$ns_corner_iw\" height=\"$post_ih";
#
#-----[ OPEN ]------------------------------------------
#
templates/fisubsilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
till the beginning of the file
...
...
...
{POLL_DISPLAY}
#
#-----[ REPLACE WITH ]------------------------------------------
#
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr><td height="34" valign="top" class="nav"><a href="{U_VIEW_TOPIC}" class="maintitle">{TOPIC_TITLE}</a></td>
</tr><tr>
<td class="nav">{PAGINATION}</td>
</tr></table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr><td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" border="0" title="{L_POST_REPLY_TOPIC}" /></a></td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td valign="bottom" nowrap="nowrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><a href="{U_VIEW_OLDER_TOPIC}"><img src="{VIEW_PREVIOUS_TOPIC_IMG}" alt="{L_VIEW_PREVIOUS_TOPIC}" title="{L_VIEW_PREVIOUS_TOPIC}" /></a></td>
<td nowrap="nowrap">
<a href="{U_TELL_FRIEND}"><img src="{TELL_FRIEND_IMG}" alt="{L_TELL_FRIEND}" title="{L_TELL_FRIEND}" /></a><a href="{U_PRINTER_TOPIC}" target="_blank"><img src="{PRINTER_TOPIC_IMG}" alt="{L_PRINTER_TOPIC}" title="{L_PRINTER_TOPIC}" /></a>{S_WATCH_TOPIC_IMG}<a href="{U_PRIVATEMSGS}"><img src="{PRIVMSG_IMG}" border="0" alt="{PRIVATE_MESSAGE_INFO}" title="{PRIVATE_MESSAGE_INFO}" /></a><a href="#bot"><img src="{NS_PAGE_BOTTOM_IMG}" alt="{L_PAGE_BOTTOM}" title="{L_PAGE_BOTTOM}" /></a></td>
<td><a href="{U_VIEW_NEWER_TOPIC}"><img src="{VIEW_NEXT_TOPIC_IMG}" alt="{L_VIEW_NEXT_TOPIC}" title="{L_VIEW_NEXT_TOPIC}" /></a>
</td></tr></table></td></tr></table>
{POLL_DISPLAY}
#
#-----[ FIND ]------------------------------------------
#
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
...
...
...
till the end of the file
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" border="0" title="{L_POST_REPLY_TOPIC}" /></a></td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td valign="top" nowrap="nowrap"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="{U_VIEW_OLDER_TOPIC}"><img src="{VIEW_PREVIOUS_TOPIC_IMG}" alt="{L_VIEW_PREVIOUS_TOPIC}" title="{L_VIEW_PREVIOUS_TOPIC}" /></a></td>
<td nowrap="nowrap"><a href="{U_TELL_FRIEND}"><img src="{TELL_FRIEND_IMG}" alt="{L_TELL_FRIEND}" title="{L_TELL_FRIEND}" /></a><a href="{U_PRINTER_TOPIC}" target="_blank"><img src="{PRINTER_TOPIC_IMG}" alt="{L_PRINTER_TOPIC}" title="{L_PRINTER_TOPIC}" /></a>{S_WATCH_TOPIC_IMG}<a href="{U_PRIVATEMSGS}"><img src="{PRIVMSG_IMG}" alt="{PRIVATE_MESSAGE_INFO}" title="{PRIVATE_MESSAGE_INFO}" /></a><a href="#top"><img src="{NS_PAGE_TOP_IMG}" alt="{L_BACK_TO_TOP}" title="{L_BACK_TO_TOP}" /></a></td>
<td><a href="{U_VIEW_NEWER_TOPIC}"><img src="{VIEW_NEXT_TOPIC_IMG}" alt="{L_VIEW_NEXT_TOPIC}" title="{L_VIEW_NEXT_TOPIC}" /></a></td>
</tr></table></td></tr></table>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="nav" valign="top">{PAGINATION}</td>
<td class="gensmall" align="right" valign="top" rowspan="3">{S_AUTH_LIST}<br /></td>
</tr>
<tr><td class="nav" valign="top">{S_TOPIC_ADMIN}</td></tr>
<tr><td class="nav" valign="middle">{JUMPBOX}</td></tr>
</table>
#
#EoH