The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
When I create a site I can change pretty much anything with CSS, but if I want to change big chunks of the site layout I have to alter every single page which is not good. So my question is, should I have studied php all those years ago? Is there anything out there that can do all this form me for free so I dont have to change 100s of webpages individually? Or maybe there's a new programming language in development thats better than ASP and PHP, in which case should I start learning now?
Its okay, this wont affect my current site, but I need to know for future projects. Freeola is done in php right? it cant be that difficult. Could I be able to master it within a week?
Thanks for your help guys, I appreciate it.
Talking of the sidebar, do you think its a good idea to have an empty include? Lets say I put this at the bottom of my sidebar
<?php include('temp.php'); ?> and leave the php file blank. But then I decide run a competition for a few months and put it in the temp file without having to go through all my pages and add a new code. > Is it okay if I put them all away in a separate folder? I like
> to keep everything tiny.
You can do but dont go crazy with separate folders as further down the line you might start having fun with include paths.
I'm about to test this php include for the first time. I wonder if I should see the php include as a way of importing code rather than a piece of the page. So for my "footer.php" do I bother with the whole " etc. and link to my css, or just a blank .php file with the code that I want to import, nothing else. I'm guessing its the latter, so all I need is to put the footer div on its own.
Is it okay if I put them all away in a separate folder? I like to keep everything tiny.
The cycle element of this problem also brings up the question of what to do when/if someone enters the form - it'll obviously have to stop rotating.
Remembering the last include is a simple job of adding a session var then reading it and using the value to choose the next include.
...but like i said above i didn't read Machie's request as wanting a different include per page load. I'll be interested to see if somone (for 'someone' read 'someone who know's what they are doing') can work up a solution.
> Garin (or anyone else), this php include thingamajigger. Is it
> possible to have a rotating one or is that not possible?
Most things are possible, its only a matter of how many lines of code to do it. :)
The problem with genuine rotation is that you need to remember what the user saw last which isnt difficult just needs a few lines of code dotted around your site. Even easier is just random includes because its unlikely the user will notice rotation anyway.
JTD
> ## Machie - what do you mean by rotating?
Hello Jim :) I was wondering if it was possible to have a rotating php include. Similiar to a rotating banner, but I want it to rotate php include files. So in my sidebar I'd want it to rotate between a newsletter sign up form and a site search. Do you know if thats possible at all?
I'd also go as far to say that if you don't care about how DW creates the PHP code and you just 'want it to work' then there's no reason to avoid it either - your approach to how much want to understand what you're doing will dictate how you use DW.
If you're serious about learning PHP then the best advice I can give you as a first step is to get hold of a copy of 'PHP for Dummies'. PHP For Dummies also walks you through your first connections to a MySQL database - which Freeloa supports.
Once you understand the basics of PHP then you are able to write your own code directly into Dreamweaver - because don't forget you're also going to need a graphical web site designer for your HTML elements.
I also regularly visit an excellent site 'php.net' which gives loads of examples and code titbits for a lot of PHP functions.
I hope this helps.