Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » Image/Fileupload for your FTP/Website (update) + POTD Addon
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8441] Fri, 21 March 2003 07:24 Go to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

Question You want allow your visitors to Upload screens/files to your site?
Question You want an easy way to upload screenshots/files to your webspace without conecting every time to your FTP?
Question You want to upload files/images to your space from everywhere in the world??


Than this skript I wrote is your choice it that allows to upload images and files.
After every Upload a link of the uploaded file is provided also an IMG tag for inserting into bords.
At the mainpage there is a preview of all uploaded images if you click on them the orgial images is showed, uploaded nonimagefiles files are marked as nonimagefiles and a downloadlink for the file is showed.
You can select between save mode (that means only the Admin can upload files) or normal mode (everybody can upload files).

- It is now also posible to add comments after upload -

The Admin can also delete uploaded files.
You can also setup:
* maximum size for Upload (KB)
* with of the Admin previe Images
* with of the previews at the main page

You can view an example at: www.imageupload.de.vu
(on some times the server is slow, but I ahve no better host for that)

You need only an PHP supporting webspace, no database is needed!

Arrow You can download the script here


www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"

[Updated on: Wed, 26 March 2003 11:48]

Report message to a moderator

Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8467] Fri, 21 March 2003 10:04 Go to previous messageGo to next message
DaveGMM is currently offline  DaveGMM
Messages: 484
Registered: February 2003
Location: England, UK
Karma: 0
Commander
OR, for images you can use the n00bstories image uploader Very Happy
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8470] Fri, 21 March 2003 10:17 Go to previous messageGo to next message
Cpo64 is currently offline  Cpo64
Messages: 1246
Registered: February 2003
Location: Powell River, B.C. Canada
Karma: 0
General (1 Star)
DaveGMM

OR, for images you can use the n00bstories image uploader Very Happy


I think he is refering to if you wanted somthing like that on you own site.


-->
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8494] Fri, 21 March 2003 11:29 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

right Very Happy

www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8534] Fri, 21 March 2003 13:16 Go to previous messageGo to next message
Drift is currently offline  Drift
Messages: 22
Registered: March 2003
Karma: 0
Recruit
Hey, that works pretty good! Very Happy

Do you have anything that that limits the type of files that someone can upload? For security purposes you wouldn’t want anyone putting a .exe with that DIR’s CMOD set to 777. Might be something for the next version. Wink


www.RenegadeMods.eDrift.net
The beatings shall continue, until morale imporves!
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8557] Fri, 21 March 2003 14:21 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

There is an option, but maybe it also helps, if you disable the excute right for the diretory, I have not tested if then the upload also works, can you contact me if you ahve tryed this?

www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8639] Fri, 21 March 2003 19:23 Go to previous messageGo to next message
Sk8rRIMuk is currently offline  Sk8rRIMuk
Messages: 1019
Registered: February 2003
Location: Blackheath, England, Unit...
Karma: 0
General (1 Star)

It says:

Parse error: parse error, unexpected $ in /home/virtual/site66/fst/var/www/html/potw/index.php on line 253


-Sk8rRIMuk


WOL Nick - Sk8rRIMuk

http://www.bwstudios.co.uk/private/sk8rrimuk.jpg

The one and only original "spammander"!
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8708] Sat, 22 March 2003 01:43 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

check your config.php
every line must be termianted by an ; eg $user="test";
text thats after an # is a comment eg #commet
If that don't help plz post, when this error acoured (startup, upload etc.)


www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8756] Sat, 22 March 2003 07:39 Go to previous messageGo to next message
Sk8rRIMuk is currently offline  Sk8rRIMuk
Messages: 1019
Registered: February 2003
Location: Blackheath, England, Unit...
Karma: 0
General (1 Star)

<?php
# Insert the Url where you uploaded the script.
$url="http://cncdaily.nucleardays.com,"; # please no / at the end!
# Select Username and Password for the Admin
$benutzer="cncdailyadmin";
$passwort="****";
$max="1000"; #maximum size for Upload (KB)
$adminx="300"; #with of the Admin previe Images
$userx="200"; #with of the Previews at the main page
$safemode="on"; #if switched to "on" only the Admin can upload files
php?>

Seems fine to me?

**** is there for the forums!

-Sk8rRIMuk


WOL Nick - Sk8rRIMuk

http://www.bwstudios.co.uk/private/sk8rrimuk.jpg

The one and only original "spammander"!
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8772] Sat, 22 March 2003 08:35 Go to previous messageGo to next message
DaveGMM is currently offline  DaveGMM
Messages: 484
Registered: February 2003
Location: England, UK
Karma: 0
Commander
Cpo64

DaveGMM

OR, for images you can use the n00bstories image uploader Very Happy


I think he is refering to if you wanted somthing like that on you own site.


My mistake Smile
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8793] Sat, 22 March 2003 11:28 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

Quote:

nucleardays.com,"; # please

Remove the: , (komma) at the end.
But thats not the Problem, there was a fault in the php files, redownalod the file.


www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8798] Sat, 22 March 2003 11:57 Go to previous messageGo to next message
L337m4n1 is currently offline  L337m4n1
Messages: 11
Registered: March 2003
Karma: 0
Recruit
N1f7y 111 7h1ng j00 g075 d3r!
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8813] Sat, 22 March 2003 12:50 Go to previous messageGo to next message
Sk8rRIMuk is currently offline  Sk8rRIMuk
Messages: 1019
Registered: February 2003
Location: Blackheath, England, Unit...
Karma: 0
General (1 Star)

Laeubi

Quote:

nucleardays.com,"; # please

Remove the: , (komma) at the end.
But thats not the Problem, there was a fault in the php files, redownalod the file.


Thank you for the help and also for helping me customize the css...

This is a very good skript you should try it because it is free and so easy to set up...

Thanks again Laeubi. Check it out here:

My Upload Terminal << Username = cncdailyadmin Pass = ****

Sorry can't let you upload i am using it as a POTW skript.

-Sk8rRIMuk


WOL Nick - Sk8rRIMuk

http://www.bwstudios.co.uk/private/sk8rrimuk.jpg

The one and only original "spammander"!
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8818] Sat, 22 March 2003 13:41 Go to previous messageGo to next message
Crimson is currently offline  Crimson
Messages: 7429
Registered: February 2003
Location: Phoenix, AZ
Karma: 0
General (5 Stars)
ADMINISTRATOR
The problem was here:

--> php?>

The closing tag should be ?>, not php?>.


I'm the bawss.
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8843] Sat, 22 March 2003 14:48 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

Crimson

The problem was here:

--> php?>

The closing tag should be ?>, not php?>.


I have alredy fixed the error, may you ahve downlaoded the fixed version, and btw. these are the posibilyties for closing tag:

php?> = Full tag
?> = short tag

But the short tag must be enabled by the serverprovider so i recommend to use the longer tag to prevent probelms with server that disable the "allow short tag" in the config

Quote:

short_open_tag = On ; allow the <? tag. otherwise, only <?php and <script> tags are recognized.

(I cut that out of my PHP.ini config if you do not belive me Very Happy )
and the same way also the closing tag works with the long and with the short version.

But thanks that you tried to help Razz
What do you think about the skript? I'm just new at PHP Skripting and I heard you ahve a big knowledge of this language.


www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8920] Sat, 22 March 2003 18:25 Go to previous messageGo to next message
Sk8rRIMuk is currently offline  Sk8rRIMuk
Messages: 1019
Registered: February 2003
Location: Blackheath, England, Unit...
Karma: 0
General (1 Star)

Laeubi

What do you think about the skript? I'm just new at PHP Skripting and I heard you ahve a big knowledge of this language.


She shaw does I belive look at:

http://www.n00bstories.com

http://www.crimsontechsolutions.com

http://www.n00bstories.com/RSW

and these forums all done by Crimson maybenot completely without support but mainly by Crimson Very Happy ...

Crimson is the 0wn4ge pure and simple!!!

-Sk8rRIMuk


WOL Nick - Sk8rRIMuk

http://www.bwstudios.co.uk/private/sk8rrimuk.jpg

