Welcome, Guest

TOPIC: PHP and Image in quickmode form

Re:PHP and Image in quickmode form 2 years, 3 months ago #11975

Hi Terry

Yes , everything is installed in the same database, same joomla

I have the quickmode built breezing form, on the product page of the virtuemart

on the page is the product image

which displays no problem

the issue is a design one, because of the nature of the form, the product image has to sisplay within the quickmode form.

otherwise it displays above or beside the form, and the form is so large, so many questions that you have to scroll all the time to the top of the page to check the image, so the image needs to be in a section of the form, besides the sizes section.

the image displays on the joomla/virtuemart page no problem using

<img src="components/com_virtuemart/shop_image/product/<?php echo $product_full_image; ?>" width="400"/>


but I cannot put the same, anywhere, inside the quickform form and display the image.

I have tried the label areas, the description sections etc, nothing seems to work

I can display any image at all in the html description area of any section using just html code

<img src="images/stories/logo.png" width="400"/>


this works no problem

but the same as

<img src="images/stories/<?php echo $product_full_image; ?>" width="400"/>


would not work, even if it works elsewhere on the page, 'outside of the quickform'

apart from this ongoing battle, the other is the item from the seperate thread i posted, about finding the page, from which the quickform has been submitted, the code from that thread, works in classic mode built forms, but again, doesnt work in quickform built forms....

Steven
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0

Re:PHP and Image in quickmode form 2 years, 3 months ago #11976

Is there any way to bypass the php getting cleaned from the description

Since the only person who is EVER editing content is me, is it possible for me to comment out the cleaning of admin entered content into the html descriptions

at the moment, if I enter the following into the description html editor (with wysiwyg turned off)

123 <?php echo "Hello World"; ?> 456


It displays in the page html as..

<p class="bfSectionDescription">123  456</p>


If I can find the section of BF thats cleaning the php, i would be happy for now, to just turn off the cleaning code, at least this would allow me to display the code i need.

Steven
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0

Re:PHP and Image in quickmode form 2 years, 3 months ago #11984

Can you tell me, where the php in breezing forms is located, that displays the sections description content from the database table

jos_facileforms_elements.title

because I have checked in the mysql, and the code I want to display, is saving correctly in the database, it does have..


123 <?php echo "Hello World"; ?> 456


So whatever is stopping and stripping the php, is in the public facing display side of the form, not the admin section, the admin section is not stripping the php, its saving it as I want into the database..

Steven
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0

Re:PHP and Image in quickmode form 2 years, 3 months ago #12036

Can anyone at all help me to solve this

How do I add PHP into the descriptive editable section part of a quickmode built form..


I cannot even get it to display 'hello world'

all the PHP is stripped by the display of the form

The PHP does get saved into the database, it does exist in the mysql

but if I enter in admin

123 <?php echo "Hello World"; ?> 456


it saves correctly in mysql, but then the front end of breezing forms displays it as

123  456


How do I stop the PHP from getting stripped on display


?

Please, anyone, I have been hassled by this problem for the last 4 days, and am getting nowhere at all..


Steven
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0

Re:PHP and Image in quickmode form 2 years, 3 months ago #12038

Found better info... refer to next post.



Terry
Customer Care
  • terrywmu
  • OFFLINE
  • Administrator
  • Posts: 510
  • Karma: 8
Last Edit: 2 years, 3 months ago by terrywmu.

Re:PHP and Image in quickmode form 2 years, 3 months ago #12046

Hey Steven,

I just found another forum post that seems to address what you're trying to attempt. The post is at:

crosstec.de/forums/15-usage/8967-syntax-...m-another-table.html

In particular, look at this post:

crosstec.de/forums/15-usage/8967-syntax-...=6&start=18#9161

For this section of the code in that post:

cb_biography, cb_address, cb_city, cb_state, cb_zip, 
cb_country, cb_phone, cb_affiliations, cb_website
FROM #__comprofiler 


You are going to want to replace cb_biography, etc. with the name of field in your VirtueMart table that houses the image you want to import (and obviously delete the others).

You're also going to need to change the "FROM #__comprofiler" in the code to whatever your VirtueMart component is called. (I'm not positive on this part exactly how yours should display, but a bit of trial and error ought to make it easy enough to figure out.)

Anyhow, let's see if this gets you on the right path. Can you let me know either way?

Thanks, Steven!

Terry
Customer Care
  • terrywmu
  • OFFLINE
  • Administrator
  • Posts: 510
  • Karma: 8
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.49 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint