Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Gazelle (http://www.bvlist.com/forumdisplay.php?f=40)
-   -   Gazelle category (http://www.bvlist.com/showthread.php?t=10186)

afterbit 2nd January 2015 18:44

Gazelle category
 
Hi everybody!

First of all, I have a bad English, sorry..

I would like to create a new category. I write it in the config.php, here:

$Categories = array('Music', 'Applications', 'E-Books', 'Audiobooks', 'E-Learning Videos', 'Comedy', 'Comics', 'bbbbb');

And I restart apache, sphinx, memcache, and the categories still wrong.

I write it in upload.php, but when I click "Torrent", the categories only this:
Music, app, e-book..... So bbbbb category is miss.

Where write the new category? Or anything servers restart?

And I write bbbbb category name to the ajax/upload.php, and sectrions/torrents/edit.php

I hope it was understandable

firefly007 2nd January 2015 21:24

No adding cat are a little more complicated then that.

You need to edit /classes/config

and edit add what you want to

PHP Code:

$Categories 

And
PHP Code:

$CategoryIcons 

So it looks something like this

PHP Code:

$Categories = array('Music''Applications''E-Books''Audiobooks''E-Learning Videos''Movies|HD','TV|SD','TV|SD_x264','TV|HD_x264','GAME|PC','Movies|DVD','Movies|XVID','AUDIO|MP3','Comedy','Comics');
$CategoryIcons = array('music.png''tv264.png''apps.png''ebook.png''audiobook.png''elearning.png''movieshd.png''comedy.png''comics.png'); 

Then make sure you have the cat icons in the cat folder

You will need to edit /sections/upload/upload.php

and add the cats to the case statement

So it looks something like this

PHP Code:

switch ($UploadForm) {
    case 
'Music':
        
$TorrentForm->music_form($GenreTags);
        break;
        
    case 
'Audiobooks':
    case 
'Comedy':
        
$TorrentForm->audiobook_form();
        break;
    
    case 
'Applications':
    case 
'Comics':
    case 
'E-Books':
    case 
'E-Learning Videos':
    case 
'Movies|HD':
    case 
'Movies|SD':
    case 
'Movies|DVD':
    case 
'Movies|XVID':
    case 
'TV|SD':
    case 
'TV|SD_x264':
    case 
'TV|HD_x264':
    case 
'GAME|PC':
    case 
'AUTO|MP3':
        
$TorrentForm->simple_form($Properties['CategoryID']);
        break;
    default:
        
$TorrentForm->music_form($GenreTags);



DND 2nd January 2015 21:26

i totally agree :)

afterbit 3rd January 2015 10:09

Quote:

Originally Posted by firefly007 (Post 45921)
No adding cat are a little more complicated then that.

You need to edit /classes/config

and edit add what you want to

PHP Code:

$Categories 

And
PHP Code:

$CategoryIcons 

So it looks something like this

PHP Code:

$Categories = array('Music''Applications''E-Books''Audiobooks''E-Learning Videos''Movies|HD','TV|SD','TV|SD_x264','TV|HD_x264','GAME|PC','Movies|DVD','Movies|XVID','AUDIO|MP3','Comedy','Comics');
$CategoryIcons = array('music.png''tv264.png''apps.png''ebook.png''audiobook.png''elearning.png''movieshd.png''comedy.png''comics.png'); 

Then make sure you have the cat icons in the cat folder

You will need to edit /sections/upload/upload.php

and add the cats to the case statement

So it looks something like this

PHP Code:

switch ($UploadForm) {
    case 
'Music':
        
$TorrentForm->music_form($GenreTags);
        break;
        
    case 
'Audiobooks':
    case 
'Comedy':
        
$TorrentForm->audiobook_form();
        break;
    
    case 
'Applications':
    case 
'Comics':
    case 
'E-Books':
    case 
'E-Learning Videos':
    case 
'Movies|HD':
    case 
'Movies|SD':
    case 
'Movies|DVD':
    case 
'Movies|XVID':
    case 
'TV|SD':
    case 
'TV|SD_x264':
    case 
'TV|HD_x264':
    case 
'GAME|PC':
    case 
'AUTO|MP3':
        
$TorrentForm->simple_form($Properties['CategoryID']);
        break;
    default:
        
$TorrentForm->music_form($GenreTags);




I make it, but the new cat still missing.

If i remove config.php, the site hasn't got any errors.
Whatt is the problem???

firefly007 3rd January 2015 10:19

Remove all the Mysql password (sensitive data)

and paste the complete modified config.php here and please use the PHP bbcode.

DND 3rd January 2015 10:20

did ya empty the memcache for categories ?
see in the footer to clear cache and choose the categories stuff.

afterbit 3rd January 2015 10:23

PHP Code:

<?php
if (PHP_VERSION_ID 50400) {
    die(
"Gazelle requires PHP 5.4 or later to function properly");
}
date_default_timezone_set('UTC');

// Main settings
define('SITE_NAME''***'); //The name of your site
define('NONSSL_SITE_URL''**'); //The FQDN of your site
define('SSL_SITE_URL''***'); //The FQDN of your site, make this different if you are using a subdomain for ssl
define('SITE_IP''IP'); //The IP address by which your site can be publicly accessed
define('SERVER_ROOT''/var/www/virtual/***/htdocs'); //The root of the server, used for includes, purpose is to shorten the path string
define('ANNOUNCE_URL''http://'.NONSSL_SITE_URL.':2710'); //Announce URL

// Allows you to run static content off another server. Default is usually what you want.
define('NONSSL_STATIC_SERVER''static/');
define('SSL_STATIC_SERVER''static/');

// Keys
define('ENCKEY''**'); //Random key. The key for encryption
define('SITE_SALT''*'); //Random key. Default site wide salt for passwords, DO NOT LEAVE THIS BLANK/CHANGE AFTER LAUNCH!
define('SCHEDULE_KEY''*'); // Random key. This key must be the argument to schedule.php for the schedule to work.
define('RSS_HASH''*'); //Random key. Used for generating unique RSS auth key.

// MySQL details
define('SQLHOST''localhost'); //The MySQL host ip/fqdn
define('SQLLOGIN''*');//The MySQL login
define('SQLPASS''*'); //The MySQL password
define('SQLDB''gazelle'); //The MySQL database to use
define('SQLPORT'3306); //The MySQL port to connect on
define('SQLSOCK''/var/run/mysqld/mysqld.sock');

// Memcached details
$MemcachedServers = array(
    
// unix sockets are fast, and other people can't telnet into them
    
array('host' => 'unix:///var/run/memcached.sock''port' => 0'buckets' => 1),
);

// Sphinx details
define('SPHINX_HOST''localhost');
define('SPHINX_PORT'9312);
define('SPHINXQL_HOST''127.0.0.1');
define('SPHINXQL_PORT'9306);
define('SPHINXQL_SOCK'false);
define('SPHINX_MAX_MATCHES'1000); // Must be <= the server's max_matches variable (default 1000)
define('SPHINX_INDEX''torrents');

// Ocelot details
define('TRACKER_HOST''localhost');
define('TRACKER_PORT'2710);
define('TRACKER_SECRET''*'); // Must be 32 characters and match site_password in Ocelot's config.cpp
define('TRACKER_REPORTKEY''*'); // Must be 32 characters and match report_password in Ocelot's config.cpp

if (!empty($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 80) {
    
define('SITE_URL'NONSSL_SITE_URL);
    
define('STATIC_SERVER'NONSSL_STATIC_SERVER);
} else {
    
define('SITE_URL'SSL_SITE_URL);
    
define('STATIC_SERVER'SSL_STATIC_SERVER);
}

// Site settings
define('CRYPT_HASH_PREFIX''$2y$07$');
define('DEBUG_MODE'false); //Set to false if you dont want everyone to see debug information, can be overriden with 'site_debug'
define('DEBUG_WARNINGS'true); //Set to true if you want to see PHP warnings in the footer
define('OPEN_REGISTRATION'true); //Set to false to disable open regirstration, true to allow anyone to register
define('USER_LIMIT'5000); //The maximum number of users the site can have, 0 for no limit
define('STARTING_INVITES'0); //# of invites to give to newly registered users
define('BLOCK_TOR'false); //Set to true to block Tor users
define('BLOCK_OPERA_MINI'false); //Set to true to block Opera Mini proxy
define('DONOR_INVITES'2);

// User class IDs needed for automatic promotions. Found in the 'permissions' table
// Name of class    Class ID (NOT level)
define('ADMIN',        '1');
define('USER',        '2');
define('MEMBER',    '3');
define('POWER',        '4');
define('ELITE',        '5');
define('VIP',        '6');
define('TORRENT_MASTER','7');
define('LEGEND',    '8');
define('CELEB',        '9');
define('MOD',        '11');
define('DESIGNER',    '13');
define('CODER',        '14');
define('SYSOP',        '15');
define('ARTIST',    '19');
define('DONOR',        '20');
define('FLS_TEAM',    '21');
define('POWER_TM',    '22');
define('ELITE_TM',    '23');
define('FORUM_MOD',    '28');

/// Pagination
define('TORRENT_COMMENTS_PER_PAGE'10);
define('POSTS_PER_PAGE'25);
define('TOPICS_PER_PAGE'50);
define('TORRENTS_PER_PAGE'50);
define('REQUESTS_PER_PAGE'25);
define('MESSAGES_PER_PAGE'25);
define('LOG_ENTRIES_PER_PAGE'50);

// Cache catalogues
define('THREAD_CATALOGUE'500); // Limit to THREAD_CATALOGUE posts per cache key.

// IRC settings
define('BOT_NICK''');
define('BOT_SERVER'''); // IRC server address. Used for onsite chat tool.
define('BOT_PORT'6667);
define('BOT_CHAN''#'.NONSSL_SITE_URL);
define('BOT_ANNOUNCE_CHAN''#');
define('BOT_STAFF_CHAN''#');
define('BOT_DISABLED_CHAN''#'); // Channel to refer disabled users to.
define('BOT_HELP_CHAN''#');
define('BOT_DEBUG_CHAN''#');
define('BOT_REPORT_CHAN''#');
define('BOT_NICKSERV_PASS''');
define('BOT_INVITE_CHAN'BOT_CHAN.'-invites'); // Channel for non-members seeking an interview
define('BOT_INTERVIEW_CHAN'BOT_CHAN.'-interview'); // Channel for the interviews
define('BOT_INTERVIEW_NUM'5);
define('BOT_INTERVIEW_STAFF'BOT_CHAN.'-interviewers'); // Channel for the interviewers
define('SOCKET_LISTEN_PORT'51010);
define('SOCKET_LISTEN_ADDRESS''localhost');
define('ADMIN_CHAN''#');
define('LAB_CHAN''#');
define('STATUS_CHAN''#');

// Miscellaneous values
define('RANK_ONE_COST'5);
define('RANK_TWO_COST'10);
define('RANK_THREE_COST'15);
define('RANK_FOUR_COST'20);
define('RANK_FIVE_COST'30);
define('MAX_RANK'6);
define('MAX_EXTRA_RANK'8);
define('DONOR_FORUM_RANK'6);
define('DONOR_FORUM'70);
define('MAX_SPECIAL_RANK'3);

$ForumsRevealVoters = array();
$ForumsDoublePost = array();

$Categories = array('Music''App''E-Books''Audiobooks''E-Learning Videos''Comedy''Comics''teszt');
$GroupedCategories array_intersect(array('Music'), $Categories);
$CategoryIcons = array('music.png''apps.png''ebook.png''audiobook.png''elearning.png''comedy.png''comics.png''teszt.png');

$Formats = array('MP3''FLAC''Ogg Vorbis''AAC''AC3''DTS');
$Bitrates = array('192''APS (VBR)''V2 (VBR)''V1 (VBR)''256''APX (VBR)''V0 (VBR)''q8.x (VBR)''320''Lossless''24bit Lossless''Other');
$Media = array('CD''DVD''Vinyl''Soundboard''SACD''DAT''Cassette''WEB');

$CollageCats = array(0=>'Personal'1=>'Theme'2=>'Genre introduction'3=>'Discography'4=>'Label'5=>'Staff picks'6=>'Charts'7=>'Artists');

$ReleaseTypes = array(1=>'Album'3=>'Soundtrack'5=>'EP'6=>'Anthology'7=>'Compilation'9=>'Single'11=>'Live album'13=>'Remix'14=>'Bootleg'15=>'Interview'16=>'Mixtape'21=>'Unknown');
//$ForumCats = array(1=>'Site', 5=>'Community', 10=>'Help', 8=>'Music', 20=>'Trash'); //No longer needed

$ZIPGroups = array(
    
=> 'MP3 (VBR) - High Quality',
    
=> 'MP3 (VBR) - Low Quality',
    
=> 'MP3 (CBR)',
    
=> 'FLAC - Lossless',
    
=> 'Others'
);

//3D array of attributes, OptionGroup, OptionNumber, Name
$ZIPOptions = array(
    
'00' => array(00'V0'),
    
'01' => array(01'APX'),
    
'02' => array(02'256'),
    
'03' => array(03'V1'),
    
'10' => array(10'224'),
    
'11' => array(11'V2'),
    
'12' => array(12'APS'),
    
'13' => array(13'192'),
    
'20' => array(20'320'),
    
'21' => array(21'256'),
    
'22' => array(22'224'),
    
'23' => array(23'192'),
    
'30' => array(30'FLAC / 24bit / Vinyl'),
    
'31' => array(31'FLAC / 24bit / DVD'),
    
'32' => array(32'FLAC / 24bit / SACD'),
    
'33' => array(33'FLAC / Log (100) / Cue'),
    
'34' => array(34'FLAC / Log (100)'),
    
'35' => array(35'FLAC / Log'),
    
'36' => array(36'FLAC'),
    
'40' => array(40'DTS'),
    
'41' => array(41'Ogg Vorbis'),
    
'42' => array(42'AAC - 320'),
    
'43' => array(43'AAC - 256'),
    
'44' => array(44'AAC - q5.5'),
    
'45' => array(45'AAC - q5'),
    
'46' => array(46'AAC - 192')
);

// Ratio requirements, in descending order
// Columns: Download amount, required ratio, grace period
$RatioRequirements = array(
    array(
50 1024 1024 10240.60date('Y-m-d H:i:s')),
    array(
40 1024 1024 10240.50date('Y-m-d H:i:s')),
    array(
30 1024 1024 10240.40date('Y-m-d H:i:s')),
    array(
20 1024 1024 10240.30date('Y-m-d H:i:s')),
    array(
10 1024 1024 10240.20date('Y-m-d H:i:s')),
    array(
1024 1024 1024,  0.15date('Y-m-d H:i:s'time() - (60 60 24 14)))
);

//Captcha fonts should be located in /classes/fonts
$CaptchaFonts = array(
        
'ARIBLK.TTF',
        
'IMPACT.TTF',
        
'TREBUC.TTF',
        
'TREBUCBD.TTF',
        
'TREBUCBI.TTF',
        
'TREBUCIT.TTF',
        
'VERDANA.TTF',
        
'VERDANAB.TTF',
        
'VERDANAI.TTF',
        
'VERDANAZ.TTF');
//Captcha images should be located in /captcha
$CaptchaBGs = array(
        
'captcha1.png',
        
'captcha2.png',
        
'captcha3.png',
        
'captcha4.png',
        
'captcha5.png',
        
'captcha6.png',
        
'captcha7.png',
        
'captcha8.png',
        
'captcha9.png');

// Special characters, and what they should be converted to
// Used for torrent searching
$SpecialChars = array(
        
'&' => 'and'
);
?>

@DND
I clear memcache, and i stop it, and the config.php miss. And the site has problem with memcache, after i strt memcache with 0 data, the cat is missing.
And the config.php is missing but the site hasn'g got any problem!! :(

whisp 26th January 2015 20:12

Code:

$Categories = array('Music', 'App', 'E-Books', 'Audiobooks', 'E-Learning Videos', 'Comedy', 'Comics', 'teszt');
$GroupedCategories = array_intersect(array('Music'), $Categories);
$CategoryIcons = array('music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png', 'teszt.png');


try like this

Code:

$Categories = array('Music', 'App', 'E-Books', 'Audiobooks', 'E-Learning Videos', 'Comedy', 'Comics', 'teszt');
$CategoryIcons = array('music.png', 'apps.png', 'ebook.png', 'audiobook.png', 'elearning.png', 'comedy.png', 'comics.png', 'teszt.png');
$GroupedCategories = array_intersect(array('Music'), $Categories);

hope that works.not sure thou. mine works fine with that config.

SuperTek 28th January 2015 23:11

Not Working for me...

whisp 31st January 2015 00:02

u sure u added categ in upload.php ?

afterbit pm me i can add categ for ya.

Bump: do that goto sections > ajax > upload > upload.php add ur category there it will show. :)

Bump:
Quote:

Originally Posted by whisp (Post 46268)
u sure u added categ in upload.php ?

afterbit pm me i can add categ for ya.

Bump: do that goto sections > ajax > upload > upload.php add ur category there it will show. :)

let me know if u get problems again.


All times are GMT +2. The time now is 20:14.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.