Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 01-26-2001
Last Update: Never
Installs: 0
No support by the author.
Ok!
I am trying to edit the "Add Smilie Code" part in the Admin/Smilies.php file!
Code:
// ###################### Start Add #######################
if ($action=="add") {
echo doformheader("smilie","insert");
echo "<table border=0>";
echo makeinputcode("Name","title");
echo makeinputcode("Text to replace<br>(note this IS case sensitive)","smilietext");
echo makeinputcode("Path to image","smiliepath");
echo doformfooter();
}
This is the current code for the file
I figured if I added the code several times that it'd do what I needed! Shortly there after I found that I was indeed wrong! My lacking in any PHP skills whatsoever hold me back from what would be the obvious to the more advanced users!
So
Code:
if ($action=="add") {
echo doformheader("smilie","insert");
echo "<table border=0>";
echo makeinputcode("Name","title");
echo makeinputcode("Text to replace<br>(note this IS case sensitive)","smilietext");
echo makeinputcode("Path to image","smiliepath");
echo "<table border=0>";
echo makeinputcode("Name","title");
echo makeinputcode("Text to replace<br>(note this IS case sensitive)","smilietext");
echo makeinputcode("Path to image","smiliepath");
echo doformfooter();
}
This added an extra table like I was hoping for.. however, when I inserted any amount of info it would only show up as 1 added image in the smilies area & all the info would be wiped away so itd be just a broken image!
Code:
if ($action=="add") {
echo doformheader("smilie","insert");
echo "<table border=0>";
echo makeinputcode("Name","title");
echo makeinputcode("Text to replace<br>(note this IS case sensitive)","smilietext");
echo makeinputcode("Path to image","smiliepath");
echo doformheader("smilie","insert");
echo "<table border=0>";
echo makeinputcode("Name","title");
echo makeinputcode("Text to replace<br>(note this IS case sensitive)","smilietext");
echo makeinputcode("Path to image","smiliepath");
echo doformfooter();
}
Now adding the "echo doformheader("smilie","insert");" code to each extra desired table showed better results but not the GOAL!
You now can add all the info you like on every table however the last table is the only one to show up!
Is there anything that you all can see that I am missing?
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
There is for the UBB but I have looked up & down this site with the search engine thing and haven't found any results! Anywayz... my question was what am I doing wrong!
I would just like to know if you guyz see what could be added to get it to accept more than one smilie code!