vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Images and Media Files Uploader (https://vborg.vbsupport.ru/showthread.php?t=101285)

Moya 11-20-2005 10:00 PM

Images and Media Files Uploader
 
This is a port of this version HERE

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

HTML Code:

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

Add Under

HTML Code:

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

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

Open newthread template

Find

HTML Code:

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

Add Above

HTML Code:

<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

Code:

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

Quote:

Originally Posted by Justice
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.

Quote:

Originally Posted by COBRAws
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:

Quote:

Originally Posted by Kila_Bite
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

Quote:

Originally Posted by stitch
What database version are you using?

Can you run the create table process manually with this

Code:

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

Quote:

Originally Posted by Snatch
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

Quote:

Originally Posted by aberg
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?

[high]* Guest210212002 clicks install to tag this for later.[/high]

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

Quote:

Originally Posted by Chris-777
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?

[high]* Chris-777 clicks install to tag this for later.[/high]

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?


All times are GMT. The time now is 03:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01325 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete