Results 1 to 5 of 5

Thread: Best way to display content?

  1. #1
    Join Date
    Jun 2012

    Best way to display content?

    Hey all,

    I have been using Photoshop to design and (basic framework) code my websites. The easiest way I have found to display pages is to use an iframe, but this is not optimal for many reasons (that I am sure I do not have to explain).

    I tried searching for a better way but I feel like my lack of results is because I am not using the right search terms. I downloaded some free templates in hopes of taking apart the code and learning there but they all seems to be set up in such a way that if I make a change in the navigation bar on one page, I have to open up every other page and change the code the same way (wheras when using iframes this does not need to be done because the main page always stays the same).

    So I guess my question is what is the best way to display content?

    Thanks in advance,

  2. #2
    Join Date
    Jun 2006
    Boston, MA
    what exactly are you trying to do? i.e. create a website where you can edit the navigation once and it changes across the site without messing anything else up and so forth?

    if so, the easiest method would probably be php includes. this is what im talking about here: http://php.about.com/od/tutorials/ht/template_site.htm

    yea, most pre-made templates are not for the faint of heart, i prefer to code from scratch so i know where everything is and what exactly everything does.
    "Problems cannot be solved by the same level of thinking that created them.

  3. #3
    Join Date
    Feb 2008
    NW Washington State
    I'd suggest you avoid using PhotoShop code and instead learn basic HTML and CSS, for styling the content:
    The best way to display content is to use correctly formed code, based on what's covered in the above links.
    As you build your page, validate that code often so you are not building one error on another:
    As for navigarion on multiple pages, you might want to use .php "includes"
    of course if you use includes, you must also use a .php file extention.
    Best wishes,
    Eye for Video

  4. #4
    Join Date
    Jun 2006
    Boston, MA
    hehe i remember back in the day, outputting html from photoshop, i still do it today but only for emailer templates. just because its quick and easy
    "Problems cannot be solved by the same level of thinking that created them.

  5. #5
    Join Date
    Mar 2012
    Be aware that if you use .PHP doc extension, you cannot test your code by opening it with your browser. You need to either:
    1. Test on line (not recommended).
    2. Set up a local host and test using that (recommended).

    I use WAMP. It is free, simple to set up and use, and will work across a local network if required. However, that said, PHP adds a layer of complexity over HTML/CSS. I'd seriously suggest that you learn HTML/CSS first before you consider using PHP. I've been coding web sites for four years and am just starting out on PHP. Any menu changes I still have to propagate across all the web pages by hand! PHP include files are (probably) my next project.
    Last edited by jedaisoul; 06-25-2012 at 03:20 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09984 seconds
  • Memory Usage 2,881KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (5)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates