0 Members and 1 Guest are viewing this topic.

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Some variables
« on: January 05, 2016, 02:33:05 PM »
Hello!

is there any description of variables or snippets?
Something like "is_front" or "logged_in", so I can hide/display parts of the page?
Thanks!

Re: Some variables
« Reply #1 on: January 07, 2016, 08:08:45 AM »
Do a search on this website and you will find your answer.

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Re: Some variables
« Reply #2 on: January 07, 2016, 12:00:27 PM »
Ok, any tip for the search keywords?

*

Pharg

  • *****
  • 3,153
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Some variables
« Reply #3 on: January 07, 2016, 07:55:08 PM »
Hi ba1122,

Try using page or hide etc

Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

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

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Re: Some variables
« Reply #4 on: January 10, 2016, 11:07:37 PM »
Thanks!

I'm lookong or {$rendered_page} to edit the code, but don't find it...
         

Re: Some variables
« Reply #5 on: January 11, 2016, 01:13:14 AM »
Thanks!

I'm lookong or {$rendered_page} to edit the code, but don't find it...

In your template look in the homepage.tpl

This is the one file that shows the different sections of your pages.

For instance to show something to everyone use:
{if $smarty.session.UserId == ''}

To show for only logged in users use:
{if $smarty.session.active == 1 && $smarty.session.security.allowim == 1 }

Other ways to do it is assign a css class and then in your css file use something like display:none;

*

ba1122

  • ***
  • 106
  • osDate Version: osDateEvo v1.2
Re: Some variables
« Reply #6 on: January 14, 2016, 05:27:05 PM »
This helped me, thanks!

Another thing I wish to understabnd is, how to change the signup. Is isz possibel to define new fields?

*

Pharg

  • *****
  • 3,153
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Some variables
« Reply #7 on: January 14, 2016, 08:55:33 PM »
This helped me, thanks!

Another thing I wish to understand is, how to change the signup. Is it possible to define new fields?

Hi ba1122,

Yes you can add other fields and change the signup, please search the forum, this has been covered before.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

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