Upload Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Upload Code

    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

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else 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 "<p align=\"center\">";

    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&amp;sid=$sid\">< img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a>
    ";

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

    echo "</p>";

    echo "</body>";

    }</div>
    :p:p:p

    #2
    come agen explain properly i got a few ideas what yu want but explain in more depth
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #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

      Comment


        #4
        i don&#39;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

        Comment


          #5
          that already exists.

          so let me get it right you want the owners to upload them and then make them into a smiley by adding it to the databasE?
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            yeah brumi exactly that
            :p:p:p

            Comment


              #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ノ刀ノイリ!

              Comment


                #8
                erm thats wot u want prob lol .but am still confused as brumi says u can do that anyway
                Attached Files
                Wapchat4u


                Topsites4u

                Comment


                  #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

                  Comment


                    #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:
                    code:(welcome)
                    source:../smilies/welcome.gif
                    Want something coded email me at sales@webnwaphost.com for a prices.




                    Comment


                      #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

                      Comment


                        #12
                        no probs
                        Want something coded email me at sales@webnwaphost.com for a prices.




                        Comment

                        Working...
                        X