Wicher's phpBB2 Mods Forum Index Wicher's phpBB2 Mods
On this board you will find all phpBB2 mods that i have created over the years. Most mods are on this board installed. Before asking for support, be sure to have your board updated to the latest phpBB2 version.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Simple db_update generatorSimple db_update generator   Advanced db_update generatorAdvanced db_update generator 
 This board is protected by Phpbbantispam 

image_attachment_table_gone

 
Board Alert Board Message
There are in this topic 7 posts to view if you are logged in.

You can log in or register via the login / registerlink here or in the header.
Back to top  Login here and be redirected to this TopicLogin here and be redirected to this Topic RegisterRegister
Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods Was this Topic Helpful?  
Points for this topic: 0
Topic gradiation: 
View previous topic :: View next topic  
Author image_attachment_table_gone
Wicher
Site Admin


Joined: 16 Dec 2005
Posts: 1144
User's local time:
2017 Sep 26 - 5:25 PM
Country IP         : Netherlands
Country of choice: Netherlands


Was This Post Helpful?

 
Users postingpoints:
57
Posts points:
0
Post gradiation:
PostPosted: Tue Dec 20, 2005 10:46 pm    Post subject: Reply with quote

this mod removes the tables arround an attached image. Works with attachment mod 2.3.13

Code:
  1. ##############################################################
  2. ## MOD Title: image_attachment_table_gone
  3. ## MOD Author: Wicher <http://www.wichersmods.nl>
  4. ## MOD Description: this mod removes the tables arround an attached image. Works with attachment mod 2.3.13
  5. ## MOD Version: 1.0.0
  6. ##
  7. ## Installation Level: (Easy)
  8. ## Installation Time: 2 Minutes
  9. ## Files To Edit: 1
  10. ##               viewtopic_attach_body.tpl
  11. ## Included Files: 0
  12. ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
  13. ##############################################################
  14. ## Author Notes:
  15. ## none
  16. ##############################################################
  17. ## MOD History:
  18. ##
  19. ##   2005-11-17 - Version 1.0.0
  20. ##      - (no version notes)
  21. ##############################################################
  22. ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
  23. ##############################################################
  24. #
  25. #-----[ OPEN ]------------------------------------------
  26. #
  27. templates/subSilver/viewtopic_attach_body.tpl
  28. #
  29. #-----[ FIND ]------------------------------------------
  30. #
  31.    <!-- BEGIN cat_images -->
  32.    <div align="center"><hr width="95%" /></div>
  33.    <table width="95%" border="1" cellpadding="2" cellspacing="0" class="attachtable" align="center">
  34.    <tr>
  35.       <td width="100%" colspan="2" class="attachheader" align="center"><b><span class="gen">{postrow.attach.cat_images.DOWNLOAD_NAME}</span></b></td>
  36.    </tr>
  37.    <tr>
  38.       <td width="15%" class="attachrow"><span class="genmed">&nbsp;{L_DESCRIPTION}:</span></td>
  39.       <td width="75%" class="attachrow">
  40.          <table width="100%" border="0" cellpadding="0" cellspacing="4" align="center">
  41.          <tr>
  42.             <td class="attachrow"><span class="genmed">{postrow.attach.cat_images.COMMENT}</span></td>
  43.          </tr>
  44.          </table>
  45.       </td>
  46.    </tr>
  47.    <tr>
  48.       <td width="15%" class="attachrow"><span class="genmed">&nbsp;{L_FILESIZE}:</span></td>
  49.       <td width="75%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.cat_images.FILESIZE} {postrow.attach.cat_images.SIZE_VAR}</td>
  50.    </tr>
  51.    <tr>
  52.       <td width="15%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.cat_images.L_DOWNLOADED_VIEWED}:</span></td>
  53.       <td width="75%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.cat_images.L_DOWNLOAD_COUNT}</span></td>
  54.    </tr>
  55.    <tr>
  56.       <td colspan="2" align="center"><br /><img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" border="0" /><br /><br /></td>
  57.    </tr>
  58.    </table>
  59.    <div align="center"><hr width="95%" /></div>
  60.    <!-- END cat_images -->
  61.    <!-- BEGIN cat_thumb_images -->
  62.    <div align="center"><hr width="95%" /></div>
  63.    <table width="95%" border="1" cellpadding="2" cellspacing="0" class="attachtable" align="center">
  64.    <tr>
  65.       <td width="100%" colspan="2" class="attachheader" align="center"><b><span class="gen">{postrow.attach.cat_thumb_images.DOWNLOAD_NAME}</span></b></td>
  66.    </tr>
  67.    <tr>
  68.       <td width="15%" class="attachrow"><span class="genmed">&nbsp;{L_DESCRIPTION}:</span></td>
  69.       <td width="75%" class="attachrow">
  70.          <table width="100%" border="0" cellpadding="0" cellspacing="4" align="center">
  71.          <tr>
  72.             <td class="attachrow"><span class="genmed">{postrow.attach.cat_thumb_images.COMMENT}</span></td>
  73.          </tr>
  74.          </table>
  75.       </td>
  76.    </tr>
  77.    <tr>
  78.       <td width="15%" class="attachrow"><span class="genmed">&nbsp;{L_FILESIZE}:</span></td>
  79.       <td width="75%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.cat_thumb_images.FILESIZE} {postrow.attach.cat_thumb_images.SIZE_VAR}</td>
  80.    </tr>
  81.    <tr>
  82.       <td width="15%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.cat_thumb_images.L_DOWNLOADED_VIEWED}:</span></td>
  83.       <td width="75%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.cat_thumb_images.L_DOWNLOAD_COUNT}</span></td>
  84.    </tr>
  85.    <tr>
  86.       <td colspan="2" align="center"><br /><a href="{postrow.attach.cat_thumb_images.IMG_SRC}" target="_blank"><img src="{postrow.attach.cat_thumb_images.IMG_THUMB_SRC}" alt="{postrow.attach.cat_thumb_images.DOWNLOAD_NAME}" border="0" /></a><br /><br /></td>
  87.    </tr>
  88.    </table>
  89.    <div align="center"><hr width="95%" /></div>
  90.    <!-- END cat_thumb_images -->
  91. #
  92. #-----[ REPLACE WITH ]------------------------------------------
  93. #
  94.    <!-- BEGIN cat_images -->
  95.    <table cellpadding="2" cellspacing="0" class="attachtable" align="center">
  96.    <tr>
  97.       <td class="attachrow" align="center" valign="bottom"><span class="genmed">{postrow.attach.cat_images.DOWNLOAD_NAME}: {postrow.attach.cat_images.L_DOWNLOAD_COUNT} {postrow.attach.cat_images.L_DOWNLOADED_VIEWED}, {postrow.attach.cat_images.FILESIZE} {postrow.attach.cat_images.SIZE_VAR}<br>{postrow.attach.cat_images.COMMENT}</span></td>
  98.    </tr>
  99.    <tr>
  100.         <td colspan="2" align="center"><br /><img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" border="0" /><br /><br /></td>
  101.     </tr>
  102.    </table>
  103.    <div align="center"><hr width="50%" /></div>
  104.    <br />
  105.    <!-- END cat_images -->
  106.    <!-- BEGIN cat_thumb_images -->
  107.    <table cellpadding="2" cellspacing="0" class="attachtable" align="center">
  108.    <tr>
  109.       <td class="attachrow" align="center" valign="bottom"><span class="genmed">{postrow.attach.cat_thumb_images.DOWNLOAD_NAME}: {postrow.attach.cat_thumb_images.L_DOWNLOAD_COUNT} {postrow.attach.cat_thumb_images.L_DOWNLOADED_VIEWED}, {postrow.attach.cat_thumb_images.FILESIZE} {postrow.attach.cat_thumb_images.SIZE_VAR}<br>{postrow.attach.cat_thumb_images.COMMENT}</span></td>
  110.    </tr>
  111.    <tr>
  112.       <td align="center"><br /><a href="{postrow.attach.cat_thumb_images.IMG_SRC}" target="_blank"><img src="{postrow.attach.cat_thumb_images.IMG_THUMB_SRC}" alt="{postrow.attach.cat_thumb_images.DOWNLOAD_NAME}" border="0" /></a><br /><br /></td>
  113.    </tr>
  114.    <tr>
  115.       <td align="center" width="100%" class="attachrow"><span class="gensmall">
  116.       <a href="{postrow.attach.cat_thumb_images.IMG_SRC}" target="_blank">Klik here or on the thumb to look at it in real size</a></span></td>
  117.    </tr>
  118.    </table>
  119.    <div align="center"><hr width="50%" /></div>
  120.    <br />
  121.    <!-- END cat_thumb_images -->
  122. #
  123. #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
  124. #
  125. # EoM

_________________

Wicher's phpBB2 Mods | Wicher's phpBB3 Mods | Statistics Mod 4.x.x


Last edited by Wicher on Thu Feb 23, 2006 11:53 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Post new topic    Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods
Author image_attachment_table_gone Replies
Display posts from previous:   
Post new topic   Reply to topic    Wicher's phpBB2 Mods Forum Index -> Wicher's phpBB Mods All times are GMT

Was this Topic Helpful?  
Points for this topic: 0
Topic gradiation: 
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

This board is protected by Phpbbantispam
Powered by phpBB © 2001, 2005 phpBB Group

Googlepage: GooglePullerPage
IP Country Flag 2.9.4 © 2005, 2007 - 3Di (aka 3D)