info from remote

  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

i have no idea how to word this or were to post this but here we go
i want to make a bunch of pages with like a tool bar or side memu i want the stuff on the tool bar or side memu to have the same thing but the rest of the page to be diffrent
now is there a way i can make one page for that toolbar or side memu so if i change one thins on that page they will all change
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

I think you're talking about a FRAMESET.

???

http://www.w3schools.com/html/html_frames.asp
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

sorry if i am geting off topic but is there any php
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

php works hand in hand with html.
  • Nunzio390
  • Student
  • Student
  • User avatar
  • Posts: 70
  • Loc: Tharsis Ridge (Martian lowlands)

Post 3+ Months Ago

Quote:
bunch of pages with like a tool bar or side memu i want the stuff on the tool bar or side memu to have the same thing but the rest of the page to be diffrent
now is there a way i can make one page for that toolbar or side memu so if i change one thins on that page they will all change

A good way of handling what you want to do is what I use extensively at my site... SSI (Server Side Includes). But in order to use Server Side Includes, your host server must be configured to support them.

SSI can be used in many ways, such as putting a menu bar on every page of your site (thus not needing a separate frame for it), placing banners and such on your site, showing the date/time the page was last updated, copyright info on the bottom of each page, etc.

Depending on your host server restrictions, to add SSI to your page(s), you "may" have to change your web page file extensions to .shtml

Calls to SSI are done with one simple line in your HTML that looks something like this:
<!--#echo var="DATE_LOCAL" -->

The above will tell the host server to include the local time at that particular place in your HTML. The working output of that code would look similar to this:
Monday, 12-Apr-2004 09:59:29 EDT

And that is all the site visitor sees when viewing your page source code. The host server will send the full HTML output including everything called by SSI to the site visitor. The site visitor will not see the actual SSI call line if they view the source of the page.

You can use an SSI to call another file that has a snippet of HTML or text in it. This is useful if you have a certain HTML code or text on every page of your site, and it can be changed in the future (eg: the side menu you mentioned).

So, a site menu on every page could be a snippet of HTML code put in a separate file, and called in using an SSI. That way, if you add a page to the site, you go in and change that one snippet of code, and it automatically changes on every page. Convenience without resorting to frames!

The code you would use to include text or HTML would look like this:
<!--#include virtual="menu.html" -->

In the file "menu.html" in the example above, you would have a snippet of HTML code that contains only the code necessary to make the side menu on your site, if that's what you're using it for. In virtual=, you can specify where the file is located in the same way as if it were in an href=, i.e. "../directory/menu.html" or "/username/directory/menu.html".

YOU CANNOT call code that is placed on a server other than your host server. In other words, virtual="http://www.anothersite.com/menu.html" won't work!

The uses of SSI "include" calls are limited only to your imagination.

A more detailed look at SSI can be found at BigNoseBird.com.
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

thanks for that reply i am going to look up on it
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

here is that the file looks like and i want to know how to but whats in green as the side bar useing php

Code: [ Select ]
<?php
define('IN_PHPBB', true);

$phpbb_root_path = './'; // <--
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

include($phpbb_root_path . 'includes/page_header.'.$phpEx);
?>

    

    [color=green]<table border="0" cellpadding="1" cellspacing="0" width="100%">
    <tr><td valign="top" width="20%">
    <table cellspacing="0" cellpadding="4" border="0" align="center" class="forumline" width="100%">
        <tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
        <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>
    </table>
    <br />[/color]<td valign="top" style="padding-left:20px">
<table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline" width="100%">
    <tr>
        <td class="catHead" colspan="2" align="center"><span class="cattitle">Terms</span></td>
    </tr>
    <tr>
        <td class="row1" align="center" rowspan="2"></td>
        <td class="row1" align="left"><span class="gensmall">Updated 19 Mar 2004 10:13 pm</span></td>
    </tr>
    <tr>
        <td class="row1" align="left" width="85%"><span class="genmed">
     <li><a href="10000maniacs.php">10,000 Maniacs</a></li>
   <li><a href="12stones.php">12 Stones</a></li>
   <li><a href="16horsepower.php">16 Horsepower</a></li>
   <li><a href="2gether.php">2Gether</a></li>
   <li><a href="2pac.php">2Pac</a></li>
   <li><a href="311php">311</a></li>
   <li><a href="3doorsdown.php">3 Doors Down</a></li>
   <li><a href="38special.php">38 Special</a></li>
   <li><a href="3gs.php">3Gs</a></li>
   <li><a href="3lw.php">3LW</a></li>
   <li><a href="50cent.php">50 Cent</a></li>
   <li><a href="54-40.php">54-40</a></li>
   <li><a href="6gig.php">6gig</a></li>
   <li><a href="702.php">702</a></li>
   <li><a href="98degrees.php">98 Degrees</a></li>

</span></td>
    </tr>
</table></td>
    </tr>
</table>
<br />

<?
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
  1. <?php
  2. define('IN_PHPBB', true);
  3. $phpbb_root_path = './'; // <--
  4. include($phpbb_root_path . 'extension.inc');
  5. include($phpbb_root_path . 'common.'.$phpEx);
  6. $userdata = session_pagestart($user_ip, PAGE_INDEX);
  7. init_userprefs($userdata);
  8. include($phpbb_root_path . 'includes/page_header.'.$phpEx);
  9. ?>
  10.     
  11.     [color=green]<table border="0" cellpadding="1" cellspacing="0" width="100%">
  12.     <tr><td valign="top" width="20%">
  13.     <table cellspacing="0" cellpadding="4" border="0" align="center" class="forumline" width="100%">
  14.         <tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
  15.         <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
  16.         <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
  17.         <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
  18.         <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
  19.         <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>
  20.     </table>
  21.     <br />[/color]<td valign="top" style="padding-left:20px">
  22. <table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline" width="100%">
  23.     <tr>
  24.         <td class="catHead" colspan="2" align="center"><span class="cattitle">Terms</span></td>
  25.     </tr>
  26.     <tr>
  27.         <td class="row1" align="center" rowspan="2"></td>
  28.         <td class="row1" align="left"><span class="gensmall">Updated 19 Mar 2004 10:13 pm</span></td>
  29.     </tr>
  30.     <tr>
  31.         <td class="row1" align="left" width="85%"><span class="genmed">
  32.      <li><a href="10000maniacs.php">10,000 Maniacs</a></li>
  33.    <li><a href="12stones.php">12 Stones</a></li>
  34.    <li><a href="16horsepower.php">16 Horsepower</a></li>
  35.    <li><a href="2gether.php">2Gether</a></li>
  36.    <li><a href="2pac.php">2Pac</a></li>
  37.    <li><a href="311php">311</a></li>
  38.    <li><a href="3doorsdown.php">3 Doors Down</a></li>
  39.    <li><a href="38special.php">38 Special</a></li>
  40.    <li><a href="3gs.php">3Gs</a></li>
  41.    <li><a href="3lw.php">3LW</a></li>
  42.    <li><a href="50cent.php">50 Cent</a></li>
  43.    <li><a href="54-40.php">54-40</a></li>
  44.    <li><a href="6gig.php">6gig</a></li>
  45.    <li><a href="702.php">702</a></li>
  46.    <li><a href="98degrees.php">98 Degrees</a></li>
  47. </span></td>
  48.     </tr>
  49. </table></td>
  50.     </tr>
  51. </table>
  52. <br />
  53. <?
  54. include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
  55. ?>


by replaceing it with something like this


Code: [ Select ]
<?php
define('IN_PHPBB', true);

$lyrics = './'; // <--
include($lyrics . 'extension.inc');
include($lyrics . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

include($lyrics . 'sitemenu.'.$phpEx);
?>
  1. <?php
  2. define('IN_PHPBB', true);
  3. $lyrics = './'; // <--
  4. include($lyrics . 'extension.inc');
  5. include($lyrics . 'common.'.$phpEx);
  6. $userdata = session_pagestart($user_ip, PAGE_INDEX);
  7. init_userprefs($userdata);
  8. include($lyrics . 'sitemenu.'.$phpEx);
  9. ?>


some of the coade may need to be changed but to what? [/quote]
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

i got it

you can see in the post were i hade this

Code: [ Select ]
    <tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
        <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>
  1.     <tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
  2.         <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
  3.         <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
  4.         <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
  5.         <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
  6.         <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>




and i asked if this will work


Code: [ Select ]
<?php
define('IN_PHPBB', true);

$lyrics = './'; // <--
include($lyrics . 'extension.inc');
include($lyrics . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

include($lyrics . 'sitemenu.'.$phpEx);
?>
  1. <?php
  2. define('IN_PHPBB', true);
  3. $lyrics = './'; // <--
  4. include($lyrics . 'extension.inc');
  5. include($lyrics . 'common.'.$phpEx);
  6. $userdata = session_pagestart($user_ip, PAGE_INDEX);
  7. init_userprefs($userdata);
  8. include($lyrics . 'sitemenu.'.$phpEx);
  9. ?>


but i was playin with it and got it to work with this

Code: [ Select ]
<?
include($phpbb_root_path . 'sitemenu.'.$phpEx);
?>
  1. <?
  2. include($phpbb_root_path . 'sitemenu.'.$phpEx);
  3. ?>


so in the file called site menu i have this

Code: [ Select ]
<tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
        <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>
  1. <tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
  2.         <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
  3.         <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
  4.         <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
  5.         <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
  6.         <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>




should i put the tables for the menu in there too? so it would look like this

Code: [ Select ]
<table cellspacing="0" cellpadding="4" border="0" align="center" class="forumline" width="100%">
        <tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
        <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
        <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>
    </table>
    <br />
  1. <table cellspacing="0" cellpadding="4" border="0" align="center" class="forumline" width="100%">
  2.         <tr><td class="catHead" colspan="2"><span class="cattitle">Site Menu</span></td></tr>
  3.         <tr><td class="row1" align="left">@ <a href="site.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Home Page</a></td></tr>
  4.         <tr><td class="row1" align="left">@ <a href="about.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">About&nbsp;Cowkiller.com</a></td></tr>
  5.         <tr><td class="row1" align="left">@ <a href="index.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Community Support</a></td></tr>
  6.         <tr><td class="row1" align="left">@ <a href="contact.php?mode=link_to_me&sid=23f363c8b7668607227bffaeea82fece" class="genmed">Link To&nbsp;Cowkiller.com</a></td></tr>
  7.         <tr><td class="row1" align="left">@ <a href="contact.php?sid=23f363c8b7668607227bffaeea82fece" class="genmed">Contact Us</a></td></tr>
  8.     </table>
  9.     <br />

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 76 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.