Author Topic: Text kürzen nach ??? Zeichen kürzen  (Read 18399 times)

0 Members and 1 Guest are viewing this topic.

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #15 on: February 19, 2007, 10:37:05 PM »
Did Ivan fix it or?

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #16 on: February 19, 2007, 10:47:17 PM »
you guys must be doing something wrong. Because I just installed 1.7.1 And it works perfectly :S

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #17 on: February 20, 2007, 07:05:33 PM »
Ivan could you tell me what you did?

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #18 on: February 20, 2007, 07:22:00 PM »
this line is in 1.7.4

Code: [Select]
"cat_description" => format_text($cat_cache[$category_id]['cat_description'], 1),
when you after insert the line

Code: [Select]
"cat_description_short" => (strlen($cat_cache[$category_id]['cat_description']) > 120) ? substr($cat_cache[$category_id]['cat_description'], 0, 120)."..." : $cat_cache[$category_id]['cat_description'],
and replace in categories.html {cat_description} in {cat_description_short}

i have this code not in the online version, only offline!
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #19 on: February 20, 2007, 07:24:30 PM »
you have to edit categories_bit.html it's the wrong file

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #20 on: February 20, 2007, 08:11:04 PM »
hi BartAfterDark
 :oops: sorry

yes you have right
it gives mod for cat_description of categories.html??
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline BartAfterDark

  • Hero Member
  • *****
  • Posts: 520
    • View Profile
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #21 on: February 21, 2007, 04:05:21 PM »
why do you want one for categories.html?

Or do you want something like this:

this is the text when you wa...

Then the users can click on the ... to see the rest of the text

Offline ivan

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.279
    • View Profile
    • Bilder Gallery
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #22 on: February 21, 2007, 09:51:57 PM »
hi, my problem...
the cat_descripton is to long...

Then the users can click on the ... to see the rest of the text
this is nice ;)
greetings / grüsse
ivan

Facebook Fan Page | Follow Twitter

Blog: Reisen Blog
Bilder Gallery: Bilder Gallery

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: Text kürzen nach ??? Zeichen kürzen
« Reply #23 on: April 04, 2007, 11:53:43 PM »
thank you! it works ok ;) great!
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more