RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Web Design.

0 Members and 1 Guest are viewing this topic.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
Yeah, I should have included the errors and the code xD.

Alright, I have one question to start off.

Here is my index page:
Code: [Select]
<?php
include("/home/jalkson/public_html/forum/SSI.php");
include("header.php");
include("top.php");
include("news.php");
include("bottom.php");
?>

The page with the navigation is "top.php", now since the included pages are inside the <?php bracket, when I'm adding a line of php on that page do I need to include the php tags? Also since on the index it already includes the SSI file above everything, so that means on "top.php" it's already included?

Also here is what I have been attempting:

Edit: nvm for the attempting part, I got it work :D
Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
Think of including as copying and pasting the contents of the included file into your script.

Though not EXACTLY the same, since your included file's php stuff will need to be in <? / ?> tags which would break it if you directly copied and pasted.

Code: Main [Select]
<?php
echo 'PENIS';
include('file.php');
?>


Code: file.php - no brackets [Select]

echo 'limestone';


Output of that ^ to the browser would be

Quote
PENISecho 'limestone';

but if file.php was:

Code: file.php [Select]

<?php echo 'limestone' ?>


It'd look fine, and the browser would get a nice block of PENISlimestone =o



Good

Code: index.php [Select]

<?php
$text = 'RMRKWiki';

include('stuff.php');
?>


Code: stuff.php [Select]

<?php
echo $text;
?>


Quote
RMRKWiki



Bad

Code: index.php [Select]

<?php
include('stuff.php');

$text = 'RMRKWiki';
?>


Code: stuff.php [Select]

<?php
echo $text;
?>


Quote
Notice: Undefined variable: text in /home/l33thax/public_html/n00b/index.php on line 1
« Last Edit: June 23, 2007, 03:40:45 PM by Roph »
bringing sexy back

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
^_^
thanks for this! i'm going to try and do some of the examples and see it first hand.
Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
Here's how a typical page on my site works; the page for HaloOfTheSun's Symphony No.1:

Quote
<?php
include("../../../includes/settings.php");
Before anything, I get the settings file.

Spoiler for settings.php:
Code: [Select]
<?php //Slyph.org 2nd version settings and functions
//General
$siteroot = "http://127.0.0.1/sites/slyph2/1";
$imgbase = "http://127.0.0.1/sites/slyph2/1/imgs";

$sitename = "Short Story";
$includespath = "c:\program files\easyphp1-8\easyphp1-8\www\sites\slyph2\\1\includes";
$rootpath = "c:\program files\easyphp1-8\easyphp1-8\www\sites\slyph2\1";
//Each atist has their own file root, just to help with growth and spreading downloads if I ever need to ;_;
//These versions are stricly for hign bandwidth downloads
$silverfiles = "http://r.xtarsia.net/slyph/audio/silver";
$halofiles = "http://r.xtarsia.net/slyph/audio/halo";
$kpfiles = "http://r.xtarsia.net/slyph/audio/kp";
$holkfiles = "http://r.xtarsia.net/slyph/audio/holk";
$collabfiles = "http://r.xtarsia.net/slyph/audio/collaborative";
//the "2" versions are secondary, hosted on either my own server or koreru. Faster but less bandwidth. I use these for streaming, since speed is important for that.
$silverfiles2 = "http://d4.slyph.org/audio/silver";
$halofiles2 = "http://d4.slyph.org/audio/halo";
$kpfiles2 = "http://d4.slyph.org/audio/kp";
$holkfiles2 = "http://d4.slyph.org/audio/holk";
$collabfiles2 = "http://d4.slyph.org/audio/collaborative";
//full albums
$fullalbumdl = "http://r.xtarsia.net/slyph/audio/full";

//VIDEOS URL IS IN THE FUNCTION BELOW (twice)

//Functions
function call_movie($file)
{
//LOL DOUBLE QUOTE ESCAPING <3
   echo "<center><div class=\"video\">
<object width=\"640\" height=\"480\"><param name=\"movie\" value=\"http://slyph.org/objects/player.swf?file=http://r.xtarsia.net/slyph/klandry/$file.flv&lightcolor=0xA2B3BB&backcolor=0x6F6758&frontcolor=0xFFFFFF&logo=http://slyph.org/objects/flashlogo.png&showfsbutton=false&link=http://slyph.org/&linktarget=_blank&callback=http://d4.slyph.org/urchin.php\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://slyph.org/objects/player.swf?file=http://r.xtarsia.net/slyph/klandry/$file.flv&lightcolor=0xA2B3BB&backcolor=0x6F6758&frontcolor=0xFFFFFF&logo=http://slyph.org/objects/flashlogo.png&showfsbutton=false&link=http://slyph.org/&linktarget=_blank&callback=http://d4.slyph.org/urchin.php\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"640\" height=\"480\"></embed></object></div>
<div class=\"videoinfo\">
<span class=\"videoinfolink\"><a href=\"http://d4.slyph.org/$file.flv\" target=\"_blank\">Download</a> this video</span>
<span class=\"videoinfohelp\"><a href=\"#\" onclick=\"window.open(&#39;http://slyph.org/flvhelp/&#39;,&#39;FLV Video Files&#39;,&#39;width=320,height=240,left=&#39;+(screen.availWidth/2-320)+&#39;,top=&#39;+(screen.availHeight/2-240)+&#39;&#39;);return false;\">Help playing?</a></span>
</div> </center>
";
}

//update; adjustable height to prevent scrollbar for huge albums and huge player for small albums

function make_flashmp3($file, $height)
{
   echo "<object width=\"220\" height=\"$height\"><param name=\"movie\" value=\"http://d4.slyph.org/mp3player.swf?file=$file&lightcolor=0xA2B3BB&backcolor=0x6F6758&frontcolor=0xFFFFFF\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://d4.slyph.org/mp3player.swf?file=$file&lightcolor=0xA2B3BB&backcolor=0x6F6758&frontcolor=0xFFFFFF\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"220\" height=\"$height\"></embed></object>";
}

//Common stuffs
//HUGE ARRAY IS HUGE - Every valid piano video request value
$pianovids = array("Anime/Bleach_-_Houki_Boshi", "Anime/Bleach_-_Will_Of_The_Heart", "Anime/Chobits_-_Cough_Maui", "Anime/DNAngel_-_Fragments_And_Dreams", "Anime/DNAngel_-_Through_Pain", "Anime/DNAngel_-_True_Light", "Anime/DNAngel_-_True_Light_Remake", "Anime/Elfen_Lied_-_Lilium", "Anime/Fate-Stay_Night_-_Anata_Ga_Ita_Mori", "Anime/Fate-Stay_Night_-_Medley","Anime/Full_Metal_Alchemist_-_Bratja", "Anime/Haibane_Renmei_-_Ailes_Grises", "Anime/Higurashi_No_Naku_Koro_Ni_-_Medley", "Anime/Naruto_-_Sadness_and_Sorrow_-_Orochimarus_Theme", "Anime/Naruto_-_Shippuuden_Outro_Nagareboshi", "Anime/Naruto_-_The_Raising_Fighting_Spirit", "Anime/Naruto_Medley_1", "Anime/Naruto_Medley_2", "Anime/Naruto_Openings_-_R_O_C_K_S_And_Haruka_Kanata", "Anime/Revolutionary_Girl_Utena_-_Sunlit_Garden", "Anime/inu_yasha_-_Fukai_Mori_-_Deep_Forest", "Anime/naruto_-_greif_and_sorrow", "Classical/Beethoven_-_Moonlight_Sonata_1st_Movement", "Classical/Canon", "Classical/Canon2", "Classical/Canon4", "Classical/Chopin_-_Fantasie_Impromptu", "Classical/Chopin_-_Fantasie_Impromptu_Remake", "Classical/Chopin_-_Prelude_Op29_No_22", "Compositions/Ballade_In_A_Major", "Compositions/Evolution", "Compositions/Fantasie_In_C_Minor", "Compositions/Grande_Waltz_In_C_Minor", "Compositions/Lonely", "Compositions/Lonely_Remake", "Compositions/Main_Melody", "Compositions/Midnight_Promenade", "Compositions/Piano_Improvisation", "Compositions/Piano_Improvisation_2", "Compositions/Piano_Improvisation_3", "Compositions/Piano_Improvisation_4", "Compositions/Piano_Improvisation_5", "Compositions/Prelude_In_Db_Major", "Compositions/Red_Skies", "Compositions/Red_Skies_Remake", "Compositions/Shadows_And_Light", "Compositions/Transparent_Reality", "Compositions/Waltz_Of_The_Abandoned", "Compositions/White_Sun", "Final_Fantasy/FFIV_-_Boss_Battle", "Final_Fantasy/FFIX_-_Final_Battle", "Final_Fantasy/FFIX_-_Loss_Of_Me", "Final_Fantasy/FFIX_-_Medley", "Final_Fantasy/FFIX_-_Melodies_Of_Life", "Final_Fantasy/FFIX_-_Melodies_Of_Life_Remake", "Final_Fantasy/FFIX_-_Vamo_Alla_Flamenco", "Final_Fantasy/FFIX_-_Vamo_Alla_Flamenco_Remake", "Final_Fantasy/FFIX_-_Youre_Not_Alone", "Final_Fantasy/FFVIII_-_Balamb_Garden", "Final_Fantasy/FFVIII_-_Blue_Fields", "Final_Fantasy/FFVIII_-_Eyes_On_Me", "Final_Fantasy/FFVIII_-_Eyes_On_Me_Remake", "Final_Fantasy/FFVIII_-_Eyes_On_Me_Remake_2", "Final_Fantasy/FFVIII_-_Fishermans_Horizon", "Final_Fantasy/FFVIII_-_Fishermans_Horizon_Remake", "Final_Fantasy/FFVIII_-_The_Oath", "Final_Fantasy/FFVII_-_Aeris_Theme", "Final_Fantasy/FFVII_-_Cosmo_Canyon", "Final_Fantasy/FFVII_-_Fighting", "Final_Fantasy/FFVII_-_Fighting_Remake", "Final_Fantasy/FFVII_-_Jenova", "Final_Fantasy/FFVII_-_Jenova_Classic", "Final_Fantasy/FFVII_-_Main_Theme", "Final_Fantasy/FFVII_-_Main_Theme_Arrange", "Final_Fantasy/FFVII_-_Main_Theme_Self_Duet", "Final_Fantasy/FFVII_-_Medley", "Final_Fantasy/FFVII_-_Tifas_Theme", "Final_Fantasy/FFVII_-_Tifas_Theme_Arrange", "Final_Fantasy/FFVI_-_Celes_Theme", "Final_Fantasy/FFVI_-_Decisive_Battle", "Final_Fantasy/FFVI_-_Kefkas_Theme", "Final_Fantasy/FFX-2_-_1000_Words", "Final_Fantasy/FFX-2_-_1000_Words_Remake", "Final_Fantasy/FFX-2_-_Creature_Create", "Final_Fantasy/FFX-2_-_Eternity_-_Memory_Of_Light_And_Waves", "Final_Fantasy/FFX-2_-_Eternity_-_Memory_Of_Light_And_Waves_Remake", "Final_Fantasy/FFX_-_Suteki_Da_Ne", "Final_Fantasy/FFX_-_To_Zanarkand", "Final_Fantasy/FFX_-_To_Zanarkand_Arrange", "Final_Fantasy/FFX_-_To_Zanarkand_Arrange_2", "Final_Fantasy/FFX_-_To_Zanarkand_Remake", "Final_Fantasy/Final_Fantasy", "Games/Animal_Crossing_-_Opening_Theme", "Games/Arc_The_Lad_-_To_The_Earth", "Games/Arc_The_Lad_-_To_Tomorrow", "Games/Kingdom_Hearts_-_Dearly_Beloved", "Games/Kingdom_Hearts_-_Hikari", "Games/Kingdom_Hearts_-_Hikari_Arrange", "Games/Kingdom_Hearts_-_Roxas_Theme", "Games/Pokemon_-_Elite_Four", "Games/Tetris_-_Title_Theme", "Games/Zelda_-_Medly", "Games/Zelda_-_Twilight_Princes_Trailer_Theme", "Games/Zelda_-_Twilight_Princes_Trailer_Theme_2", "Other/Billy_Joel_-_Piano_Man", "Other/Heart_And_Soul_Chopsticks", "Other/Let_It_Snow", "Other/Matrix_-_Clubbed_To_Death", "Other/Schindlers_List_-_Main_Theme", "Other/Spirited_Away_-_Waltz_Of_The_Chihiro", "Other/Star_Wars_II_-_Across_The_Stars", "Other/The_Christmas_Song", "Other/Yiruma_-_Kiss_The_Rain", "Other/Yiruma_-_River_Flows_In_You_Arrange");
?>

Code: [Select]
//Page specific settings
$pagetitle = "Symphony No1 in D Minor - Short Story";
$pagetype = "halo_album";
$album = "symphony1";

Stuff I set for every page. Names should be obvious enough. $pagetype is to uniquely group certain groups of pages together. Album too kinda. Whether album is set changes whether or not something happens later on.

Code: [Select]
//XSPF
$flashmp3[0] = ($halofiles2 .'/Symphony_No1_in_D_Minor/flash.php');
//height, adjust so fits nice
$flashmp3[1] = "139";

These are for that make_flashmp3 function you saw in settings.php, though it's not used just yet, just setting these for later on like the previous stuff

Code: [Select]
//Cd Covers baby ;3
$cd_front = "<img src=\"".$imgbase."/albumart/default.gif\" alt=\"No CD Cover yet!\" title=\"No CD Cover yet!\" />";
$cd_back = "<img src=\"".$imgbase."/albumart/default.gif\" alt=\"No CD Cover yet!\" title=\"No CD Cover yet!\" />";

And again. Cd covers are only shown if $album is set.

Code: [Select]
include($includespath . '/header.php'); ?>

Now we get to work =o

Spoiler for header.php:
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<meta name="author" content=""/>
<link rel="stylesheet" type="text/css" href="<? echo $siteroot; ?>/style.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="<? echo $siteroot; ?>/menu.css" media="screen"/>

<title><? echo $pagetitle; ?></title>

</head>

<body>
<a name="top" id="top"></a>
<div id="wrapper">
<div id="container">

<div class="title">

<h1><a href="<? echo $siteroot; ?>">Short Story</a></h1>

</div>

<div class="header"></div>

<div class="menu">

<ul>

</li>
<li><a href="<? echo $siteroot; ?>" title="Site Homepage">Home<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

<li><a href="#">Site Related<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="http://slyph.org/blog/" title="Short Story Blog">SlyphBlog</a></li>
<li><a href="<? echo $siteroot; ?>/history/" title="A History Of Short Story">Site History</a></li>
<li><a href="<? echo $siteroot; ?>/artists/" title="Information on the artists at Short Story">Artist Info</a></li>
<li><a href="<? echo $siteroot; ?>/contact/" title="How you can get in touch with us">Contact Information</a></li>
    <li><a href="<? echo $siteroot; ?>/about/" title="About Short Story">About</a></li>
    <li><a href="<? echo $siteroot; ?>/legal/" title="Legal Information">Legal Info</a></li>
    <li><a href="<? echo $siteroot; ?>/privacy/" title="Privacy Statement">Privacy Statement</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->

</li>
<li><a href="<? echo $siteroot; ?>/music/" title="Music Center">Music<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="<? echo $siteroot; ?>/music/collab/" title="Collaborative">Collaborations</a></li>
<li><a class="drop" href="<? echo $siteroot; ?>/music/silverline/" title="Silverline's Music">Silverline<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="<? echo $siteroot; ?>/music/silverline/sx1/" title="Latest Work by Silverline">-S-X-1-</a></li>
<li><a href="<? echo $siteroot; ?>/music/silverline/misc/" title="Miscellaneous">Misc Peices</a></li>
<li><a href="<? echo $siteroot; ?>/music/silverline/blastermaster/" title="Blaster Master Symphony">Blaster Master Symphony</a></li>
<li><a href="<? echo $siteroot; ?>/music/silverline/crescent/" title="Project Crescent Discarded Tracks">Project Crescent</a></li>
<li><a href="<? echo $siteroot; ?>/music/silverline/rokmid/" title="Rockin' MIDI Collection">Rockin' MIDI Collection</a></li>
<li><a href="<? echo $siteroot; ?>/music/silverline/silverperfect/" title="Silverperfect">Silverperfect</a></li>
<li><a href="<? echo $siteroot; ?>/music/silverline/silverperfect2/" title="Silverperfect II">Silverperfect II</a></li>
<li><a href="<? echo $siteroot; ?>/music/silverline/animalcrossing/" title="Animal Crossing Remixes and Arrangements">Animal Crossing ReWorked</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a class="drop" href="<? echo $siteroot; ?>/music/halo/" title="HaloOfTheSun's Music">HaloOfTheSun<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
    <!-- <li><a href="<? echo $siteroot; ?>/music/halo/latest/" title="Latest Work By HaloOfTheSun">Newest Work/Projects</a></li> -->
<li><a href="<? echo $siteroot; ?>/music/halo/symphony1/" title="Symphony No1 in D Minor">Symphony No1 in D Minor</a></li>
<li><a href="<? echo $siteroot; ?>/music/halo/ffaos/" title="Final Fantasy And Other Stories">Final Fantasy And Other Stories</a></li>
<li><a href="<? echo $siteroot; ?>/music/halo/ffaosr/" title="Re-Mastered Final Fantasy And Other Stories">Final Fantasy And Other Stories Re-Mastered</a></li>
<li><a href="<? echo $siteroot; ?>/music/halo/ffaos2/" title="Final Fantasy And Other Stories II">Final Fantasy And Other Stories II</a></li>
<li><a href="<? echo $siteroot; ?>/music/halo/ffaos3/" title="Final Fantasy And Other Stories III">Final Fantasy And Other Stories III</a></li>
<li><a href="<? echo $siteroot; ?>/music/halo/hotsoms/" title="HOTSOMS Soundtrack">HOTSOMS/HOTSOAS</a></li>
<li><a href="<? echo $siteroot; ?>/music/halo/doom/" title="DooM - The Darkening">DooM - The Darkening</a></li>
<li><a href="<? echo $siteroot; ?>/music/halo/dream/" title="Dreamscapes And Memories">Dreamscapes And Memories</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a class="drop" href="<? echo $siteroot; ?>/music/kylelandry/" title="KylePiano's/Kyle556's/Kyle Landry's Music and Video">KyleLandry/Kyle556<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="<? echo $siteroot; ?>/music/kylelandry/audio/" title="Kylelandry's Arrangements">Audio Recordings</a></li>
<li><a href="<? echo $siteroot; ?>/music/kylelandry/video/" title="Kylelandry's Video Performances">Video Performances</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a class="drop" href="<? echo $siteroot; ?>/music/holk/" title="Holkeye's Music">Holkeye<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="<? echo $siteroot; ?>/music/holk/" title="Works to appear soon">(Coming soon!)</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="#" title="Other miscellaneous content">Other<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a class="drop" href="<? echo $siteroot; ?>/articles/" title="Articles">Articles<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="<? echo $siteroot; ?>/articles/tabitguide/" title="Guide on using TabIt">TabIt Guide</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a class="drop" href="<? echo $siteroot; ?>/resources/" title="Various Resources">Resources<!--[if IE 7]><!--></a><!--<![endif]-->

<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>
<li><a href="<? echo $siteroot; ?>/resources/samples/" title="Soundfonts & Sample sets">Soundfonts & Samples</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li><a href="<? echo $siteroot; ?>/links/">Links<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul>

<li><a href="<? echo $siteroot; ?>/links/exchange/" title="Exchange Links with Short Story">Exchange Links</a></li>
<li><a href="<? echo $siteroot; ?>/links/linkto/" title="Link to our site with banners/buttons">Link To Us</a></li>
<li><a href="<? echo $siteroot; ?>/links/affiliate/" title="Affiliate with Short Story">Become An Affiliate</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>

</ul>

</div>

<?php if (isset($columns)) {
echo "<div class=\"main\">";
}
else {

echo "<div class=\"main\" id=\"two-columns\">
<div class=\"col2\">
<div class=\"left\">";
}
?>



<div class="content">
<!-- s -->
The bit at the end is part of a multi column thing I made for my site. just using a simple variable switch I can have single or double column page layouts.


From here now it's just the static HTML of the page =o

Spoiler for:
<div class="audioloading"><br />Loading files.. </div>
            <h1>Symphony No1 in D Minor</h1>

            <p>Here is <b>HaloOfTheSun's</b> latest work; <i>Symphony No1 in D Minor</i>. This is a mesmerising suite composed and produced entirely by Halo himself. Enjoy the musical journey!</p>
            <br />
            
            <a href="<? echo $fullalbumdl; ?>/hs2.zip" title="Download a ZIP archive of this album" alt="Download a ZIP archive of this album" class="dlbutton"></a>
            
            <br />
            <style type="text/css">
.audioloading {
display: none;
}
 </style>
<table class="audiolinks"><tr><td><h3>Downloads</h3></td></tr><tr><td><a href="<?php echo $halofiles ?>/Symphony_No1_in_D_Minor/Mvmt. I.mp3">1. Mvmt. I.mp3</a></tr></td><tr><td><a href="<?php echo $halofiles ?>/Symphony_No1_in_D_Minor/Mvmt. II.mp3">2. Mvmt. II.mp3</a></tr></td><tr><td><a href="<?php echo $halofiles ?>/Symphony_No1_in_D_Minor/Mvmt. III.mp3">3. Mvmt. III.mp3</a></tr></td><tr><td><a href="<?php echo $halofiles ?>/Symphony_No1_in_D_Minor/Mvmt. IV.mp3">4. Mvmt. IV.mp3</a></tr></td><tr><td><a href="<?php echo $halofiles ?>/Symphony_No1_in_D_Minor/Mvmt. V.mp3">5. Mvmt. V.mp3</a></tr></td></table>

Then at the bottom just a

Code: [Select]
<?php
include($includespath . '/rightside.php');
include($includespath . '/footer.php'); ?>

Spoiler for rightside.php:
Code: [Select]
</div>

</div>

<div class="right">

<div class="content">

<?php
if (isset($album)) {
echo "<div class=\"cdcovers\">CD Covers<br />".$cd_front." ".$cd_back."</div>";
make_flashmp3($flashmp3[0], $flashmp3[1]);
}

//HaloOfTheSun index

if ($pagetype == "halo_index") {
echo "<h2>Halo's Music</h2>

<ul class=\"block\">
<li><a href=\"".$siteroot."/music/halo/symphony1/\" title=\"Symphony No1 in D Minor\">Symphony No1 in D Minor</a></li>
<li><a href=\"".$siteroot."/music/halo/ffaos/\" title=\"Final Fantasy And Other Stories\">FFAOS</a></li>
<li><a href=\"".$siteroot."/music/halo/ffaosr/\" title=\"Re-Mastered Final Fantasy And Other Stories\">FFAOS Re-Mastered Edition</a></li>
<li><a href=\"".$siteroot."/music/halo/ffaos2/\" title=\"Final Fantasy And Other Stories II\">FFAOS II</a></li>
<li><a href=\"".$siteroot."/music/halo/ffaos3/\" title=\"Final Fantasy And Other Stories III\">FFAOS III</a></li>
<li><a href=\"".$siteroot."/music/halo/hotsoms/\" title=\"HOTSOMS Soundtrack\">HOTSOMS Soundtrack</a></li>
<li><a href=\"".$siteroot."/music/halo/doom/\" title=\"DooM - The Darkening\">DooM - The Darkening</a></li>
<li><a href=\"".$siteroot."/music/halo/dream/\" title=\"Dreamscapes And Memories\">Dreamscapes And Memories</a></li>
</ul>";
}

//Silverline Index

if ($pagetype == "silverline_index") {
echo "<h2>Silverline's Music</h2>

<ul class=\"block\">
<li><a href=\"".$siteroot."/music/silverline/sx1/\">-S-X-1-</a></li>
<li><a href=\"".$siteroot."/music/silverline/crescent/\">Project Crescent</a></li>
<li><a href=\"".$siteroot."/music/silverline/rokmid/\">Rockin' MIDI Collection</a></li>
<li><a href=\"".$siteroot."/music/silverline/silverperfect/\">Silverperfect</a></li>
<li><a href=\"".$siteroot."/music/silverline/silverperfect2/\">Silverperfect II</a></li>
<li><a href=\"".$siteroot."/music/silverline/animalcrossing/\">Animal Crossing ReWorked</a></li>
<li><a href=\"".$siteroot."/music/silverline/misc/\">Miscellaneous</a></li>

</ul>";
}

//KyleLandry Index

if ($pagetype == "kyle_index") {
echo "<h2>Kyle's Music</h2>

<ul class=\"block\">
<li><a href=\"".$siteroot."/music/kylelandry/audio/\">Audio Recordings</a></li>
<li><a href=\"".$siteroot."/music/kylelandry/video/\">Video Performances</a></li>
</ul>";
}

//Or site index? :o

if ($pagetype == "mainindex") {
echo "<h2>Latest Updates</h2>

<ul class=\"block\">
<li><a href=\"".$siteroot."/music/silverline/sx1/\">Silverline - -S-X-1-</a></li>
<li><a href=\"".$siteroot."/music/halo/symphony1/\">HaloOfTheSun - Symphony No1 in D Minor</a></li>
</ul>";
}


?>
You should notice the stuff in there that uses stuff set on the main page. It can show different stuff depending on if it's an album page or normal site page or whatever =o

footer.php does it a bit also with dynamic legal / credit notice things unique to each artist

Spoiler for footer.php:
Code: [Select]
             <?  //I only need this if I'm doing my retarded colum shit
if (isset($columns)) {
echo "</div>";}
else {
echo "<!-- e -->";} ?>


<div class="bottom">

<?php //Dynamic Copyright logos
if ($pagetype == "pianovid"){
echo "<div class=\"albumcopy\">&copy; Kyle556 (Kyle Landry) - <a href=\"". $siteroot ."/legal/\">Legal</a></div>";
}

if (isset($album)) {

     if ($album == "FFAOS" or $album == "FFAOS2" or $album == "FFAOS3" or $album == "FFAOS_Remastered" or $album == "dream_mem" or $album == "doom" or $album == "HOTSOAS" or $album == "symphony1")

       echo "<div class=\"albumcopy\">&copy; HaloOfTheSun (Bobby Richeson) - <a href=\"". $siteroot ."/legal/\">Legal</a></div>";
   
elseif ($album == "BMS" or $album == "ROKMID" or $album == "silverperfect" or $album == "silverperfect2" or $album == "crescent" or $album == "silver_misc" or $album == "sx1" or $album == "animal")

       echo "<div class=\"albumcopy\">&copy; Silverline (Paul Rowland) - <a href=\"". $siteroot ."/legal/\">Legal</a></div>";
   
   }
   //tell search script its the end of the page =o
echo "<!-- e -->";

?>


</div>

<div class="clearer"></div>

</div>


<div class="footer">

<div class="left">
&copy; 2004-2007 <a href="http://slyph.org/">Short Story</a>
</div>

<div class="right">
<a href="<? echo $siteroot; ?>/legal/">Legal</a> &bull; <a href="<? echo $siteroot; ?>/privacy/">Privacy</a> &bull; <a href="<? echo $siteroot; ?>/about/">About</a> &bull; <a href="#top">Top</a>
</div>

<div class="clearer"></div>

</div>

</div>

</div>
</div>

</body>
</html>

Some of that is probably confusing =p It was for me writing it, I learned alot whilst writing my site, and If I could be bothered I'd probably go in and re-write parts of it, but as it stands now it's working and (partially) expandable, so I'm leaving it.



Spoiler for:
By expandable, I was able to put in a totally dynamic page that was multi column or single column depending on the request and showed whatever video they wanted etc and stuff using my current script setup.

Code: [Select]
<?php //Fix Names for use in text in the page
if (isset($_GET["play"])) {
$do_not_want = array("_", "Anime/", "Classical/", "Compositions/", "Final_Fantasy/", "Games/", "Other/");
$moar = array(" ", "", "Classical - ", "Composition - ", "Final Fantasy - ", "Game Music - ", "Misc - ");
$videotitle = str_replace($do_not_want, $moar, ($_GET["play"]));
$video_id = ($_GET["play"]);
}
//Page specific settings
$pagetype = "pianovid";
//If we're watching a video omit the right column
if (isset($_GET["play"])) {
$columns = "1";}
//If we're watching a video let's tell you that in the title :) otherwise default please ~
include("../../../includes/settings.php");
if (isset($_GET["play"])) {
//IF INCORRECT VIDEO YOU FAILLL
if (in_array($video_id, $pianovids)) {
$pagetitle = "Watching - ".$videotitle." - Kyle Landry Piano Performance Video - Short Story"; }
else $pagetitle = "Error! - Invalid Video Selected";}
else {$pagetitle = "Kyle Landry Piano Performance Videos - Short Story"; }
//header
include($includespath . '/header.php');
//If we want to watch a video then let's see the video! :D Or if not we're going to just see a list of all his current videos :3
if (isset($_GET["play"])) {
//Begin my extra checking thing
//ROFL this thing is so stupid but it works so whatever
if(in_array($video_id, $pianovids)) {
echo "<h1> ".$videotitle." </h1><hr /><br />";
call_movie($_GET["play"]);
echo "<br /><h2><a href=\"".$siteroot."/music/kylelandry/video/\">&lt;&lt;Return to Video Listing</a></h2>";
    }
else {
echo "<h1>Invalid Video selected!</h1>
<br /><h2><a href=\"".$siteroot."/music/kylelandry/video/\">&lt;&lt;Return to Video Listing</a></h2>";
}
}
else{
include($includespath . '/kpvids.php');
}
//Friendly note for source-reading sneaky snoopers
if (isset($columns)) {
echo "<!-- No extra column -->"; }
else
{
include($includespath . '/rightside.php'); }
include($includespath . '/footer.php');?>

