Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Pimp My Site! > Embedded Video Help
~Sarrita~ (New Admin) 5/22/2008 6:24 AM EST : Embedded Video Help
~Sarrita~
Posts: 64
Posts With Wolves

Right now I have a youtube video embedded on the home page of my guild site. Is there any way to center the video within the content box? At the moment, it's aligned to the left with the rest of the text located above it.
TopBottom

Everdark (MVP) 5/22/2008 8:29 AM EST : RE: Embedded Video Help
GuildPortal MVP
Everdark
Posts: 3950
Zomgawsh Poster

Switch to HTML mode ( in the lower left), find your embed code, immediately before it place the tag <p align=center>, then immediately following the embed code place </p>

"The person who says it cannot be done should not interrupt the person doing it." 

 
Everdark (T), Evadarr, Nevinn (AC), Soninn, Croninn, Zakarr, Avirded (SC)
TopBottom

~Sarrita~ (New Admin) 5/22/2008 9:12 AM EST : RE: Embedded Video Help
~Sarrita~
Posts: 64
Posts With Wolves

Hmmm, I must be doing something wrong. This is what I have in the html tab:

<p align=center><embed src="http://www.youtube.com/v/odzlxDqaMns&amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></p>

The video still isn't centered though  =/
TopBottom

Everdark (MVP) 5/22/2008 11:56 AM EST : RE: Embedded Video Help
GuildPortal MVP
Everdark
Posts: 3950
Zomgawsh Poster

Hmmm, I think you need a </embed> before the </p>


Edit: Ok, I just checked and while it works on IE, it doesn't on Firefox. Plus Firefox doesn't seem to require the </embed> remark.

Gonna check something on another site...

Edit #2: Ok, I made a html file with notepad and apparently the centering will work on the text, just not the embed code. I wanted to rule out any possible GP editor issue.

Maybe a more experienced Firefox user would know (I've only been using it for two days)

Edit #3: Ok, looks like it works in a table. Add <table align="center"><tbody><tr><td> before the embed code and </td></tr></tbody></table> after it.

For your code, it will look like:

<table align="center"><tbody><tr><td><embed src="http://www.youtube.com/v/odzlxDqaMns&amp;hl=en"type="application/x-shockwave-flash" wmode="transparent" height="355"width="425"></td></tr></tbody></table>

You could also do this in Design mode () using Insert Table (Insert Tableat the top) and make a single box. Then click on your embedded video, Cut and Paste it into the table square. Click on the inside of the table, then click Align Center (Align Center).

"The person who says it cannot be done should not interrupt the person doing it." 

 
Everdark (T), Evadarr, Nevinn (AC), Soninn, Croninn, Zakarr, Avirded (SC)
TopBottom

~Sarrita~ (New Admin) 5/22/2008 1:26 PM EST : RE: Embedded Video Help
~Sarrita~
Posts: 64
Posts With Wolves

Great, that worked perfectly! Thanks for your help 
TopBottom

Everdark (MVP) 5/23/2008 12:42 AM EST : RE: Embedded Video Help
GuildPortal MVP
Everdark
Posts: 3950
Zomgawsh Poster

You're welcome. I learned something too.

"The person who says it cannot be done should not interrupt the person doing it." 

 
Everdark (T), Evadarr, Nevinn (AC), Soninn, Croninn, Zakarr, Avirded (SC)
TopBottom

Everdark (MVP) 5/23/2008 1:52 AM EST : RE: Embedded Video Help
GuildPortal MVP
Everdark
Posts: 3950
Zomgawsh Poster

I also found that <div style=center>embed code</div> works as well.

Edit: Apparently they fixed the centering bug. Before, when I selected something and clicked Center Align, it aligned the whole page. Now you can click the video, click center align, and it only centers the vid. In HTML, it places the above tags.

"The person who says it cannot be done should not interrupt the person doing it." 

 
Everdark (T), Evadarr, Nevinn (AC), Soninn, Croninn, Zakarr, Avirded (SC)
TopBottom

Ciannon (Guild Admin) 6/6/2008 9:14 PM EST : RE: Embedded Video Help
Ciannon
Posts: 2000
Zomgawsh Poster

I know you solved the problem, but here's another fix.

If you go to the normal view, not the HTML view - Click on the Java Emblem (it will be fairly big... can't miss it) and click on the center align button in the editor.

D'oh, didn't read the post above this on... I fail.


Epic quotes from Coils:

"lol out of money. I bought my system and forgot to factor in the cost of the game." - Coils 7/14/2008
"No money totaled my car. Cant play. Probly selling my computer. Adios." - Coils 8/25/2008


TopBottom

Everdark (MVP) 6/6/2008 9:21 PM EST : RE: Embedded Video Help
GuildPortal MVP
Everdark
Posts: 3950
Zomgawsh Poster

Hehehe, my post went through so many incarnations, it's understandable.

I didn't want to leave it sounding so complicated after I found out the simple way.

"The person who says it cannot be done should not interrupt the person doing it." 

 
Everdark (T), Evadarr, Nevinn (AC), Soninn, Croninn, Zakarr, Avirded (SC)
TopBottom

Ciannon (Guild Admin) 6/6/2008 10:17 PM EST : RE: Embedded Video Help
Ciannon
Posts: 2000
Zomgawsh Poster

Everdark said:
Hehehe, my post went through so many incarnations, it's understandable.

I didn't want to leave it sounding so complicated after I found out the simple way.


LOL


Epic quotes from Coils:

"lol out of money. I bought my system and forgot to factor in the cost of the game." - Coils 7/14/2008
"No money totaled my car. Cant play. Probly selling my computer. Adios." - Coils 8/25/2008


TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%