*

Franko

  • ***
  • 132
random members
« on: April 01, 2015, 11:35:42 AM »
configuring random members on the Main page for visitors not view their profiles?  but get the random members on the Main page, when the visitor opens the member goes to the login page

*

Franko

  • ***
  • 132
Re: random members
« Reply #1 on: April 01, 2015, 11:39:06 AM »
When the visitor clicks go here go to register

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: random members
« Reply #2 on: April 01, 2015, 12:06:02 PM »
Hi Franko,

In the leftcolumn.tpl find the line 22:
Code: [Select]
{if $luckySpinGenderFemale != ''}
{$luckySpinGenderFemale}
<br />
{/if}
{if $luckySpinGenderMale != ''}
{$luckySpinGenderMale}
<br />
{/if}

Change to:
Code: [Select]
{if $smarty.session.UserId != ''}
{if $luckySpinGenderFemale != ''}
{$luckySpinGenderFemale}
<br />
{/if}
{/if}
{if $smarty.session.UserId != ''}
{if $luckySpinGenderMale != ''}
{$luckySpinGenderMale}
<br />
{/if}
{/if}

It is this code that hides stuff from visitors.
Quote
{if $smarty.session.UserId != ''}
   <<--- code goes here ---->>
{/if}

That's all you need to do
« Last Edit: April 01, 2015, 09:11:28 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

Franko

  • ***
  • 132
Re: random members
« Reply #3 on: April 01, 2015, 02:10:58 PM »
install the code, but stay random members on the Main page?

*

Franko

  • ***
  • 132
Re: random members
« Reply #4 on: April 01, 2015, 02:14:31 PM »
not hide the photos, but the profile, city, country, age ...

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: random members
« Reply #5 on: April 01, 2015, 09:12:45 PM »
not hide the photos, but the profile, city, country, age ...
Hi Franko,

Opps, sorry my mistake I left out some code, it has now been corrected sorry.
In the leftcolumn.tpl find the line 22:
Code: [Select]
{if $luckySpinGenderFemale != ''}
{$luckySpinGenderFemale}
<br />
{/if}
{if $luckySpinGenderMale != ''}
{$luckySpinGenderMale}
<br />
{/if}

Change to:
Code: [Select]
{if $smarty.session.UserId != ''}
{if $luckySpinGenderFemale != ''}
{$luckySpinGenderFemale}
<br />
{/if}
{/if}
{if $smarty.session.UserId != ''}
{if $luckySpinGenderMale != ''}
{$luckySpinGenderMale}
<br />
{/if}
{/if}

It is this code that hides stuff from visitors.
Quote
{if $smarty.session.UserId != ''}
   <<--- code goes here ---->>
{/if}

That's all you need to do
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

Franko

  • ***
  • 132
Re: random members
« Reply #6 on: April 02, 2015, 11:31:52 PM »
this one?

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: random members
« Reply #7 on: April 02, 2015, 11:55:11 PM »
this one?
Hi Franko,

That is just the Example code of how to hide other stuff only in the future, so you will know how to hide other photo's etc you might want to use the code.

Very important, that you do it as I first wrote if or you will get a whitepage.
If you don't put in the ending {/if} it will whitepage everytime.
Must be like this.

Quote
{if $smarty.session.UserId != ''}
  <<--- code to hide goes here ---->>
{/if}
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

Franko

  • ***
  • 132
Re: random members
« Reply #8 on: April 13, 2015, 12:34:12 PM »
have to put the codes in the left column and right ?

*

Franko

  • ***
  • 132
Re: random members
« Reply #9 on: April 13, 2015, 12:36:29 PM »
and remove the original codes and put the codes you sent me?

*

Franko

  • ***
  • 132
Re: random members
« Reply #10 on: April 13, 2015, 12:45:09 PM »
I only put this code at the end, without removing the original? {if $smarty.session.UserId != ''}

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: random members
« Reply #11 on: April 13, 2015, 12:56:52 PM »
When the visitor clicks go here go to register

Hi Franko,

I just seen this and that's how it suppose to work, if a visitors trys to view the profile it takes them to sign up first
as they have to be a member to view them. You want people to signup right?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

Franko

  • ***
  • 132
Re: random members
« Reply #12 on: April 13, 2015, 02:43:17 PM »
yes

*

Franko

  • ***
  • 132
Re: random members
« Reply #13 on: April 13, 2015, 03:00:26 PM »
I took the test and it just gets the flag, so it gets ugly

*

Franko

  • ***
  • 132
Re: random members
« Reply #14 on: April 13, 2015, 03:04:07 PM »
I want to remove the random members because members do not want to be visible to the public not members,removed only random