Osclass forums

Development => Development => Topic started by: Xefiron on April 09, 2019, 08:01:36 pm

Title: Ask about the pages of HDefines
Post by: Xefiron 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.
Title: Re: Ask about the pages of HDefines
Post by: WEBmods 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.
Title: Re: Ask about the pages of HDefines
Post by: Xefiron on April 09, 2019, 08:47:03 pm
Thank you very much for the prompt response, now the differences are clear to me.