Jump to content

smart tags.. how to do this http_referr?


altomarketing

Recommended Posts

We would like to show different headers depending on where it comes from the user, ie HTTP_REFFER

 

try to use the following code but it shows us the full path where it comes from, including subdirectories and file htmll concerns us.

 

{$smarty.server.HTTP_REFERER|escape:'htmlall':'UTF-8'}

 

shows http://www.websiteAAA.com/dire1/fdf2/file.html'>http://www.websiteAAA.com/dire1/fdf2/file.html , almost perfect

 

But how can I display only the path as http://www.websiteAAA.com for example?

 

do not know how to use parse_url within smarty

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated