SMF Garage
September 07, 2010, 06:59:20 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: RC1 is now available for download!  Download RC1!
 
   Forum   Garage Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help with non-default theme  (Read 540 times)
0 Members and 1 Guest are viewing this topic.
SirDriftAlot
Newbie
*
Offline Offline

Posts: 3
Learning


View Profile WWW
« on: January 05, 2010, 04:32:15 PM »

Hey guys/gals,
This mod rules supreme! I just need a little help editing my index.template.php file to run with my desired theme (Black Racer). I was reading about the directory edits but seem to have stumped myself....I am kind of a noob, but I know my way around php a "bit" <--keyword lol. If I could get a quick walkthru the editing process I'd be soo grateful! (I'm not running any other mods, just the garage and the new theme.)

Any help greatly appreciated!  Grin

Thx guys!
Connor
Logged

http://www.hazardlines.com/garage/

Trying to learn:

A) How to correctly position my 'Garage' tap in the main menu

B) How to add a custom background to my theme
cfultz
Newbie
*
Offline Offline

Posts: 4

View Profile
« Reply #1 on: January 08, 2010, 05:40:17 PM »

Check this site out, PackageParser. What you do is upload the package, it strips out the modification.xml and reads it. You can even have the option just to show you the theme relevant stuff. Hope this helps!
Logged
SirDriftAlot
Newbie
*
Offline Offline

Posts: 3
Learning


View Profile WWW
« Reply #2 on: January 10, 2010, 03:18:58 AM »

Thank you very much cfultz! This looks promising.. one snag along my way.

I couldn't find the following '4' lines of code while editing my new themes index.template.php file.

[UPDATE/EDIT]

I guess I'm more of a noob than I thought.. I managed to download a 2.0 RC2 theme, which obviously won't work with 1.1.11 (My current version). I downloaded the proper files, made the edits and got it working.

Thx again cfultz! The Parser made it much easier for a beginner such as my self to find/edit the correct script.

----------------

'1'
Can't Find:
Code:
, 'viewmembers'

(Add after:)
Code:
, 'garagesettings', 'garagemanagement'

----------------

'2'
Can't Find:
Code:
$current_action = 'search';

(Add after:)
Code:

    if ($context['current_action'] == 'garage')
        $current_action = 'garage';

----------------

'3'
Can't Find:
Code:
// Work out where we currently are.

(Add before:)
Code:
// We need loadSmfgConfig()
require_once('GarageFunctions.php');

// Load settings
loadSmfgConfig();
 

----------------

'4'
Can't Find:
Code:
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

(Add after:)
Code:

           
    // Show the [garage] button.
    if(!$smfgSettings['disable_garage'] || allowedTo(array('manage_garage_settings', 'manage_garage'))) {
    echo ($current_action=='garage' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
                <td valign="top" class="maintab_' , $current_action == 'garage' ? 'active_back' : 'back' , '">
                    <a href="', $scripturl, '?action=garage">' , $txt['smfg_garage'] , '</a>
                </td>' , $current_action == 'garage' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
    }

----------------


[UPDATE/EDIT]

I guess I'm more of a noob than I thought.. I managed to download a 2.0 RC2 theme, which obviously won't work with 1.1.11 (My current version). I downloaded the proper files, made the edits and got it working.

Thx again cfultz! The Parser made it much easier for a beginner such as my self to find/edit the correct script.

« Last Edit: January 12, 2010, 02:40:13 PM by SirDriftAlot » Logged

http://www.hazardlines.com/garage/

Trying to learn:

A) How to correctly position my 'Garage' tap in the main menu

B) How to add a custom background to my theme
macro
Newbie
*
Offline Offline

Posts: 4

View Profile
« Reply #3 on: June 09, 2010, 06:28:53 AM »

Thanks for sharing your coments.
Great post..For cheap Zhu Zhu pets please see  the Zhu Zhu pets video hamsters site where you can buy Zhu Zhu hamsters at low prices.
« Last Edit: June 11, 2010, 11:57:25 PM by macro » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!