4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2014, 12:33:30 AM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Requests & Discussions) (Moderators: mawenzi, Rembrandt)
| | |-+  description for subcategory
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: description for subcategory  (Read 1481 times)
a1367h
Pre-Newbie

Offline Offline

Posts: 5

Thank You
-Given: 2
-Receive: 1


View Profile
« on: December 18, 2012, 01:30:00 AM »

How to add description for subcategory at home page? It has description for category but i need it for subcategory too.
I'm so please if anyone help me.
Logged

Hossein Rad
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4096

Thank You
-Given: 108
-Receive: 860

Vienna


View Profile WWW
« Reply #1 on: December 18, 2012, 07:15:17 AM »

Hi!

Search in includes/functions.php:
1
2
3
4
      $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 .= ", ";
      }
and replace:
1
2
3
4
      $sub_cat_list .= "<a href=\"".$sub_url."\" class=\"subcat\">".format_text($cat_cache[$subcat_id]['cat_name'], 2)."</a><br><span>".format_text($cat_cache[$subcat_id]['cat_description'], 2)."</span>";
      if (
$i != $config['num_subcats'] && $i $config['num_subcats'] && $i $num_subs) {
        
$sub_cat_list .= "<br>";
      }

mfg Andi

Follow members gave a thank to your post:
a1367h

For this post, 1 member gave a thank you!
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
a1367h
Pre-Newbie

Offline Offline

Posts: 5

Thank You
-Given: 2
-Receive: 1


View Profile
« Reply #2 on: December 20, 2012, 12:39:24 AM »

It's working.
Thank you so much.
Logged

Hossein Rad
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.301 seconds with 23 queries.