01-26-2001, 09:02 PM
Ok!
I am trying to edit the "Add Smilie Code" part in the Admin/Smilies.php file!
// ###################### 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
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!
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?
I am trying to edit the "Add Smilie Code" part in the Admin/Smilies.php file!
// ###################### 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
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!
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?