Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Escaping the []
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - April 15 2014 :  08:03:06  Show Profile  Reply with Quote
Hi All

I''m trying to use prettyphoto to call an iframe, but it uses the command [iframe] to do it.

This obviously conflicts with VPASP as it tries to look for a field in the database for iframe.

Is there anyway to tell VPASP to ignore this tag with an escape character or something?

Regards,

Mark
[URL="http://www.fireworkscrazy.co.uk"]Fireworks For Sale[/URL]

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - April 18 2014 :  04:48:49  Show Profile  Reply with Quote
seems hard, what if just change to using the other coding that similar prettyphoto but does not using [iframe]
i know there are a lot lot of photos widget out there.
diego.
Go to Top of Page

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - April 18 2014 :  05:38:43  Show Profile  Reply with Quote
I think I might have found a work around. Just add iframe to the database but leave it blank.

Regards,

Mark
[URL="http://www.fireworkscrazy.co.uk"]Fireworks For Sale[/URL]
Go to Top of Page

manilow
VP-CART New User

France
134 Posts

Posted - April 18 2014 :  17:46:49  Show Profile  Visit manilow's Homepage  Reply with Quote
Mark,

I just added Google Translation on my web site. However, an error occured when inserting the Google JS code in a free text box in the page manager (the quotes in the code weren''t sql string compatible).

To make it work, I created a new language field including the Google JS code. Then I inserted the new language field in the free text box.

I think you could use the same way to insert a field with [] brackets. Create a language field like langiframe and put the [iframe] code in it. Then call the code by [getlang langiframe].

I hope it will help you further.

Kind regards,

Erik
www.aquathermia.com
Go to Top of Page

diegomilito
VP-CART Expert

Argentina
779 Posts

Posted - April 19 2014 :  04:05:30  Show Profile  Reply with Quote
i think ur idea will work manilow. how good ur.
diego
Go to Top of Page

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - April 19 2014 :  06:26:38  Show Profile  Reply with Quote
I''ll give that a go, thanks Erik.

Regards,

Mark
[URL="http://www.fireworkscrazy.co.uk"]Fireworks For Sale[/URL]
Go to Top of Page

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - April 30 2014 :  10:16:39  Show Profile  Reply with Quote
This doesn''t appear to be working.

I added the following to the language table.


927

English

langiframe

[iframes]



And this returns the following [iframes] tag as needed, but I also get the same error.

Field iframes not in database

So I added.

929

English

iframes

To the database and reloaded, but I''m STILL getting the iframes not in database error????




Regards,

Mark
[URL="http://www.fireworkscrazy.co.uk"]Fireworks For Sale[/URL]
Go to Top of Page

Mark Priest
VP-CART Expert

United Kingdom
580 Posts

Posted - April 30 2014 :  10:20:38  Show Profile  Reply with Quote
I think this is because its not a lang call.

How do I add just iframes to the database?

Regards,

Mark
[URL="http://www.fireworkscrazy.co.uk"]Fireworks For Sale[/URL]
Go to Top of Page

manilow
VP-CART New User

France
134 Posts

Posted - April 30 2014 :  17:58:31  Show Profile  Visit manilow's Homepage  Reply with Quote
Mark,

You may try to insert the following code into your shopfileio.asp file, in the ProcessKeyword subroutine (around lines 750 - 800). The code in green is to be inserted just above the existing code at the end of the sub routine (in red).


case "INSERTIFRAME"
response.Write("[iframe]")
rc=0


End S elect
End sub



Then, in any template, an [INSERTIFRAME] tag will write [iframe] in the html code.

I hope this will do the trick.

Kind regards,

Erik
www.aquathermia.com

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