Author Topic: [SOLVED] No Shop Link On My Site...  (Read 8568 times)

Offline Dark_Zero

[SOLVED] No Shop Link On My Site...
« 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?
« Last Edit: July 22, 2007, 11:44:13 am by Dark_Zero »

_Marck_

  • Guest
Re: No Shop Link On My Site...
« Reply #1 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
« Last Edit: July 22, 2007, 12:49:53 pm by _Marck_ »

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #2 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
« Last Edit: July 27, 2007, 08:45:14 pm by Daniel15 »

Offline feildmaster

Re: No Shop Link On My Site...
« Reply #3 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...

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #4 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.

Offline feildmaster

Re: No Shop Link On My Site...
« Reply #5 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*

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #6 on: July 25, 2007, 11:01:26 am »
there ya go.  thanks for helpin.

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #7 on: July 27, 2007, 05:44:26 am »
can someone  please help me? i really need this link...

Offline Daniel15

Re: No Shop Link On My Site...
« Reply #8 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 :).

Offline feildmaster

Re: No Shop Link On My Site...
« Reply #9 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...

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #10 on: July 30, 2007, 03:07:59 pm »
thanks daniel! i'll try that...

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #11 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?

Offline feildmaster

Re: No Shop Link On My Site...
« Reply #12 on: July 31, 2007, 12:50:50 am »
images>english

thats where to put it. not

images>icons

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #13 on: July 31, 2007, 06:49:20 am »
the picture still doesn't show.. ???

Offline Dark_Zero

Re: No Shop Link On My Site...
« Reply #14 on: July 31, 2007, 06:50:34 am »
should i put it in default?