Jump to content

Need Help with Custom Block


Go to solution Solved by Jim M,

Recommended Posts

Posted (edited)

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
  • Solution
Posted

You will want to go to the ACP -> Pages -> Blocks -> Create Block -> select custom -> select Manual PHP as the content editor:

image.png

Posted

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

Posted

Glad you have what you need there. Feel free to ask any further questions, but please bear in mind we cannot assist with the customisation itself

  • Recently Browsing   0 members

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