Customizing SMF > Theme Site Themes
Mystic Jade
Dumpling:
Hi,
I am having a lot of trouble trying to install mods on this theme. The package installer obviously wouldn't work. I have attempted manual installation following the instructions in the SMF Docs: Manual Installation of Mods and with the assistance of the SMF Package Parser. However, this theme does not contain all the files that certain mods require to be edited. Also, the codes/scripts in this theme's index.template.php file are quite dissimilar than the ones in the default theme. How may I install mods on this theme? :(
PS: Thank you for this beautiful theme; it is simple, yet sophisticated.
Bikken:
--- Quote from: king redder on October 18, 2007, 08:57:11 PM ---hey bikken
how would i add an arcade and a shop button?
and change the banner/logo to my banner/logo?
--- End quote ---
For the buttons, open index.template and find:
--- Code: --- if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
--- End code ---
add 'arcade', to that array. Then find:
--- Code: --- if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
--- End code ---
add after:
--- Code: --- // Begin SMFShop code
if ($context['current_action'] == 'shop')
$current_action = 'shop';
if (in_array($context['current_action'], array('shop_general', 'shop_items_add', 'shop_items_edit', 'shop_cat', 'shop_inventory', 'shop_restock', 'shop_usergroup')))
$current_action = 'admin';
// End SMFShop code
--- End code ---
Then add these lines somewhere between the other buttons:
--- Code: --- // SMFshop
echo '<li><a href="', $scripturl, '?action=shop">Shop</a></li>';
// SMF Arcade
echo '<li><a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a></li>';
--- End code ---
To change the logo, just replace logo.png in /images with your logo.
Bikken:
--- Quote from: Dumpling on October 28, 2007, 03:15:24 AM ---Hi,
I am having a lot of trouble trying to install mods on this theme. The package installer obviously wouldn't work. I have attempted manual installation following the instructions in the SMF Docs: Manual Installation of Mods and with the assistance of the SMF Package Parser. However, this theme does not contain all the files that certain mods require to be edited. Also, the codes/scripts in this theme's index.template.php file are quite dissimilar than the ones in the default theme. How may I install mods on this theme? :(
PS: Thank you for this beautiful theme; it is simple, yet sophisticated.
--- End quote ---
What mods are we talking about?
You only have to edit this themes index.template file. The other files are used from the default theme.
Dumpling:
Hi Bikken,
Thanks for the clarification about how "the other files are used from the default theme." That actually helped me figure out some of the "problems." ;D I'm still really new to this whole forum thing; sorry for being a noob :P Now, I'm only having trouble with one mod, Ad Management v2.3.
Edit:
Here are the mods that I was trying to install (I didn't have trouble with all of them, but several -- they gave me quite a headache :P )
Contact Page 1.1 [very easy to install; installed on Mystic Jade]
PaypalDonations 1.7 [ had some problems on both Mystic Jade and default theme, but it's fixed now]
Prevent Adding Signature Images And Links 1.1 [installed on default theme, but seems to work fine on Mystic Jade]
Profile Comments 1.3.5 [installed on default theme, but seems to work fine on Mystic Jade too]
Referrals Mod 1.4 [installed on default theme, but seems to work fine on Mystic Jade too]
SMF 1.1.4 Search "brd" Bug Fix 1.0 [I think this one doesn't have anything to do with the theme...right?]
VisualWarning 1.4.1 [installed on default theme, but seems to work fine on Mystic Jade, too]
Bikken:
No problem Dumpling, glad i could help. :)
For Ad Management mod, you might want to read this topic.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version