TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 19, 2024, 06:51:44 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 266
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 114
  • Total: 114

File Host Service/Block

Started by alan s, September 10, 2006, 05:49:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alan s

Might be a bit pointless if your using the tinyportal download module but you could use it as a alternitive.

Install Instrucions : Unzip and upload the package attached to your server ( edit the config.php file with your details )


Customisation Instrucions : Edit the file in the "pages" folder to suit your site.


Then create a script block and insert this code.

<form enctype="multipart/form-data" action="http://yoursite.com/upload/upload.php" id="form" method="post" target="_blank" onsubmit="a=document.getElementById('form').style;a.display='none';b=document.getElementById('part2').style;b.display='inline';" style="display: inline;">
<input name="upfile" size="15" type="file"><br>
25mb File Size Limit!. <input value="Upload!" onclick="window.open"('http://yoursite.com/upload/upload.php') id="upload" type="submit">
</form>


Change the yoursite.com/upload to your site url and the directory where your script is in.

Demo : http://theteenzone.net/smf1.1rc3/


Greenbug

I dont see anything attached here


alan s

Ooops ! forgot to attach it ! thanks for letting me know , i edited my post with the attachment.

Greenbug

Thanks Alan

I left an question on your forum for ya....

This works well for off site file hosting

alan s

#4
I'll answer your questions you posted on my site here.

I just edited the mod package for the youtube bbc code , i think i posted it on the smf forums but heres the download link for the rc3 version of the youtube bbc code anyway

http://theteenzone.net/upload/download.php?file=d971e937d39a40efbe516060a718b62d

as for the music video you want to embed from that site just use the embed code they give but add a

[html]

before it and a 

[html]

after it.

However i could come up with a bbc tag mod for it if you want.


Greenbug

Quote from: Alan S on September 10, 2006, 07:18:02 PM
I'll answer your questions you posted on my site here.

I just edited the mod package for the youtube bbc code , i think i posted it on the smf forums but heres the download link for the rc3 version of the youtube bbc code anyway

http://theteenzone.net/upload/download.php?file=d971e937d39a40efbe516060a718b62d

as for the music video you want to embed from that site just use the embed code they give but add a

[html]

before it and a 

[html]

after it.

However i could come up with a bbc tag mod for it if you want.

That would be awesome Alan if you could. something that the board could use. If am I correct this would also allow any file hosting that uses the microsoft player as well?

alan s

I asseum your talking about the html tags letting any file hosting use the media player , yes you can embed anything using the html tags , videos , music , flash etc...but the admins the only one allowed to use them html tags though i think theres a mod out that lets you select the membergroups allowed to use it.

I might have that mod done tonight , depends on how busy i am , if not i 'll get it done tomorrow

Greenbug

#7
Awesome Alan SÃ,  - you're the man!

I'm an idiot, I wasnt aware of the html bbc tags you cold use. This seems to work for everything. DUH!

learning is a slow process for me sometimes.....

alan s

#8
Mod created , attached to post , works with 1.1rc3 only , i'll submit it to the mod site later.


Demo : http://theteenzone.net/smf1.1rc3/

akulion

also remember to allow only members to be able to see this block

cos if guests could upload it could be a disaster

for added security only allow members with a minimum of 50 posts to use this function

or anyone could sign up and upload a potential hack to your server and use it against you