Author Topic: Button Request  (Read 6468 times)

Offline GhostWriter

Button Request
« on: April 03, 2007, 02:33:16 am »
I need two buttons for two different themes, I hope posting them both in a single thread is alright. Thought it might save time and posts that way. If it is not I am sorry.....

Board Address: http://www.ghosttec.com
Theme Name: Vampire the Masquerade
Link to Theme: http://dragontalk.net/index.php?action=tpmod;dl=item52
--------------------------------------------------------------
Board Address: http://www.ghosttec.com
Theme Name: Arcane Magic
Link to Theme:http://dragontalk.net/index.php?action=tpmod;dl=item57


Offline Daniel15

Re: Button Request
« Reply #1 on: April 08, 2007, 01:41:00 pm »
OK, I've done the button code for both:
http://www.dansoftaustralia.net/smfshop_wiki/Themes/Vampire:_the_Masquerade
http://www.dansoftaustralia.net/smfshop_wiki/Themes/Arcane_Magic

For the "Arcane Magic" one, you'll need to use the shop image attached to the post at http://www.daniel15.com/forum/index.php/topic,194.0.html (save it to Themes/[theme name]/images/english/shop.gif).

Offline GhostWriter

Re: Button Request
« Reply #2 on: April 09, 2007, 09:45:28 pm »
Thanks for the buttons..

Though I am having a problem with them, I keep getting Parse errors in the template when I refresh after using the code and such....


Offline Daniel15

Re: Button Request
« Reply #3 on: April 10, 2007, 06:05:23 pm »
Quote
Though I am having a problem with them, I keep getting Parse errors in the template when I refresh after using the code and such....
From both codes, or only one of them?
Make sure you copy them exactly (including all punctuation, etc.)

Offline GhostWriter

Re: Button Request
« Reply #4 on: April 10, 2007, 09:45:25 pm »
Both of them are giving me the parse error, the vampire theme button for the shop doesn't show anywhere.

I have placed all the code in with everything that is suppose to be with it....

Offline Daniel15

Re: Button Request
« Reply #5 on: April 12, 2007, 02:31:30 pm »
OK, there was a minor error with the code for "Vampire: the Masquerade".
Code: (php) [Select]
// SMFShop
echo $tab1, $ca== 'shop' ? '1' : '2' , '"><a href="', $scripturl, '?action=shop">Shop</a></td>'

Should have been:
Code: (php) [Select]
// SMFShop
echo $tab1, $ca== 'shop' ? '1' : '2' , '"><a href="', $scripturl, '?action=shop">Shop</a></td>';

I've edited this on the Wiki. Please try it again, it should work this time. Also, note that the first edit for that theme has a comma at the start of it.