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?


All times are GMT. The time now is 01:15 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.02481 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete