Javascript and other tweaks
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 182 B |
After Width: | Height: | Size: 178 B |
After Width: | Height: | Size: 786 B |
After Width: | Height: | Size: 603 B |
After Width: | Height: | Size: 323 B |
After Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 392 B |
|
@ -14,4 +14,6 @@ $mode="tags";
|
|||
|
||||
include "scripts/gallery.php";
|
||||
|
||||
include "scripts/pagefooter.php";
|
||||
|
||||
?>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
include "scripts/setup.php";
|
||||
$page_title="Mark Up - Help";
|
||||
include "scripts/pageheader.php";
|
||||
?>
|
||||
|
||||
<p><table>
|
||||
<tr><th width=30%>Code</th><th>Description</th><th>Example</th></tr>
|
||||
<tr bgcolor="#FFFFBD"><td>[b]bold[/b]</td><td>Bold</td><td><b>bold</b></td></tr>
|
||||
<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>[code]The code[/code]</td><td>Adds a code box</td><td><code style="border:solid;">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>[<b>url=</b><i>the_links_url</i><b>=url</b>]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>
|
||||
|
||||
<?php
|
||||
include "scripts/pagefooter.php";
|
||||
?>
|
18
index.php
|
@ -10,21 +10,27 @@ include "scripts/pageheader.php";
|
|||
if ($forum_user['username']=="Guest"){
|
||||
echo "<h1>Welcome</h1>";
|
||||
echo "Log in to the Minetest forum to set and upload your avatars!<br />\n Until then, you can still <a href=\"gallery.php\">look around</a>";
|
||||
die("");
|
||||
include "scripts/pagefooter.php";
|
||||
}
|
||||
|
||||
echo "<h1>Hello, ".$forum_user['username']."</h1>\n";
|
||||
|
||||
$def=false;
|
||||
if (file_exists("files/".$forum_user['cha_front'].".png")){
|
||||
echo "<img src=\"files/".$forum_user['cha_front'].".png\" width=64 height=128 /> ";
|
||||
}else{
|
||||
echo "<img src=\"files/default_green.png\" width=64 height=128 /> ";
|
||||
echo "<img src=\"files/default_texture.png\" width=64 height=128 /> ";
|
||||
$def=true;
|
||||
}
|
||||
if (file_exists("files/".$forum_user['cha_back'].".png")){
|
||||
echo "<img src=\"files/".$forum_user['cha_back'].".png\" width=64 height=128 />";
|
||||
}else{
|
||||
echo "<img src=\"files/default_green_back.png\" width=64 height=128 />";
|
||||
echo "<img src=\"files/default_texture_back.png\" width=64 height=128 />";
|
||||
$def=true;
|
||||
}
|
||||
|
||||
if ($def==true)
|
||||
echo "<br /><font size=2>No avatar selected.<br />\nDefault avatar from the server's texture pack will be used.</font>";
|
||||
?>
|
||||
<p>
|
||||
<a href="gallery.php">Avatar from Gallery</a><br /><br />
|
||||
|
@ -34,9 +40,13 @@ echo "<img src=\"files/default_green_back.png\" width=64 height=128 />";
|
|||
<fieldset>
|
||||
<legend>Notice</legend>
|
||||
You will not be able to change your character texture on servers which do not have the mod by PilzAdam installed.<br />
|
||||
In those servers, all players will have the same character texture.<br />
|
||||
In those servers, all players will have the same character texture, which is dependant on the texture pack installed<br />
|
||||
<br />
|
||||
When you are on a server that has the mod installed, type <i>/register [your forum name]</i> to claim your avatar
|
||||
</fieldset>
|
||||
|
||||
<?php
|
||||
include "scripts/pagefooter.php";
|
||||
?>
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ if ($mode=="tags"){
|
|||
}else if ($mode=="user"){
|
||||
$qu_str="SELECT * FROM cha WHERE owner='$query'";
|
||||
}else if ($mode=="sb"){
|
||||
$qu_str="SELECT * FROM cha WHERE tags LIKE '%$query%' OR name LIKE '%$query%' OR overview LIKE '%$query%'";
|
||||
$qu_str="SELECT * FROM cha WHERE tags LIKE '%$query%' OR name LIKE '%$query%'";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<p>
|
||||
<img src="<?php echo $serverpath;?>/images/footer.png" width="900" height="50" border="0" alt="" style="left:0px;">
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<!-- Piwik -->
|
||||
<script type="text/javascript">
|
||||
var pkBaseURL = (("https:" == document.location.protocol) ? "https://multa.bugs3.com/piwik/" : "http://multa.bugs3.com/piwik/");
|
||||
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
|
||||
</script><script type="text/javascript">
|
||||
try {
|
||||
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 2);
|
||||
piwikTracker.trackPageView();
|
||||
piwikTracker.enableLinkTracking();
|
||||
} catch( err ) {}
|
||||
</script><noscript><p><img src="http://multa.bugs3.com/piwik/piwik.php?idsite=2" style="border:0" alt="" /></p></noscript>
|
||||
<!-- End Piwik Tracking Code -->
|
||||
|
||||
</html>
|
||||
|
||||
<?php
|
||||
die("");
|
||||
?>
|
|
@ -24,7 +24,11 @@
|
|||
<div id="slogan" style="text-align:right;position:relative;left:200px;top:60px;width:400px;height=20px;">Upload or Choose a character texture</div>
|
||||
|
||||
<div id="userbar" style="text-align:right;position:relative;left:710px;top:55px;width:180px;height=30px;"><?php
|
||||
echo "<font color=\"#FFFFFF\"><u>".$forum_user['username']."</u></font></a>";
|
||||
if ($forum_user['username']=="Guest"){
|
||||
echo "<a href=\"".FORUM_ROOT."login.html\"><font color=\"#FFFFFF\"><u>Login</u></font></a>";
|
||||
}else{
|
||||
echo "<font color=\"#FFFFFF\">".$forum_user['username']."</font>";
|
||||
}
|
||||
?></div>
|
||||
|
||||
<div id="userbar" style="text-align:left;position:relative;left:10px;top:35px;width:180px;height=30px;"><?php
|
||||
|
@ -33,7 +37,7 @@
|
|||
?></div>
|
||||
|
||||
<div style="position:relative;left:500px;top:70px;width:400px;text-align:right;">
|
||||
<form method="get" action="<?php echo $serverpath;?>/search.php">
|
||||
<form method="get" action="<?php echo $serverpath;?>/gallery.php">
|
||||
<input type="hidden" name="mode" value="sb">
|
||||
<input type="text" placeholder="search for something" name="id"> <input type="submit" value="Search">
|
||||
</form>
|
||||
|
|
38
upload.php
|
@ -5,7 +5,7 @@ require_login($forum_user);
|
|||
|
||||
$page_title="Upload a Texture";
|
||||
|
||||
$message="This page is in development - it does not work yet.";
|
||||
$message="";
|
||||
|
||||
include "scripts/upload.php";
|
||||
|
||||
|
@ -13,7 +13,27 @@ include "scripts/pageheader.php";
|
|||
|
||||
|
||||
?>
|
||||
<font color="#FF0000"><i><?php echo $message;?></i></font>
|
||||
<font color="#0000FF"><i><?php echo $message;?></i></font>
|
||||
|
||||
<script type="text/javascript">
|
||||
function prepareForm() {
|
||||
if (!document.getElementById) {
|
||||
return false;
|
||||
}
|
||||
var form = document.getElementById('myForm');
|
||||
}
|
||||
function togglePrivInfo() {
|
||||
toggle('gallery_data');
|
||||
}
|
||||
function toggle(id) {
|
||||
var element = document.getElementById(id);
|
||||
var display = (element.style.display === 'none') ? '' : 'none';
|
||||
element.style.display = display;
|
||||
}
|
||||
prepareForm();
|
||||
</script>
|
||||
|
||||
|
||||
<h1>Texture Upload</h1>
|
||||
<form action="upload.php" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" name="submitted" value="yes">
|
||||
|
@ -25,15 +45,15 @@ Back: <input type="file" name="back" id="back">
|
|||
</fieldset>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" name="public">Add to the Public Gallery
|
||||
<input type="checkbox" name="public" id="public" onClick="javascript:togglePrivInfo()">Add to the Public Gallery
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<fieldset>
|
||||
<legend>Only fill in if the above check box is ticked.</legend>
|
||||
<fieldset id="gallery_data" style="display: none;">
|
||||
<legend>Public Gallery Settings</legend>
|
||||
Name of Character pack: <input type="text" name="name" /><br />
|
||||
Tags: <input type="text" name="tags" /><br />
|
||||
Description:<br />
|
||||
Tags: <input type="text" name="tags" /><br /><br />
|
||||
Description: <a href="help_markup.php" target="_blank">Supports a Markup format</a><br />
|
||||
<textarea name="desc" cols=100 rows=7>
|
||||
</textarea>
|
||||
</fieldset>
|
||||
|
@ -41,3 +61,7 @@ Description:<br />
|
|||
|
||||
<input type="submit" value="Upload">
|
||||
</form>
|
||||
|
||||
<?php
|
||||
include "scripts/pagefooter.php";
|
||||
?>
|
||||
|
|
|
@ -42,5 +42,7 @@ echo formatbb($row[2])."</p></div></td>\n"; // Description
|
|||
|
||||
echo "</table></td></tr>\n";
|
||||
|
||||
echo "<tr height=30 bgcolor=\"#FFFFBD\"><td style=\"text-align:right;\">$links    </td></tr>\n";
|
||||
echo "<tr height=30 bgcolor=\"#FFFFBD\"><td style=\"text-align:right;\">$links    </td></tr></table>\n";
|
||||
|
||||
include "scripts/pagefooter.php";
|
||||
?>
|
||||
|
|