SMF Shop

SMFShop => General SMFShop Discussion => Topic started by: Dark_Zero on July 22, 2007, 09:48:33 am

Title: [SOLVED] No Shop Link On My Site...
Post by: Dark_Zero on July 22, 2007, 09:48:33 am
Hello, i installed SMF Shop the other day only to see that there was no shop link (like where it says Home, Help, Admin, Profile, Search, and Logout). I am logged in as the Admin (Webmaster), and when i type in to the address bar: http://psp_blackout.phpnet.us/SMF/index.php?action=shop the shop works fine; there's just no link to it! I'm wondering if there's just no shop picture in the icons that came with the template i downloaded... how can i get the link there?
Title: Re: No Shop Link On My Site...
Post by: _Marck_ on July 22, 2007, 12:48:06 pm
you need make a "link" in your forum, in the template with you use....

generally is in the index.template.php on the line 687 (see the buttons)

i have in my forum...

Code: [Select]
   //Shop
echo'
            <td align="center" class="menubg' , $current_action == 'shop' ? '2' : '' , '">
                  <a href="', $scripturl, '?action=shop">RulzStore</a>           
            </td>';

sorry my english XD
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 23, 2007, 02:05:46 pm
it only goes to line 486 (when i click "View" in cpanel) so what should i do? (note i have a premade shop button that i can upload via ftp if i need it) anyways here is the code that i have in index.template.php: (in a custom template that i downloaded through simplemachines.org)

Edited by Daniel15: Snipped long bit of code. File is attached in a below post
Title: Re: No Shop Link On My Site...
Post by: feildmaster on July 24, 2007, 03:54:57 am
u have no idea how to edit do you...

ok so, take a copy of index.template.php and put it on your desktop.

edit it with ... notepad, or something like that.... find
Code: [Select]
  // Otherwise, they might want to [logout]...
before that add his code there... or if u figure out how to make buttons... put it where u want...

save it and upload it back to ur site... done...
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 24, 2007, 09:42:30 am
okay i did exactly what you told me and there is still no link.. btw i used the online editor cuz notepad doesn't recognize some symbols.
Title: Re: No Shop Link On My Site...
Post by: feildmaster on July 24, 2007, 09:58:02 pm
umm... take a copy of the index.template into a zip and put it into an attachment and i will fix if i get the time.... *yawns*
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 25, 2007, 11:01:26 am
there ya go.  thanks for helpin.
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 27, 2007, 05:44:26 am
can someone  please help me? i really need this link...
Title: Re: No Shop Link On My Site...
Post by: Daniel15 on July 27, 2007, 08:43:50 pm
In that file, find:
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
Add after:
Code: [Select]
// SMFShop
echo '
<a href="', $scripturl, '?action=shop">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 2px 0;" border="0" />' : 'Shop'), '</a>', $context['menu_separator'];
You'll need a file called "shop.gif" to use as the shop button :).
Title: Re: No Shop Link On My Site...
Post by: feildmaster on July 27, 2007, 11:30:27 pm
oh sorry, i was out for a while... but looks like daniel got the answer for u...
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 30, 2007, 03:07:59 pm
thanks daniel! i'll try that...
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 30, 2007, 03:31:34 pm
good news is: there's now a shop link on my site!

bad news is: it's only a text link :( I made a shop icon called "Shop.gif" and i put it in Themes>(custom theme called "Black Day")>images>icons and it didn't work. :'( i can't get the picture to show... any suggestions?
Title: Re: No Shop Link On My Site...
Post by: feildmaster on July 31, 2007, 12:50:50 am
images>english

thats where to put it. not

images>icons
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 31, 2007, 06:49:20 am
the picture still doesn't show.. ???
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on July 31, 2007, 06:50:34 am
should i put it in default?
Title: Re: No Shop Link On My Site...
Post by: feildmaster on August 01, 2007, 11:27:23 pm
should be in black_day...
Title: Re: No Shop Link On My Site...
Post by: Dark_Zero on August 02, 2007, 04:39:23 am
i got it; i forgot php was case sensitive lol XO thanks for all your help i appreciate it ;D
Title: Re: [SOLVED] No Shop Link On My Site...
Post by: feildmaster on August 03, 2007, 12:25:47 am
right right...
Title: Re: [SOLVED] No Shop Link On My Site...
Post by: Dark_Zero on August 04, 2007, 02:54:19 am
topic locked
Title: Re: [SOLVED] No Shop Link On My Site...
Post by: Daniel15 on August 04, 2007, 06:42:24 pm
Quote
i forgot php was case sensitive lol
Quote
It's not PHP that's case-sensitive, it's Linux ;)
Title: Re: [SOLVED] No Shop Link On My Site...
Post by: Dark_Zero on August 05, 2007, 01:06:12 am
oh okay got it lol ;D so my host uses linux..