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

Want a WYSIWYG detailed description text area?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 01-24-2005, 03:24 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

Quote:
Originally Posted by markwhoo
I can't believe that no one has tried to implement this into the Gift registry Mod for end users.

anyone out there?

Mark,

I plan on getting to this in the next day or so...in the middle of template design and such. If no one gets to it before I do, I'll have a go at it and have something to share in the next 48 hours.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #52  
Old 01-24-2005, 03:48 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

Quote:
Originally Posted by hooter
Quote:
Originally Posted by markwhoo
I can't believe that no one has tried to implement this into the Gift registry Mod for end users.

anyone out there?

Mark,

I plan on getting to this in the next day or so...in the middle of template design and such. If no one gets to it before I do, I'll have a go at it and have something to share in the next 48 hours.

Sweet!

I have been trying to do this and have not been generating errors, but the interface just does not show up for some reason.

I have used several different variations of the call tags (for type box area) but none of them have worked so I am missing something here.


I will watch closely because I think this will make things better for the end user that knows little to nothing about HTML and use of the Gift Registry.

Thanks for your time and efforts!!
__________________
vs 4.1.12
Reply With Quote
  #53  
Old 02-03-2005, 10:30 PM
 
Grumpy Grumpy is offline
 

Member
  
Join Date: Jan 2005
Location: Australia
Posts: 26
 

Default Anyone ever get this working

If so how and what was changed?

Cheers
__________________
GerryB
Xcart 4.0.11
____________
Remember not to forget that which you do not need to know.
Reply With Quote
  #54  
Old 02-04-2005, 07:59 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

remember to wrap any java code in {literal}{/literal} tags

cant see why you need to add code to customer/home.tpl as you only use html area in the admin which is dealt with by single/home.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #55  
Old 02-04-2005, 11:46 AM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

Quote:
Originally Posted by shan
remember to wrap any java code in {literal}{/literal} tags

cant see why you need to add code to customer/home.tpl as you only use html area in the admin which is dealt with by single/home.tpl

Need to remember if you wish to add this to the Gift Registry there is a text box for end user to send html greetings, invites and cards to their guests or event goers.

The majority of the end users will not know html, so I thought this would be great to add it into this add on.

If this is done, it may need to go into the customer/home.tpl, unless the java could go on same page as the text box (in some cases can)
__________________
vs 4.1.12
Reply With Quote
  #56  
Old 02-04-2005, 11:47 AM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

Quote:
Originally Posted by hooter
Quote:
Originally Posted by markwhoo
I can't believe that no one has tried to implement this into the Gift registry Mod for end users.

anyone out there?

Mark,

I plan on getting to this in the next day or so...in the middle of template design and such. If no one gets to it before I do, I'll have a go at it and have something to share in the next 48 hours.

Hooter, were you successful with getting this to work with the Gift Registry yet?

I thought I would play with it again this weekend, but did not see if you were successful yet via posting.
__________________
vs 4.1.12
Reply With Quote
  #57  
Old 02-04-2005, 01:07 PM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default

^@markwhoo

Sorry Mark, no I haven't yet - other priorities keep getting in the way

I intend to do it at least for myself in the near term, and will post results as soon as I'm finished. Apologize for the delay.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #58  
Old 02-04-2005, 01:19 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

Quote:
Originally Posted by hooter
^@markwhoo

Sorry Mark, no I haven't yet - other priorities keep getting in the way

I intend to do it at least for myself in the near term, and will post results as soon as I'm finished. Apologize for the delay.

I totally understand. My pile just keeps getting larger each hour myself.

Like I said, I will try to play with this over the weekend as well, so maybe with luck, I can figure out how to get it added. If so, I too will post results.

If not, I will watch to see if you have success...
__________________
vs 4.1.12
Reply With Quote
  #59  
Old 02-04-2005, 05:33 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Here we go...

HTML Area for the Gift Registry addon 4.x.
This assumes that you have the htmlarea directory inside the root of your cart. (eg. /xcart/htmlarea/)

Open skin1/customer/home.tpl and in between the <HEAD></HEAD> tags add:
Code:
{literal} <script language="Javascript1.2"><!-- // load htmlarea _editor_url = "./htmlarea/"; // 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> {/literal}

Now open /skin1/modules/Gift_Registry/event_modify.tpl
and find:
Code:
<TEXTAREA cols="50" rows="20" name="event_details[html_content]">{$event_data.html_content}</TEXTAREA>
and right above that add the following:
Code:
{literal}<script language="JavaScript1.2" defer> editor_generate('event_details[html_content]'); </script> {/literal}

And that should do it.

HTH
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #60  
Old 02-05-2005, 11:04 AM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default

AAAHHHH,

I was so close. I was using the same call for text area, but only one half or the other at a time. I was trying to mirror the other areas and their text fields and did not take the entire line.

Anyway, This works great. For others that use this, remember to look closely at the way your HTML folder location is called. This could cause problems if not in same location.

Mine is in site root, not xcart root. Makes a difference as noted by Emerson above.


Thanks for the help Emerson, this works great. Now all I need to do is tweak the html interface a bit to allow end user to call up possible templates to use if they know totally nothing, but want a nice layout and then ability for them to personaslize.

I think this is going to be a real hit with them.

Thanks again.
__________________
vs 4.1.12
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 02:13 AM.

   

 
X-Cart forums © 2001-2020