Jump to content

Need Help with Custom Block


Go to solution Solved by Jim M,

Recommended Posts

Hi All,

I'm not trying to become an IPS developer... I just want to accomplish my goal and be done. I'd appreciate some help.

 

Background

I have a custom written app which I want my community members to access from IPS without having to login.

For this purpose, my custom app reads variables passed via the URL (it uses $_GET). i.e.

https://mycommunity.com/applogin.php?User=username&ID=userID

 

Goal

Our community has the IPS Pages app.

I want to create a simple custom block that has an image in it. When a user clicks the image, some very simple PhP code should execute, produce the necessary URL and send the user to that URL.

Problem

When I create a custom block in IPS, I get the editor and no way to include the PhP code.

How can I accomplish this?

Thanks

 

Edited by gigantor
Link to comment
Share on other sites

I posted an image to the forum and got the exact url of it by viewing it.

Below is the my PhP code which I'm testing.

echo '<img src=\"https://mycommunity.com/uploads/monthly_2021_10/BFF-SSR-Login.png.ab0687b360535516ff3c60ab33b92eae.png\">';
echo '  SSR Database Test';

When I add the custom block to a test page, the image is missing. Why?

ssr-block1.JPG.b2c3bfbe388d7e3a2b580bfe18f07df9.JPG

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...