Now when I write stuff I generally keep expandability in mind. At first I wasn't even planning to use them, but I put categories to my pages that I actually ended up using later on =)
« Last Edit: June 23, 2007, 04:15:35 PM by Roph »
bringing sexy back

*
Resident Cloud
Rep:
Level 91
im thinking you should but the menu into a different file roph its huge

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
Cascading Style Sheets or template can help... Or setting say your hearder area in a frame so it doesn't update etc...

Even using Flash it's fairly simple, if you save your hedrer image as say TEST, then when you want to update it, if you import new image with the same name TEST, it will replace all the old ones...

There are many little tricks when doing WEB design...

Here's one of my site:- www.equita.co.uk

It's made in frames, I done pretty much all of this (Some images got brought in by a photographer, but the rest is all me)...

flash is wicked for sites. But it can really be a hassle if you use dial-up. Thank god I don't, but I feel sorry for people who do, and get stuck on a flash site...

*
Resident Cloud
Rep:
Level 91
flash when coded correctly can make a good site yes but im fed up with seeing sites that use flash in a messy way not optimizing their file and ending up with some giant loading bar filling up at a snail's pace.

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
Um, plus the whole being invisible to search engines thing?

http://www.google.com/search?q=Download+RPG+Maker+XP+Postality+Knights
http://www.google.com/search?q=RMRK
http://www.google.com/search?q=download+rpg+maker+2003

Using flash for sites is bad practice. Show me a professional web designer that makes their site in flash.

If I wanted to, I could make all fancy bits on a site that slide around and react to the user's mouse or play music in the background of make an annoying noise every time you hover over a link to be "cool", using either flash or javascript, but most people couldn't care less and just want to use your site normally.
« Last Edit: June 27, 2007, 02:26:04 PM by Roph »
bringing sexy back

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
flash when coded correctly can make a good site yes but im fed up with seeing sites that use flash in a messy way not optimizing their file and ending up with some giant loading bar filling up at a snail's pace.

Yeah, most sites don't do it right, I would rather give the option for a flash site, of just plain text and images.
Flash is easy, because you don't have to have like a billion little pages, and all of that stuff wasting space, butah....flash is very annoying if you've ever tried to go on it with dial-up.

Um, plus the whole being invisible to search engines thing?

http://www.google.com/search?q=Download+RPG+Maker+XP+Postality+Knights
http://www.google.com/search?q=RMRK
http://www.google.com/search?q=download+rpg+maker+2003

Using flash for sites is bad practice. Show me a professional web designer that makes their site in flash.

Yeah, have to agree, that's why I'd use a Flash and html site, that way, the home page is a page asking you what you want, then, you go can go with the text and shit or flash.

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
Keep in mind this article was written in 2000, though it's still pretty related:

http://www.useit.com/alertbox/20001029.html
bringing sexy back

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
Keep in mind this article was written in 2000, though it's still pretty related:

http://www.useit.com/alertbox/20001029.html

Wow, I really like that article, thanks Silver.

I like Flash for it's cartooniness, and the different little shits and giggle add-ons annoy me.
I've noticed some people like to put loading bars in their games and websites, because it makes it look more professional, when it has no use what so ever, it's just there. That's super annoying.

I would rather do what a regular site would do, little buttons and stuff, only, with flash.
Html is boring, and long, well, maybe because I forgot what I know.  ::)

Have to really agree with the updating flash, I doubt I would take the time to add all of the updates, then re-upload it to the server, and all I would have to do is edit the html...
It does have it's faults in certain things, like saving images.
But other than that, I would say it's 45% bad.

*
Resident Cloud
Rep:
Level 91
do you have an example of a flash website you have created

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
do you have an example of a flash website you have created

Nope, don't have a website.  ;8 ;9


But it would be helpful with the invisible searches, like if you had roms a on your site.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
alright, so the news system is working just fine..now I want to add a star rating system to the news.
(pretty pointless yes, but I want to see it get done :P )

The problem is that to show one rating system you have to give it its OWN id..problem with that is I want it to make its own id or use the id of the news item instead, this would generate something new every time.
my problem: I dont know how to have it use the id of the news item as the # of the poll. (if I left it xx, xx = 10 voting for one poll would vote for ALL polls.)

here is the script for the page that shows news items and the option to comment each one:

Spoiler for:
<h1><b>NEWS</b></h1>
<br />

<?php
      include ('mysql_connect.php');
      $query = "SELECT id, title, author, post, DATE_FORMAT(date, '%M %d, %Y') as sd FROM news_posts ORDER BY date DESC";
      $result = @mysql_query($query);
      if ($result) {
      while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
      $url = 'commentpage.php?id='.$row['id'];
      echo rating_bar('xx', '5');
      echo 'Title: <b>'.$row['title'].'</b>&nbsp;&nbsp;|&nbsp;&nbsp;
      Date: <b>'.$row['sd'].'</b>&nbsp;&nbsp;|&nbsp;&nbsp;
      Posted by : <b>'.$row['author'].'
</b><br /><br />
      '.$row['post'].'<br />
      <p class="post-footer align-right">
       <a href="javascript:openComments(\''.$url.'\')" class="comments style3">Comments
        </a>
</p><br />';
      }
      } else {
      echo 'There are no news posts to display';
      }
      ?>

