Author Topic: Showing text and/of table only to the owner of the Profile page  (Read 24843 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Showing text and/of table only to the owner of the Profile page
« Reply #30 on: November 11, 2007, 02:43:02 AM »
After
Quote
"lang_profile_of" => $lang['profile_of'],

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Showing text and/of table only to the owner of the Profile page
« Reply #31 on: November 11, 2007, 02:47:08 AM »
I no can reproduce problem ...
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 Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Showing text and/of table only to the owner of the Profile page
« Reply #32 on: November 11, 2007, 02:52:15 AM »
I will try it again tomorrow :wink:

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Showing text and/of table only to the owner of the Profile page
« Reply #33 on: November 11, 2007, 01:14:53 PM »
Good news Thunderstrike :D

I get it to work.

In member.php you find twice the code
Code: [Select]
lang_profile_of
So this line was in the wrong section:
Code: [Select]
"lang_text_for_each_user" => (isset($user_row[$user_table_fields['user_id']]) && $user_row[$user_table_fields['user_id']] == $user_info['user_id']) ? preg_replace("/" . $site_template->start . "user_name"  . $site_template->end . "/siU", format_text(trim($user_row[$user_table_fields['user_id']]), 2), $lang['text_for_each_user']) : "",

I can now hide/show tables.
Thanks man!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Showing text and/of table only to the owner of the Profile page
« Reply #34 on: November 11, 2007, 01:37:49 PM »
Quote
lang_profile_of

I no say for find twice ... I say add after line ...
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 Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Showing text and/of table only to the owner of the Profile page
« Reply #35 on: November 11, 2007, 01:44:06 PM »
Quote
I no say for find twice ... I say add after line ...

Yes I know, but I added the code after the first (lang_profile_of) in the section edit_profile instead of the (lang_profile_of) of the section show_profile.
My mistake :oops:

It is working now and I am satisfied.
Thank you again ThunderStrike :D