4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: jerseygirl on September 24, 2005, 10:20:21 PM
-
Hi,
the way the categories are set up now look like this :
cat #1 cat #4
cat #2 cat #5
cat #3 cat #6
I would like to change it to this:
cat #1 cat #2
cat #3 cat #4
cat #5 cat #6
if anyone has any idea...
-
ACP -> categories sort -> cat #1, cat #3, cat #5, cat #2, cat #4, cat #6 ... :wink:
mawenzi
-
yeah but if you have like a hundred categories and subcats, it's gonna be a real pain :wink: I was actually looking for a way to do that automatically, you know, fill a row before moving to the next one
-
I need the same is there a way for it?
-
May be a help for you could be the Mod Sort Categories in ACP by Number.
http://www.4homepages.de/forum/index.php?topic=11236.0
-
Not what I hoped for but I think it could also help me, thanks
-
hm, then i might be misunderstood you.
what you exactly wanted to do?
-
At the moment there is
Cat 1 Cat 4 Cat 7
Cat 2 Cat 5 Cat 8
Cat 3 Cat 6
but I like to have
Cat 1 Cat 2 Cat 3
Cat 4 Cat 5 Cat 6
Cat 7 Cat 8
And I have MANY subcategories in each maincategory and it would be big work to change it everywhere by hand
I know if I only made them in one row then it would be no problem but I really want to have 3 rows cause it would be much to scroll down if I only take one row...
So isn't there a chance to let it sort this other way automatically???
-
In includes/functions.php find:
foreach ($visible_cat_cache as $key => $category_id) {
$categories .= "<tr>\n<td valign=\"top\">\n";
Replace with: $categories .= "<tr>\n";
foreach ($visible_cat_cache as $key => $category_id) {
$categories .= "<td valign=\"top\">\n";
Find: $categories .= "</td>\n</tr>\n";
if ($count == $table_rows && $count2 < sizeof($visible_cat_cache)) {
$categories .= "</table></td>\n";
$categories .= "<td valign=\"top\" width=\"".$cattable_width."\" class=\"catbgcolor\">\n";
$categories .= "<table border=\"0\" cellpadding=\"".$config['cat_table_cellpadding']."\" cellspacing=\"".$config['cat_table_cellspacing']."\">\n";
$total = $total - $count2;
$table_columns = $table_columns - 1;
Replace with: $categories .= "</td>\n";
if ($count == $table_columns && $count2 < sizeof($visible_cat_cache)) {
$categories .= "</tr>\n<tr>\n";
$total = $total - $count2;
$table_rows = $table_rows - 1;
-
Hm that's still not what I need.
If I take your mod then I have only one row with categories, if that was what I want then I had changed it in APC/Settings
but I want to have three rows and they should sort from left to right instead of sorting from top to bottom and then change to the next row where it's also sorted from top to bottom again.
Anyone know what I mean? Maybe I just can't explain it...
-
It works now, redo all the steps. :oops:
-
Ah that's it !
Thank you so much you're great!
-
after copy the code in the category-picture MOD the table is very small
when i coby the code in a original template, the table is 100% wide
why doesn't it work with the MOD ?
-
$categories .= "<table border=\"0\" cellpadding=\"".$config['cat_table_cellpadding']."\" cellspacing=\"".$config['cat_table_cellspacing']."\">\n";
The bold is for ACP - > setting for edit space.
$categories .= "<td valign=\"top\" width=\"".$cattable_width."\" class=\"catbgcolor\">\n";
This is for width with image width (table size by image). If problem resize, you can edit. ;)
-
One Question (with my bad english :) )
What must I do with the 2 Codes ?
I replace the code above, and the tabel isn't 100% wide, and now ?
Greets
-
One Question (with my bad english :) )
What must I do with the 2 Codes ?
I replace the code above, and the tabel isn't 100% wide, and now ?
When I put in in a original functions.php it works 100%
When I put in the Category-Image MOD it works not realy
But the same Properities in the Admin center
Greets
-
Hallo
Ich habe das hier angewandt um die reihenfolge der Kategoerien zu ändern
Das hat auch geklappt
Aber jetzt sind meine Kategorien total zusammengrückt, obwohl ich im Admin 100% Breite angegeben habe
Woran kann das liegen und wie bekomme ich das denn evtl. wieder hin ?
Gruss
-
Thx, this works great! 8)
I know it's a kind of double-post (http://www.4homepages.de/forum/index.php?topic=25138.0), but it's similar to this topic...
I'd like to limit the number of categories in the home. So e.g. only the first 4 categories. Any ideas? Ifnot, there are too many on the homepage.