I changed the templates and made them "Custom Templates".
Now when I upgrade VB there is no need to redo everything, apart from the admin part.
I've also made a few other changes that make it more in keeping with the feel of VB itself.
The category select auto jumps, and remembers where you have jumped to. (code taked from VB itself)
Also made the buttons the default "Go" ones from VB.
Added a "New Link" button
Changed the tables to look more VB like.
You can have a look at
http://www.ckcsforums.com/links.php
If any of you want the changes needed for the Auto Jump/Remember here it is:
about line 81 find:
PHP Code:
//################### Kategorien < ###################
$links_categorys = $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");
while ($link_category = $DB_site->fetch_array($links_categorys))
{
eval("\$links_category .= \"".gettemplate("links_category")."\";");
}
replace with:
PHP Code:
//################### Kategorien < ###################
$links_categorys = $DB_site->query("SELECT vb_links_category.* FROM vb_links_category ORDER by sortorder");
while ($link_category = $DB_site->fetch_array($links_categorys))
{
if ($link_category[id]==$category) {
$optionselected='selected';
} else {
$optionselected='';
}
eval("\$links_category .= \"".gettemplate("links_category")."\";");
}
change the "links_category" template to:
Code:
<option value="$link_category[id]" $optionselected>$link_category[name]</option>
change the following in the "links template"
Code:
<select name="category">
to:
Code:
<select name="category" onchange="window.location=('links.php?funktion=bereich&category='+this.options[this.selectedIndex].value)">
enjoy!