Advertisement

[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

02/05/2007 at 12:00PM PST, ID: 22150234
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Dynamic Website Templating

Asked by GamerXLT in Miscellaneous Web Development

Tags: website, dynamically, banner

Hello everyone,

I am developing a simple fan-based website for a videogame I have played for a few years now. At the moment, I am having an issue with the organization and design of the website due to the mass amount of content involved with this videogame. I would like for my website to be dynamically templated and to reuse the least amount of html/php/etc. tags as possible.

Initially, I started out using basic HTML and PHP5 include tags so that all I would have to do is add in the Table of Contents, Banner, and Footer tags to any given .php file (each .php had a different body). This became very tedious after having hundreds of .php files and needing to change every single tag in every single .php file, for example, when the location of the Table of Contents file changed. Another option I wanted to incorporate in my website was a dynamically changing banner (every refresh the banner would change from an array of banners), which would be impossible (in this sense) unless done manually. Also, since my website is hosted locally I was starting to see performance issues on every page load/reload when the browser would have to redundantly load the banner, Table of Contents, and footer, though, they were already previously loaded and unchanged from the prior page load.

The website layout is basic: Table of Contents ("ToC") is on the left, Title Banner is on the top, Footer is on the bottom, and Body resides in the middle right. My first attempt at this was through a suggestion of using Asynchronous JavaScript (AJAX). If you browse my website, http://www.vyrsace.com , you will see that method in place. The effect is right, it loads the body dynamically but the problems I face are two:

1.) The address bar within the browser remains constant. This means, any user that browses my website and finds his/her way down to a deep sub-section/category cannot utilize their back/forward/bookmarking browser capabilities because the page address remains the same, regardless of the body's content, therefore, the page is treated as the same page (in this case, it would be the main page http://www.vyrsace.com).

2.) Any AJAX script I use within the body malfunctions (AJAX within AJAX doesn't work? Or maybe I made an improper syntax reference?). If you would like to see what I mean by this you may browse http://www.vyrsace.com and from the main page click on "The Absolute Plan" link on the Table of Contents (left side). This will load a little chart in the body area. Now click on any other link on the Table of Contents and then click "The Absolute Plan" link again, it will not load (Note: The "Loading..." notice was just a filler I created in case there was network lag and was actually waiting to load the body, so it's best to assume no actual function is activating).

In conclusion, I have used PHP5 include tags but want less code redundancy (use less needed tags) and the option to dynamically change my banner on refresh. I also have used AJAX but want to sustain the basic browser capabilities for user ease (Back, Forward,  and Bookmarks) as well as dynamically update items within the body as well (not just dynamically update the body itself). I have heard MySQL in conjunction with PHP5 is a good path in doing this, but I am unable to find via Google or otherwise any tutorial that seems relevant to this.

As you can see, I am offering 500 points for this question due to the complex and specific nature (assumingly) of this situation. Any code, scripts, links, tutorials, examples, snippets, etc. are welcome. The reward will go to the most detailed correct/helpful answer. Thank You!View the Solution FREE for 7 Days
[+][-]02/05/07 11:07 PM, ID: 18473985

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Miscellaneous Web Development
Tags: website, dynamically, banner
Sign Up Now!
Solution Provided By: coviex
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03/31/07 02:40 PM, ID: 18829847

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06/23/07 08:32 PM, ID: 19349778

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06/29/07 08:36 AM, ID: 19390712

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090617-EE-VQP-62