What code or scripts can I add to my LibGuides, CampusGuides, or CommunityGuides sites?
We do not allow our customers to run custom PHP code on our servers because that opens up many different concerns related to privacy, data security, and server performance / stability.
For PHP Scripting Code, here's what you can do:
- Host the PHP code on your local server
- In your Guide, add a 'Remote Scripts' box
Your content will be wrapped inside a div in the content box so make sure you properly close your divs. If you leave any divs open, it could interfere with the display of the rest of the boxes on the page.
You should not include <body>, <head>, and similar tags in your script as those are already included within the LibGuides/CampusGuides/CommunityGuides code - just output the content you want displayed inside the box.
Use absolute paths for any images and links inside your script. In other words, use href=yourdomain/yourpage.html instead of href=yourpage.html (the same is true for src= attributes).