Free Adult Tube-Video Script Forum
Category under video on videos page - Printable Version

+- Free Adult Tube-Video Script Forum (http://freeadultscript.com/forum)
+-- Forum: My Category (/forumdisplay.php?fid=1)
+--- Forum: Tutorials (/forumdisplay.php?fid=8)
+--- Thread: Category under video on videos page (/showthread.php?tid=303)



Category under video on videos page - Punktured - 30-03-2011 06:21 AM

To do this, we one have to exchange one line of code.
This code is in the functions file, which is located at
/include/functions.php

The two lines we change in functions.php are the same,
so once you find the first one,
the second one is just a bit further down in the code.

Find this line, in the function "tablo()":
Code:
$data=$data.'<td  valign="top"><a  href="'.$root_url.$linki.'"><div align="center"><img multiple_thumbnail_url="g" class="video-thumb" border="0" src="'.$root_url.'img/thumb/'.$row['v_id'].'_0.jpg" num="'.$row['num'].'" id="thumb'.($i+1).'" alt="'.urldecode($row['title']).'" width="160" height="120" /></div>'.urldecode($row['title']).'</a></td>';

change that, to:
Code:
$cat_id = $row['category'];
$result2 = mysql_query("select * from category where `id` = '$cat_id'");
$cat_tot = mysql_num_rows($result2);
while ($row2 = mysql_fetch_array($result2))
{
$category = urldecode($row2['category']);
}    
$data=$data.'<td  valign="top"><a  href="'.$root_url.$linki.'"><div align="center"><img multiple_thumbnail_url="g" class="video-thumb" border="0" src="'.$root_url.'img/thumb/'.$row['v_id'].'_0.jpg" num="'.$row['num'].'" id="thumb'.($i+1).'" alt="'.urldecode($row['title']).'" width="160" height="120" /></div>'.urldecode($row['title']).'</a><br>Category: '.$category.'</td>';

NOTE: Be sure to clear your cache files for the changes to take effect.


RE: Category under video on videos page - tattooz - 31-12-2011 06:55 AM

Would this still work for version 3?
Yes it does....


RE: Category under video on videos page - Punktured - 31-12-2011 07:06 AM

sure does :-)

i think i will make a poll, asking is users want this and views placed under the videos permanently.


RE: Category under video on videos page - tattooz - 31-12-2011 07:09 AM

I know I do