The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

php on the HTML pages

5 posters

Go down

php on the HTML pages Empty php on the HTML pages

Post by mr_pleco March 21st 2010, 8:33 pm

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
avatar
mr_pleco
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by Rok March 24th 2010, 1:28 am

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
Rok
Energetic

Male Posts : 6823
Reputation : 234
Language : idk

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by mr_pleco March 24th 2010, 3:22 am

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?
avatar
mr_pleco
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by Darren1 March 24th 2010, 4:44 am

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.
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by mr_pleco March 24th 2010, 1:41 pm

Ahhh bummer, looks like it's time to migrate to my own host. I'm sorry for forumotion to lose 4k users. =/
avatar
mr_pleco
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by Master Marc March 24th 2010, 2:02 pm

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. =/
Not so fast, pirat

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, Wink

Code:
<frameset><frame src="URL" /></frameset>

There! Everyone is happy, Wink
Master Marc
Master Marc
Hyperactive

Male Posts : 3661
Reputation : 47
Language : English and Spanish.

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by mr_pleco March 24th 2010, 2:45 pm

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.
avatar
mr_pleco
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by ankillien March 24th 2010, 5:03 pm

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.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by mr_pleco March 24th 2010, 5:09 pm

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.
avatar
mr_pleco
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by ankillien March 24th 2010, 5:12 pm

You can do it Smile

But you can't integrate your PHP system or database with Forumotions system or database. You can keep your leaderboard system separate Very Happy
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by mr_pleco March 24th 2010, 5:21 pm

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.
avatar
mr_pleco
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by ankillien March 24th 2010, 5:30 pm

Thats fine Very Happy

Can I consider this topic as solved?
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by mr_pleco March 24th 2010, 5:35 pm

ankillien wrote:Thats fine Very Happy

Can I consider this topic as solved?

Can I have 8 hours to get home and test it?
avatar
mr_pleco
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

php on the HTML pages Empty Re: php on the HTML pages

Post by ankillien March 24th 2010, 5:38 pm

Sure Very Happy
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum