$videos = explode("\n", $videos); // First we make an array of the videolist
$video = wptexturize( $videos[ mt_rand(0, count($videos) - 1 ) ] ); // Select a random video and make sure it contains regular text
$pieces = explode("@", $video); // Split the selected video into the various options
$show = $options[$number]['show']; // Get the setting on where to show the widget
$slug = $options[$number]['slug']; // Optional Slug/Title/PageID on where to show it
$width = $options[$number]['width']; // User specified with of player
$height = $options[$number]['height']; // User specified height of player
$videoformat = $options[$number]['format']; // 16:9 or 4:3 format of videos
$objecttype = 'application/x-shockwave-flash'; // Set the object type for inclusion in the object finally displayed
$mediaID = $pieces[0]; // place the mediaID in a variable

/* Print trailling credits. Not crucial for anything but support in marketing and credits to development efforts. */
$credits = '<br /><small><a href="http://www.daikos.net" title="'.$dvwVersion.'">Video Widget by Daiko</a></small>';

I think in this case, if we saw the actual website with the "off-center" title,
we could look at the HTML and then look at the script you provided, and see
where the best place to adjust would be.

This will probably end up being a modification to the CSS style sheet.

Do you have a link to the actual page?

maxn

08-10-2007, 08:06 PM

Absolutely. Here's the link (http://www.guitarblog.com). The title is at top-right, just above the randomly-selected YouTube video. It is actually annoyingly spread-out, so I figured a left alignment would cure that.

Thanks!

mlseim

08-10-2007, 09:30 PM

From what I can tell, this is the CSS style sheet you will be dealing with ...

Thanks mlseim. Does this mean that the "h2" is defined as centered in my stylesheet, and that's what is causing it?

My concern is that, if I change the h2 in the stylesheet just to accommodate this one line, it will surely mess with some other stuff around the site. What about adding a whole new thingie to the stylesheet (e.g. "h9") and then changing the php file so that it uses the h9 instead of the h2?

(as you can see, I have all the technical lingo down).

mlseim

08-10-2007, 10:30 PM

You are exactly correct.

If <h2> is used in other places, simply create a new one,
or do the CSS inline:

<h2 style='text-align:center;'> title </h2>

Here's the deal with that ... in the code you provided, that code is
using different functions to display the various parts. The <h2> is
in some other script or file (like the index.php file). You'll have to
locate that file and do the inline coding.

I would try the CSS style sheet first, as it seems the easiest solution.