Attachment Mod

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
2035
71%
Very Good
444
16%
Good
175
6%
Fair
54
2%
Poor
156
5%
 
Total votes: 2864

mosport
Registered User
Posts: 232
Joined: Wed Sep 01, 2004 8:41 am
Location: Australia
Contact:

Post by mosport »

thanks 8) all becomes clear now
Kanon
Registered User
Posts: 72
Joined: Sat Sep 11, 2004 2:53 pm

Post by Kanon »

Anybody use Split topic with Attachment? I got a problem with viewforum_body.tpl The line have been changed by Split topic so its not there.
Any one up for some decoding?

Thanks for any help!!!

This is from Attachment:

Code: Select all

templates/subSilver/viewforum_body.tpl

# 
#-----[ FIND ]---------------------------------------------
# around line 26
	  <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />

# 
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 26 (directly in that line)
{topicrow.NEWEST_POST_IMG}

# 
#-----[ IN-LINE AFTER, ADD ]---------------------------------------
# 
{topicrow.TOPIC_ATTACHMENT_IMG}


This is the viewforum_body.tpl Every line with <!-- has been "removed" by Split topic.

Code: Select all

<!-- mod : split topic type -->

<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="95%" cellspacing="2" cellpadding="2" border="0" align="center">
	<tr> 
	  <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
	  <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
	</tr>
	<tr> 
	  <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
	  <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
	  <td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
	</tr>
  </table>

<!--  <table border="0" cellpadding="4" cellspacing="1" width="95%" class="forumline"> -->
<!--	<tr>  -->
<!--	  <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th> -->
<!--	  <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th> -->
<!--	  <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th> -->
<!--	  <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th> -->
<!--	  <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th> -->
<!--	</tr> -->
	<!-- BEGIN topicrow -->
<!--	<tr>  -->
<!--	  <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td> -->
<!--	  <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br /> -->
<!--		{topicrow.GOTO_PAGE}</span></td> -->
<!--	  <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td> -->
<!--	  <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td> -->
<!--	  <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td> -->
<!--	  <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td> -->
<!--	</tr> -->
	<!-- END topicrow -->
	<!-- BEGIN switch_no_topics -->
<!--	<tr>  -->
<!--	  <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td> -->
<!--	</tr> -->
	<!-- END switch_no_topics -->
<!--	<tr>  -->
<!--	  <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="genmed">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;  -->
<!--		<input type="submit" class="liteoption" value="{L_GO}" name="submit" /> -->
<!--		</span></td> -->
<!--	</tr> -->
<!--  </table> -->
{TOPICS_LIST_BOX}
  <table width="95%" cellspacing="2" border="0" align="center" cellpadding="2">
	<tr> 
	  <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
	  <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
	  <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span> 
		</td>
	</tr>
	<tr>
	  <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
	</tr>
  </table>
</form>

<table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
	<td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="95%" cellspacing="0" border="0" align="center" cellpadding="0">
	<tr>
		<td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
			<tr>
				<td width="20" align="left"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" width="19" height="18" /></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="19" height="18" /></td>
				<td class="gensmall">{L_NO_NEW_POSTS}</td>
				<td>&nbsp;&nbsp;</td>
				<td width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" width="19" height="18" /></td>
				<td class="gensmall">{L_ANNOUNCEMENT}</td>
			</tr>
			<tr> 
				<td width="20" align="center"><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" width="19" height="18" /></td>
				<td class="gensmall">{L_NEW_POSTS_HOT}</td>
				<td>&nbsp;&nbsp;</td>
				<td width="20" align="center"><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" width="19" height="18" /></td>
				<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
				<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>
			</tr>
			<tr>
				<td class="gensmall"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" width="19" height="18" /></td>
				<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
				<td>&nbsp;&nbsp;</td>
				<td class="gensmall"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" width="19" height="18" /></td>
				<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
			</tr>
		</table></td>
		<td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
	</tr>
</table>
Doh
Steve F
Registered User
Posts: 55
Joined: Sat Jul 30, 2005 8:51 pm
Location: USA

Post by Steve F »

PHK wrote:
Steve F wrote:PHK, this may be obvious but have you used 'Forum Permissions' to set upload and download permissions on each forum? If this is set wrong the attachmod will act as you describe.


Steve,

If you mean I have set the "Post Files" and "Download Files" in the Forum Permissions set to "All" (or "REG", "MOD", etc) then the answer is yes. Are you talking about setting forum permissions somewhere else?

(And damn, I got all excited after reading your post because, although I hate to admit it, I love it when the solutions is such a simple oversight :D)


