PDA

View Full Version : Images and Media Files Uploader


Moya
11-20-2005, 10:00 PM
This is a port of this version HERE (https://vborg.vbsupport.ru/showthread.php?s=&threadid=72060)

What this script does is:

- Allow members to select a file-either images or music/media- from their local computer.

-Upload to the board's predifined directory, which can be generic for everyone or can be set for each user automatically.

- If the file is images, then it will the member url to add to the im bbcode

-If the file is media/music/video related, it will create a meta file that associated with the current uploaded file, and save to another directory. This meta will be used by the music bb code.

All Settings are done via admin cp.

Instructions:

Download and extract files to their appropriate directory

Upload the plugin.

Templates edit (2)

Open SHOWTHREAD template


Find


$vbphrase[quote_message_in_reply]</label>
</div>
</fieldset>

</td>
</tr>


Add Under


<tr>
<td>
<if condition="$show['medialoader']">
$mms[Multimedias]

</if>
</td>
</tr>


Open newthread template

Find


<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
<div>


Add Above


<if condition="$show['medialoader']">
$mms[Multimedias]

</if>


If you use this hack please click install, so that you can receive all script update notifications.

Moya
11-21-2005, 05:59 PM
Image Attachement

Daniel
11-21-2005, 09:37 PM
Very nice.

/me clicks install

COBRAws
11-22-2005, 03:46 AM
great!

but I always have something to add/ask. It would be great if there was some kind of system to watermark uploaded pics.

G-Force 199
11-22-2005, 03:50 AM
Thank stitch@aotrangmongmo.com
Clicked Install

aberg
12-10-2005, 06:52 PM
Get this error when import the xml file:

Database error in vBulletin 3.5.2:

Invalid SQL:
CREATE TABLE media_config (
locationid smallint(5) unsigned NOT NULL auto_increment,
fileurl varchar(200) NOT NULL default '',
realfilepath varchar(250) default '',
realstreamfilepath varchar(250) default '',
streamurl varchar(200) NOT NULL default '',
permitfilesize int(11) default 30720,
fileextension varchar(200) default '',
maxwidth int(11) default 0,
maxheight int(11) default 0,
userspecific int(11) default 0,
filewritemode int(11) default 0,
cleanupfilename int(11) default 0,
PRIMARY KEY (locationid)
) ENGINE=MyISAM;

MySQL Error : You have an error in your SQL syntax near 'ENGINE=MyISAM ' at line 15
Error Number : 1064

Moya
12-10-2005, 07:01 PM
What database version are you using?

Can you run the create table process manually with this


CREATE TABLE `media_config` (
`locationid` smallint(5) unsigned NOT NULL auto_increment,
`fileurl` varchar(200) NOT NULL default '',
`realfilepath` varchar(250) default '',
`realstreamfilepath` varchar(250) default '',
`streamurl` varchar(200) NOT NULL default '',
`permitfilesize` int(11) default '30720',
`fileextension` varchar(200) default '',
`maxwidth` int(11) default '0',
`maxheight` int(11) default '0',
`userspecific` int(11) default '0',
`filewritemode` int(11) default '0',
`cleanupfilename` int(11) default '0',
PRIMARY KEY (`locationid`)
)

ReadOrDie
12-10-2005, 07:12 PM
Aw man. I thought this was a jukebox...I really need one.

Justice
12-13-2005, 02:56 AM
is it possible for something like this to work on a remote server?

like say.... forum.domain.com for the forum, and files stored on media.domain.com ?

Kila_Bite
12-17-2005, 08:22 AM
All I get is a blank white screen? What permissions should the media and meta files be set to?

esology
12-19-2005, 03:02 PM
Same error as the member above.

Database error in vBulletin 3.5.1:

Invalid SQL:
CREATE TABLE vb3_media_config (
locationid smallint(5) unsigned NOT NULL auto_increment,
fileurl varchar(200) NOT NULL default '',
realfilepath varchar(250) default '',
realstreamfilepath varchar(250) default '',
streamurl varchar(200) NOT NULL default '',
permitfilesize int(11) default 30720,
fileextension varchar(200) default '',
maxwidth int(11) default 0,
maxheight int(11) default 0,
userspecific int(11) default 0,
filewritemode int(11) default 0,
cleanupfilename int(11) default 0,
PRIMARY KEY (locationid)
) ENGINE=MyISAM;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ENGINE=MyISAM' at line 15 Error Number : 1064

Moya
12-19-2005, 03:55 PM
Did you run the query I provide as manual?

Moya
12-19-2005, 03:57 PM
is it possible for something like this to work on a remote server?

like say.... forum.domain.com for the forum, and files stored on media.domain.com ?

I have never done that. This system is permission based on usergroup id. It would take a lot of coding to bridge both forum.

great!

but I always have something to add/ask. It would be great if there was some kind of system to watermark uploaded pics.

Hehehe tried that but it didn't work well. I will have to dig in more.:nervous::nervous::nervous:

All I get is a blank white screen? What permissions should the media and meta files be set to?

Is your site down?

aberg
12-19-2005, 06:26 PM
What database version are you using?

Can you run the create table process manually with this


CREATE TABLE `media_config` (
`locationid` smallint(5) unsigned NOT NULL auto_increment,
`fileurl` varchar(200) NOT NULL default '',
`realfilepath` varchar(250) default '',
`realstreamfilepath` varchar(250) default '',
`streamurl` varchar(200) NOT NULL default '',
`permitfilesize` int(11) default '30720',
`fileextension` varchar(200) default '',
`maxwidth` int(11) default '0',
`maxheight` int(11) default '0',
`userspecific` int(11) default '0',
`filewritemode` int(11) default '0',
`cleanupfilename` int(11) default '0',
PRIMARY KEY (`locationid`)
)


Yes i can and i have done this but still the same error when i try to install the plug-in
Use PHP Version 4.3.2 dbase

heeeh
01-22-2006, 06:10 AM
this plug-in that you do,have conflict with the window way of the enclosure!
help me!
please:
http://www.shebude.cn
thanks !

Snatch
01-22-2006, 07:39 AM
Is it possible to upload more then one file ?

heeeh
01-22-2006, 09:23 AM
Is it possible to upload more then one file ?
No....

mbader71
01-24-2006, 02:47 PM
This is really a great plugin,

I appreciate this man

Thank you

Guest210212002
01-24-2006, 05:43 PM
Yes i can and i have done this but still the same error when i try to install the plug-in
Use PHP Version 4.3.2 dbase

If your vB version is 3.0.3 as it says in your profile, that's the source of your problem. ;)

How's this working on 3.5.3?

* Guest210212002 clicks install to tag this for later.

quanvo81
01-26-2006, 04:13 AM
Moya, can you help me with this thread?
https://vborg.vbsupport.ru/showthread.php?t=106249
I think this is some kind of similar to your Hack
Thanks Moya

10sion
02-04-2006, 08:13 PM
Is there a way where you can make it so only a certain usergroup (like admin) can see/use this feature?

aberg
02-09-2006, 11:47 AM
If your vB version is 3.0.3 as it says in your profile, that's the source of your problem. ;)

How's this working on 3.5.3?

* Chris-777 clicks install to tag this for later.

Profile Changed, i use 3.5.3. and stil the same error.
It seems that i'am not the only one

hdraye
06-25-2006, 08:09 PM
Hi
Any idea if it works with 3.5.4?

DeviantFlash
04-28-2009, 12:53 AM
Is there a version of this hack working with 3.8.2 anywhere?