PDA

View Full Version : Curious problem for HTML and PHPbb users and familiars


AlphaChicken
05-13-06, 01:22 AM
It starts with this convorsation with a friend. (You dont have to read the whole thing)

http://ahsbands.com/forum/viewtopic.php?p=115#115

This is a convo i had with one of my friends about my forum. I want to embed games into posts, so i can have my friends at school use the forum as a central hub type thing for all the things that would normally be blocked by firewalls.

My question:

WTH am i doing wrong?
I am using PHPbb forum set up on my friends personal web server.
I enabled HTML in posts.
The tags that are allowed are "b,i,u,pre,embed,body,html".

My HTML for embedding the flash game reads:

"< embed src="URL" width=400 height=300>"

then i changed it to:

"< html>< body>< embed src="URL" width=400 height=300></body></html>"

thinking that the body and HTML tags would work. (i added spaces to my code so it would show up as the code, not the actual thing).

It works on this site:
<html><body><embed src="http://mywebpages.comcast.net/kuzmanoff/new/images/copter.swf" width=400 height=300></body></html>

The funny thing is, is that when i click the preview button on my forum, it shows the flash game. When i click the submit button it doesnt show up. All that shows up is the coding.

I would really like this to work, its an odd problem. Me and my friend thought it was hotlinking that was stopping it from working, but it wasnt that b/c we did somthing from his site and that didnt work either. Then we also tried the body/html tags. I have no idea what else it could be. The only thing i can think of now is that my PHPbb version is out of date. Could this be it? Dont think so, but please give ur input.

AMDnewbie2005
05-13-06, 02:23 AM
418 Woot!...........sorry can't help ya bro

Yah 760!

NotMyBest2Day
05-13-06, 01:58 PM
It sounds like your forum software isn't parsing the HTML code. With PHP, you have to do:echo "Print just normal text like this, and mix in HTML coding in the midst of it such as &lt;b>this&lt;/b> or your &lt;embed> tags";You just don't have anything parsing either html in general, or the embed tag. It's probably something to do with the database that actually stores the posts.

Oo..maybe the database is storing the '<' and '>' as &amp;lt; and &amp;gt; instead of < or >. I knew if I rambled on long enough, I'd come up with the diagnosis. Now, the solution, I'unno.

[edit: Oh, and I got 2014. :p ]

AlphaChicken
05-13-06, 11:14 PM
ok so PHPbb doesnt seem to be working. I tried both of those things, i think that it just doesnt like embedding coding.

Is there any way at all that i can transfer everything about my forum--Posts, members, adress, etc--to another format of forum such as invision free?

NotMyBest2Day
05-13-06, 11:24 PM
No idea. I haven't gotten into the forum stuff yet. I have a book on PHP5 and MySQL, and that's what a friend of mine used for his forum years ago.