Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Removehtmlheaders Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Steve2507
VP-CART Expert

590 Posts

Posted - December 04 2009 :  06:57:22  Show Profile  Reply with Quote
I am trying to change the Removehtmlheaders function as at the moment it removes the html coding which is great, but we want it to insert a space where the html code is.

Any ideas anyone:
Function Removehtmlheaders(itemname, CR)
dim workrecord, firstchar, morefields, pos, endpos, length
dim token
workrecord=replace(itemname,"<br />",CR)
pos=1    
morefields = True
Do While morefields = True
   pos=1    
   pos = InStr(pos, workrecord, "<")
   If pos > 0 Then
       endpos = InStr(pos, workrecord, ">")
       If endpos=0 then
            morefields=false 
       else  
         length = endpos - pos + 1
         token = Mid(workrecord, pos, length)
         workrecord=replace(workrecord,token,"")
       end if
     else
        morefields=false
     end if
loop
workrecord = replace(workrecord, """", "'")
Removehtmlheaders=workrecord
end function   



Steve
Sex toys from a UK sex shop including vibrators and dildos.

carfin
VP-CART Expert

United Kingdom
948 Posts

Posted - December 04 2009 :  07:53:31  Show Profile  Reply with Quote
Hi Steve,

in the line:

workrecord=replace(workrecord,token,"")

add a space (or other character) between the quotation marks.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

Steve2507
VP-CART Expert

590 Posts

Posted - December 04 2009 :  08:44:19  Show Profile  Reply with Quote
Hi Carrol,

Thank for that, you're a star.



Steve
Sex toys from a UK sex shop including vibrators and dildos.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00