Html from modules being escaped - php

I have an issue with html output from a joomla module being escaped so that it's rendered as text .
I have no idea why this could happen, is it a joomla core issue?
This only started happening after an update

It looks like a problem with the extension that uses the {source} tags, rather than Joomla. Googling says this is probably Sourcerer.
Make sure that Sourcerer is also patched and that the developer says it works on the version of Joomla you have updated to. Also check that it is still published in your plug-ins list. Third party extensions can often stop working if you update the core code and their code is for an earlier version of Joomla (or just badly written).
Looking at the code in your example, you probably don't actually need Sourcerer to add your code anyway as it is all HTML rather than server side code - just update the editor plugin's parameters to stop it stripping the tags you want to use. NB code needs to be added in the code view rather than the WYSIWYG view of the editor.
Sourcerer is really primarily for PHP, which makes me balk as it feels like a massive hack rather than an extension designed with good practise and Joomla's framework in mind.

Related

PHP Tools extension and HTML intellisense

I got the PHP Tools professional version, but realized that it only has php intellisense, and that it only has color highlighting for HTML. While html itself admittedly isn't difficult, I would like to have intellisense for it as well.
Does anyone know of a way that I can link both PHP and HTML intellisense to a single extension?
I tried to go to options->Text Editor->File Extension and set the php extension to the HTML editor, but it removed the PHP Tools intellisense and just replaced it with the HTML one. What I'd really like is to keep the php while adding (not replacing) html editor tools.
This is known limitation of external editors for Visual Studio. Anyway according to PHP Tools features page (just updated), the work is in progress. For now, it isn't possible to 'mix' two languages like HTML & PHP.
Look at this thread:
http://support.devsense.com/viewtopic.php?f=21&t=987
Seems to come soon :-).

Dreamweaver CS6 view includes

I recently switched to dreamweaver version CS6 from CS4. In CS4 there was a handy feature that would show tabs of the includes files. CSS PHP Javascript etc. It would show these tabs right above the "code, split, design, live". Does CS6 not have this feature or do I simply have to enable it?
If so, where and how?
Oh yeah. I'm using the Design Compact dreamweaver layout.
Hope you guys can help me out. I really need that feature back ^^
Nvm. I finally found what I had to change. In the general settings, enable relative files: on.
It's not only there but it works better than it did before because it can scan deeper for PHP files (I think CS5.5 improved it for use with things like Wordpress). When you open a file with includes they should be there next to the file name. Although it's better, it's still not perfect so if you have dynamically created includes you still might not see them.

Drupal static homepage not working

First off, I'm completely new to Drupal, so I could be making a ridiculously simple mistake...
I'm using Drupal 7.9, and trying to use an HTML homepage that I've already created, that does not follow the Theme...
I've tried using the page-front.tpl.php file, but it is completely ignored. I then found that in Drupal 7 I should be using page--front.tpl.php, but that is ignored as well.
I've looked through many different tutorial and FAQs, but to no avail. Can someone possibly point out what I'm doing wrong? I've even added some test text to the page.tpl.php file, just to make sure that it's loading that one instead; which it is. Is there some setting that I'm missing that tells Drupal to use the page--front.tpl.php file?
Here's the server setup...
Windows Server 8;
IIS 7;
MySQL 5
PHP 5
I know, we should be using Linux and Apache... I'm still working on getting our Windows happy VP to let me make the switch...:)
Thanks for any help, I'm at a loss here...
--Charles
Drupal manages all pages dynamically and stores content in the database. You will be able to designate a specific page as your home page and render it differently than other pages if you wish. Drupal is extremely flexible and capable of almost anything by using the many expansion modules that are available for it. Having said that, you should also know that there is a 'learning curve' to Drupal so don't expect good results right off the bat. If this is a one-off project, you may want to look at other alternatives as well.

Tools to understand website source code

I recently had a website developed by an external source. They gave me the source code as well as sql files.
When I extract the source code I see folders like Smarty, fckeditor and many php files. I want to start editing these as I find it to be the best way to learn. What tool should I use. I tried using trial version of PHPdesigner, but it just doesnt open my php files.
Is there any tool that can take all these files in the form of a project and simultaneously show me a visual display of any changes that I make.
I suppose it is very clear that I am new to this. Any help will be greatly appreciated.
Just use simple text editor with some code highlight like Notepad++
It is free to use, very fast and it does what you need.
First of all try to know what are the different file types and which lanuguage are those targeted to. Once you know that you can then decide on the editor.
What i recommend is you try to find out if they used a framework for the website, something like CakePHP or CodeIgniter. The next step after you find out is to go the framework website and start reading the documentation.
If the site id developed in php most likely any type of WYSIWYG editing is going to inaccurate. This is because a number of different files need to be processed and combined by the php interpreter before they come together to make any given page or view. Thus the only way to really preview is to run it on a server. Since you say there are sql files he has laso used a DB to store something so most likely any changes you would need to make are going to be spread between both the php source files and the records in the db.
Aptana (Which is Eclipse based) is great at handling many different file type in one IDE. I would use Studio 2 w/ the plugins you need or if you feel cutting edge try Studio 3. It's cross platform so Linux/Windows or OSX.

What PHP/JS specific features does Dreamweaver CS5 have?

I'm debating on whether to get Dreamweaver CS5 or Zend Studio for my web developing. I was happy with Dreamweaver until I tried Zend Studio (and Netbeans for that matter) and realized what kind of great code formatting and completion I was missing out on.
My question is, does the newest version of Dreamweaver support:
PHP / JS formatting
Code completion (including custom classes)
Don't know if this will help much b/c I don't know what previous versions of DW had or didn't have. I was using the old Homesite/Coldfusion Studio editor before starting a new job where I had to use DW CS5. For PHP it will help with auto completion of variables, both $_(whatever) type, as well as one's you've previously defined on the page.
DW also checks for things like missing ";" at the end of lines and brackets not being closed correctly when you're doing a bunch of function(calls(inside(other(functions())))).
If you want the WYSIWYG part, it's there, but it's trivial to make it go away and stay on a "code only" view.
Not sure about the JS side as much. I usually debug via Firefox tools.
Hope that helps.
D.

Categories