The one and only original "spammander"!
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8927] Sat, 22 March 2003 18:40 Go to previous messageGo to next message
joaorp is currently offline  joaorp
Messages: 32
Registered: February 2003
Karma: 0
Recruit
indeed, thats a very nice script, nice work Smile

http://www.joaorp.com/gallery/files/4/joaosig.gif
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #8946] Sat, 22 March 2003 19:23 Go to previous messageGo to next message
Crimson is currently offline  Crimson
Messages: 7429
Registered: February 2003
Location: Phoenix, AZ
Karma: 0
General (5 Stars)
ADMINISTRATOR
I have to respectfully disagree. You do NOT use "php?>" as an ending tag. It's not valid syntax.

http://www.php.net/manual/en/language.basic-syntax.php

Your choices are:

<?php ... ?>
<script language="php"> ... </script>
<? ... ?> (if short tags are enabled in php.ini)
<% ... %> (is asp-style tags are enabled)

I didn't download the script because I have already written a more comprehensive PHP script for this same purpose as you see in the Image Uploader. The only reason files aren't allowed is because my web host doesn't allow me to be a file server and if I allowed files to be uploaded, I could lose my account.


I'm the bawss.
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #9035] Sun, 23 March 2003 04:25 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

But the other closing tag also works as you can see here:
http://www.imageupload.de.vu
and here:
http://cncdaily.nucleardays.com/potw/
and here:
http://www.ik-skript.de.vu/familie

All these scripts using the <?php as open and the php?> as closing tag.

The parse error was occured, because I forget one \ before an " :oops:

But I'll use the ?> for closing from now on, because it is shorter Very Happy


www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #9123] Sun, 23 March 2003 14:51 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

I have added a funktion, so that comment for the files can be added after uplaod.

www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #9489] Tue, 25 March 2003 11:00 Go to previous messageGo to next message
laeubi is currently offline  laeubi
Messages: 799
Registered: February 2003
Location: Germany
Karma: 0
Colonel

http://wl8www882.webland.ch/laeubi/skripts/grafik/logo_potd.jpg

I wrote a little addon, that allows a POTD for your website in combine with the Imageuploadterminal

Arrow http://www.laeubi.de/skripts


www.laeubi.de Find Mods, Maps, Tool, Files and More!
< All Tutorials you ever searched for >
< contact me >
"Don't say it is imposible... just find a solution!"
Image/Fileupload for your FTP/Website (update) + POTD Addon [message #9767] Wed, 26 March 2003 11:50 Go to previous messageGo to next message
Sk8rRIMuk is currently offline  Sk8rRIMuk
Messages: 1019
Registered: February 2003
Location: Blackheath, England, Unit...
Karma: 0
General (1 Star)

Laeubi

http://wl8www882.webland.ch/laeubi/skripts/grafik/logo_potd.jpg

I wrote a little addon, that allows a POTD for your website in combine with the Imageuploadterminal

Arrow http://www.laeubi.de/skripts


That 0wnz and you finally got it working after a little trial and error Wink .

Go get this it is kool you can view mine here http://cncdaily.nucleardays.com

-Sk8rRIMuk


WOL Nick - Sk8rRIMuk

http://www.bwstudios.co.uk/private/sk8rrimuk.jpg

The one and only original "spammander"!
Hmm whats this do? [message #9770] Wed, 26 March 2003 12:03 Go to previous message
Boink-Your-Dead is currently offline  Boink-Your-Dead
Messages: 10
Registered: February 2003
Location: the uk.
Karma: 0
Recruit
Just installed it I love it...

POTD could do with a next and previous button though and I hope you get next and previous when there gets lots of images...

The uploader would be kool with a Date of Uplaod attachent this could also go under or above the POTD saying when that POTD was uploaded.

-Boink-Your-Dead


BoinkYourDead@Hotmail.com
=======================
Final Fantasy X - The Best Game Ever
Link Park - In The End - The Best Song Ever
Previous Topic: Priceless moment in Renegade...
Next Topic: Official Renegade Sniping Tournament
Goto Forum:
  


Current Time: Thu Nov 28 01:42:58 MST 2024

Total time taken to generate the page: 0.01275 seconds