SMF Shop
SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on July 29, 2006, 03:56:28 pm
-
This theme was released less than a week ago, and I've already done a shop button for it :P
Anyways, this theme reminds me of the 'Oxygen' theme by Bloc, in the way that it handles the buttons using CSS...
The file for the button is attached to this post. Please save it to Themes/Aa_New_Damage/images/menu_shop.gif
Code modifications:
Open Themes/Aa_New_Damage/index.template.php
Find (line 575):
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-calendar"><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>' , $current_action == 'calendar' ? '' : '';
Add after:
// SMFShop
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-shop"><a href="', $scripturl, '?action=shop">Shop</a></li>' , $current_action == 'shop' ? '' : '';
Now, on to the CSS. Open Themes/Aa_New_Damage/style.css
Find:
.main-navigation li.mainNav-calendar
{
width:72px;
background: url(images/menu_calender.gif) 0 -18px no-repeat;
}
.main-navigation li.mainNav-calendar a
{
width:72px;
background: url(images/menu_calender.gif) 0 0 no-repeat;
}
.main-navigation li.mainNav-calendar a:hover
{
background: transparent;
}
Add after
/* SMFShop */
.main-navigation li.mainNav-shop
{
width:59px;
background: url(images/menu_shop.gif) 0 -18px no-repeat;
}
.main-navigation li.mainNav-shop a
{
width:59px;
background: url(images/menu_shop.gif) 0 0 no-repeat;
}
.main-navigation li.mainNav-shop a:hover
{
background: transparent;
}
/* End SMFShop */
Then, your Shop button should be working :)
-
Thanks mate! working a charm all i need to do now is go into that part of this site that tells me how to get it to work with other themes!
-
nice...... too hard i changed the header links before reading this :(
-
Nice job... Though I've noticed that on the right side of the shop button there isn't a separator, is there any way to fix this?
-
Yes I'd like to know also please :(
-
Here is the one I used that I created before I saw this post :/
-
well, the reason why there is no menu seperator, is because your image is too big width wise, this one however, is not, and will fit PERFECTLY. anymore questions please pm me or please email me at lilgoldfishtemp@hotmail.com
-
Can you make one named "Chat" instead of "Shop" please and ty/
-
These buttons take waaaaay too long to make :P
Maybe lilgoldfish or Deadfire would be able to make you one?
-
im actually in real big trouble (daniel youve noticed i havent been on) and well reason being is, i tried doing this mod, and it worked, but then all of a sudden, when i was uploading my edited work, my internet cut out on me or soemthing, and it deleted all of my index.template.php stuff so now...i have to re-modify everything and im finding out how to place my arcade and shop buttons to fit onto the navibar >.< real pain in the butt
-
sorry for this madd double post, but i just realized that this post is exactly what ive been trying to find for the past half hour....xD
-
hey i love this mod btw, and this theme is really cool too. But i just followed this posts instructions, and it worked quite well except instead of the button saying shop its just blank. however when you press it it does take you to the shop. so how can i make it say shop?
thanks.
http://www.thebiggestforum.com/big (by far not the biggest, so please join ::) )
-
Still busy? :( Please i need specially "Chat" and then if you want to make another and less important one. "Gallery"
-
nvm im a genius i figured it out. but about the post above me i would also like to know if i could have a button for gallery. thanks!
-
For all people where this tutorial not went because (the button won't shown in the bar), here is a code, i used it by the SMF 1.1.4 in the German version.
its all the same but the php code is alrady a litle bit different!
// SMFShop
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="mainNav-shop"><a href="', $scripturl, '?action=shop">',$txt['shop'],'</a></li>' , $current_action == 'shop' ? '' : '';
Sorry for my mispronunciation but I normaly speak german !!
-
ill see if i can get the buttons done.