Author Topic: What is the code to make something appear if not logged in  (Read 8075 times)

0 Members and 1 Guest are viewing this topic.

Offline Caiapfas

  • Newbie
  • *
  • Posts: 23
    • View Profile
What is the code to make something appear if not logged in
« on: September 26, 2007, 02:42:22 AM »
What is the code to make something appear if not logged in.
I want to make a "Register" text link or button appear on my catergoies pages if they are not logged in and nothing or maybe some other text if they are logged in

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #1 on: September 26, 2007, 03:05:11 AM »
Code: [Select]
{if user_loggedout}<a href="{url_register}">{lang_register}</a>{endif user_loggedout}
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 Caiapfas

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #2 on: September 26, 2007, 03:28:38 AM »
i put this code

Code: [Select]
{if user_loggedout}<a href="{url_register}">{lang_register}</a>{endif user_loggedout}
on categories.html

and it didnt work at all ..what can i do?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #3 on: September 26, 2007, 03:56:31 AM »
Quote
and it didnt work at all ..what can i do?

1 - Please read step 6 of my signature.
2 - Which 4images version use ?
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 Caiapfas

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #4 on: September 26, 2007, 04:15:06 AM »
i use 1.7.3

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #5 on: September 26, 2007, 04:38:59 AM »
Quote
i use 1.7.3

Exact. Upgrade to last version (with all fix from bug and fixes in forum). This is good solution for work and be update for 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 Caiapfas

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #6 on: September 26, 2007, 04:42:54 AM »
i don't want to upgrade, i have WAY to many custom mods installed and will lose the code. Plus i looked over the change log in the version log and not that many good items where added. Can you just help me find the code to make this happen..thanks

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #7 on: September 26, 2007, 04:45:12 AM »
{if and {endif no work right in v1.7.3 (for some thing only ...) . v1.7.4 is fix for this ... if no want upgrade, no solution for tag but only for categories for all level and no good for your request.
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 Caiapfas

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #8 on: September 26, 2007, 08:08:45 PM »
so short of upgrading ym entire forum i can not do this, can you help me find the code responsible for this fix in 1.7.4 so i can paste it in there nad make this work

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: What is the code to make something appear if not logged in
« Reply #9 on: September 26, 2007, 08:18:05 PM »
This is no partial operation. You must do all for 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 ?