View Full Version : Random Videos Blocks
hiphop
11-29-2006, 03:44 AM
Hello, How can I switch the first Random Videos block with the second? Also how can I edit the name of the "Random Videos" title? I want the first block to be the 6 random vids with the pics and I want to then use the other for ads. Thanks in advance.:D
blank
11-29-2006, 02:06 PM
yeah you can... take a look through the templates ;) we can't walk you through every edit you do... You'll just have to get into the templates and try some things, make sure you make backups first of course ;)
hiphop
11-29-2006, 03:22 PM
I don't see why not, there are no instructions for it and i'm sure it could be useful to others.
blank
11-29-2006, 05:52 PM
find the box you want... copy it and paste it where you want it... Seriously just try some things youself.
as for changing the name Random videos simply browse through the templates until you find it...
If I actually went step by step on simple edits like this for EVERYBODY I wouldn't be able to get any real work done.
hiphop
11-29-2006, 06:08 PM
I'm not a seasoned vet like you. If I was a new member and asked the same question would you have answered it? Of course you would have! But since I have a huge 11 post maybe six of which have been dealing with problems, you won't answer the question? That makes no sense, it's not like there are a million people here. We are the testers of this, help us so we can showcase your product to others, that's all I ask.
All I think blank was trying to say, is you can basically look at the code, and know what to do. Or figure it out even.
You will notice in the code, the random videos, and ads have the same type of setup, and have the same code. And in the code, you will see the text "random videos" change that text to whichever you like.
This is the table for the ads:
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table3">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» Random Videos</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_16" style="">
<tr>
<td class="alt1"> <align="center">
<?php include 'ads/250x250box.tpl';
include 'ads/250x250box.tpl'; ?> </td>
</tr>
</tbody>
</table>
and this is the table for the random vids:
<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%" id="table9">
<thead>
<tr>
<td class="tcat"> <span class="smallfont"><strong>» Random Videos</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_17" style="">
<tr>
<td class="alt1"> <table width="100%" border="0" cellspacing="6" cellpadding="0">
<tr>
<td width="50%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="3" class="game">
<tbody>
<tr align="left" valign="top">
<?php
$count = 0;
$games = mysql_query("SELECT DISTINCT g.mId AS game_id, g.mName AS game_name, g.mThumb AS game_thumb, g.mDescription AS game_description, c.cName AS category_name FROM media g LEFT JOIN categories c ON c.cId=g.mCategory1 ORDER BY RAND() LIMIT 6");
while (list ($gameid, $gamename, $thumb, $description, $catname) = mysql_fetch_row($games)){
$gamename = substr($gamename,0,15);
$description = substr($description,0,45);
$filesize = @filesize("images/".$thumb);
if ($count == 2) {
?>
<tr align="left" valign="top">
<?php } ?>
<td align="center"><span class="normalText">
<?php
if ($seo_support == 1){ echo "<a href=\"play-$gameid.html\">"; } else {
echo "<a href=\"play.php?id=$gameid\">";}
?>
<img src="./images/<?php if ($filesize ==0){ echo "reel.gif";} else { echo"$thumb"; }?>" alt="<?php echo"$gamename"; ?>" width="60" height="60" hspace="5" vspace="5" border="0"></a></span></td>
<td class="normalText" width="33%"> <b>
<?php
if ($seo_support == 1){ echo "<a href=\"play-$gameid.html\">"; } else {
echo "<a href=\"play.php?id=$gameid\">";}
echo"$gamename"; ?>
</a></b><br>
<?php echo"$description"; ?><br>
<?php
if ($seo_support == 1){ echo "<a href=\"play-$gameid.html\" class=gameLink>"; } else {
echo "<a href=\"play.php?id=$gameid\" class=gameLink>";}
?>
<b>Play now!</b></a> </td>
<?php if ($count == 1) { ?>
</tr>
<?php }
if ($count == 2) {
$count = $count -1;
}elseif ($count == 0){
$count = $count +1;
}else {
$count = $count +1;
}
} ?>
</tbody>
</table></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
You would want to switch those 2. Now I have not tested this, so you will want to backup before proceeding.
hiphop
11-29-2006, 10:50 PM
It worked Kip thanks! You can see the linked image under the videos here: http://goodvideos.info
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.