Forum Activity for @brodephat

alt=
@brodephat
07/30/18 08:02:00AM
7 posts

Convert PHP file for use in Smarty template


Jamroom Developers

I put my php in the function but got a blank page. Is the function where it should be placed?
alt=
@brodephat
07/30/18 08:00:05AM
7 posts

Convert PHP file for use in Smarty template


Jamroom Developers

This is how the URL flows: https://www.socialradioads.com/wnia-gospel-radio/tweet/?pass=NotNeeded&artist=21:03&title=Chozen&album=Total%20Attention&cover=2103-totalattention.jpg&requester=Billy&reqmessage=Love%20this%20song%20thanks%20for%20playing%20it!

The link with the variables are generated from another source, then sent to this url where Jamroom is self hosted.

The data comes thru as you will see on the page.

But I'm having trouble understanding where and how to put my current php codes into the module so that the php can process the information.
alt=
@brodephat
07/30/18 07:42:12AM
7 posts

Convert PHP file for use in Smarty template


Jamroom Developers

I want it so the bottom level is a free level but you don't have access in your profile settings to put in your personal api codes that come from Twitter. If you buy another level (upgrade) you will have access to the form input fields to put in your api codes. If you stop or cancel your subscription, the system moves you back (downgrade) to the free level.

That part works fine but I did notice that even when a user is moved back to the Free level and have no access to the api codes form fields under Profile settings, the values they put in while on level 2 are still there (I guess due to being in the Datastores).
alt=
@brodephat
07/30/18 05:13:13AM
7 posts

Convert PHP file for use in Smarty template


Jamroom Developers

Okay, so I now have the module grabbing the post data and I have the user submitted data showing up as well.

I don't seem to be grasping how to execute php.

What I'm doing is taking certain values from the _user data and the _post data and running them through a php code to produce a formatted tweet that then gets posted to the Twitter account of the user.

Ohh also I have noticed that when I downgrade a user, they are not able to see the user data they must enter (Twitter api codes) for this to work however the information they posted while upgraded was still available and still usable. I would like to know how to prevent the user data from showing up in the template if they are down graded. Basically if the post url is sent to the profile url everything still shows up making the downgrade ineffective.

I believe it has something to do with profile quotas I think. I'm looking to see what I can find.
alt=
@brodephat
05/19/18 12:06:15AM
7 posts

Convert PHP file for use in Smarty template


Jamroom Developers

Great, I did get the module to shows up.

In version 3, whenever an account is created, a folder containing the files for that account is created. I haven't seen this in version 5, did I miss it somewhere?

Do the modules have the ability to display user profile info of just that user?

In other words as a profile or user url.
alt=
@brodephat
05/17/18 04:07:16PM
7 posts

Convert PHP file for use in Smarty template


Jamroom Developers

Thanks so much. This will help me off to a better start than I have been trying so far. I used to create stuff for my Jamroom site many years ago and this new version since returning to Jamroom is sooo different.
alt=
@brodephat
05/16/18 09:28:40AM
7 posts

Convert PHP file for use in Smarty template


Jamroom Developers

Hello,

I have been and still am looking for how to convert a php file I now use for use in the Jamroom smarty engine.

I currently have a php file that is used to post to Twitter when called upon.
The message that gets posted is dropped into the php file from a variable when it is called.

Like such:

https://example.com/post.php?message=Hello

The php file grabs the value of message from the URL call and uses it to make the post

When the php file is called it will not display anything because it's not needed.

I want to use Jamroom so that when a user creates their account, they can enter the needed Twitter API keys into their profile and the system would generate the template using those values to do what the stand alone php file does. The values do not need to be displayed to the end user or visitor, just used to do the same thing the current php file is doing.

The template can be hidden from view but must be accessible via a URL in the browser per user account.

I purchased the Form Builder and learned how to add the API key fields to the users profile info.

Does doing this require creating a module?
Would the template be a profile template or user template?
Can the template work even if the user is not logged in?



updated by @brodephat: 10/31/18 08:42:43AM