How to know I'm in post page url

ClassiBase classifieds script Forums General help How to know I'm in post page url

This topic contains 2 replies, has 2 voices, and was last updated by  infoactivo 2 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2416 Reply

    infoactivo
    Participant

    Hello,

    I want to make small changes on theme/layout/frontend.php file
    That change will be effective only for post ads action.
    I need a way to get some variable to let me verify that it is the post url (http:// classibase . com/demo/post/item/0/0/).
    Is there a way to know that from script, so I need not to read and manipulate the url to get the verification?
    Thank you.

    Best regards.

    #2418 Reply

    ClassiBase
    Keymaster

    There are 2 variable used in ad posting page. you can access them directly from frontend.php file.

    if($page_type==='ad_post')
    {
    	// this is ad posting page 
    	if($step==1)
    	{
    		// this is first step when posting ad
    	}
    	else
    	{
    		// this is  second step when posting ad.
    	}
    }
    #2419 Reply

    infoactivo
    Participant

    Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to know I'm in post page url
Your information: