A new version of the GSB Addon has been released for the SGS v0.8. The old version for SGS v0.7 has been moved to the new archive folder. Download the new version here.
We have updated all our SGS templates to support the new SGS v0.8. If you have not yet purchased the lifetime access to our SGS templates, then get yours today! We have lowered our price to only 19.95$.
This guide will show you how you can add custom genre categrories to your Satellite Gamesite System. These categories can be genres such as Adventure, Shooter, Mystery etc. The full official list can be viewed here, and some additional genres can be located here(search for $bfg_genres = array).
For SGS v0.7 so far the new categories seems to work only for the ones with the genres that has the option ispri: yes. With the SGS v0.8 all these categories have been included and by following this tutorial all the other categories can be added.
SGS v0.7
In this guide we will add the Strategy category with genreid=29 . You can follow the steps to add any of the categories by using their correct sname and genreid.
The following files need editing: \browse.php \download-games.php \online-games.php \template\{Template_Name}\main_online.php \language\en\en_language.php \include\site_game.class.php
\browse.php Search for the following line:
foreach(array(1=>'action',2=>'jigsaw',3=>'mahjong',4=>'puzzle',5=>'card',6=>'word') as $key=>$genre)
Add another argument with 29=>'strategy'
foreach(array(1=>'action',2=>'jigsaw',3=>'mahjong',4=>'puzzle',5=>'card',6=>'word', 29=>'strategy') as $key=>$genre)
\download-games.php Search for the following line:
If you want the new category to be listed as well add {STRATEGY_GAMES}
\language\en\en_language.php Find the following lines:
'genre_info_5_caption'=>'Card & Board', 'genre_info_5_text'=>'Classic and familiar games with innovative twists.', 'genre_info_6_caption'=>'Word', 'genre_info_6_text'=>'Work out your brain with ubiquitous word games.', 'genre_info_253_caption'=>'All', 'genre_info_253_text'=>'Our game archive, a new game added daily!',
Add
'genre_info_29_caption'=>'Strategy', 'genre_info_29_text'=>'Strategically minded? Play the best Strategy Games available online for download.',
The code should look now like this:
'genre_info_5_caption'=>'Card & Board', 'genre_info_5_text'=>'Classic and familiar games with innovative twists.', 'genre_info_6_caption'=>'Word', 'genre_info_6_text'=>'Work out your brain with ubiquitous word games.', 'genre_info_29_caption'=>'Strategy', 'genre_info_29_text'=>'Strategically minded? Play the best Strategy Games available online for download.', 'genre_info_253_caption'=>'All', 'genre_info_253_text'=>'Our game archive, a new game added daily!',
/** * index feature game text */ 'index_feature_glrelease'=>'Today\'s New Release', 'index_feature_glrank'=>'#1 Hit Game', 'index_feature_action'=>'#1 Hit Game', 'index_feature_card'=>'#1 Hit Game', 'index_feature_mahjong'=>'#1 Hit Game', 'index_feature_puzzle'=>'#1 Hit Game', 'index_feature_word'=>'#1 Hit Game', /**
Add 'index_feature_strategy'=>'#1 Hit Game',
/** * index feature game text */ 'index_feature_glrelease'=>'Today\'s New Release', 'index_feature_glrank'=>'#1 Hit Game', 'index_feature_action'=>'#1 Hit Game', 'index_feature_card'=>'#1 Hit Game', 'index_feature_mahjong'=>'#1 Hit Game', 'index_feature_puzzle'=>'#1 Hit Game', 'index_feature_word'=>'#1 Hit Game', 'index_feature_strategy'=>'#1 Hit Game', /**
\include\site_game.class.php Find the following lines:
When you are done the following links should work: download-games.php?games=strategy and browse.php?genre=strategy , and if you choose to include it, the online-games.php page should display a box with the strategy games that can be played online.
SEO option enabled
To make the new categories work with the SEO option you also have to edit the .htaccess file in the main folder of your SGS script.
In this guide we will add the Shooter category . You can follow the steps to add any of the categories by using their correct sname from the lists provided on this guide.
The following file need editing: \_include\site_genre.class.php