X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   CMS Manager with built in HTML editor (https://forum.x-cart.com/showthread.php?t=5272)

Sonia 02-24-2005 06:25 AM

Tried for 4.0.11 yet?
 
Anyone try this for 4.0.11 yet? That's the version I have and am interested in trying this out for people in my company who want to modify pages more easily. At least I think that's what this Mod is supposed to do...

How did it go with 4.0.7?

jcnelson 06-28-2005 06:25 AM

Re: Still Getting errors in 3.5.X
 
Quote:

Originally Posted by Phiberoptx
The CMS Manager isa stripping out all of my HTML....in 3.5.X


Any Help?


I was able to install it in X-Cart version 4.0.14 however have the same issue of it stripping out all HTML. Did you find a solution to that problem?

Jon 07-03-2005 06:15 PM

I'm considering building a fully featured, professional CMS for X-Cart, which would allow full integration of a website with X-Cart.

Would include custom page categories, pages, article categories, articles, integrated login, file downloads, knowledge base, weblinks, etc.

Price for the CMS would likely be $199.00. Who's interested?

RQJay 11-26-2005 08:11 AM

I would be interested in that, please PM me with more info!

Jon 11-28-2005 01:17 PM

There hasn't been enough interest yet in a full fleged system. So far seems people are more interested in smaller pieces of the overall picture.

RQJay 11-28-2005 04:28 PM

Quote:

Originally Posted by Jon
There hasn't been enough interest yet in a full fleged system. So far seems people are more interested in smaller pieces of the overall picture.


so i guess this one is out of the question......could you pm me with the cost of developing that for me?

goyo 11-29-2005 04:38 PM

Quote:

Originally Posted by RQJay
Quote:

Originally Posted by Jon
There hasn't been enough interest yet in a full fleged system. So far seems people are more interested in smaller pieces of the overall picture.


so i guess this one is out of the question......could you pm me with the cost of developing that for me?


A site integration could be done easily with ANY FREE third party news/cms script. Maybe it's not that professional because you need to use two separate admin areas (one for the shop and one for the news and other pages) otherwise it'll gets the job done.

For example: http://oradix.com/
You'll see the "Latest Health Library additions"...if you click on one of them it will bring you to the "Health-Library" section which is a different news script (and it's SEO friendly a well).
It's took me only about an hour to "integrate" and i'm not an advanced programmer... :wink:

NightFire 12-15-2005 01:27 PM

Quote:

Originally Posted by yacine
For X-Cart 4.0.7

Following the install.txt file :

In section 4.
In /customer/home.php add these lines below ' require "./featured_products.php"; '.

To replace by :

In home.php in the root add these lines below
if (empty($products))
include "./featured_products.php";

Also,

Replace

require "./rotatingsidepanel_1.php";
require "./rotatingsidepanel_2.php";
require "./rotatingsidepanel_3.php";
require "./fixedsidepanel_1.php";
require "./fixedsidepanel_2.php";
require "./fixedsidepanel_3.php";

by

require "customer/rotatingsidepanel_1.php";
require "customer/rotatingsidepanel_2.php";
require "customer/rotatingsidepanel_3.php";
require "customer/fixedsidepanel_1.php";
require "customer/fixedsidepanel_2.php";
require "customer/fixedsidepanel_3.php";

In section 5.
The file is Б─°skin1/customer/home.tplБ─²

In section 6.
Replace

EZ Content Manager


By

EZ Content Manager


In section 7.

the file is "/skin1/single/home.tpl" and not "/skin1/admin/home.tpl"

Now
In the files : Admin/cmsmaker.php and Admin/cmsmanager.php
Replace :

require "../smarty.php";
require "../config.php";
require "./auth.php";
require "../include/security.php";

by

require "./auth.php";
require $xcart_dir."/include/security.php";

and

$smarty->display("admin/home.tpl");

By

@include $xcart_dir."/modules/gold_display.php";
func_display("admin/home.tpl",$smarty);


in the file : Customer/showpage.php

Replace :

require "../smarty.php";
require "../config.php";
@include "./https.php";
require "./auth.php";
require "../include/categories.php";

by

@include "./https.php";
require "../auth.php";
require "../include/categories.php";

and

$smarty->display("customer/home.tpl");

By

func_display("customer/home.tpl",$smarty);


in the file : skin1/admin/main/cmsmaker.tpl

{include file="location.tpl" last_location="CMS Maker"}

By

{include file="page_title.tpl" title="EZ Content Management"}

{"This section allows you to ..."}




Hope this will help


I can't get this working for version 4.0.12 and 4.0.16
In these versions there is no admin/home.tpl

Also the require code gives a parse error.
Anyone got this working for version 4.0.12 and above?

tntdesigns 03-14-2006 07:27 PM

Got CMS to work in 4.0.18
 
Well I had some problems with cmsmanger.php
image button did not load and errors when "To create html for another part of your site" hotlink when loading?
here is my fix:


Quote:

<?
/************************************************** ***************************\
+-----------------------------------------------------------------------------+
| X-Cart CMS Manager |
| Copyright (c) 2003 Sean Donahoe, Artwrkz.net |
| All rights reserved. |
+-----------------------------------------------------------------------------+
| |
| THIS AGREEMENT EXPRESSES THE TERMS AND CONDITIONS ON WHICH YOU MAY USE |
| THIS SOFTWARE PROGRAM AND ASSOCIATED DOCUMENTATION THAT RUSLAN R. |
| FAZLIEV (hereinafter referred to as "THE AUTHOR") IS FURNISHING OR MAKING |
| AVAILABLE TO YOU WITH THIS AGREEMENT (COLLECTIVELY, THE "SOFTWARE"). |
| PLEASE REVIEW THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT |
| CAREFULLY BEFORE INSTALLING OR USING THE SOFTWARE. BY INSTALLING, |
| COPYING OR OTHERWISE USING THE SOFTWARE, YOU AND YOUR COMPANY |
| (COLLECTIVELY, "YOU") ARE ACCEPTING AND AGREEING TO THE TERMS OF THIS |
| LICENSE AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY THIS |
| AGREEMENT, DO NOT INSTALL OR USE THE SOFTWARE. VARIOUS COPYRIGHTS AND |
| OTHER INTELLECTUAL PROPERTY RIGHTS PROTECT THE SOFTWARE. THIS |
| AGREEMENT IS A LICENSE AGREEMENT THAT GIVES YOU LIMITED RIGHTS TO USE |
| THE SOFTWARE AND NOT AN AGREEMENT FOR SALE OR FOR TRANSFER OF TITLE.|
| THE AUTHOR RETAINS ALL RIGHTS NOT EXPRESSLY GRANTED BY THIS AGREEMENT. |
| |
+-----------------------------------------------------------------------------+
\************************************************* ****************************/

require "./auth.php";
require $xcart_dir."/include/security.php";



$header="<center><img src=/store/admin/images/ezcontentlogo.gif></center>
";
$footer="

<center>Powered By EZ-Content Manager. &copy;2003 <a href=http://artwrkz.net> Sean Donahoe, Artwrkz.net</a>, All Rights Reserved";



if ($action==""){

$limitPerPage = 50;
$initStartLimit = 0;
if (!isset($startLimit))
{
$startLimit = $initStartLimit;
}
$querylimit = " limit $startLimit,$limitPerPage";

$nextStartLimit = $startLimit + $limitPerPage;
$previousStartLimit = $startLimit - $limitPerPage;

if ($sortby!="")
{
$sorted = " order by $sortby ";
}
$bareQuery = "select id,title,content,date,pagetype from cms ";
$queryall = $bareQuery.$sorted.$querylimit;
$resultall = MYSQL_QUERY($queryall);
$numberall = mysql_Numrows($resultall);

if ($numberall==0) {

$pagecontent="$header
<h3>There is no content at the moment</h3>

To add a new content item <a href=cmsmaker.php>Click Here</a>

";

}
else if ($numberall>0) {

$x=0;



$pagecontent="$header
<h3>List of current custom content </h3>

To add a new content item <a href=cmsmaker.php>Click Here</a>

To create html for another part of your site <a href=/store/admin/cmsmanager.php?action=html>Click Here</a>




<a href=\"$PHP_SELF?startLimit=$previousStartLimit;&l imitPerPage=$limitPerPage;&sortby=$sortby;\">Previ ous $limitPerPage Results</a>

<a href=\"$PHP_SELF?startLimit=$nextStartLimit&limitP erPage=$limitPerPage&sortby=$sortby\">Next $limitPerPage Results</a>



<table border=0 cellspacing=0 cellpadding=4>
<tr>
<td><a href=\" $PHP_SELF?sortby=title&startLimit=$startLimit&limi tPerPage=$limitPerPage\">Title</a></td>
<td><a href=\" $PHP_SELF?sortby=date&startLimit=$startLimit&limit PerPage=$limitPerPage\">Date Created</a></td>
<td><a href=\" $PHP_SELF?sortby=pagetype&startLimit=$startLimit&l imitPerPage=$limitPerPage\">Page Type</a></td>


</tr>

";
while ($x<$numberall)
{

// Changing Background color for each alternate row




// Retreiving data and putting it in local variables for each row
$id=mysql_result($resultall,$x,"id");
$title=mysql_result($resultall,$x,"title");
$date=mysql_result($resultall,$x,"date");
$pagetype=mysql_result($resultall,$x,"pagetype");


$pagecontent.="<tr height=30>
<td><a href=\"cmsmanager.php?id=$id&action=view\">$title< /a></td>
<td>$date </td>";
if ($pagetype==1){$pagecontent.="<td>Embedded Full Page</td>";}
if ($pagetype==2){$pagecontent.="<td>Rotating Side Panel -1</td>";}
if ($pagetype==3){$pagecontent.="<td>Rotating Side Panel -2</td>";}
if ($pagetype==4){$pagecontent.="<td>Rotating Side Panel -3</td>";}
if ($pagetype==5){$pagecontent.="<td>Fixed Side Panel -1</td>";}
if ($pagetype==6){$pagecontent.="<td>Fixed Side Panel -2</td>";}
if ($pagetype==7){$pagecontent.="<td>Fixed Side Panel -3</td>";}

$pagecontent.="
<td><a href=\"cmsmanager.php?id=$id&action=edit\"><img src=/store/admin/images/editthis.gif alt=\"Edit\" border=0></a></td>
<td><a href=\"cmsmanager.php?id=$id&action=delete\"><img src=/store/admin/images/trashcan.gif alt=\"Delete\" border=0></a></td>
<td><a href=\"cmsmanager.php?id=$id&action=view\"><img src=/store/admin/images/magglass.gif alt=\"View\" border=0></a></td>
</tr>";

$x++;
} // end while

$pagecontent.="</table>";

} // end if numberall > 0
$pagecontent.=$footer;
}


if ($action=="view"){
$bareQuery = "select id,title,content,date,pagetype from cms where id='$id'";
$resultall = MYSQL_QUERY($bareQuery);
$content=mysql_result($resultall,0,"content");
$pagetype=mysql_result($resultall,0,"pagetype");
$id=mysql_result($resultall,0,"id");
$title=mysql_result($resultall,0,"title");



$pagecontent.= $header.stripslashes($content);

$pagecontent.=$footer;
}

if ($action=="delete"){

$queryconfirmation = "select * from cms where id = '$id'";
$resultconfirmation = MYSQL_QUERY($queryconfirmation);
$numberconfirmation = mysql_Numrows($resultconfirmation);

if ($numberconfirmation==0) {

echo "This Record cannot be found !
";

}

else if ($numberconfirmation>0) {

$x=0;



$pagecontent="$header<h3>Is this the Record that you want to Delete?</h3><form name=formMaker method=post action=\"cmsmanager.php\">
<table border=0 cellspacing=0 cellpadding=5>
";

while ($x<$numberconfirmation)
{
$title=mysql_result($resultconfirmation,$x,"title" );
$content=mysql_result($resultconfirmation,$x,"cont ent");
$content=stripslashes($content);
$pagecontent.="
<tr height=30><td align=right>Title :</td><td>$title</td></tr>
<tr height=30><td align=right valign=top>Content :</td><td>$content</td></tr>";

$x++;
} // end while
} // end if


$pagecontent.="
</table>
<input type=hidden name=\"id\" value=$id>
<input type=hidden name=\"action\" value=delete2>
<input type=submit name=Submit value=\"Delete this Record\">
</form>";


$pagecontent.=$footer;
}

if ($action=="delete2"){
$querydelete = "delete from cms where id = '$id'";
$resultdelete = MYSQL_QUERY($querydelete);




$pagecontent.="$header<h3>Record with ID $id has been Deleted </h3>

Click <a href=\"cmsmanager.php\">here</a> to go back to Main Menu";
$pagecontent.=$footer;
}

if ($action=="edit"){



$queryupdate = "select* from cms where id = '$id'";
$resultupdate = MYSQL_QUERY($queryupdate);

$numberupdate = mysql_Numrows($resultupdate);

$id=mysql_result($resultupdate,0,"id");
$title=mysql_result($resultupdate,0,"title");
$content=mysql_result($resultupdate,0,"content");
$date=mysql_result($resultupdate,0,"date");
$pagetype=mysql_result($resultupdate,0,"pagetype") ;



$title=stripslashes($title);
$content=stripslashes($content);

$pagecontent="

<script language=\"Javascript1.2\"><!-- // load htmlarea
_editor_url = \"\"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split(\"MSIE\")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src=\"' +_editor_url+ 'editor.js\"');
document.write(' language=\"Javascript1.2\"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
$header
<h2>Edit content item</h2>
<form name=cms method=post action=\"cmsmanager.php\"><input type=hidden name=action value=edit2>
<table>

<tr height=30 valign=top>
<td align=right>Title :</td>
<td>
<input type=\"text\" name=\"titleField\" size=50 value=\"$title\" >
</td>
</tr>


<tr height=30 valign=top>
<td align=right valign=top>Content :</td>
<td>Remember if you are creating a side panel item your final width will be around 160 pixels wide so keep content short and to the point.


<textarea name=\"contentField\" wrap=\"VIRTUAL\" cols=\"60\" rows=\"20\">$content</textarea>
<script language=\"javascript1.2\">
editor_generate('contentField');
</script>
</td>
</tr>

<tr height=30 valign=top>
<td align=right valign=middle>Content Type :</td>
<td>
<select name=\"pagetypeField\">";

if ($pagetype=="1"){$pagecontent.="<option value=\"1\" selected>Current - Embedded Full Page</option>";}
if ($pagetype=="2"){$pagecontent.="<option value=\"2\" selected>Current - Rotating Side Panel -1</option>";}
if ($pagetype=="3"){$pagecontent.="<option value=\"3\" selected>Current - Rotating Side Panel -2</option>";}
if ($pagetype=="4"){$pagecontent.="<option value=\"4\" selected>Current - Rotating Side Panel -3</option>";}
if ($pagetype=="5"){$pagecontent.="<option value=\"5\" selected>Current - Fixed Side Panel -1</option>";}
if ($pagetype=="6"){$pagecontent.="<option value=\"6\" selected>Current - Fixed Side Panel -2</option>";}
if ($pagetype=="7"){$pagecontent.="<option value=\"7\" selected>Current - Fixed Side Panel -3</option>";}

$pagecontent.="
<option value=\"1\">Embedded Full Page</option>
<option value=\"2\">Rotating Side Panel -1</option>
<option value=\"3\">Rotating Side Panel -2</option>
<option value=\"4\">Rotating Side Panel -3</option>
<option value=\"5\">Fixed Side Panel -1</option>
<option value=\"6\">Fixed Side Panel -2</option>
<option value=\"7\">Fixed Side Panel -3</option>
</select>
</td>
</tr>

</table>
<input type=hidden name=id value=\"$id\">
<input type=submit name=Submit value=\"Submit\">
<input type=reset name=Submit2 value=\"Reset\">
</form>

";




$pagecontent.=$footer;
}

if ($action=="edit2"){
$query="update cms set title='$titleField', content='$contentField', date=NOW(), pagetype='$pagetypeField' where id = '$id'";

$result = MYSQL_QUERY($query);
$pagecontent="$header
Item Updated, please go back to main menu - <a href=cmsmanager.php>Click Here</a>";
$pagecontent.=$footer;
}

if ($action=="html"){

$pagecontent="

<script language=\"Javascript1.2\"><!-- // load htmlarea
_editor_url = \"\"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split(\"MSIE\")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src=\"' +_editor_url+ 'editor.js\"');
document.write(' language=\"Javascript1.2\"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>

<div align=\"center\">$header
<h2>Quick HTML Builder.</h2>
<table width=\"500\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">
<tr>
<td colspan=\"2\">How to use</td>
</tr>
<tr>
<td>Step 1.</td>
<td>Build your page in the HTML editor below.</td>
</tr>
<tr>
<td>Step 2.</td>
<td>Press the <img src=\"/store/admin/images/sourcebutton.gif\" width=\"29\" height=\"23\" align=\"absmiddle\"> button to view the source.</td>
</tr>
<tr>
<td>Step 3.</td>
<td>Copy and Paste the source code into what ever form area cell you want.</td>
</tr>
</table>




<textarea name=\"contentField\" wrap=\"VIRTUAL\" cols=\"80\" rows=\"50\"></textarea>
<script language=\"javascript1.2\">
editor_generate('contentField');
</script>


";




$pagecontent.=$footer;
}


$smarty->assign("pagecontent",$pagecontent);
$smarty->assign("main","cmsmaker");
$smarty->assign("location",$location);
@include $xcart_dir."/modules/gold_display.php";
func_display("admin/home.tpl",$smarty);
?>
[/quote]

tntdesigns 03-14-2006 11:56 PM

Got CMS to work almost in xcart gold 4.0.18
 
Ok,
I'm almost done updating CMS to work in xcart gold 4.0.18.
But the html code is being omited, so it only works for text.
no images or hyperlinks
any one have any ideas how to fix it?
Thank you :wink:
Tom

markwhoo 03-15-2006 12:18 PM

Nice to see this dug up and life being blown back into it.

This was a good idea back when and still is now.

Give em hell guys!

jackel 05-09-2006 03:52 AM

Hi all,

would anyone care to share code with latest developments for this mod?


thanks in advance.

QVS 05-19-2006 05:00 AM

would be interested in this for version 4.014

jackel 05-19-2006 02:02 PM

Anyone care to help out on this one? Seems to be no life in this development project again :|

Phiberoptx 01-15-2007 05:43 AM

Re: CMS Manager with built in HTML editor
 
Would love this for X-Cart 4.X if anyone has it available.

BuddahBoy 02-25-2008 11:30 AM

Re: CMS Manager with built in HTML editor
 
Quote:

Originally Posted by Phiberoptx
Would love this for X-Cart 4.X if anyone has it available.


dittos

ewebartist 05-08-2008 11:57 AM

Re: CMS Manager with built in HTML editor
 
What about the thought of implementing a bridge between an existing powerful CMS, such as Joomla, with X-cart? Something that would allow for single-sign on capability.. There is a developer on the joomla forums who is interested in developing such a bridge: http://forum.joomla.org/viewtopic.php?f=43&t=47123

It would make a lot of sense to build a bridge between the two since they are both established and supported web applications in their own respect. They would both be expandedable independently with their supported 3rd party add-ons (for x-cart) and open-source extensions (joomla) but still be linked (ie: being able to display products on joomla pages, linking to joomla articles and content sections from x-cart pages, etc.)

Any thoughts?

tonyhsieh 06-18-2008 04:45 AM

Re: CMS Manager with built in HTML editor
 
Is there a download of this available?

www.greenhousekeeper.cn

BuddahBoy 06-18-2008 06:03 AM

Re: CMS Manager with built in HTML editor
 
Quote:

Originally Posted by ewebartist
What about the thought of implementing a bridge between an existing powerful CMS, such as Joomla, with X-cart? Something that would allow for single-sign on capability.. There is a developer on the joomla forums who is interested in developing such a bridge: http://forum.joomla.org/viewtopic.php?f=43&t=47123

It would make a lot of sense to build a bridge between the two since they are both established and supported web applications in their own respect. They would both be expandedable independently with their supported 3rd party add-ons (for x-cart) and open-source extensions (joomla) but still be linked (ie: being able to display products on joomla pages, linking to joomla articles and content sections from x-cart pages, etc.)

Any thoughts?


Well, that could be very interesting. As a Joomla user it is clear the power that would be added - but I think that the primo way to go would be a release of x-cart CMS as it would allow for all issues, including security, to be addressed under one roof. A component of x-cart to use with Joomla, similar to VirtueMart, could be good but I'd much rather have an all encompassing product from one source - - that's just my personal 'druthers, no criticism intended :roll:

I'm very pleased that this subject is being addressed, if only minimally - shows that there may be some interest from the good folks at X-Cart -- it would be a very good time to come out with a new product and with so many going CMS it only seems logical to showcase a new ecommerce version of CMS -- maybe we'll hear something soon!

Thedae2k 07-03-2008 06:58 AM

Re: CMS Manager with built in HTML editor
 
I too would prefer to see X-Cart include it vs. bridge. However I would gladly take either to have something like that.

ewebartist 07-08-2008 06:12 AM

Re: CMS Manager with built in HTML editor
 
Good points about security, BuddahBoy. The x-cart/joomla connector I referred to earlier isn't actually a Joomla component, rather, it allows both the applications to run independently, but seamlessly handles session management, synchronizes user registration between both systems, and allows all Joomla and X-cart data to be accessible from either system.

This actually appealed to me, since it would be allowing Joomla to do what it does best, with the ability to harness the growing number of module/component contributions, and leaving x-cart to handle what it does best as well.

I am in the process of setting up a joomla/x-cart website. The approach I used was to find a clean tableless Joomla template to use as a framework for my x-cart skin. With a little tweaking, There is now a seamless transition between both the joomla and x-cart portions of the site without noticing the switch [apart from change in directory] Definitely worth the time and effort, imho.

On my joomla pages, I created a module for x-cart login, so I am bypassing the joomla user registration completely and relying totally on x-cart for this. Hence, while the user syncrhonization part of the joomla/x-cart connector might not be that crucial for me, I think that being able to display a minicart, featured products, and access x-cart variables on joomla pages would add immense value for my needs, and likely the needs of many others who need more content management in their lives :)


All times are GMT -8. The time now is 02:20 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.