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

User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Post by 3Di »

@ ninosportif: the code it's (from #161 to #169:

Code: Select all

		'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"),
		'S_HIDDEN_FIELDS' => $s_hidden_fields)
	);

	$template->pparse('body');

}
else if ( isset($HTTP_POST_VARS['group_update']) )
{
that's in the normal 2.0.15 admin/admin_groups.php :wink:

about the issues with thumbs and creation of them and ability to post images bigger than a sat thumb or/and such, pls read the link I provided.
Last edited by 3Di on Sun Jun 19, 2005 4:01 am, edited 1 time in total.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
Tux_Rules
Registered User
Posts: 958
Joined: Sat Apr 24, 2004 10:48 pm
Location: Afton, Michigan
Contact:

Post by Tux_Rules »

Mooney wrote: i installed this mod and now when i go to my admin controls i get this error.
Parse error: parse error, unexpected T_ELSE in /home/mooney/domains/nonamefilms.co.uk/public_html/forum/admin/admin_groups.php on line 170

and this is what is on line 170
else if ( isset($HTTP_POST_VARS['group_update']) )

i think i installed it all right, does anyone know whats wrong?

thanks in advance


This what I have for line 170 thru line 179 in my forum with only the attach MOD installed, no other MOD's.

Code: Select all

'S_GROUP_HIDDEN_CHECKED' => $group_hidden,
		'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"),
		'S_HIDDEN_FIELDS' => $s_hidden_fields)
	);

	$template->pparse('body');

}
else if ( isset($HTTP_POST_VARS['group_update']) )
{
It appears to look for changes to group status. Have you had any other trouble?
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Post by 3Di »

these lines are from 156 to 178 in admin/admin_groups.php (2.0.15+attachmMod2.3.13)

Code: Select all

		'S_GROUP_OPEN_TYPE' => GROUP_OPEN,
		'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED,
		'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN,
		'S_GROUP_OPEN_CHECKED' => $group_open,
		'S_GROUP_CLOSED_CHECKED' => $group_closed,
		'S_GROUP_HIDDEN_CHECKED' => $group_hidden,
		'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"),
		'S_HIDDEN_FIELDS' => $s_hidden_fields)
	);

	$template->pparse('body');

}
else if ( isset($HTTP_POST_VARS['group_update']) )
{
	//
	// Ok, they are submitting a group, let's save the data based on if it's new or editing
	//
	if ( isset($HTTP_POST_VARS['group_delete']) )
	{
		//
		// Reset User Moderator Level
		//
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Dismay
Registered User
Posts: 31
Joined: Sat Jun 18, 2005 7:52 am
Contact:

Post by Dismay »

in what file i can change the table color background please take a look http://sek750.com/forums/viewtopic.php?p=18#18 i want the attachment table be in grey what do i do ?
Thanks !
Mooney
Registered User
Posts: 8
Joined: Sun Apr 24, 2005 4:00 pm

Post by Mooney »

ninosportif wrote: Check if you have all this code there?


this is lines 160 to 180, and it all seems to be there

Code: Select all

		'S_GROUP_OPEN_CHECKED' => $group_open,
		'S_GROUP_CLOSED_CHECKED' => $group_closed,
		'S_GROUP_HIDDEN_CHECKED' => $group_hidden,
		'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"),
		'S_HIDDEN_FIELDS' => $s_hidden_fields)
	);

	$template->pparse('body');

}
else if ( isset($HTTP_POST_VARS['group_update']) )
{
	//
	// Ok, they are submitting a group, let's save the data based on if it's new or editing
	//
	if ( isset($HTTP_POST_VARS['group_delete']) )
	{
		//
		// Reset User Moderator Level
		//

User avatar
Tux_Rules
Registered User
Posts: 958
Joined: Sat Apr 24, 2004 10:48 pm
Location: Afton, Michigan
Contact:

Post by Tux_Rules »

Dismay wrote: in what file i can change the table color background please take a look http://sek750.com/forums/viewtopic.php?p=18#18 i want the attachment table be in grey what do i do ?
Thanks !


I do believe that the color for the attachment background is going to be the same as the rest of the background. Without changing the coding in viewtopic_attach_body.tpl, I don't think you can change it.
User avatar
Tux_Rules
Registered User
Posts: 958
Joined: Sat Apr 24, 2004 10:48 pm
Location: Afton, Michigan
Contact:

Post by Tux_Rules »

huntercc wrote: FYI - I found an error in the update_23x_to_latest.txt file:

Code: Select all

#-----[ OPEN ]---------------------------------------------
# 
templates/subSilver/viewtopic_body.tpl

# 
#-----[ IN-LINE FIND ]---------------------------------------------
# around line 39 (directly in that line)
{postrow.SIGNATURE}</span>{postrow.ATTACHMENTS}

# 
#-----[ IN-LINE REPLACE WITH ]---------------------------------------
# 
</span>{postrow.ATTACHMENTS}<span class="postbody">{postrow.SIGNATURE}</span>
It doesn't show what line you should be looking for.

This is from the version I pulled from the phpbb mod's section


around line 39 (directly in that line)
Last edited by Tux_Rules on Sun Jun 19, 2005 1:09 pm, edited 1 time in total.
User avatar
BarrieUK
Registered User
Posts: 167
Joined: Wed Aug 21, 2002 3:25 pm
Location: Essex UK
Name: Barrie Tumbridge
Contact:

Post by BarrieUK »

Tux_Rules wrote:
Dismay wrote:in what file i can change the table color background please take a look http://sek750.com/forums/viewtopic.php?p=18#18 i want the attachment table be in grey what do i do ?
Thanks !


I do believe that the color for the attachment background is going to be the same as the rest of the background. Without changing the coding in viewtopic_attach_body.tpl, I don't think you can change it.


The only way to change only the attachment background is to create another css class and apply it to the attachment tpl.
ninosportif
Registered User
Posts: 220
Joined: Mon Apr 19, 2004 12:07 pm
Location: United Kingdom
Contact:

Post by ninosportif »

lol this is like a show off of lines... hehehe :P

I think everyone gets different lines for that piece of codes.

well i cant find the solution for it, but i am sure i have that problem before.

So i hope someone can help ya on.

Finger cross :!:
All rights reserved to Gamers SportCast Network (2004). The site is poweredby Canaca.com.
Image
apnads
Registered User
Posts: 18
Joined: Wed Apr 27, 2005 7:02 pm

Re: Removing Grid from around pictures

Post by apnads »

Tux_Rules wrote:
apnads wrote:
Tux_Rules wrote:
apnads wrote:Could you please tell me how to remove the grid around all of my uploaded pictures on the forum. The grid has information about description, file size, viewed.

Anthony


I posted this a few pages back:

http://www.phpbb.com/phpBB/posting.php? ... &p=1616113

You can shrink the box and re-align it as well.



Thanks Tux_rules.

What I want to do is to REMOVE the box totally from around the pictures. I do not want the Description, file size etc at all. Could you please tell me how to achieve this?

Anthony


My link above just goes to a reply quote I see. The post is on page 633, the last one. I can see how to do it, I'm just not to where I can try it.
I'm thinking if you remove all of the:

Code: Select all

<tr> 
      <td width="15%" class="attachrow"><span class="genmed">&nbsp;{L_FILENAME}:</span></td> 
      <td width="75%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.attachrow.DOWNLOAD_NAME}</span></td> 
   </tr> 
   <tr> 
      <td width="15%" class="attachrow"><span class="genmed">&nbsp;{L_FILESIZE}:</span></td> 
      <td width="75%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.attachrow.FILESIZE} {postrow.attach.attachrow.SIZE_VAR}</td> 
   </tr> 
   <tr> 
      <td width="15%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.attachrow.L_DOWNLOADED_VIEWED}:</span></td> 
      <td width="75%" class="attachrow"><span class="genmed">&nbsp;{postrow.attach.attachrow.L_DOWNLOAD_COUNT}</span></td> 
   </tr> 
stuff and leave the:

Code: Select all

<tr> 
      <td width="100%" colspan="3" class="attachheader" align="center"><b><span class="gen">{postrow.attach.attachrow.DOWNLOAD_NAME}</span></b></td> 
   </tr> 
   <tr> 
      <td width="15%" class="attachrow"><span class="genmed">&nbsp;{L_DESCRIPTION}:</span></td> 
      <td width="75%" class="attachrow"> 
         <table width="100%" border="0" cellpadding="0" cellspacing="4" align="center"> 
         <tr> 
            <td class="attachrow"><span class="genmed">{postrow.attach.attachrow.COMMENT}</span></td> 
         </tr> 
         </table> 
      </td> 
      <td rowspan="4" align="center" width="10%" class="attachrow">{postrow.attach.attachrow.S_UPLOAD_IMAGE}<br /><a href="{postrow.attach.attachrow.U_DOWNLOAD_LINK}" {postrow.attach.attachrow.TARGET_BLANK} class="genmed"><b>{L_DOWNLOAD}</b></a></td> 
   </tr>
It would do as you want. Over the next couple of days I will play around with this and if I can get it working, I will post the code change.


HI Tux_Rules:

Have you had a chance to look at this problem as yet?

Anthony
KronikJames
Registered User
Posts: 83
Joined: Sun Jun 19, 2005 11:38 pm
Location: Springfield, MO
Contact:

Post by KronikJames »

has anyone gotten this converted over to Eazy Mod or has a newer version been released? I am not very goot at editing or following instructions...lol :lol:
User avatar
Tux_Rules
Registered User
Posts: 958
Joined: Sat Apr 24, 2004 10:48 pm
Location: Afton, Michigan
Contact:

Re: Removing Grid from around pictures

Post by Tux_Rules »

apnads wrote: HI Tux_Rules:

Have you had a chance to look at this problem as yet?

Anthony


How is this?:

Click here for pic.

The code to do this is:

Code: Select all

<!-- BEGIN cat_images -->
	
	<table width="5%" border="0" cellpadding="0" cellspacing="0" class="attachtable" align="center">
	<tr>
		<td width="100%" colspan="0" class="attachheader" align="center"><b><span class="gen"></span></b></td>
	</tr>

<tr>
		<td colspan="0" align="center"><br /><img src="{postrow.attach.cat_images.IMG_SRC}" alt="{postrow.attach.cat_images.DOWNLOAD_NAME}" border="0" /><br /><br /></td>
	</tr>
	</table>
	
	<!-- END cat_images -->
	<!-- BEGIN cat_thumb_images -->
	
	<table width="5%" border="0" cellpadding="0" cellspacing="0" class="attachtable" align="center">
	<tr>
		<td width="100%" colspan="0" class="attachheader" align="center"><b><span class="gen"></span></b></td>
	</tr>
	
	<tr>
		<td colspan="0" 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>
	</tr>
	</table>
	
	<!-- END cat_thumb_images -->
	<!-- BEGIN attachrow -->
	
	<table width="5%" border="0" cellpadding="0" cellspacing="0" class="attachtable" align="center">
	<tr>
		<td width="100%" colspan="3" class="attachheader" align="center"><b><span class="gen"></span></b></td>
	</tr>
	
		<td rowspan="4" align="center" width="10%" class="attachrow">{postrow.attach.attachrow.S_UPLOAD_IMAGE}<br /><a href="{postrow.attach.attachrow.U_DOWNLOAD_LINK}"  {postrow.attach.attachrow.TARGET_BLANK} class="genmed"><b>{L_DOWNLOAD}</b></a></td>
	</tr>

	</table>
	
	<!-- END attachrow -->
It's in the templates/subSilver/viewtopic_attach_body.tpl

This will take care of attached files, thumbs and pics. Is this what you are looking for?
Last edited by Tux_Rules on Mon Jun 20, 2005 12:37 am, edited 1 time in total.
User avatar
Tux_Rules
Registered User
Posts: 958
Joined: Sat Apr 24, 2004 10:48 pm
Location: Afton, Michigan
Contact:

Post by Tux_Rules »

KronikJames wrote: has anyone gotten this converted over to Eazy Mod or has a newer version been released? I am not very goot at editing or following instructions...lol :lol:


Do you have any other MOD's installed? If not, it just a matter of uploading all the necessary files and running the /install/mod_table_inst.php file
KronikJames
Registered User
Posts: 83
Joined: Sun Jun 19, 2005 11:38 pm
Location: Springfield, MO
Contact:

Post by KronikJames »

no i do not have any other mods posted...i have finally got it to semi work now...yes for me but now i have a new problem...now i can view my forums but when choose to make a new post i get an error that says this:

Template->make_filename(): Error - file posting_attach_body.tpl does not exist

i have checked the file seems to be there...so off to do some more looking
User avatar
Tux_Rules
Registered User
Posts: 958
Joined: Sat Apr 24, 2004 10:48 pm
Location: Afton, Michigan
Contact:

Post by Tux_Rules »

KronikJames wrote: no i do not have any other mods posted...i have finally got it to semi work now...yes for me but now i have a new problem...now i can view my forums but when choose to make a new post i get an error that says this:

Template->make_filename(): Error - file posting_attach_body.tpl does not exist

i have checked the file seems to be there...so off to do some more looking


Check your file permissions. All folders except the "files" and "files/thumbs" (these 2 should be 777) should be 755 and all files should be 644. If the files are not set for the proper permissions, they can't be viewed or accesed by the program components.
Post Reply

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