Author Topic: [SOLVED] Please help  (Read 10433 times)

Offline greekgod

Re: Please help
« Reply #15 on: April 22, 2007, 01:14:39 am »
Hi Daniel thanks for the reply,

Yes they are there through Admin on the forum   :(

Should I try a test with say the `help` button which is already created & just rename it shop? see if it shows then ?

Offline greekgod

Re: Please help
« Reply #16 on: April 22, 2007, 06:21:34 am »
Tried that, still nothing !  :(

Offline perplexed

Re: Please help
« Reply #17 on: April 22, 2007, 06:46:56 am »
dumb question but have you done a hard refresh of your screen or logged out and back in, just to make sure you are picking up the changes?  You probably have but it doesnt hurt to check these things out :)
Estne volumen in toga, an solum tibi libet me videre?

Offline greekgod

Re: Please help
« Reply #18 on: April 22, 2007, 06:51:50 am »
Hi
Yes I tried that too

Offline greekgod

Re: Please help
« Reply #19 on: April 22, 2007, 07:56:55 am »
Daniel, I PM`d you

Offline greekgod

Re: Please help
« Reply #20 on: April 25, 2007, 07:05:20 am »
Ok I sorted it but, i`m confused how or why I had to leave in the  if ($context['allow_calendar'])
It won`t work if I change the calendar to `shop` .see below//
Anyone any thoughts? or shall I just leave it like that ?

The [shop]!
        if ($context['allow_calendar'])
                echo '<a href="', $scripturl, '?action=shop"><img name="shop" id="shop"  onmouseover="javascript:document.shop.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop_over.gif\'" onmouseout="javascript:document.shop.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif\'" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 0px 0;" border="0" /></a>';

Offline CRONUS

Re: Please help
« Reply #21 on: April 25, 2007, 02:06:34 pm »
check permissions if shop is allowed to view for members and then try
Code: [Select]
if ($context['allow_shop'])

Offline greekgod

Re: Please help
« Reply #22 on: April 26, 2007, 01:44:16 am »
Permissions where?

Offline CRONUS

Re: Please help
« Reply #23 on: April 26, 2007, 02:02:41 pm »
http://[your_forum]/index.php?action=permissions

P.S. If even admin can't see the button then i think that SMFShop did not install corectly ::)

Offline greekgod

Re: Please help
« Reply #24 on: April 27, 2007, 06:16:45 am »
Ok thanks Cronus  ;)

Another question,

I`m trying to upload images to shop_images but I keep getting this error !

move /home/username/tmp/cpanel.TMP.EhdoxFgP29xlGFOa, /home/username/public_html/Sources/shop/item_images/101_beer.jpg failed: Permission denied
C:\Documents and Settings\richi\My Documents\My Pictures\101_beer.jpg (101_beer.jpg): upload failed

I tried changing permissions to 777 but it says access denied, yet i have no problem within my theme directory editing or uploading images i.e. shop button images.

Any ideas?  :(

Offline Daniel15

Re: Please help
« Reply #25 on: April 28, 2007, 01:07:10 pm »
Ok I sorted it but, i`m confused how or why I had to leave in the  if ($context['allow_calendar'])
It won`t work if I change the calendar to `shop` .see below//
Anyone any thoughts? or shall I just leave it like that ?

The [shop]!
        if ($context['allow_calendar'])
                echo '<a href="', $scripturl, '?action=shop"><img name="shop" id="shop"  onmouseover="javascript:document.shop.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop_over.gif\'" onmouseout="javascript:document.shop.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif\'" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 0px 0;" border="0" /></a>';

Get rid of the "allow_calendar" line. It should just look like:
Code: [Select]
              echo '<a href="', $scripturl, '?action=shop"><img name="shop" id="shop"  onmouseover="javascript:document.shop.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop_over.gif\'" onmouseout="javascript:document.shop.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif\'" src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 0px 0;" border="0" /></a>';

Quote
I`m trying to upload images to shop_images but I keep getting this error !

move /home/username/tmp/cpanel.TMP.EhdoxFgP29xlGFOa, /home/username/public_html/Sources/shop/item_images/101_beer.jpg failed: Permission denied
C:\Documents and Settings\richi\My Documents\My Pictures\101_beer.jpg (101_beer.jpg): upload failed

I tried changing permissions to 777 but it says access denied, yet i have no problem within my theme directory editing or uploading images i.e. shop button images.

Any ideas? 
This happens on some hosts. Ask your host to chown /home/username/public_html/Sources/shop/item_images/ to your username. This should fix the issue ;)

Offline greekgod

Re: Please help
« Reply #26 on: April 30, 2007, 06:42:16 am »
Thanx Daniel, sorted all them issues now  ;)