php on the HTML pages
5 posters
Page 1 of 1
php on the HTML pages
Hiyo Forumotioners
I'm working on integrating a text based strategy game in php on my website. However I would like to also display information about the game under the avatars next to user posts.
So I have two questions:
1) Is it possible to add php to the html files hosted on forumotion forums or use another method to pull information from an external mysql database?
2) Is it possible to add custom fields under user avatars or in signatures that automatically update based on the information from the external database?
Probably by the time I finish writing this my forum will have over 4,000 members so I would like to integrate the game into the forumotion forum rather than lose users by going to my own hosted forum.
Thanks for your help even if it's just telling me that it's impossible.
-Mr P
I'm working on integrating a text based strategy game in php on my website. However I would like to also display information about the game under the avatars next to user posts.
So I have two questions:
1) Is it possible to add php to the html files hosted on forumotion forums or use another method to pull information from an external mysql database?
2) Is it possible to add custom fields under user avatars or in signatures that automatically update based on the information from the external database?
Probably by the time I finish writing this my forum will have over 4,000 members so I would like to integrate the game into the forumotion forum rather than lose users by going to my own hosted forum.
Thanks for your help even if it's just telling me that it's impossible.
-Mr P
mr_pleco- New Member
- Posts : 7
Reputation : 0
Language : English
Re: php on the HTML pages
I'm sorry, but there's no way that you are allowed to view your forum's database... only because ForuMotion doesn't offer access to databases.
Rok- Energetic
- Posts : 6823
Reputation : 234
Language : idk
Re: php on the HTML pages
Rok wrote:I'm sorry, but there's no way that you are allowed to view your forum's database... only because ForuMotion doesn't offer access to databases.
I don't want to view the forum database. I want to get information from an external database that I host for the game information.
Is that possible?
mr_pleco- New Member
- Posts : 7
Reputation : 0
Language : English
Re: php on the HTML pages
Hello,
I'm sorry but forumotion uses custom coding, which does include very minor, if not obsolete php coding, and we, the users, cannot use php, access or ask for access to the DB, nor 'connect' something to the DB, weather that be internal or external, it cannot be done without DB Access, which we the users, cannot access the DB.
I'm sorry but forumotion uses custom coding, which does include very minor, if not obsolete php coding, and we, the users, cannot use php, access or ask for access to the DB, nor 'connect' something to the DB, weather that be internal or external, it cannot be done without DB Access, which we the users, cannot access the DB.
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: php on the HTML pages
Ahhh bummer, looks like it's time to migrate to my own host. I'm sorry for forumotion to lose 4k users. =/
mr_pleco- New Member
- Posts : 7
Reputation : 0
Language : English
Re: php on the HTML pages
Not so fast,mr_pleco wrote:Ahhh bummer, looks like it's time to migrate to my own host. I'm sorry for forumotion to lose 4k users. =/
You can use your own website host ( any host that supports php ) and upload your php files to that host, then use frames on your html page of your forumotion forum,
- Code:
<frameset><frame src="URL" /></frameset>
There! Everyone is happy,
Master Marc- Hyperactive
- Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: php on the HTML pages
Ahhh, frames are supported?
Ok, back to the experimenting again. =D
My problem was my test php code wasn't being rendered in the page in a <?php ?> tag, but I think that should work great in a frame. I'll let you know how it goes.
Ok, back to the experimenting again. =D
My problem was my test php code wasn't being rendered in the page in a <?php ?> tag, but I think that should work great in a frame. I'll let you know how it goes.
mr_pleco- New Member
- Posts : 7
Reputation : 0
Language : English
Re: php on the HTML pages
Hello,
PHP isn't supported on Forumotion so you can't directly add <?php...?> tags in your pages. However, you can host your PHP files on a remote host and add it via iframe to your forum.
But, by this way, you can't integrate an external application to the forum system. It can work in iframe only and can't edit/manipulate content of the forum pages.
PHP isn't supported on Forumotion so you can't directly add <?php...?> tags in your pages. However, you can host your PHP files on a remote host and add it via iframe to your forum.
But, by this way, you can't integrate an external application to the forum system. It can work in iframe only and can't edit/manipulate content of the forum pages.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: php on the HTML pages
ankillien wrote:Hello,
PHP isn't supported on Forumotion so you can't directly add <?php...?> tags in your pages. However, you can host your PHP files on a remote host and add it via iframe to your forum.
But, by this way, you can't integrate an external application to the forum system. It can work in iframe only and can't edit/manipulate content of the forum pages.
iframe looks like it might be fine. I would prefer to be able to add extra fields under their avatar that interacts with my database, but we're compensating for that with dynamically generated sigs. What I would like at this point is a leaderboard for the game on the forums directly and an iframe should work for that just fine, as it wouldn't require any logins or anything to get the info from my database.
mr_pleco- New Member
- Posts : 7
Reputation : 0
Language : English
Re: php on the HTML pages
You can do it
But you can't integrate your PHP system or database with Forumotions system or database. You can keep your leaderboard system separate
But you can't integrate your PHP system or database with Forumotions system or database. You can keep your leaderboard system separate
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: php on the HTML pages
Yes, they will be separate unless I decide in the end to go ahead and migrate. =)
I'm using facebook connect for the login on the game and if forumotion could integrate that then I would just be thrilled beyond belief, lol.
I'm using facebook connect for the login on the game and if forumotion could integrate that then I would just be thrilled beyond belief, lol.
mr_pleco- New Member
- Posts : 7
Reputation : 0
Language : English
Re: php on the HTML pages
Thats fine
Can I consider this topic as solved?
Can I consider this topic as solved?
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: php on the HTML pages
ankillien wrote:Thats fine
Can I consider this topic as solved?
Can I have 8 hours to get home and test it?
mr_pleco- New Member
- Posts : 7
Reputation : 0
Language : English
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Similar topics
» HTML Pages?
» HTML Page will not save in HTML Pages Management
» HTML Pages and HTML Templates: {VALUES}
» HTML Editor on HTML pages not there!
» help with html pages
» HTML Page will not save in HTML Pages Management
» HTML Pages and HTML Templates: {VALUES}
» HTML Editor on HTML pages not there!
» help with html pages
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum