

PandA.nl
-
Content count
312 -
Joined
-
Last visited
Posts posted by PandA.nl
-
-
-
:lol:there seems to be nothing basic about this template system... i'm trying to figure out where the hell everything is.. and it's such a FRICKIN HEADACHE!Did you notice how old this thread is btw?
:-"Mar 18 2004, 03:14 PMMaybe better use this:
http://forums.oscommerce.com/index.php?showtopic=71930
At least that one is about the latest versions :)
-
very odd indeed, I never experienced it myself or even heard about it before. The only .htaccess that is included in the BTS has a "deny from all" line. And that should show you something like:hmm.. this is very odd but every time i install either of your contribs (html or sts for bts) i get an htaccess login panel appear when using the relevant template
when you try to access the templates dir itself. Removing this .htaccess file might result in security problems btw!ForbiddenYou don't have permission to access to this document on this server.
That it does not happen with the other templates does not suprise me, there is no logical reason that I can think of that a login screen would appear. I think it has something to do with your server settings or something.
@Rhea: nice initiative to make these templates available :) . I haven't tried them yet, but I surely will do so soon.
-
1054 - Unknown column 'o.orders_prefix' in 'field list':blink: column 'o.orders_prefix ? You are talking about another contribution than this thread is about I am afraid :(
-
I am afraid there's no template for that kind of boxes (the middle content boxes). You may assign it a css class and/or id (i.e. wrap a div around the box with class/id) and change colors, font-seizes and and borders and such trough the stylesheet. Or you will need to hack the box class (inludes/classes/boxes.php) if you need to make bigger changes.i wanted to edit the content boxes at the middle (includes/new_products.php), so i added in the templates/fallback dir includes/new_products.tpl.php but it didn't use it at all. How do i modify the template for that ? -
Thanks for telling, but the idea is that if you find someting out that you asked here, that you post *how* you did it. Else we get the same unanswered questions again and again :(never mind i figured it out -
So far have had no problems with it.steve
Thanks for letting us know steve :)
Especially since I haven't had much feedback yet (which is not suprising, since the number of template structure users will be very limited, until ms3 has been released)
-
Ok,
the new login box code is ready. Makinging it ready for the BTSv1.5 was very easy, but I decided to clean it up a little and add a forgotten password and create account link to the box as well (multi-langual).
(it will probably released next monday, after Steve has tested it)
Now back to an important issue:
Once you've got the BTS ready loginbox, you may indeed add it like that to the php code template (main_page.code.php). Where you put it does not have any influence on how it works, but I would put it somewhere between the other boxes.Thanks, did exactly what I needed. One more thing. How do I get the login box to appear? I noticed it wasn't in main_page.code.php but when I do the following://begin{loginbox} include(DIR_WS_BOXES . 'loginbox.php'); //end{loginbox}
It doesn't show the box, just shows the header_account.gif
But if you don't want the loginbox to appear when someone's allready logged in for example, and maybe you want the (included) to appear it's nicer to add it like this:
//begin{loginbox} if ( (!strstr($_SERVER['PHP_SELF'],'login.php') and !strstr($_SERVER['PHP_SELF'],'create_account.php')) | tep_session_is_registered('customer_id') ) { if (!tep_session_is_registered('customer_id')) { require(DIR_WS_BOXES . 'login.php'); } else { require(DIR_WS_BOXES . 'account.php'); } } //end{loginbox}
(just an example, change it depending on when you want the boxes to appear)
Remind that the begin tag is very important "//begin{loginbox}" (it is used by the script).
And now that the code is ready, you only need to add the same tag (but without the "//" so add": "{loginbox}") to your HTML template (main_page.html), where ever you the boxe(s) to appear.
-
Here's an example of the login box I want:http://inagiftbasket.com/ <- right column
but what I'm getting is just an image "header_account.gif"
The BTS boxes are a bit different from standard osC boxes, so you need a login box that is made for the BTS. I converted a login box contri to the BTS once, I will take a look, and probably adapt it so it is fully compatible with the BTSv1.5 (which should be easy)
-
Hi Steve,
the login box ?Thanks, did exactly what I needed. One more thing. How do I get the login box to appear?Assuming your login box code should work, it could be possible that you have a login_box.tpl.php file (in the fallback/boxes dir or HTML/boxes dir) that messes things up.
But which login box do you exactly have?
-
I just installed the sitemap and get this error message:"Error!
Unable to determine the page link!"
Anyone know how to get rid of that?
tip: read a thread before you post to it :-"
-
I am not sure if it will help you to achieve wat you want but, if you want to edit the content files you can just create a "content" folder iside the HTML template dir and copy needed content file(s) from the fallback/content dir to it and edit it as you like (it will automaticly replace the file with the same name inside the fallback/content folder).In the regular templates, there is a folder called "content", but there isn't in the template of this contribution.I just would like to know how to chagne the product info design, thanks
But please note that these content files are not HTML templates! Also these only control the center middle part, not the main layout (but you probably already knew that?).
hth (a bit :) )
Paul
-
Hi there, does anyone know of a way to use different template pages for different index'es ? For example, if index_default needs to use template 1. and index_nested needs to use template 2 and index_products needs to use template 3.........Hi Christina, are you still looking for a solution for this? Would being able to style each of those pages individually using CSS do too? (you can change allmost everything through the stylesheet ...... if your template is setup right).
@yenju and other not knowing how to add sql data to their database:
I think explaining how to add the sql would not be something for this BTS support thread. It is really very simple (it's more difficult to explain than to use), maybe you should search google (or this board) for "phpMyAdmin" or "phpMyAdmin tutorial", other ask your host about it.
-
Fatal error: Class messagestack: Cannot inherit from undefined class tableboxmessagestack in /home/xxxxxxxxx/shop/includes/classes/message_stack.php on line 20
Please help - I recieved this message after installing this mod. What can I do? :blink:
That's not a known issue. I think your best option is to re?nstall ms2 and then the BTS.
-
won't be very easy I'm afraid. The cre bts code differs too much, so their coders should create something alike to make it work. Or someone else who feels like to dig into the cre code of course. It's a bit to messy for me.I have the same problem :'(Warning: main(templates/HTML/boxes.tpl.php): failed to open stream: No such file or directory in /home/xxxcom/shop/includes/template_application_top.php on line 92 Warning: main(templates/HTML/boxes.tpl.php): failed to open stream: No such file or directory in /home/xxxcomcom/shop/includes/template_application_top.php on line 92 Fatal error: main(): Failed opening required 'templates/HTML/boxes.tpl.php' (include_path='.:/usr/local/lib/php') in /home/xxxcom/shop/includes/template_application_top.php on line 92
What can i do?..
-
this happens with every large image I display in the body...any suggestions please?? I'm going crazy -.-
The content has to fit your total width.
2x150=300 for the columns
300 + 480 = 780px used by columns +your large image
Total width is set to 800px (approx)
So all padding and margins and the extra column (to the right of the large image) has to fit into( 800-780 =) 20 pixels only! That's impossible, it just does not fit.
-
That's weird, I installed it many times and allways use FireFox (and/or Mozilla suite), but I never noticed any problem. What do you mean by different?I noticed the css fluid file looked fine in ie but not in firefox. the central column was different. -
Currently, using frames, every invoice starts with page 1 (and usually it's just page 1 of 1 for every invoice, but multiple page invoices would be numbered correctly too). I assume that using css pagebreaks your invoices are numbered like: 1 of 20, 2 of 20, 3 of 20 up to 20 of 20 (depending on the number of invoices and the number of pages per invoice of course). I'm not saying it's an absolute must to have the right pagenumbering, but for me that was the (one and only) reason to use frames.Why do you need the page numbering to be correct? Wouldn't this depend on which invoices you filtered out anyway? -
I altered this contribution to auto update order status, and eliminated the use of frames. It uses CSS page breaks instead.That's great, thanks for sharing it!
Until recently I didn't really mind to update all orders one by one (i.e. to add a personal note to some orders) but I must say it's getting a bit boring whenever we have some more orders.
B.t.w. the reason to use frames was to retain correct page numbering (changing or disabling pagenumbering in the browser settings isn't an option for me). But other than that using css pagebreaks is much nicer than using frames of course.
-
Hi tenshu,
I took a quick look at the cre code yesterday, but it didn't make me feel optimistic I'm afraid :( . It looks quite messy to be honest (but a closer look could possibly change my opinion). Maybe one of the programmers over there could give it a shot, the "HTML for the BTS" script itself is quite clean. And, not sure if you know it, but we can't support cre at this board, so discussing details is not possible here anyway.If nobody could help i will go back under MS2I've got a new version in my mind by the way, the current version makes changing the template php code a bit more confusing probably, if I find some spare time I hope to make that part a lot easyer. The idea is to create an extra template, alike the HTML template, which contains all php code (marked by the same tags as are being used in the HTML template).
-
$content variabale is empty :'(That's strange, I do not know cre very well, but $content has been in use by the BTS since the first version and stayed in use until today.
As far as I know cre is based on the first BTS version, I think some changes have been made but I wouldn't know what the changes are.
Btw, recently I uploaded the "HTML template for the BTS" http://www.oscommerce.com/community/contributions,3127. This also adds a pure HTML template to the BTS. I think it's a much better choice, because it runs a lot faster and is specially written for the BTS (v1.5x). This "STS for the BTS" was just an experiment, but the "HTML template for the BTS" is the one I hope to be able (depending on the amount of spare time I'll have) to develop and support.
Anyhow for both systems, the best way would be to upgrade to the BTSv1.5 first. Not sure if it's easy in this case, maybe the upgrade instructions included in the BTSv1.5 could help?
-
Hi Simon,
the other one seemed easy, haven't looked at this one yet.
I don't have much time now, maybe later. But one thing to think of is that the code that is added for the tabs to the top, has to be added to the main_page.tpl.php of your template. Not to any other file, the header and footer code are included in main_page.tpl.php with a standard BTS install.
Paul
-
@tom22: I assume you are able to figure it out with the info I sent you
@nyrsimon: there seem to be more than one category tabs contri's, are you talking about this one: http://www.oscommerce.com/community/contributions,751 ?
?
-
I think that you don't see the templates output, but only the the output of some code you put in your new page, so it seems to me that main_page is not being loaded anymore now.
Better just start with an existing page, like specials.php, make a copy (both root and content template file) and rename it to the filename you want and define it in filenames. And then remove the specific specials code, and replace it by the code you need.
BTSv1.2 Support
in General Add-Ons Support
Posted
I think it would be nice if your code change for the buttons would be added to the BTS readme.