westis wrote: Ah, you mean that my tweaks would be good for Roman?
Porting Oscommerce Shop to CMSMS
-
cyberman
Re: Porting Oscommerce Shop to CMSMS
-
iNSiPiD
Re: Porting Oscommerce Shop to CMSMS
Well that's another fine can of worms I've managed to open. 
-
KnightWolfJK
Re: Porting Oscommerce Shop to CMSMS
Just chiming in my support for a e-commerce solution. 
-
fr3nch13
Re: Porting Oscommerce Shop to CMSMS
Its great that CMSMS will finally have a good e-com module!
I'll download and try this one out.
I am also will ing to help out in any way.
I'm a php developer with a lot of experience.
I have also come to learn CMSM very well and have used it to build a good handful of sites (like 5 or so).
Check out my site, it's running that latest cmsms and loaded with modules (playing around).
I would love to help out. I dont have much free time, but what little i do, i would be willing to contribute.
ps. i also figured out an interesting little hack to get just about any application's front-end to run within cmsms. but the app's admin is seperate from cmsms's admin.
Website: http://www.fr3nch.com
I'll download and try this one out.
I am also will ing to help out in any way.
I'm a php developer with a lot of experience.
I have also come to learn CMSM very well and have used it to build a good handful of sites (like 5 or so).
Check out my site, it's running that latest cmsms and loaded with modules (playing around).
I would love to help out. I dont have much free time, but what little i do, i would be willing to contribute.
ps. i also figured out an interesting little hack to get just about any application's front-end to run within cmsms. but the app's admin is seperate from cmsms's admin.
Website: http://www.fr3nch.com
-
fr3nch13
Re: Porting Oscommerce Shop to CMSMS
I'll try out the oscommerce module. if i find any bugs/etc i'll place them in the forge.
-
iNSiPiD
Re: Porting Oscommerce Shop to CMSMS
We're all ears, fr3nch13. This sounds like just waht I've been looking for.fr3nch13 wrote: ps. i also figured out an interesting little hack to get just about any application's front-end to run within cmsms. but the app's admin is seperate from cmsms's admin.
I'm sure the the devs would also be interested in this, too. That way, if they like it, it may get into the forge and I won't have to hack the core.
-
fr3nch13
Re: Porting Oscommerce Shop to CMSMS
well my little hack is actually pretty simple. i just use ob_start(); ob_get_contents() and ob_end_clean();
i just wrap them around the application then at the end of the file, collect the contents into a variable.
Then i setup a page in the cms and have it set not to show in the menu, yet remain active. Within the contents, i place a string. something like "[replaceme]"
Within the app/script that i am placing within the cms, i fopen the above cms url that i just made and copy the contents then replace the [replaceme] with the contents from the output buffer's variable. and display the results.
Then to have this displayed in the menu of the cms, i create a content type of 'link' that points to the app/script.
to the end user, there is no difference; however, the end client now has to seperate admins. one for the cms and one for the other app.
a good example of this is the below link.
http://russellarkin.imageworksstudio.co ... isting.php
this is running 0.10.4 before the forms module. so i had to integrate the forms i made using a customized(much more secured) version of formMail.php into the website.
here's some of the code i use:
this is still considered a hack/work-around in my book, but i hope this help some one.
i just wrap them around the application then at the end of the file, collect the contents into a variable.
Then i setup a page in the cms and have it set not to show in the menu, yet remain active. Within the contents, i place a string. something like "[replaceme]"
Within the app/script that i am placing within the cms, i fopen the above cms url that i just made and copy the contents then replace the [replaceme] with the contents from the output buffer's variable. and display the results.
Then to have this displayed in the menu of the cms, i create a content type of 'link' that points to the app/script.
to the end user, there is no difference; however, the end client now has to seperate admins. one for the cms and one for the other app.
a good example of this is the below link.
http://russellarkin.imageworksstudio.co ... isting.php
this is running 0.10.4 before the forms module. so i had to integrate the forms i made using a customized(much more secured) version of formMail.php into the website.
here's some of the code i use:
Code: Select all
<?
$tpl = "http://russellarkin.imageworksstudio.com/index.php?page=external_template";
$tplstr = "[replaceme]";
if($_POST) {
.... do something here .....
} else {
theform();
}
function theform($err=array()){
global $tpl,$tplstr;
ob_start();
?>
form html here
<?
$result = ob_get_contents();
ob_end_clean();
if($tpl!='' and $tplstr!='')
echo parseTemplate($tpl,$tplstr,$result);
else
echo $result;
}
function parseTemplate($tpl,$str,$html) {
$handle = fopen($tpl, "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
return str_replace($str,$html,$contents);
}
?>
this is still considered a hack/work-around in my book, but i hope this help some one.
-
iNSiPiD
Re: Porting Oscommerce Shop to CMSMS
That example just looks like a Web form.
I had assumed you'd somehow hacked the admin to include links to your own custom administration screen(s). Or have you?
I have achieved this same result more securely I think by using a user-defined tag or written my own plugin. This avoids the need for ob_start to resend any header info and also means the page is parsed earlier and without caching the entire thing.
Have I missed something? Are you sure that site is built using CMSMS? The /admin URL brings up another login screen. Or did you just customise that too?
I had assumed you'd somehow hacked the admin to include links to your own custom administration screen(s). Or have you?
I have achieved this same result more securely I think by using a user-defined tag or written my own plugin. This avoids the need for ob_start to resend any header info and also means the page is parsed earlier and without caching the entire thing.
Have I missed something? Are you sure that site is built using CMSMS? The /admin URL brings up another login screen. Or did you just customise that too?
-
fr3nch13
Re: Porting Oscommerce Shop to CMSMS
iNSiPiD wrote: That example just looks like a Web form.
I had assumed you'd somehow hacked the admin to include links to your own custom administration screen(s). Or have you?
I have achieved this same result more securely I think by using a user-defined tag or written my own plugin. This avoids the need for ob_start to resend any header info and also means the page is parsed earlier and without caching the entire thing.
Have I missed something? Are you sure that site is built using CMSMS? The /admin URL brings up another login screen. Or did you just customise that too?
Like i said this was a little and dirty hack but it worked. this was an example of how i accomplished this. i was also able to take this idea and use it to add ZenCart to CMSMS, or more precisely, use CMSMS's rendered output as the layout template for ZenCart to use. see the post below:
http://forum.cmsmadesimple.org/index.ph ... l#msg16598
-
fr3nch13
Re: Porting Oscommerce Shop to CMSMS
sorry i didnt even answer any of your questions.
No i have not hacked the admin to point to and administration screen because there was no administration screen.I had assumed you'd somehow hacked the admin to include links to your own custom administration screen(s). Or have you?
This is running cmsms 0.10.4. i renamed the admin direcory to my_account. And yes, i did customize it.Have I missed something? Are you sure that site is built using CMSMS? The /admin URL brings up another login screen. Or did you just customise that too?
-
iNSiPiD
Re: Porting Oscommerce Shop to CMSMS
Hi fr3nch13, don't get me wrong. I'm not knocking the idea. I'm just trying to work out why you couldn't have achieved it better using the plugin architecture.
In fact, with your coding skillz, I'm sure you could have written a module for the purpose without too much trouble.
Have you taken a look at the skeleton module?
In fact, with your coding skillz, I'm sure you could have written a module for the purpose without too much trouble.
Have you taken a look at the skeleton module?
-
fr3nch13
Re: Porting Oscommerce Shop to CMSMS
I really should go back and do it correctly; however, the client needs something right now so i had to come up with something that will work, even if it is pretty dirty.
Don't get me wrong, this is a dirty hack, but it gets the job done and it only took me about an hour.
Don't get me wrong, this is a dirty hack, but it gets the job done and it only took me about an hour.
