0 Members and 1 Guest are viewing this topic.

*

ba1122

  • ***
  • 106
Problem with adding to lists at profile page
« on: May 11, 2016, 11:04:22 PM »
At a profile page I see "Add to Buddy List", "Add to Banned List" and "Add to Hot List"  as links. But under "my lists" I have also "Watched profiles". So I miss this one (Add to watchlist or so) at the profile page.

Then, if I added a profile to my buddy list, this link should not appear after adding. So, can I change this?

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Problem with adding to lists at profile page
« Reply #1 on: May 12, 2016, 04:13:46 AM »
Hi ba1122,

This has always worked like this and it's not a error.

If you don't want the Watched Profiles to show then just remove the link from the profile menu.

In the nickpage_navi.tpl find this code:
Code: [Select]
{if $smarty.session.security.saveprofiles == 1 and $in_savedprofiles <= 0 }
&nbsp;{if $found}|{/if}&nbsp;
<a href="#" onclick="javascript:window.location='watchedprofiles.php?act=save&amp;ref_id={$user.id}&amp;rtnurl=showprofile.php';" class="footerlink">{lang mkey='watchedprofiles_1'}</a>
{elseif $config.display_all_menu_items == 'Y' or $config.display_all_menu_items == '1'}
|&nbsp;<a href="#" onclick="javascript:insufficientPrivileges();" class="footerlink">{lang mkey='watchedprofiles_1'}</a>
{/if}


Remove it if you don't want it.

If you want it to hide after adding a Buddy then you will need to hire a coder!!
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

ba1122

  • ***
  • 106
Re: Problem with adding to lists at profile page
« Reply #2 on: May 12, 2016, 10:37:43 AM »
Thanks for your hint, found it.
Is something like this
Code: [Select]
{if $smarty.session.security.saveprofiles == 1 and $in_savedprofiles <= 0 } available for the other links to lists?

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Problem with adding to lists at profile page
« Reply #3 on: May 12, 2016, 11:23:27 AM »
Hi ba1122,

The other tpl files that are for the top menu and side menu that has the code in them are:

Top menu being dropdownpanelmenu.tpl

Side menu being panelmenu_options.tpl
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

ba1122

  • ***
  • 106
Re: Problem with adding to lists at profile page
« Reply #4 on: May 12, 2016, 12:43:16 PM »
Ok, but interesting is the variable
Code: [Select]
$in_savedprofiles!

*

ba1122

  • ***
  • 106
Re: Problem with adding to lists at profile page
« Reply #5 on: May 13, 2016, 08:26:10 PM »
So, there is no check for the other lists?

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Problem with adding to lists at profile page
« Reply #6 on: May 13, 2016, 10:01:58 PM »
Hi ba1122,

I am not sure what other lists you mean?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

ba1122

  • ***
  • 106
Re: Problem with adding to lists at profile page
« Reply #7 on: May 13, 2016, 10:31:37 PM »
Something like "$is_inbuddylist" or so...

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Problem with adding to lists at profile page
« Reply #8 on: May 13, 2016, 10:52:22 PM »
Hi ba1122,

Not that I know of but there might be a answer on  Smarty: PHP Template Engine website.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35