Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Upgrade your site to Smarty 2.6.2

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #11  
Old 05-12-2004, 05:31 PM
 
successful successful is offline
 

eXpert
  
Join Date: Sep 2002
Location: Brooklyn
Posts: 208
 

Default

Darren,

Thanks! It worked really nicely.
__________________
Visit us at http://www.Successfulhosting.com
We\'ll make your web site a success!

Register your own domain name for only $14.99 at http://DiscountDomainRegistry.com
Reply With Quote
  #12  
Old 05-14-2004, 11:45 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

I'm running 0n unix with 3.5.7 and smarty 2.6.2 and have no problems at all working in webmaster mode???? Strange?
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #13  
Old 05-15-2004, 12:44 AM
 
cmtrade cmtrade is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Florida
Posts: 30
 

Default webmaster mode

Well, I made a small mistake, I don't know how much it was affected by this, but I am not using unix, I am using linux.
__________________
Dan.
KingWebmaster, LLC
Professional Website Development
http://www.kingwebmaster.com
http://www.autodataentry.com
Reply With Quote
  #14  
Old 05-15-2004, 08:11 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Anyone get this working in 3.4.x???

I would love to bring that store of mine "up to speed"!
Reply With Quote
  #15  
Old 05-15-2004, 11:33 PM
 
GM GM is offline
 

eXpert
  
Join Date: Mar 2004
Location: Canada
Posts: 293
 

Default

Apache/1.3.29 (Unix) Come see... come saw same 'ting. I don't think Linux is your problem. Could be something stupid, for awhile it wasn't working for me either until I shut off my popup blocker... DOH!!!
__________________
v. 4.0.14 (GM Style)
O.S. Linux
Build Your Own Diamond Ring
Reply With Quote
  #16  
Old 05-17-2004, 04:57 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Quote:
Originally Posted by adpboss
Anyone get this working in 3.4.x???

I would love to bring that store of mine "up to speed"!

I still haven't figured out the issue, and no one around here seems to know, so I downgraded back to 2.5.0. Now webmaster mode works perfectly again. It's good to have it back!
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #17  
Old 05-17-2004, 05:29 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default

just tested webmaster mode on my setup ... i'm getting the x-cart debug console window, but not the status bar information.

Looking into it now !
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #18  
Old 05-17-2004, 05:30 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Quote:
Originally Posted by darrenkierman
just tested webmaster mode on my setup ... i'm getting the x-cart debug console window, but not the status bar information.

Looking into it now !

Thanks! Let us know if you find anything!!
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #19  
Old 05-17-2004, 05:51 AM
 
cmtrade cmtrade is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: Florida
Posts: 30
 

Default

I found this in /smarty-2.5.0/smarty.class.php. It was all the way at the bottom, and it was not in 2.6.2 at all.

Code:
# # ADDED FOR WEBMASTER MODE # function webmaster_include($_smarty_compile_path, $tpl_file) { if ($this->webmaster_mode) { $tag = "div"; foreach ($this->tagsTemplates as $tmplt=>$t) { if (ereg("^$tmplt\$", $tpl_file)) { $tag = $t; break; } } if ($tag!="omit") { ?><<?php echo $tag?> id="<?php echo $tpl_file?>" onMouseOver='dmo(event)' onMouseOut='dmu(event)' style="margin:0px;"><?php } } include($_smarty_compile_path); if ($this->webmaster_mode && $tag!="omit") { ?></<?php echo $tag?>><?php } } # # / ADDED FOR WEBMASTER MODE #

I added it, but it did not do the trick, i am sure that there are more things that the xcart people changed in 2.5.0 that need changing in 2.6.2.
__________________
Dan.
KingWebmaster, LLC
Professional Website Development
http://www.kingwebmaster.com
http://www.autodataentry.com
Reply With Quote
  #20  
Old 05-17-2004, 06:06 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Ok, here's what I did to look into this further. I ran a file comparison on the original smarty.class.php file that came from smarty.php.net(left) (for 2.5.0). I compared that to the version included in the x-cart distribution (right) below:

Code:
FILE COMPARISON Produced: 5/17/2004 10:02:40 AM Mode: Just Differences Left file: \Desktop\Smarty-2.5.0\libs\Smarty.class.php (original Smarty file) Right file: /xcart/Smarty-2.5.0/Smarty.class.php (from x-cart) L45 /* $Id: Smarty.class.php,v 1.375 2003/04/11 13:40:40 mohrt Exp $ */ R45 /* $Id: Smarty.class.php,v 1.3.2.1 2003/05/07 14:07:46 matr Exp $ */ ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1158 include($_smarty_compile_path); R1158 $this->webmaster_include($_smarty_compile_path, $tpl_file); ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1164 include($_smarty_compile_path); R1164 $this->webmaster_include($_smarty_compile_path, $tpl_file); ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1530 if ($template_timestamp <= filemtime($compile_path)) { R1530 if (($template_timestamp <= filemtime($compile_path)) && (!preg_match("/cu[s]?tom[e]?r\/m[a]?in\/p[r]?od[u]?ct.t[p]?l/i", $tpl_file))) { ------------------------------------------------------------------------ ------------------------------------------------------------------------ L1769 include($_smarty_compile_path); R1769 $this->webmaster_include($_smarty_compile_path, $_smarty_include_tpl_file); ------------------------------------------------------------------------ ------------------------------------------------------------------------ L2062 chmod($filename, $this->_file_perms); R2062 @chmod($filename, $this->_file_perms); ------------------------------------------------------------------------ ------------------------------------------------------------------------ R2699 # # ADDED FOR WEBMASTER MODE # function webmaster_include($_smarty_compile_path, $tpl_file) { if ($this->webmaster_mode) { $tag = "div"; foreach ($this->tagsTemplates as $tmplt=>$t) { if (ereg("^$tmplt\$", $tpl_file)) { $tag = $t; break; } } if ($tag!="omit") { ?><<?=$tag?> name="<?=$tpl_file?>" onMouseOver='dmo(event)' onMouseOut='dmu(event)' style="margin:0px;"><? } } include($_smarty_compile_path); if ($this->webmaster_mode && $tag!="omit") { ?></<?=$tag?>><? } } # # / ADDED FOR WEBMASTER MODE # ------------------------------------------------------------------------

It appears as if there are several lines there that refer to webmaster mode, but I am not sure which ones we need, and especially how to correct them in the 2.6.2 version of the file. Thoughts?
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:35 AM.

   

 
X-Cart forums © 2001-2020