notice when you click comment, it uses the row id of the news item to send you to the correct page of comments. I am trying to get it to use the same row id in the poll instead of xx...still no luck. So is this possible?

Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
Code: [Select]
<h1><b>NEWS</b></h1>
<br />

<?php
      include ('mysql_connect.php');
      $query = "SELECT id, title, author, post, DATE_FORMAT(date, '%M %d, %Y') as sd FROM news_posts ORDER BY date DESC";
      $result = @mysql_query($query);
      if ($result) {
      while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
      $url = 'commentpage.php?id='.$row['id'];
      rating_bar($row['id'], '5');
      echo 'Title: <b>'.$row['title'].'</b>&nbsp;&nbsp;|&nbsp;&nbsp;
      Date: <b>'.$row['sd'].'</b>&nbsp;&nbsp;|&nbsp;&nbsp;
      Posted by : <b>'.$row['author'].'
</b><br /><br />
      '.$row['post'].'<br />
      <p class="post-footer align-right">
       <a href="javascript:openComments(\''.$url.'\')" class="comments style3">Comments
        </a>
</p><br />';
      }
      } else {
      echo 'There are no news posts to display';
      }
      ?>

rating_bar(); is a function, the echo isn't needed =o
bringing sexy back

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
thanks ^_^.
but the echo was needed for some reason. When I placed the code in how you had it, the stars did not show. Then I went and added echo, and the stars did.
Watch out for: HaloOfTheSun

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
Does anyone know of the resource system crankeye uses? or of one that is similar if not better? I'm getting sick of adding resources in  by hand :P Also are these customizable? or they they stay white and bland by default?

"flashy effects can be nice, but the user just wants the resources"
your 100% right silver ^_^ I asked some people and they said any system as long as they get what they want, so I figured "why am I wasting soo much time?"
Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
See attach =o
bringing sexy back

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
==o
3 thousand lines of code OMG. Thanks ^^
I'm going to try this one out and the one you showed me on IRC
http://winged.info/project/gallery
Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
Yeah, if I remade crankeye.com, I'd be using that thing :)
bringing sexy back

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
few questions.  ;D

- So how do you make it so that each page gets its own title? I just noticed you showed that code a few replies up:
Quote
//Page specific settings
$pagetitle = "Symphony No1 in D Minor - Short Story";
$pagetype = "halo_album";
$album = "symphony1";

See the way I was doing it....( the lol way I guess)
was to have this:
Quote
<?php
include("/home/jalkson/public_html/forum/SSI.php");
include("header.php");?>
RMrevolution Rpg maker XP and 2k3 community
<?php
include("top.php");
include("news.php");
include("bottom.php");
?>

Mainly I always put my content on seperate pages, and then include that page. For the title notice how it says header. The last line in that page is <title> and the first line in the page top.pgp is </title> but you seem to do it a different way?

Another question is about site layout and search engines.

Is content supposed to be before navigation? I know that's an accessibility rule, but for search engines as well? If yougoogle "rmrevolution" the third result is what i mean. The search engine uses the first <h> phrase (I think) and since navigation is above content, and Navigation (the text) is the first header, it makes that the title of the link in the results?

If you can clear anything up here that would be awesome. ^^
Watch out for: HaloOfTheSun

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Most Unsung Member2011 Avast Ye Merry Pirate2010 Avast Ye Merry Pirate Award
If you look at the header.php in my above post you see the <title> tags and in there I echo $pagetitle, which I set before I included the header.

No search engine (at least the big 4; Google, Yahoo, Msn & Ask) cares what it encounters first in your page and what it encounters last, when you're on about ranking.

As for the text google will show underneath the link, google chooses the text that's around (or contains) the keyword you're searching for. Try searching for results from rmrk.net for "tileset" and you'll see what I mean.

Searching for RMRK would get you results that show the forum's text such as the news or "login, messages" etc. Arranging it so it showed the board's titles first or something woud maybe be possible, but more effort than it's worth.
« Last Edit: July 01, 2007, 07:00:53 PM by Roph »
bringing sexy back

*
Meet me in the middle
Rep:
Level 89
or left of the dial.
For frequently finding and reporting spam and spam botsSecret Santa 2012 Participant
An answer to all your problems : Adobe Dreamweaver CS3

www.adobe.com

Best web design program ever.

*
Crew Slut
Rep:
Level 93
You'll love it!
For taking a crack at the RMRK Wiki
An answer to all your problems : Adobe Dreamweaver CS3

www.adobe.com

Best web design program ever.

Nouman uses DreamWeaver.

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
An answer to all your problems : Adobe Dreamweaver CS3

www.adobe.com

Best web design program ever.

xD if only it were a solution to problems. Its a program, there is no way I could have learned what I did from Roph from a program.
I don't believe there is anything dreamweaver can do that html kit cannot. Google it, I am now using that instead, so far success.
Watch out for: HaloOfTheSun