Advertisement:

Author Topic: Ask about the pages of HDefines  (Read 131 times)

Xefiron

  • Newbie
  • *
  • Posts: 32
  • Software developer - Desarrollador de software
Ask about the pages of HDefines
« on: April 09, 2019, 08:01:36 pm »


What is the difference between osc_is_ad_page () and osc_is_publish_page () ?, and what does osc_is_static_page () do?

The descriptions of https://doc.osclass.org/HDefines.php I do not understand.

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Ask about the pages of HDefines
« Reply #1 on: April 09, 2019, 08:40:48 pm »
osc_is_ad_page() - is user on item detail/description page,
osc_is_publish_page() - is user on item post/publish page,
os_is_static_page() - is user on a custom static page - the ones you can add in admin.

All these return true if a user is on that page and false if not.

Regards.

Xefiron

  • Newbie
  • *
  • Posts: 32
  • Software developer - Desarrollador de software
Re: Ask about the pages of HDefines
« Reply #2 on: April 09, 2019, 08:47:03 pm »
Thank you very much for the prompt response, now the differences are clear to me.