Upload Code

Started on the old forum in September 2008 · view the original in the archive · old links redirect here

11 replies · 1,022 views · started 18 years ago · 1 min read

5 participants
darkdesire Senior · 250 posts #1

Does anyone have the coding to replace the following in ownercp (wapdesire) to allow for smilie uploading from phone or pc rather than by url ? i've made several attempts and cant work out how to do it so the file extension doesnt appear in the code

CODEelse if($action=="addsml")

{

echo "<head>";

echo "<title>Owner Tools</title>";

echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";

echo "</head>";

echo "<body>";

echo "

";

echo "**Add Smilies**

";

echo "<form action=\"ownrproc.php?action=addsml&amp;sid=$sid\" method=\"post\">";

echo "Code:<input name=\"smlcde\" maxlength=\"30\"/>

";

echo "Image Source:<input name=\"smlsrc\" value=\"../smilies/\" maxlength=\"200\"/>

";

echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\"></form>";

echo "9<a accesskey="9" href="ownercp.php?action=ownercp&sid=$sid"><img src="../images/admn.gif" alt=""/>Owner Tools</a> ";

echo "0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>";

echo " ";

echo "</body>";

}

:p:p:p

darkdesire Senior · 250 posts #3

im looking for the code to allow uploads directly from the site to add smilies and write the entry to the database, not the add by url that comes in the script

:p:p:p

amylee Principal · 1,092 posts #4

i don't bother working with the lava/wapdesire or whatever script anymore waste of time and effort to me now but the uploader from adminx with a few changes should be adequate enough to use instead

metulj Super moderator Principal · 1,726 posts #7

you can alter SQL from adminx.. also upload works fine..

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

darkdesire Senior · 250 posts #9

nah ncle thats not what im after but thanks, amylee & metulj, i dont have an adminx file in the script im using

:p:p:p

crazybrumi Super moderator Principal · 1,064 posts #10

ok,goto

http://yourdomain.com/smilies/index.php?ac...mp;script=xhtml

there you click upload, if upload isnt present there then turn on globals

if that still fosnt work see if the links is in the coding or try action=upload

her you should be face with an uploader upload the image then it should after that request you to link it to a smiley clik on that if it dosnt go back to the page above (refer to first link) then click "Link Smilies into site"

ther you wil be face with two boxes

Code-(this is the code you type to bring up smiley) i.e (welcome) Source -this is the url for the image you just uploaded. so it if you upload a file called welcome.gif

code:(welcome)
source:../smilies/welcome.gif

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

darkdesire Senior · 250 posts #11

Thank you brumi, sorted. It was going straight to the second part where you put in the code on my script, cheers mate

:p:p:p

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close