4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 23, 2018, 09:37:27 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [MOD] better presentation of the subcategories in the category listing
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
This topic has not yet been rated!
Author Topic: [MOD] better presentation of the subcategories in the category listing  (Read 8487 times)
webmaster73
Jr. Member
**
Offline Offline

Posts: 75

Thank You
-Given: 0
-Receive: 0


View Profile
« on: March 03, 2008, 01:10:53 AM »

hello.

this is my 2-dime contribution to the community.

this is a very simple modification to break the line and add a point before each subcategory in the category listing. (as in the attached image).

this mod is for 4images 1.7.6

simply download the attached functions.php and throw it in your "includes" folder.

attached also image to show you how this new presentation of the subcategories works out for me. you can also check here http://forumislam.com/galerie/

the only changes are made in lines 1115 to 1117. the modified code is here:

1
2
3
      $sub_cat_list .= "<b>.</b> &nbsp; <a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a>";
      if ($i != $config['num_subcats'] && $i < $config['num_subcats'] && $i < $num_subs) {
        $sub_cat_list .= "<br> ";

Remarks or thanks are welcome.

Logged
CanonInk
Newbie
*
Offline Offline

Posts: 48

Thank You
-Given: 2
-Receive: 0


View Profile
« Reply #1 on: March 03, 2008, 07:47:30 AM »

This is a good idea! Ask moderator for move your MOD into Mods & Plugins (Requests & Discussions)

For modifications use this format:

Open /includes/functions.php

Find:
1
2
3
$sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a>";
      if ($i != $config['num_subcats'] && $i < $config['num_subcats'] && $i < $num_subs) {
        $sub_cat_list .= ", ";

Replace with:
1
2
3
$sub_cat_list .= "<b>.</b> &nbsp; <a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a>";
      if ($i != $config['num_subcats'] && $i < $config['num_subcats'] && $i < $num_subs) {
        $sub_cat_list .= "<br> ";

Enjoy, CanonInk
« Last Edit: March 03, 2008, 10:44:47 AM by Nicky » Logged

Nicky
Administrator
4images Guru
*****
Offline Offline

Posts: 3195

Thank You
-Given: 26
-Receive: 56


View Profile
« Reply #2 on: March 03, 2008, 10:46:23 AM »

moved here Smile

thx webmaster!

CanonInk
i changed
Open /includes/funktion.php
to
Open /includes/functions.php

thx to you both!
Logged

cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi
CanonInk
Newbie
*
Offline Offline

Posts: 48

Thank You
-Given: 2
-Receive: 0


View Profile
« Reply #3 on: March 03, 2008, 12:02:57 PM »

moved here Smile

thx webmaster!

CanonInk
i changed
Open /includes/funktion.php
to
Open /includes/functions.php

thx to you both!

Thanks Wink
Logged

kai
Administrator
Addicted member
*****
Offline Offline

Posts: 1405

Thank You
-Given: 66
-Receive: 199


View Profile WWW
« Reply #4 on: March 03, 2008, 12:17:47 PM »

Thanks! Good work. Smile
Logged


Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search
mawenzi
Moderator
4images Guru
*****
Offline Offline

Posts: 4500

Thank You
-Given: 36
-Receive: 121


View Profile
« Reply #5 on: March 03, 2008, 12:55:31 PM »


... it is not a MOD ... it is a old known solution ...
... and is to find in many posts ...
... e.g. ...

- http://www.4homepages.de/forum/index.php?topic=11329.msg58733#msg58733
- http://www.4homepages.de/forum/index.php?topic=17093.0

... Wink ...
Logged

Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.07 seconds with 20 queries.