Open Source Services
taming open source systems...
Home arrow Forum
Friday, 05 December 2008
Main Menu
Home
Forum
Products
Download
Sitemap
Contact Us
Poll
How did you find this site?
 
Login Form





Lost Password?
No account yet? Register
Open Source Services
Welcome, Guest
Please Login or Register.    Lost Password?
Adding video within product description (1 viewing) (1) Guest
Support forum for CineSound shareware version for osCommerce. Installation Service | Premium Version
Go to bottom Post Reply Favoured: 0
TOPIC: Adding video within product description
#577
deaddingo (User)
Junior Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Adding video within product description 3 Months ago  
In my product description area I use fckeditor to edit the text for each item (latest version)

When I try to put the following code into it
Code:

<tr> <td align="center"><?php require_once(DIR_WS_FUNCTIONS . 'cs_av.php'); doCineSoundContent('Index Default'); ?> </td></tr>
the editor strips off the php tags and replaces them with !-- ones. Is it possibly to implement this with the fckeditor contribution in product descriptions? Cheers
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#578
hanuman (Admin)
Admin
Posts: 289
graph
User Offline Click here to see the profile of this user
Re:Adding video within product description 3 Months ago  
Hi

Thanks for the post - by the way, I'm working on your other posts at the moment and will answer them in due course.

To put a/v content in your product info page, you don't need to add php code in the product description. The best way is as follows:

1) Create a new position in CineSound - call it something like 'Product Info'

2) Add the code you pasted in your last post (but change 'Index Default' to 'Product Info' into the required position in your product_info.php file. You may need to do a bit of tweaking with the HTML to get the required presentation.

3) Create a clip for each product. For each clip, use 'products_id=XX' as the URL Substring, using the product id of the product instead of XX.

This way, you can use the same position to display clips for any product.

I'm not sure why the PHP tags are being replaced in fckeditor. As a longshot, you could have a look at fckeditor/fckconfig.js. Search for a line that looks like

Code:

FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
and comment/uncomment as required. Hope this helps Nick
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
 
© 2008 Open Source Services
Designed by Open Source Services. Powered by open source software.
Seasonale
Generated in 0.63363 Seconds