Author Topic: Help pls. - can't get rid of random image  (Read 7289 times)

0 Members and 1 Guest are viewing this topic.

Offline Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Help pls. - can't get rid of random image
« on: November 12, 2007, 05:52:53 PM »
I have upgraded to 1.7.4 and now I can't get rid of random image in details.html as it seems.
I changed the home.html in my template and that worked.
Did the same modification in details.html but the random image still shows up.
I renamed the random-image*.html files in templates/default and I even uploaded the modified details.html to the default folder as well.
Where does the script get the order to still show a random image from?
What am I doing wrong and/or where can I get rid of it?

And yes, I used the search but noone seemed to have this problem and the only other post with the same question is unanswered since 2005.

ETA: Found it in categories.html but now there are the links if a user is logged in (control panel, lightbox) etc. which I do not need nor want. What do I have to remove so controlpanel and logout is no longer shown? Or if logged out the login fields are not shown? Which files do I have to change?
« Last Edit: November 12, 2007, 06:18:57 PM by Gwydion »

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: Help pls. - can't get rid of random image
« Reply #1 on: November 12, 2007, 06:29:03 PM »
Hi,
      I am not able to understand your question ..  What exactly you want to do ?


Offline Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: Help pls. - can't get rid of random image
« Reply #2 on: November 12, 2007, 07:11:50 PM »
I want to remove the login fields as well as related links (registration, forgot pw) in the details.html (when you go into a category or click on an image). Same goes for the links you see when you are logged in. I do not have a need for registration so these parts should not be displayed either.
I have tried to find that in the details.html file in my template (chique_black) but there does not seem to be something I can recognise.
Therefore I would need to know what code I should remove exactly and in which file.
Hope that explains it better.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Help pls. - can't get rid of random image
« Reply #3 on: November 12, 2007, 09:21:06 PM »
In includes/constants.php file, is define option for random image. If 1, set to 0. ;)
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 Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: Help pls. - can't get rid of random image
« Reply #4 on: November 12, 2007, 10:04:40 PM »
Thank you .. managed to remove the random image. Still want to remove the user cp/links/login fields on the left.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Help pls. - can't get rid of random image
« Reply #5 on: November 12, 2007, 10:26:02 PM »
For remove CP link for user, is in templates/your_template/user_logininfo.html file. ;)
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 Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: Help pls. - can't get rid of random image
« Reply #6 on: November 12, 2007, 11:00:36 PM »
Sorry, but it's not.
I disabled user_logininfo.html and user_loginform.html in mytemplate as well as in default. Login fields still appear.
I also tried removing the code in user_logininfo.html and uploaded the modified file in both folders (mytempalte and default).
No change.

I thought the left side menu is defined in the details.html but I guess I am wrong here.



Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Help pls. - can't get rid of random image
« Reply #7 on: November 12, 2007, 11:04:07 PM »
I no see for possible ... if go to ACP - > Setting ... is correct template select ? If so, you edit in right gallery ?
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 Gwydion

  • Full Member
  • ***
  • Posts: 126
    • View Profile
Re: Help pls. - can't get rid of random image
« Reply #8 on: November 13, 2007, 03:14:32 PM »
I think there was a misunderstanding .. I didn't want to remove the link to the controlpanel for a logged in user .. I wanted to remove the whole user box.
Anyway, found it .. or a way. Maybe it is not the best but it works.
In categories.html of the template I removed the code for user box and lang_registered_user (was called something like that) and now it works.