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.
Related
m having a strange problem never faced it before and tried every thing and i mean everything but no luck at all.
What happened was i downloaded the application source code built on joomla 1.7 via ftp from the live server and deployed it on my localhost and configured it correctly. Now what happened is it displaying some sort of raw data all over the browser window, attached is the screenshot.
Please guys its been 5 days since i stuck in this mess any help will be highly appreciated
Thanks in advance
Maybe you have installed an extension, which supports distribution of PHP code as binary code? There exist different extensions to PHP, which support this kind of functionality. Probably the most widespread is Zend Guard. To execute a script which was encrypted by this software your PHP needs to load the free loader extension provided by Zend. If your server has loaded this extension and your localhost does not, the output might be something like you encounter.
Your first step should be to compare the output of phpinfo of both servers. If Zend Guard (or a similar extension) is loaded on your production server and not on your localhost, this might be the problem. Next step should involve taking a look at the PHP files and search for one which contains lots of unreadable characters. If this seems unreasonable to you, you might as well just install Zend Loader and see if it works then, which might be less work.
Not sure if this is the right place to ask this but I have a site with a staging and beta install of expression engine. Same versions same files everything appears to be identical. The config files are the same except for the url differences however the two sites behave differently for a number of extensions/modules. One issue was that on the staging site the previous developer had a template embedding another template and using it in a loop to execute another query so something like this:
{!-- template uri /example/uri --}
start loop
{embed="template/.thistemplate" id="{id}"}
end loop
{!--end template--}
This worked perfectly fine on staging but on the beta install it did not, it actually only embedded the last id passed through for every item in the loop which resulted in the same result for the whole loop.
To get this particular issue working I rewrote the code so that it didn't embed anything but I am having lots of other issues that are similar in the fact that they work on staging and not beta and I am wondering if anyone out there knows of any places where settings could drastically alter the behavior of the site.
In four years of EE development, I've never seen an issue like this. My only guess is that your beta environment may not use a supported version of PHP or may have modules configured in a way that parses EE's PHP code differently than your staging server does. If you haven't already done so, check the beta server's settings to make sure it fits EE's requirements. It's difficult to give you any other pointers without further information. Best of luck!
Sounds to me like the 2 sites are not truly in sync.
How was the 2nd site split off from the first site?
Were both the database and the filesystem cloned at the same time?
I would consider making a new snapshot of staging and using that as your beta site.
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.
I have an old joomla installation which was hacked. All I know for now only index.php was changed and they messed with my user accounts. I downloaded index.php from the current version but at one point it calls $app->dispatch(); which requires a component name parameter in my version. Does anyone know what parameter this should be? I tried: null, 'home', 'application',...
Also I'm planning on updating to the newest version later, however I can't seem to find my current version number. I found somewhere that it is displayed in the admin pages but I can't access them yet. Can I find it in the code files somewhere?
EDIT: The index.php from version 1.5.22 worked. Apparently the correct version was 1.5.3. Does anyone know what else I should check that might have been hacked/messed with?
Why not get a copy of the version you used?
http://forum.joomla.org/viewtopic.php?p=2221953
You can go to the joomla project on
joomlacode.org, then select the search
tab. From there you type in "1.0.10"
and select Releases to search in. You
should get some results. Click on the
one you are searching for, the files
can be found on the files tab, this
time the tab is on a blue bar (more to
the bottom of the screen).
Although I'd recommend upgrading completely, to stop being re-hacked again.
====== Answer to second question
How big is the site? Usually if it's just a link spamming attack a quick once over will suffice.
The next issue is that you need to patch the hole that caused the problem, in this case upgrading to the latest Joomla (1.6 - I believe) is the first port of call.
Have you modifed the Joomla system in such a way that the hack could have been opened up by you?
My advice, reset the admin passwords and upgrade Joomla.
Very difficult to say anything else without seeing what the "hack" was.
I had to clean out a hacked Joomla install recently. My tip is to grep all the files base64_decode: some hacks consist of decoding a huge string that emits php.
find ./ | xargs grep base64_decode
The hack looked like this: error_reporting(0);eval(base64_decode('JGxMOXdGMWFZNHpY.....
This particular piece of code detected googlebot and other crawlers, and then emitted a list of spam links heavy on viagra. If a normal user agent string was used it showed a normal site. I had to use a firefox extension that changes the user agent to debug this.
The next step would be getting rid of the exploit and then either patching Joomla and waiting for the next exploit or switching to something more secure, like static html or a well-maintained CMS.
Fortunately Joomla has really nice documentation on how to recover from a hack. http://docs.joomla.org/Security_Checklist_7. As Pino mentioned, it is critical that you are always on the latest version to minimize your exposure to security exploits.
I built a php site that is hosted with an ISP. A friend who is a designer is supposed to edit the page content. There's an area on the page that is open for page content, but most of the outer "wrapper" is built with include() files.
When she opens the files in design mode, everything is broken. I tried to set up a test server in DW, but this didn't work either. I never use DW and am stuck.
Is it possible to work on a file off of a server via ftp in real time with DW? If not, can it at least be configured to render the php code in design mode somehow?
Thanks,
D.
PHP is a server-side language, Dreamweaver is catered toward simple client-side HTML web pages. You would need to setup a PHP interpreter somehow in order for Dreamweaver to show you the output of the PHP, last I recall when I used DW years ago it didn't have that feature, so I doubt you'll be able to do this.
#meder: It appears you are correct for exactly the reasons you stated. The last time I used DW, I was only on the code side, so it never came up. I know we were saving to the server then, so I was thinking it could draw it from the server as well.
Alas, no luck. Sorry to post before I RTFW more.