Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 11, 20195 yr 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
July 13, 20195 yr Solution 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.
July 13, 20195 yr 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).
July 13, 20195 yr Author 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, 20195 yr by TheGrandBanana
July 14, 20195 yr 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
July 14, 20195 yr Author 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.
September 28, 20204 yr 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?
September 29, 20204 yr 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"}
September 29, 20204 yr 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.