4images Modifications / Modifikationen > Templates & Styles (Releases & Support)
[Tutorial] Add a new table (like who's online) in your frontpage
(1/1)
senloel:
Hey,
this is just a little Tutorial (MOD) which explains how to add a new table in your frontpage.
It will look like the who's online-table and you can fill it with your content.
Let's start.
Please make a backup first!
Step 1 :arrow: open home.html in your template folder (your-website/templates/your-template/home.html)
Step 2 :arrow: add this whereever you want:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td class="head1" valign="top">{lang_your_headline}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="head1">
yourcontent
</td>
</tr>
</table><br>
Step 3 :arrow: replace yourcontent with a text, image or whatever ;)
Step 4 :arrow: open main.php in your language folder (your-website/lang/your-language/main.php)
Step 5 :arrow: find
?>
and add this above:
$lang['your_headline'] = "Name of your headline";
To change the name of the headline, replace Name of your headline with your text.
Examples:
If you want to add the new table below the categories section:
Example Step 6 :arrow: find
<td class="row2" valign="top">{categories}</td>
</tr>
</table>
</td>
</tr>
</table>
and add the same as explained in Step 2 below.
That's it!
Regards,
Patrick
Rembrandt:
Thank You! :)
mfg Andi
Navigation
[0] Message Index
Go to full version