Whenever I attempt to insert a php line into the welcome screen module, it appears to comment it out, i.e.:
<?php include '../rss/rss2html.php'; ?>
becomes
<!--?php include '../rss/rss2html.php'; ?-->
Any ideas how to accomplish this?
Many thanks
Edit the template files directly
The only problem is that it needs mixing in with the welcome message, I'd lose the ability to edit the message, which is fine for me but not other cart users.uksitebuilder wrote:You cannot enter HP directly in to modules via the admin interface.
Edit the template files directly
I've added config.protectedSource.push( /<\?[\s\S]*?\?>/g ); to the CKEditor config file which prevents the admin panel from commenting out the code but when it comes time to display it on the front page of the site it still comments it out. Am I missing something here?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I will be putting the php in place but other editing will be of other visual elements, it's the ease of access that's important. I'm quite happy with the security element of those who have access to it. It's not about number of people, it's about me not wanting to give ftp access and just one person not being comfortable with editing and uploading files isn't good enough.Xsecrets wrote:how many people are you going to have editing the admin of your cart and using php to do it? If you really have that many people doing it then it's an even more important security feature, which is why you can't do it in the first place. It's dangerous.
You would need to get a developer to add this functionality.
Maybe post on the Commercial Support forum or contact a Partner from our Partners page
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
You would have to str_replace and then eval the result which i highly advise against for security reasons - eval() is evil!
I meant to run your PHP code within the controller, then output the result (not the actual code) to the desired place by putting a place holder in ckeditor.
I agree, using eval gets messy and problematic.
Wedding Invitations and Stationery by Love2print
Commercial Mods
Product Colours on Category Page
Cardsave Direct Gateway
Clear Cache
Promotional Watermarks on Images
Multiple Category / Product Templates ** Popular **
Log Failed Login Attempts
Display Eligible Coupons with Products
Twitter Feeds
Have I helped you out or saved you some time? Please donate
Users browsing this forum: stefansmith129 and 205 guests