131
fatman
kStore - product catalogue demo
  • 2004/1/14 4:33

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I wonder if anyone wants to look over my online store module. This is a port of a shopping cart system I had built a little while back. When I found XOOPS I immediately started porting it over.

I've created a demo account which has necessary access to browse product categories and access the 'Store Admin'. Please feel free to log in and test it out.

www.stareatthis.com ** link updated. Jan 27, 04

http://noah.kerkness.ca/
username = demo password = demo

I basically would like to know if there is any interest in this module. I am at a point now where I've got my previous code working nicely in xoops, but it would need a little more organization before I could package it as a download. If there is interest, I'll be glad to make it available for download.

All comments welcome.

Things to note:
- some experimental css 'tool-tips' in use that haven't been tested in all browsers, but most.
- go ahead and edit something or add a product/category.

I'll be adding the following functionality soon(ish)
- image upload when adding a product
- shopping cart
- customer profiles
- product ratings
- start integrating it with other cool XOOPS modules (xdirectory for one perhaps :) plus notifications and comments for products ect. )



132
fatman
Re: xoops not creating module table with no errors
  • 2004/1/10 1:23

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


hey, turns out the problem was with my MySQL server. I reinstalled MySQL and everything worked like a charm.

thank you for responding.



133
fatman
xoops not creating module table with no errors
  • 2004/1/1 4:33

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I'm working on a module and have for some reason my .sql file is not creating the db tables when I install the module. I don't however get any error messages.

Here is what is reported when installing the module

SQL file found at /var/www/html/modules/k_store/sql/k_store.0.2.8.sql.
Creating tables...
Module data inserted successfullyModule ID10
Adding templates
...

... 
omitted ...

Module kStore installed successfully.


When I check the database, no tables have actually been created. I have tried creating the SQL file with phpmyadmin 2.5.5 and 2.2.7 both with the same results.

I am able to run the sql file using both MySQL shell and phpmyadmin and all tables are created as intended. So I know the file at least works.

Does anyone know why XOOPS would report that the tables have been created when they are not?





134
fatman
Re: Apache mod_rewrite RewriteRule Success
  • 2003/12/31 20:23

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I am not certain how to accomplish friendly URL's on a windows server. But the very first examples in this thread should help you accomplish what you want if you are indeed using a linux/apache configuration.

Also look at the links in the very first post they may be of help.



135
fatman
Re: Apache mod_rewrite RewriteRule Success
  • 2003/12/22 23:06

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


EXCELLENT ! That did work, no I didn't notice that link in your original post. Thanks for pointing it out again. I am only sorry I didn't see it first glance, I might have saved myself a few hours this weekend.

At any rate I did come up with this combo of RewriteRule's which allow me to use the Mambo technique in my own modules without having to hack anything and making sure regular XOOPS urls still worked. But it's not as nice as your example

# if nothing is entered load document 
# that is defined as default for this dir
RewriteRule ^/() - [L]

