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
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy » Tue Oct 25, 2005 7:56 pm

Hint: Don't use DW forphp/tpl editing. it's notorious for fil corruption.
Get a decent FTP program - Cute, FlasFXP(i use this), ws_ftp . . . . :wink:
and follow the instructions i posted before. Attr. can be changed for files/folders in the same way
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

User avatar
trekken46
Registered User
Posts: 79
Joined: Mon Feb 03, 2003 4:45 am
Location: Beyond Ordinary And Into Your Dreams
Contact:

Post by trekken46 » Tue Oct 25, 2005 9:35 pm

Hello all, i am having a small problem with the installation of attachment mod.

I am running 2.0.18 and too many mods to list, although i can if needed.

Now i got the mod installed just fine, except the icons don't showup on the pages and any attachments don't show up in the posts.

there are no error messages given.

if you need details or anything else, please let me know.

cthree
Registered User
Posts: 14
Joined: Thu Oct 20, 2005 11:57 pm
Contact:

Post by cthree » Tue Oct 25, 2005 10:07 pm

cherokee red wrote: cthree
make sure privmsg.php has been correctly modified and also privmsg_body.tpl :wink:


Thanks! I went and double checked and the only part im confused on is privmsg.php. The instructions say:

Code: Select all

#
#-----[ FIND ]---------------------------------------------
# around line 742
			unset($delete_type);
		}

# 
#-----[ AFTER, ADD ]--------------------------------------- 
# the Line have to be added AFTER the closing brace
		$attachment_mod['pm']->delete_all_pm_attachments($mark_list);


But my file looks like:

Code: Select all

		}

		unset($delete_type);

		if ( count($mark_list) )
		{
			$delete_sql_id = '';
			for ($i = 0; $i < sizeof($mark_list); $i++)
			{
				$delete_sql_id .= (($delete_sql_id != '') ? ', ' : '') . intval($mark_list[$i]);
			}
Thats the soonest close i see....ive tried popping it in a few diff places to no avail...any ideas? thanks in advance! :P


EDIT-OK i read about how mods can push the close way down but am still a bit off i guess here is a copy of code im talking about:

Code: Select all

unset($delete_type);

		if ( count($mark_list) )
		{
			$delete_sql_id = '';
			for ($i = 0; $i < sizeof($mark_list); $i++)
			{
				$delete_sql_id .= (($delete_sql_id != '') ? ', ' : '') . intval($mark_list[$i]);
			}

			if ($folder == 'inbox' || $folder == 'outbox')
			{
				switch ($folder)
				{
					case 'inbox':
						$sql = "privmsgs_to_userid = " . $userdata['user_id'];
						break;
					case 'outbox':
						$sql = "privmsgs_from_userid = " . $userdata['user_id'];
						break;
				}

				// Get information relevant to new or unread mail
				// so we can adjust users counters appropriately
				$sql = "SELECT privmsgs_to_userid, privmsgs_type 
					FROM " . PRIVMSGS_TABLE . " 
					WHERE privmsgs_id IN ($delete_sql_id) 
						AND $sql  
						AND privmsgs_type IN (" . PRIVMSGS_NEW_MAIL . ", " . PRIVMSGS_UNREAD_MAIL . ")";
				if ( !($result = $db->sql_query($sql)) )
				{
					message_die(GENERAL_ERROR, 'Could not obtain user id list for outbox messages', '', __LINE__, __FILE__, $sql);
				}

				if ( $row = $db->sql_fetchrow($result))
				{
					$update_users = $update_list = array();
				
					do
					{
						switch ($row['privmsgs_type'])
						{
							case PRIVMSGS_NEW_MAIL:
								$update_users['new'][$row['privmsgs_to_userid']]++;
								break;

							case PRIVMSGS_UNREAD_MAIL:
								$update_users['unread'][$row['privmsgs_to_userid']]++;
								break;
						}
					}
					while ($row = $db->sql_fetchrow($result));

					if (sizeof($update_users))
					{
						while (list($type, $users) = each($update_users))
						{
							while (list($user_id, $dec) = each($users))
							{
								$update_list[$type][$dec][] = $user_id;
							}
						}
						unset($update_users);

						while (list($type, $dec_ary) = each($update_list))
						{
							switch ($type)
							{
								case 'new':
									$type = "user_new_privmsg";
									break;

								case 'unread':
									$type = "user_unread_privmsg";
									break;
							}

							while (list($dec, $user_ary) = each($dec_ary))
							{
								$user_ids = implode(', ', $user_ary);

								$sql = "UPDATE " . USERS_TABLE . " 
									SET $type = $type - $dec 
									WHERE user_id IN ($user_ids)";
								if ( !$db->sql_query($sql) )
								{
									message_die(GENERAL_ERROR, 'Could not update user pm counters', '', __LINE__, __FILE__, $sql);
								}

							}
						}
						unset($update_list);
					}
				}
				$db->sql_freeresult($result);
			}

			// Delete the messages
			$delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . "
Im pretty sure ive tried ALL of the braces... :?

babydoll2u
Registered User
Posts: 214
Joined: Sun Sep 18, 2005 11:26 pm
Contact:

Post by babydoll2u » Wed Oct 26, 2005 7:10 am

I put this in the php forum support as well, but as this could possibly be a glitch with the MOD, I'd like to post it here as well.

I'm having a real problem with my forum permissions working with this MOD!

(Note: I have the attachment mod installed)


When I have my forum permissions set to Registered or Registered[hidden], my members cannot upload/attach pictures/files to the forum, as the forum permissions, in advanced mode, sets the Post Files to MOD.

SO, I go into forum permissions and set the Post files to REG (meaning registered users can attach/post/upload files/pictures), and the forum permissions reverts back to Moderators[hidden] every time, so my members can't see the forum to use it!

Please tell me there's a fix for this???
Never, ever, argue with an idiot. They'll drag you down to their level and beat you with experience

Adamylowrx
Registered User
Posts: 7
Joined: Sun Oct 23, 2005 7:11 am

Post by Adamylowrx » Wed Oct 26, 2005 8:10 am

Thanks for the help cherokee red. That worked a treat, but when I try and upload the attachments or click submit. None of the buttons work.

I did get the test to work and everything comes up fine.
Last edited by Adamylowrx on Wed Oct 26, 2005 1:49 pm, edited 1 time in total.

Tintomara
Registered User
Posts: 1
Joined: Wed Oct 26, 2005 1:11 pm

Post by Tintomara » Wed Oct 26, 2005 1:13 pm

Great mod. I've used it for a long time.

A quick question. How do I make it work with a different style than subSilver?
I use myApple. If it's too much work to get it done I would be happy to pay a small amount to whoever helps me.

Thanks

shoebag22
Registered User
Posts: 47
Joined: Fri Dec 31, 2004 2:19 am

Post by shoebag22 » Wed Oct 26, 2005 3:44 pm

when posting attachements (pics)... how do I make is so that the first pic posted is the first one displayed??? If I post 5 pictures A, B, C, D, E... they end up on the post in this order

E
D
C
B
A

I've changed from ascending to descending in the control panel and it has not made a difference

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy » Wed Oct 26, 2005 4:40 pm

Tintomara wrote: Great mod. I've used it for a long time.

A quick question. How do I make it work with a different style than subSilver?
I use myApple. If it's too much work to get it done I would be happy to pay a small amount to whoever helps me.

Thanks

simply follow the subSilver template modifications for your own template and it should work. Granted there will be a few changes, but nothing major :)
Easy MOD will ususally install on multiple styles if more than 1 is installed :wink:

Adamylowrx
pm me your site/ftp details and i'll take a look :wink:

cthree
I made a post a few pages back about this issue - maybe 748 :P
But if you want, pm me your ftp/site details and i'll have a look :wink:
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

Capmaster
Registered User
Posts: 69
Joined: Tue Jul 05, 2005 1:26 pm

Post by Capmaster » Wed Oct 26, 2005 4:48 pm

trekken46 wrote: Hello all, i am having a small problem with the installation of attachment mod.

I am running 2.0.18 and too many mods to list, although i can if needed.

Now i got the mod installed just fine, except the icons don't showup on the pages and any attachments don't show up in the posts.

there are no error messages given.

if you need details or anything else, please let me know.
Did you remember to edit posting_body.tpl and viewtopic_body.tpl? :wink:
Image
Some mornings, it's just not worth chewing through the leather straps

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy » Wed Oct 26, 2005 4:54 pm

trekken46
are you sure you're running 2.0.18, it's not out yet btw :lol:
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

ECP
Registered User
Posts: 24
Joined: Mon Jun 13, 2005 8:32 am

help to instale Attachment n my forum

Post by ECP » Wed Oct 26, 2005 5:42 pm

i instale the attachment mod on my forum but when i go to my contrl panel a click on control panel .and this mess show


Fatal error: Call to undefined function: get_var() in /home/ecp/public_html/forotext/admin/admin_attach_cp.php on line 62

do i need to instale some else to get my attachment activared help please


when i click on Management this mess show

General Error
Could not find Attachment Config Table

DEBUG MODE

SQL Error : 1146 Table 'ecp_phpb2.phpbb_attachments_config' doesn't exist

SELECT * FROM phpbb_attachments_config

Line : 126
File : admin_attachments.php

help to activated my attach please

mrpig
Registered User
Posts: 21
Joined: Sun Mar 20, 2005 6:38 am

please help; attachments mod

Post by mrpig » Thu Oct 27, 2005 4:15 am

the attachments mod in my BB has stopped functioning. No one is able to add attachments. I need someone to coach me through fixing this problem. PLEASE help. I'm using 22.0.13

Thanks,
Mike

rami1
Registered User
Posts: 36
Joined: Mon Oct 03, 2005 5:46 am

Post by rami1 » Thu Oct 27, 2005 9:50 am

i dont know my question will be answer or not as it is in page 761 or so

problem is the simple user posting the attachment facalities is not displaying
ie simple user are not able to attach files in thier post

how ever they are being able to do it in thier pm

but admin is able to attach files in all (post /pm)

i have checked the control in admi panel
it says user are allowed max of 3 attach in thier post

when replying as well simple user are not being able to attach files
no button or that attch thing above poll ....in post new tropic by simple user


whats the problem any idea
thanks....

i have seen many post(problems) disappering with out answered in this 761 pages i hope this does not happen to my post
praying :?
thanks

hermitcrabber
Registered User
Posts: 5
Joined: Wed Oct 26, 2005 1:09 pm
Contact:

Post by hermitcrabber » Thu Oct 27, 2005 1:39 pm

Hello everyone!

I am relatively new here but have had my phpBB 2.0.17 forums up and running for four years now. However in all the time that the forums have been running (and admined by someone else until now) the Attachment and Extension areas have never worked properly.

Here is the error:
Fatal error: Call to undefined function: get_formatted_dirsize() in /home/hermitcr/public_html/phpBB/admin/admin_attach_cp.php on line 344

I did a lot of looking around in this topic and I see this error mentioned everywhere but I did not see that anyone had a good fix to it.

So with that in mind, can someone please point me to a way to remove this Mod and get those useless Attachments and Extensions areas off my Admin CP?

Thanks!

Khyron
Registered User
Posts: 75
Joined: Wed Jan 29, 2003 8:29 pm

Post by Khyron » Thu Oct 27, 2005 5:20 pm

Khyron wrote: silly question. is there a way to remove the stats <boarder> from an attached pic. like what VB or SMF does. it just shows the file name with no border?


can this be done?
http://www.speed-freekz.com
Cars, Bikes, 4x4, and More.

Post Reply

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