Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 10th April 2011, 12:03
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default help ts 5.6 category and subcategory
Click image for larger version

Name:	Capture.jpg
Views:	137
Size:	196.4 KB
ID:	2835

help me please is create cateacory and subcategory

my browse.php

browse.php

Last edited by DARCK; 10th April 2011 at 12:45.
Reply With Quote
  #2  
Old 11th April 2011, 19:37
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
hello darck

i believe you need genre mod ;)

take a search
Reply With Quote
  #3  
Old 11th April 2011, 20:00
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default
Quote:
Originally Posted by Marco View Post
hello darck

i believe you need genre mod ;)

take a search
I want to display the image of the categories and subcategories the image of the category It, but all same

Click image for larger version

Name:	Capture-3.jpg
Views:	70
Size:	295.2 KB
ID:	2838
Reply With Quote
  #4  
Old 12th April 2011, 05:30
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Talking
no use genre mod you already subcategory!


in this query

PHP Code:
$query sql_query("SELECT ".($torrentspeed == 'yes' '(t.size * t.times_completed + SUM(p.downloaded)) / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(t.added)) AS totalspeed,' '')." t.*, c.id as categoryid, c.image, c.name as categoryname, u.username, g.namestyle {$from} LEFT JOIN categories c ON (t.category=c.id) LEFT JOIN users u ON (t.owner=u.id) LEFT JOIN usergroups g ON (u.usergroup=g.gid) ".($torrentspeed == 'yes' 'LEFT JOIN peers p ON (t.id=p.torrent)' '')." WHERE ".($showvisible "t.visible = 'yes' AND " "")."t.banned = 'no'".(isset($extraqueries) ? $extraqueries '').{$groupby}{$orderbyvalue} $limit") or sqlerr(__FILE__,__LINE__); 
remplace by this:

PHP Code:
$query sql_query("SELECT ".($torrentspeed == 'yes' '(t.size * t.times_completed + SUM(p.downloaded)) / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(t.added)) AS totalspeed,' '')." t.*, c.id as categoryid, c.image, c.name as categoryname, c.pid as categorypid, u.username, g.namestyle {$from} LEFT JOIN categories c ON (t.category=c.id) LEFT JOIN users u ON (t.owner=u.id) LEFT JOIN usergroups g ON (u.usergroup=g.gid) ".($torrentspeed == 'yes' 'LEFT JOIN peers p ON (t.id=p.torrent)' '')." WHERE ".($showvisible "t.visible = 'yes' AND " "")."t.banned = 'no'".(isset($extraqueries) ? $extraqueries '').{$groupby}{$orderbyvalue} $limit") or sqlerr(__FILE__,__LINE__); 
and remplace

PHP Code:
$torrent_image '<a href="'.$seolink.'" target="_self" /><img src="'.$BASEURL.'/'.$pic_base_url.$table_cat.'/'.$torrents['image'].'" border="0" alt="'.$categoryinfo.'" title="'.$categoryinfo.'" /></a>'
by

PHP Code:
$torrent_image '<a href="'.$seolink.'" target="_self" /><img src="'.$BASEURL.'/'.$pic_base_url.$table_cat.'/'.$torrents['image'].'" border="0" alt="'.$categoryinfo.'" title="'.$categoryinfo.'" /></a>';
//////
        
$cimg3 sql_query("SELECT * FROM categories WHERE type='c' and id =" .$torrents['categorypid']);
         while(
$catimg=mysql_fetch_assoc($cimg3))
    {
        
$catimg2'<a href="'.$BASEURL.'/'.$catimg['name'].'-c-'.$catimg['id'].'.ts"><img src="'.$BASEURL.'/'.$pic_base_url.$table_cat.'/'.$catimg['image'].'" alt="" title="'.$catimg['name'].'"/></a>';
    }
///// 
so look the variable $catimg2 ;)

is work for me :bubble:

Last edited by lafouine022; 12th April 2011 at 06:30.
Reply With Quote
The Following User Says Thank You to lafouine022 For This Useful Post:
Marco (21st August 2013)
  #5  
Old 12th April 2011, 18:53
DARCK's Avatar
DARCK DARCK is offline
Senior Member
 
Join Date: Apr 2011
P2P
Posts: 69
Default subcategory
Quote:
Originally Posted by lafouine022 View Post
no use genre mod you already subcategory!
thank lafouine022

Click image for larger version

Name:	Capture-11.jpg
Views:	105
Size:	284.6 KB
ID:	2839

my browse.php
Attached Files
File Type: php browse.php (46.7 KB, 32 views)
Reply With Quote
  #6  
Old 12th April 2011, 21:56
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Wink
to save the SQL query use: /cache/category.php :secret:
Reply With Quote
Reply

Tags
category , subcategorie


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 04:38. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.