A few more changes

master
Rubenwardy 2012-09-09 15:36:01 +01:00
parent cb80921f89
commit 36b36ef962
6 changed files with 42 additions and 13 deletions

View File

@ -30,8 +30,34 @@ if (is_member_moderator($_SESSION['user'])==true){
<!--Description-->
<tr>
<td colspan="2">
<p>*<Br /><textarea name="mod_desc" cols="105" rows="15">
<?php echo $desc;?>
<p>* Description<Br /><textarea name="mod_desc" cols="105" rows="25">
<?php
if ($desc==""){
?>
<!--This is a template on how you should layout mod pages.
The description should feature all these things, but not necessarily in this order
Delete these notes before adding the entry-->
<!--Basic Description
(this is a mod that does ...)-->
<!--Screenshots-->
[img]the_url_to_the_image[/img]
<!--Advanced Description
(How to use the mod, etc)-->
<!--Links
(Link to the forum post, GitHub, etc)-->
[url=http://minetest.net/forum/viewtopic.php?id=2854=url]Forum Page[/url]
<?php
}else{
echo $desc;
}
?>
</textarea></p>
</td>
</tr>
@ -58,7 +84,7 @@ if (is_member_moderator($_SESSION['user'])==true){
<input type="radio" name="mod_tag_type" value="texture"> Texture Pack
</td>
<td>
Other Tags: <input type="text" size=30 name="mod_tag_msc" value="<?php echo $tags_msc;?>">
<a href="help/tags.php" target="_blank">Other Tags</a>: <input type="text" size=30 name="mod_tag_msc" value="<?php echo $tags_msc;?>">
</td>
</tr>

View File

@ -40,7 +40,7 @@ $desc=$_POST['mod_desc'];
if ($desc=="")
$desc=$row[4];
$tags=$_POST['mod_tag'];
$tags=$_POST['mod_tags'];
if ($tags=="")
$tags = $row[7];

View File

@ -10,10 +10,8 @@ include "../scripts/pageheader.php";
<tr><td>[i]italic[/i]</td><td>Italic</td><td><i>italic</i></td></tr>
<tr bgcolor="#FFFFBD"><td>[u]underline[/u]</td><td>Under Lined</td><td><u>underline</u></td></tr>
<tr><td>[h]header[/h]</td><td>Header (title)</td><td><h1>header</h1></td></tr>
<tr bgcolor="#FFFFBD"><td>[tag]</td><td>Header (title)</td><td><h1>header</h1></td></tr>
<tr><td>[code]The code[/code]</td><td>Adds a code box</td><td><code>The code</code></td></tr>
<tr bgcolor="#FFFFBD"><td>[img]url_for_img[/img]</td><td>Adds an image, If the width is smaller or equal to 900, use this one</td><td><img height="20" src="../images/header.png"></td></tr>
<tr><td>[img]url_for_img[/img-enforce]</td><td>Adds an image. If the width is bigger than 900, use this one</td><td><img height="20" src="../images/header.png"></td></tr>
<tr bgcolor="#FFFFBD"><td>[code]The code[/code]</td><td>Adds a code box</td><td><code>The code</code></td></tr>
<tr><td>[img]url_for_img[/img]</td><td>Adds an image</td><td><img height="20" src="../images/header.png"></td></tr>
<tr bgcolor="#FFFFBD"><td>[url=the_links_url=url]The Link Text[/url]</td><td>Adds an hyperlink</td><td><a href="the_links_url">The Links Text</a></td></tr>
<tr><td>[list]<br />[*]An Item[/*]<br />[*]Another Item[/*]<br />[/list]</td><td>A list</td><td><ul><li>An Item</li><li>Another Item</li></ul></td></tr>
</table>

View File

@ -36,5 +36,5 @@ And make up your own for search box searching.
* Which versions your mod/texture pack works on. You may add more than one of these tags
<?php
include "scripts/pagefooter.php";
include "../scripts/pagefooter.php";
?>

View File

@ -2,9 +2,9 @@
function formatbb($input){
$result=$input;
$result=str_replace("[img]","<img src=\"",$result);
$result=str_replace("[img]","<img style=\"max-width:900px;\" src=\"",$result);
$result=str_replace("[/img]","\" />",$result);
$result=str_replace("[/img-enforce]","\" width=\"900\"/>",$result);
$result=str_replace("[/img-enforce]","\" />",$result);
$result=str_replace("[url=","<a href=\"",$result);
$result=str_replace("=url]","\">",$result);

View File

@ -4,8 +4,13 @@ include "scripts/setup.php";
$page_title="Users";
include "scripts/pageheader.php";
echo "<table width=\"100%\"><tr><th colspan=2>Username</th></tr>\n";
echo "</table>";
$id=$_GET['id'];
if ($id==""){
echo "<table width=\"100%\"><tr><th colspan=2>Username</th></tr>\n";
echo "</table>";
}else{
}
include "scripts/pagefooter.php";
?>