

bashibosh
Members-
Content count
9 -
Joined
-
Last visited
Profile Information
-
Real Name
Johnny
- Website
-
Support thread for the Image Magic contribution
bashibosh replied to tomjmul's topic in General Add-Ons Support
Andrei, I've checked my config and all works as expected, so I guess your problem must be something else?? bb -
Support thread for the Image Magic contribution
bashibosh replied to tomjmul's topic in General Add-Ons Support
Fixed it! An update for anyone who may come across the same problem, I removed the '&' from the offending functions in imagemagic.php (lines 274 - 279). Then I got an error: "Error,Database Connection", this was cause by the facxt that in my database, all tables start with "oscommerce_" and the sql call in imagemagic.php does not. To fix, I changed the following: Line 28 was: $sql="select configuration_key as cfgKey, configuration_value as cfgValue from configuration where configuration_group_id='333' or configuration_group_id='4'"; now reads: $sql="select configuration_key as cfgKey, configuration_value as cfgValue from oscommerce_configuration where configuration_group_id='333' or configuration_group_id='4'"; Line 40 was: $sql="update configuration set configuration_value ='".$append_hash."' where configuration_key='LAST_HASH'"; now reads: $sql="update oscommerce_configuration set configuration_value ='".$append_hash."' where configuration_key='LAST_HASH'"; It took me a while to find, hope it is useful to someone else Ciao :thumbsup: -
Support thread for the Image Magic contribution
bashibosh replied to tomjmul's topic in General Add-Ons Support
Hi, I've installed IM and the admin side works, but whne I switch IM on, all the site images display as missing images (big X). Checking a link on it's own (https://giftperfect.co.uk//imagemagic.php?img=images/GVE0059.jpeg&w=120&h=90&page=) I get a PHP error "Call-time pass-by-reference has been deprecated - argument passed by value..." apparently caused by "&" being used in some function calls in imagemagic.php I've read that the fix is to remove the "&"s or to change a value in php.ini (allow_call_time_pass_reference to true). removing the &s resulted in an error "no access to db" and I have a shared host and no access to php.ini Any ideas on a fix? -
[contribution] Simple Template System (sts)
bashibosh replied to DiamondSea's topic in Templates and Images
I've got the same problem, would be great if someone has an answer for this one. -
[contribution] Simple Template System (sts)
bashibosh replied to DiamondSea's topic in Templates and Images
In the <head section of sts_template.html, you should have an entry similar to the following: <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no, resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=15 0,left=150') } //--></script> If you don't, the popup won't do anything. -
[contribution] Simple Template System (sts)
bashibosh replied to DiamondSea's topic in Templates and Images
Thanks for the pointers, I found that modifying catalog/index.php did the trick, I just removed the bits I don't need. STS is sooo cool! B) -
[contribution] Simple Template System (sts)
bashibosh replied to DiamondSea's topic in Templates and Images
Thanks daddyrabbit, This is where the definition of TEXT_GREETING_GUEST is defined, but where do I set in on or off? :) -
[contribution] Simple Template System (sts)
bashibosh replied to DiamondSea's topic in Templates and Images
Can anyone help? I'm setting up my first site using STS and have been able to configure the header and boxes, but can't seem to find out where I configure the elements for the $content tag. I want to remove the "Welcome Guest...." text and change the look of the main content of the front page. Can anyone point me in the right direction? Thanks v much :rolleyes: -
[contribution] Simple Template System (sts)
bashibosh replied to DiamondSea's topic in Templates and Images
The best place to start is by reading the readme.txt file. It describes the supported template tags ($info etc.) and where they are used. what sts does is read the sts_template.html and substitutes the $ tag with data from sts_display_output.php, which in turn is made up of links to tag definitions in other files. A short answer, hope it gets you going :D