TheGrandBanana Posted July 11, 2019 Posted July 11, 2019 I have 2 PHP scripts, One i made to display a table with Variables from a table in MySQL. its just to display, no comments, no ad-dons, no adding, nothing special like that, as the system itself takes changes straight from GitLabs and just posts the changes to our website database. The problem I am having is, i want to be able to display these entries on my site, I got the admin able to remove the entries, but when i try doing the front end (Just to show the values) i keep getting errors cant see database, and such. I am not new to PHP but newer to developing IPBoard Applications, so please bare with me. I have 2 options on my side. Option A: See if i can make it display in the site using IPBoard. Option B: See if IPboard will include external PHP scripts and how.. if someone can help, would be great. I have 2 tables, one for the menu (Because each entry its for its own values) GitLabs : Stores the main part, all the variables i need from Gitlab, like : Update Date, User, Message Repos: This is just a list of Repos that we have (As we have more then 1 repo, we would like each repo separated not on 1 big list) If you need any other info please say, and if you can help, i can ether talk on Discord, Skype or Email. Thank you
Solution newbie LAC Posted July 13, 2019 Solution Posted July 13, 2019 Quote {insert="$filename"} Includes a PHP script file Parameters$filename - The filename of the PHP file to include. The output of the file is buffered and output.
bfarber Posted July 13, 2019 Posted July 13, 2019 Yeah, I would say that if you already have a PHP script written to output the data from your custom database table, just include that script using the template plugin mentioned above. That'll be easier than converting the code into our framework (unless your goal was learning how to use our framework). sobrenome 1
TheGrandBanana Posted July 13, 2019 Author Posted July 13, 2019 (edited) Do have another question, sorry about it all, I got it to be a main app, but i need to add it to url, but I need to know whats the access url. not showing it in to add menu. Edit, I got it to show up by url, (index.php?/gitlog/) but in Menu Manager it doesnt show. Edit 2: I noticed that also in submenu it shows "module__hggitlog_gitlist" Not a title. i put that in the lang.xml, but still same. Edited July 13, 2019 by TheGrandBanana sobrenome 1
newbie LAC Posted July 14, 2019 Posted July 14, 2019 8 hours ago, TheGrandBanana said: but in Menu Manager it doesnt show. 8 hours ago, TheGrandBanana said: Edit 2: I noticed that also in submenu it shows "module__hggitlog_gitlist" Not a title. i put that in the lang.xml, but still same. lang.xml? Add lang strings in /applications/%app%/dev/lang.php sobrenome 1
TheGrandBanana Posted July 14, 2019 Author Posted July 14, 2019 1 hour ago, newbie LAC said: lang.xml? Add lang strings in /applications/%app%/dev/lang.php Yea, I been working all night on this and day, Noticed that it was removing the text, once i saw this, i added it to lang.php and worked for the base, and the reason the Navigation never showed up is because my installation was corrupt. sobrenome 1
sobrenome Posted September 28, 2020 Posted September 28, 2020 On 7/13/2019 at 2:25 AM, newbie LAC said: {insert="$filename"} Includes a PHP script file The php script should be uploaded to which IPS folder?
newbie LAC Posted September 29, 2020 Posted September 29, 2020 7 hours ago, sobrenome said: The php script should be uploaded to which IPS folder? You can put a file in the forum directory If you put a file in a folder you should add that folder {insert="foldername/filename.php"} sobrenome 1
sobrenome Posted September 29, 2020 Posted September 29, 2020 Great! As long as I have Pages, I confirmed that I will be able to create a raw php as a block. I guess this will be the best choice for my community. Thanks.
Recommended Posts