Those are the ones I was talking about. But maybe there is a clue here. What in the source code would prohibit the attachmod panel from showing up on a topic post? Permissions! The template variables that control wheither a section of HTML shows up in the output are case sensistive. Also, I would trace back the logic that enables that section of code (the attachmod upload panel).
Kanon
Registered User
Posts: 72
Joined: Sat Sep 11, 2004 2:53 pm

Post by Kanon »

Hmmm.. seems to work with out the moding of viewforum_body.tpl

Well, if any one see an error, please, let me know! :)
Doh
Sanjuro-
Registered User
Posts: 1
Joined: Mon Oct 10, 2005 7:23 pm

problem with double image post

Post by Sanjuro- »

All my images posts double, one hint to the problem might be that it does not in preview, and if a user has a sign, the post does not double that, only the image...
Tazarel
Registered User
Posts: 4
Joined: Fri Jan 07, 2005 11:15 am

Post by Tazarel »

Hello,

I've just installed phpbb 2.0.17. I want to use the template Cobalt 2.0.1a (version since 1/8/04) with Attachement Mod.

I'm no programmer so I guess it would be hard for me to make attachment mod work with cobalt. Does anyone have already edited files or description of what to do?
--: Tazarel :--
mosport
Registered User
Posts: 232
Joined: Wed Sep 01, 2004 8:41 am
Location: Australia
Contact:

Post by mosport »

Tazarel wrote: I'm no programmer so I guess it would be hard for me to make attachment mod work with cobalt. Does anyone have already edited files or description of what to do?
should just be a matter of making the same chanmges to your template wouldnt it ? I did it once with ICG station & it wasnt too hard.
Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Post by Nitrocharged »

Similarly, I have just installed phpbb2.0.17 - will this attach_mod work for this version of the board?

Also, I tried to install this mod on version 2.0.4 and it wouldnt go. Is it suitable for that version and therefore just finger trouble my end?

Thanks,
Nitro
mosport
Registered User
Posts: 232
Joined: Wed Sep 01, 2004 8:41 am
Location: Australia
Contact:

Post by mosport »

Nitrocharged wrote: Nitro


Nitro, i just installed on 2.0.16 & worked ok, use easy mod
http://www.phpbb.com/phpBB/viewtopic.ph ... 082#689082
babydoll2u
Registered User
Posts: 214
Joined: Sun Sep 18, 2005 11:26 pm
Contact:

lines and boxes...

Post by babydoll2u »

We have our attachements set to be displayed inlined within the post. When you attach a file to a post, you see all these boxes in your post for description, file size, how many times it's been viewed....

it's ugly ... is there any way to get rid of that, so that one sees only the picture and not all the information that they don't need to see??


thanks in advance for your help :D
Never, ever, argue with an idiot. They'll drag you down to their level and beat you with experience
Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Post by Nitrocharged »

Thanks Mosport.

I still need an answer for the 2.0.4 if anyone could help or should I upgrade to the current version for that forum? (as it is a clients forum)
shizumaat
Registered User
Posts: 1
Joined: Wed Oct 12, 2005 5:52 pm

Downloading/Viewing TIF files?

Post by shizumaat »

Hi, I'm using the attachment mod, and I'm having an issue with TIF files. I can upload them fine, and they display in Safari, but in Firefox I just see the file name and no download link...

Is there some way to force a download link?
mosport
Registered User
Posts: 232
Joined: Wed Sep 01, 2004 8:41 am
Location: Australia
Contact:

Re: Downloading/Viewing TIF files?

Post by mosport »

shizumaat wrote: Hi, I'm using the attachment mod, and I'm having an issue with TIF files. I can upload them fine, and they display in Safari, but in Firefox I just see the file name and no download link...

Is there some way to force a download link?


you could try changing tif from an image to inline or other type of option perhaps ?
Nitrocharged
Registered User
Posts: 12
Joined: Wed Oct 12, 2005 5:12 am
Location: Adelaide, Australia

Post by Nitrocharged »

Mosport,
I installed a fresh forum 2.0.17. I then installed easymod. The I made the changes in attah_mod as directed via the link you suppled and installed that - at which point the entire forum crashed and I had to wipe it all out and reinstall. This is really giving me grief which sucks because most people have a seamless install :(
Any advice to get this thing working?
mosport
Registered User
Posts: 232
Joined: Wed Sep 01, 2004 8:41 am
Location: Australia
Contact:

Post by mosport »

"Nitrocharged"

it's easy to upload the files to the wrong directory if your not careful, double check what you are doing, it should work.

i used to have a link to a pre-modded version from morphues2matrix (or some similiar username) I think its buried somewhere in the middle of the last 753 pages...... :roll:

was the forum working correctly before you did the mod ?
where are you hosted ?, on a free server or on own ?
Post Reply

Return to “[2.0.x] MOD Database Releases”