Author Topic: How do I remove the description from the main page?  (Read 23394 times)

0 Members and 1 Guest are viewing this topic.

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
How do I remove the description from the main page?
« on: September 05, 2007, 06:05:35 PM »
Do you know the categories are listed on the first page, well I want to remove the description from underneath each category but still have it show after you click on the category which will take you to that particular categories info.

Hope I explained that well enough to understand!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I remove the description from the main page?
« Reply #1 on: September 05, 2007, 06:10:51 PM »
First page of cat (category_bit.html) or first page (home.html) ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #2 on: September 05, 2007, 06:13:19 PM »
home.html

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I remove the description from the main page?
« Reply #3 on: September 05, 2007, 06:18:22 PM »
Ok so for no affect gallery -

In includes/functions.php file,

find:

Quote
global $site_template, $site_db, $site_sess, $config, $lang;

replace:

Code: [Select]
global $site_template, $site_db, $site_sess, $config, $lang, $url;

find:

Quote
"cat_description" => format_text($cat_cache[$category_id]['cat_description'], 1),

replace:

Code: [Select]
"cat_description" => (!preg_match("/index.php/", $url)) ? format_text($cat_cache[$category_id]['cat_description'], 1) : "",

Should work. 8)
« Last Edit: February 18, 2011, 02:25:04 PM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #4 on: September 05, 2007, 06:24:32 PM »
SUPER! IT WORKED!!  :D :D

THANKS!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I remove the description from the main page?
« Reply #5 on: September 05, 2007, 06:25:21 PM »
Thank for posting.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #6 on: September 05, 2007, 06:26:13 PM »
Oh, wait! It doesn't show on the home page but as soon as I login it shows again. Should I be changing a code someplace else?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #7 on: September 05, 2007, 06:27:02 PM »
Wait! My error! Silly me! I had another window open at the same time.  :oops:

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #8 on: September 05, 2007, 06:58:57 PM »
Sorry but there's a problem again.

I had typed out a description for one of the categories (artist name) and everything was fine until I logged out. There it was again, the description showing on the main page again. I even clicked on the 'Home' button to see if it would change but it wouldn't.

The funny is if I'm on www.website.com/art-gallery  it does not show the description but if I am on www.website.com/art-gallery/index.php it shows up again.

Any suggestions?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I remove the description from the main page?
« Reply #9 on: September 05, 2007, 07:05:09 PM »
Quote
Any suggestions?

1 - Logout
2 - Clear all cookies & temp files.
3 - Go back
4 - Login
5 - See description if back (+ logout).
6 - Report here.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #10 on: September 05, 2007, 07:25:24 PM »
Ok. I think it's ok now. It must've resorted back to a cache file or something.

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #11 on: September 05, 2007, 07:47:59 PM »
It happened again. It seems as though as soon as I login the description shows under the artist category on the home page. All cache has been cleared.  :x

works at www.website.com/art-gallery but shows on www.website.com/art-gallery/index.php again.
« Last Edit: September 05, 2007, 08:05:18 PM by Melissa67 »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I remove the description from the main page?
« Reply #12 on: September 05, 2007, 08:11:26 PM »
Can no reproduce ... host should adapt with ./ and index.php file. Should be same ROOT_PATH destination from host to client ...  :?
Set .htaccess for fix ROOT PATH or send ticket to host for help on this.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Melissa67

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: How do I remove the description from the main page?
« Reply #13 on: September 05, 2007, 08:23:14 PM »
How do I set .htaccess to fix ROOT PATH?

My website hosting company doesn't seem to help with anything too much.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I remove the description from the main page?
« Reply #14 on: September 05, 2007, 08:26:25 PM »
This is offtopic but create .htaccess file (yes, . include first).

Set this in file:

Code: [Select]
DirectoryIndex index.php

Upload file to ROOT_PATH (where index.php, categories.php ect ..) is. Reload site. Should work.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?