# process any direct module links normally
RewriteRule ^(modules/*) - [L]

# If looking for an actual file or directory 
# serve it to them, else load /include.process.php
RewriteRule ^([^.]+)$ /include/process.php?q=$1 [L]



136
fatman
Re: Search engine optimisation problems and solutions
  • 2003/12/22 4:58

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


you'll want to read this thread..

mod_rewrite and XOOPS success



137
fatman
Re: Acceptable to clients as a portal?
  • 2003/12/21 20:05

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I just wanted to add some comments to this great thread.

I think if your are setting up a site for a client and you have decided to use the XOOPS core, you should take some time to educate your client about open source software such as XOOPS can add lots of value to your clients long term goals (online and off).

The way I plan on incroporating XOOPS into my buisiness. Which has been up till now just typical custom development services in php or asp.

- I charge an upfront fee for implementation, which means I set up xoops, install required modules and design and implement a custom theme. The over all theme is theirs and will not be reused on other sites.

- If module customization or new modules are required, I'll charge a very reasonable price for this work, just to cover as much of my time as possible, but with the understanding that any module work is done so that it can offered back to the wider XOOPS community. My client although they may pay me to get the module done, do not own any rights to that module.

- Finally I charge a monthly hosting fee, that includes all the standard hosting services as well as free upgrades of modules and XOOPS core as releases are made by the community or I myself improve as a result of other projects.

This is a very different approach from what is likely offered from regular web site programming companies, but I think it can be made very attractive for small businesses as a strategy to control long term costs for running and maintaining a web site.

The intial upfront costs may actually end up being similar to what other people charge for custom development. However development time should be greately reduced as you can easily make use of previously built modules and the powerful XOOPS core. Most time would be spend extending modules where required and applying custom templates and themes.

But once the client is up and running under a hosting environment with your control, they can be assured that as long as they pay your hosting fee, their site will evolve at a similar pace as the actual XOOPS community.

That all being said, you'll have to examine hosting fees and other rates to see price point makes it worth your while and keeps you competitive.

Ultimately your focus over time should be to gather, assemble and deploy the best open source modules available to the clients can support your vision and pay you the monthly hosting that covers your bills.

As far as who manages content on the web site. I think turn overall managing of content to the client but convince them that they should pay experts (such as yourself) to design the site and keep it current with web standards and best search engine or online marketing practices.

Think recurring revenue, it's what pays the bills. Make money while you sleep so that while you're awake you can create value.

I hope that is useful advice for some people.



138
fatman
Re: Apache mod_rewrite RewriteRule Success
  • 2003/12/21 8:40

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


sunsnapper
I can't seem to get any of your examples to work tried on 3 servers and then added a fresh instal of XOOPS and wfsections to recreate your example exactly and still no go.

I'm not sure what other rules could be interferring there are no other lines in my .htaccess file.

I can however get my mod_rewrite example working on all the same servers and with my work-in-progress module which is excellent news.

So you don't have to look for it
RewriteEngine On
# If they are looking for index.php we're done
RewriteRule ^(index.php.*) $[L]

# If they are looking for a file with a file extension let them get at it
RewriteRule ^(.*..+)$ $[L

# Otherwise send their request to index.php
RewriteRule ^(.*)$ index.php?query=$[L]



139
fatman
Re: Apache mod_rewrite RewriteRule Success
  • 2003/12/21 6:39

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


For anyone who is interested. This is how I implemented a clean URL structure before and what I'm attempting to hack into xoops.

.htaccess file I have following

RewriteEngine On
# If they are looking for index.php we're done
RewriteRule ^(index.php.*) $[L]

# If they are looking for a file with a file extension let them get at it
RewriteRule ^(.*..+)$ $[L

# Otherwise send their request to index.php
RewriteRule ^(.*)$ index.php?query=$[L]


Then I include the following script which basically takes whatever is stuck in the URL and sticks it in an array called $page_query

global $REQUEST_URI;
global 
$SCRIPT_NAME;

$base_href $SCRIPT_NAME;
$path explode("/",$base_href);
$template array_pop ($path);
$path implode ("/",$path);
$vars str_replace($SCRIPT_NAME""$REQUEST_URI);
$array explode("/",$vars);

$num count($array); // How many items in the array?
for ($i $i $num $i++) {
        
$page_query[$i] = $array[$i];
}


From here I have a simple configuration array which is used to define what I need to include and I provide definition for the variable passed in my query string.

$page_content[1]['name'] = 'products';
$page_content[1]['source'] = 'products/index.php';
$page_content[1]['group'] = $page_query[1];
$page_content[1]['page_func'] = $page_query[2]; 
$page_content[1]['item_id'] = $page_query[3]; 

$page_content[2]['name'] = 'news';
$page_content[2]['source'] = 'news/index.php';
$page_content[2]['group'] = $page_query[1];
$page_content[2]['category'] = $page_query[2]; 
$page_content[2]['article_id'] = $page_query[3]; 

ect..


The array method above could be customized to what ever is required and you could pass as number of variables in your query string as you want.

I really like this approach. It's proved very effective. Ultimately I ran into problems caching my templates and providing good group based access to my site, so I came searching and found xoops.

So now I have to try and hack this into the core and see if I can get it working.

If anyone thinks I'm crazy or has suggestions please let me know :)





140
fatman
Re: Apache mod_rewrite RewriteRule Success
  • 2003/12/21 5:11

  • fatman

  • Friend of XOOPS

  • Posts: 176

  • Since: 2003/12/13


I'm currently converting a custom product catalogue I have into XOOPS and it used Clean URL's before so I was glad to find this thread.

I didn't use mod_rewrite however, I used a method described here.

evolt.org : clean urls with php and apache

Am I to understand that using mod_rewrite physically redirects the user? I tried the following in my .htaccess and when i went to mysite.com/contact it actually redirected me to mysite.com/modules/contact

RewriteEngine on
RewriteRule 
^contact(.*)$ /modules/contact$[L]


I hope the redirection I am have is a flaw in my .htaccess file. Redirection total defeats the purpose imho.

I was able to use the method described at evolt.org with great success. I'm tempted to use it with my XOOPS install however doing so would mean I'd have to customize every template. A small sacrifice for the great url's.

I was able to create some highly useful URL's for use in the site admin side (obviously pre-xoops). Here's an sample

/admin/products/list/all
/admin/products/list/feature
/admin/products/add
/admin/prodcuts/edit/34

The down side of doing things in XOOPS the way I did them before is that makes it really hard to work in other peoples modules and let people use mine.

If anyone is currently working on this stuff PM me. I'm hoping to get something working comprable to my old method before the in-law's arrive for x-mas dinner. :)

I'll keep trying the examples here and post links if I get anything working with my product catalog in xoops.




TopTop
« 1 ... 11 12 13 (14) 15 16 »



Login

Who's Online

120 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 120


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits