0 Members and 1 Guest are viewing this topic.

*

mikenl

  • *
  • 7
  • osDate Version: osDate Evo v1.2
Adding new level + icon
« on: March 21, 2017, 11:33:43 AM »
Hi all.

I have been adding a new level to my osDate Evo, called "certified"
The problem is that the new level does not display in the user profile.
(Free, gold and silver are, but the new level is not. See screenshots)

I can not find the answer on the forum...

Looking forward to your replies.


*

mikenl

  • *
  • 7
  • osDate Version: osDate Evo v1.2
Re: Adding new level + icon
« Reply #1 on: March 22, 2017, 05:33:54 AM »
Thanks a lot Phill.
I have no idea how to do that, but I will figure it out I guess.

Thanks for now and I will get back to you if I can't get it to work.

Mike.

*

mikenl

  • *
  • 7
  • osDate Version: osDate Evo v1.2
Re: Adding new level + icon
« Reply #2 on: March 22, 2017, 07:36:42 AM »
Tried it, but when i do a search in the languagefile, it does not find the word "Gold"

I want to add an extra level. so i want to have "Free, Silver, Gold and Certified"

BTW: I am on a Mac.. so no notepad++ :)

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Adding new level + icon
« Reply #3 on: March 22, 2017, 09:56:28 AM »
Hi mikenl,

To add a Membership just go to the admin area and click the Membership Management then under the levels it's got a link to add a new Membership level, just name it Certified and tick all the boxes and fill in the other stuff and that's it.

Then go to one of your members and put a tick in the members you want to change from Gold to Certified and that's it. 

To get it to show it in the members side then you will need to edit the user_home_stat_lines_dtls.tpl file
and add the new elseif $curlevel to the script not sure at this moment if it will work here.
« Last Edit: March 22, 2017, 10:21:24 AM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Adding new level + icon
« Reply #4 on: March 22, 2017, 11:05:08 AM »
Hi mikenl

Here is the Script for the user_home_stat_lines_dtls.tpl file in the default or default_3_column template.

Find this:
Code: [Select]
{if $curlevel == 'Gold'}
            {$curlevel}&nbsp;<img src="{$image_dir}/member/Gold.png" height="20" width="24" align="absmiddle" />
  {elseif $curlevel == 'Silver'}
            {$curlevel}&nbsp;<img src="{$image_dir}/member/Silver.png" height="20" width="24" align="absmiddle" />
              {elseif $curlevel == 'Free'}
            {$curlevel}&nbsp;<img src="{$image_dir}/member/Free.png" height="20" width="24" align="absmiddle" />
          {/if}

Change to:
Code: [Select]
{if $curlevel == 'Gold'}
            {$curlevel}&nbsp;<img src="{$image_dir}/member/Gold.png" height="20" width="24" align="absmiddle" />
  {elseif $curlevel == 'Silver'}
            {$curlevel}&nbsp;<img src="{$image_dir}/member/Silver.png" height="20" width="24" align="absmiddle" />
              {elseif $curlevel == 'Free'}
            {$curlevel}&nbsp;<img src="{$image_dir}/member/Free.png" height="20" width="24" align="absmiddle" />
  {elseif $curlevel == 'Certified'}
{$curlevel}&nbsp;
          {/if}

In the nickpage_basic_address.tpl find this:
Code: [Select]
{if $user.level == '1'}
         Gold&nbsp;<img src="{$image_dir}/member/Gold.png" height="20" width="20" align="absmiddle" alt="" />
            {elseif $user.level == '2'}
         Silver&nbsp;<img src="{$image_dir}/member/Silver.png" height="20" width="20" align="absmiddle" alt="" />
           {elseif $user.level == '4'}
         Free&nbsp;<img src="{$image_dir}/member/Free.png" height="20" width="20" align="absmiddle" alt="" />
   {/if}

Change to:
Code: [Select]
{if $user.level == '1'}
         Gold&nbsp;<img src="{$image_dir}/member/Gold.png" height="20" width="20" align="absmiddle" alt="" />
            {elseif $user.level == '2'}
         Silver&nbsp;<img src="{$image_dir}/member/Silver.png" height="20" width="20" align="absmiddle" alt="" />
           {elseif $user.level == '4'}
         Free&nbsp;<img src="{$image_dir}/member/Free.png" height="20" width="20" align="absmiddle" alt="" />
           {elseif $user.level == '5'}
         Certified&nbsp;
   {/if}
I didn't include a icon as I didn't know what you wanted in there, you can work that out.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

mikenl

  • *
  • 7
  • osDate Version: osDate Evo v1.2
Re: Adding new level + icon
« Reply #5 on: March 22, 2017, 11:25:35 AM »
Hi Phill,

Maybe I am just too much of a newbie here, but it does not work.
Attached find my files.

(I created a level inside the admin called "Verified" and I changed the level of a member to Verified.
Still does not show


*

mikenl

  • *
  • 7
  • osDate Version: osDate Evo v1.2
Re: Adding new level + icon
« Reply #6 on: March 22, 2017, 11:26:33 AM »
By the way: I am using the Freshdate template

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Adding new level + icon
« Reply #7 on: March 22, 2017, 08:01:19 PM »
Hi mikenl,

It should be working, when you added the Verified you did save it right and changed a member to that?
As you can see in the above pic it shows in the admin and it shows in the Members side if you add the other script as
I tested it.

Hi Phill,

Maybe I am just too much of a newbie here, but it does not work.
Attached find my files.

(I created a level inside the admin called "Verified" and I changed the level of a member to Verified.
Still does not show
« Last Edit: March 22, 2017, 08:09:08 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,069
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Adding new level + icon
« Reply #8 on: March 22, 2017, 08:04:51 PM »
Hi mikenl,

Change back to the default template while doing the changes and then try to do it in the FreshDate Template.

We don't do custom changes to the FreshDate Template, you will need help from the designer, but the code should be the same.

By the way: I am using the Freshdate template
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35