|
| |
|
|
DaAngel
Posts: 300 Joined: 3/30/2003 From: Posting Machine - Belfast Child Status: offline
|
Hit king.....Don' t read this - 4/14/2003 5:56:26
ok....I give up I can' t make head nor tail of front page code, whats all this fuss about shared borders......
_____________________________
North Carolina Web Design Rockingham City Web Design
|
|
|
|
erinatkins
Posts: 3072 From: Mechanicsville VA USA Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 9:10:13
quote:
shared borders Shared Borders are parts of the web page that share content with the other pages in the web. They are located at the top, bottom, left side, or right side of the page and are useful for information that should appear on every page in the web such as navigation links, web site headers, and copyright information.
_____________________________
All Hail Great Spooky - Master of the Outfront Forums. He can make you or break you.
|
|
|
|
Mike54
Posts: 4782 Joined: 3/26/2001 From: Way Up Over Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 10:16:14
quote:
whats all this fuss about shared borders...... I' m not sure what context this is in. What fuss in particular? When I first started I thought shared borders were great. In time however I learned they can get pretty orked up and discovered that include pages were much more to my liking. Here' s a couple of threads on the subject. Includes Vs. Shared Borders Shared borders generate invalide code.
_____________________________
Who was the first guy that looked at a cow and said, "I think that I'll drink whatever comes out of those things when I squeeze them"? New photogalleries, stop by sometime.
|
|
|
|
Mike54
Posts: 4782 Joined: 3/26/2001 From: Way Up Over Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 12:00:40
quote:
Now this is an area that I still don' t have yet What' s the problem Deb, they should be pretty straight forward?
|
|
|
|
Bill Nicol
Posts: 1445 From: Springfield IL USA Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 12:55:49
I' ll weigh in on this one and agree with Mike54. Includes are very straightforward, and IMHO, more stable and infinitely simpler to work with. We can help here.....let us know.
_____________________________
"Hold on Lukey, we're headin'for the rhubarb"... J Watson, 78th Frasers
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 13:54:49
For some reason, people try to back SSI a complicated issue - its not. Take a look here for one of the better explainations and tutorials http://www.bignosedbird.com
_____________________________
Gil Harvey, 1947-2004
|
|
|
|
DaAngel
Posts: 300 Joined: 3/30/2003 From: Posting Machine - Belfast Child Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 15:01:05
Not quite following, anyone got a working example?
_____________________________
North Carolina Web Design Rockingham City Web Design
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 15:11:03
quote:
they should be pretty straight forward? Did you ever have one of those DUH things that no matter WHAT it just didn' t sink in? Well that is mine. But, as stubborn as I can be, lol, ONE day I' ll get it! quote:
We can help here.....let us know. I know bill, and thanks, I have to reorganize myself from these past few months leading up to this war, and then Mike going over. I' m working on getting back into the self teaching. So, as I need it, lol, I' ll ask or go back to the thread where everyone was beating their heads trying to get me to get it! lol ahhh, then you guys add server side includes???!! Ieee, another t hing that is boggling, figuring out all the info on the IIS. lol I have a really long way to go yet! Thanks for the links guys, you are all really great!
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
bobby
Posts: 11394 Joined: 8/15/1969 From: Seattle WA USA Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 15:19:51
quote:
then you guys add server side includes???!! Ieee, another t hing that is boggling Only at first... once you get your brain wrapped around the concept you' ll wonder how you ever managed without them... <edit> DaAngel... you' d never notice a working example of an SSI because it all takes place on the server side. Basically you can " include" all the content of a file by using this line of code in the page where you want the SSI to copy > paste the data before serving the page to the browser: <!--#include file=" name.txt" --> If name.txt contains: <p>Hello world!</p> Then everywhere you have the include call listed on any page it will replace itself with the contents of name.txt Now, take your page headers that repeat on every page, cut and paste into notepad, save as header.txt and use the include call on all of your pages... You just created a single file (header.txt) from which you can manage your page headers for every page of your website. Now, do the same with your navigation, footers, etc. and you can manage all of the repeating content on every page of your web from a single file (or set of files) If you want to remove the " About Us" link from your navigation and replace it with a link to your online store, you open the included file, make the change and save it. The change will be reflected on every page that calls the include... HUGE time saver when you go to rebuild your pages... QED
< Message edited by bobby -- 4/14/2003 12:24 PM >
_____________________________
If con is the opposite of pro, is Congress the opposite of progress?
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 15:30:04
quote:
Not quite following, anyone got a working example? http://findawebpro.com The ' page' is the header and a table with an include.
_____________________________
Gil Harvey, 1947-2004
|
|
|
|
john40004
Posts: 1346 From: Bardstown KY USA Status: offline
|
RE: Hit king.....Don' t read this - 4/14/2003 21:20:09
quote:
Mike54:...include pages were much more to my liking. Deb:Now this is an area that I still don' t have yet!!! Deb, Think in terms of an overhead projector regarding " Includes" . You have four transparencies (pages). Transparency/page #1 is your " include" page with your name and address in the top of the page and nothing in the bottom half. Transparencies/pages #2 through #4 all have different information in the bottom of the page, but nothing in the top. You put transparency #2 on the page, then lay transparency #1 (the include) on top. Your page shows name and address on top and other information below. Repeat for pages #3 and #4, always placing page #1 on top. New information in the bottom is shown, but always the same address for #1. You now change your address. All you have to do is make a new transparency for page #1 with the new address. Lay that over pages #2 through #4 and the top information is changed, but not that on the bottom of the other pages.
< Message edited by john40004 -- 4/14/2003 9:28 PM >
_____________________________
If you lead a good life and say your prayers at night, when you die you' ll find yourself in Kentucky. The home of fast women and beautiful horses!
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Hit king.....Don' t read this - 4/15/2003 13:28:21
quote:
So what sort of form would the perl take? Form?
_____________________________
Gil Harvey, 1947-2004
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Hit king.....Don' t read this - 4/15/2003 14:24:46
quote:
What would the code look like Well, that particular application has a Perl script (15 pages) that calls one or more of 6 other Perl scripts to post to or query a mySQL database (with 31 tables). Here' s a small piece of the main script: ################################################################### ## See what the user sent as variables and take action # ################################################################### IWEB::Read_Config(); IWEB::Read_Language(" ilink" ); IWEB::Read_Language(" global" ); %input=IWEB::parse_form(" input" ); ## TESTING # $ENV{' SCRIPT_NAME' } = " ilink.cgi" ; # $input{' action' } = " Search" ; # $input{' Terms' } = " internet" ; ## For bannermaster if($global{' DB_Format' } eq " SQL" ) { IWEB::SQL_Connect(); } $hyperseek{' small_folder' } = qq! <IMG SRC=" $global{' button_dir' }/none.gif" BORDER=0> !; #### File names / etc sent from html $hyperseek{' database' } = " $data_dir/ilink/hyperseek.dat" ; $hyperseek{' tempdb' } = " $data_dir/ilink/hyperseek.temp" ; $hyperseek{' catdb' } = " $data_dir/ilink/subcategories.dat" ; $hyperseek{' Category' } = $input{' Category' }; @categories = IWEB::ReadCategories(); $action = $input{' action' }; if ($input{' Terms' }) { $hyperseek{' template' } = " search" ; $hyperseek{original_terms} = $input{Terms}; } elsif ($action eq " Add_Link" ) { $hyperseek{' template' } = " add_url" ; } elsif ($hyperseek{' Category' }) { $hyperseek{' template' } = IWEB::Make_Alpha($hyperseek{' Category' }); $hyperseek{original_terms} = $input{Category};} else { $hyperseek{' template' } = " ilink" ; } IWEB::Page_Header($hyperseek{' template' }); IWEB::Quit(); } sub BODY { my($body) = undef; if ($action eq " Search" ) { $body = IWEB::DoSearch(); } elsif ($action eq " Add_Link" ) { $body = IWEB::Add_Form(); } elsif ($action eq " post_new" ) { $body = IWEB::Post_New(); } else { $body = IWEB::Category_Listings(); } return($body); } sub DoSearch { my ($catsplit,@Terms,$IDX_File,$check_special,$searchterm,$term,$sterm,$terms,$found,$shown,$outlinks,$header); my ($temp,$tempterms,$DEL,$allterms,%entered,%quoted,$footer,@results,$count,%scores,$end,$start); ## SETUP ## $terms = lc($input{' Terms' }); $terms =~ s/\' //; $hyperseek{' original_terms' } = $terms; $hyperseek{' encoded_terms' } = IWEB::urlencode($hyperseek{' original_terms' }); $hyperseek{' phrase' } = $input{' Terms' }; $hyperseek{' phrase' } =~ s/ /_/g; $hyperseek{' phrase' } =~ s/\" //g; $hyperseek{' search_range' } = $input{' howmuch' }; if (! $hyperseek{' search_range' }) { $hyperseek{' search_range' } = " ALL" ; } if ($hyperseek{' search_range' } ne " ALL" ) { $hyperseek{' search_cat' } = $hyperseek{' search_range' }; } ## Split out the mailto, ID, and URL requests ... $DEL = " http://" ; $check_special = $terms; $check_special =~ s/$DEL//g; ($hyperseek{' prefix' },$sterm)= split(/\:/,$check_special); if ($sterm) { $input{' Range' } = " Any" ; $hyperseek{' Search_By' } = lc($hyperseek{' prefix' }); $hyperseek{' Search_By' } =~ s/ //g; $hyperseek{' original_terms' } = $sterm; $hyperseek{' encoded_terms' } = IWEB::urlencode($hyperseek{' original_terms' }); $terms = $sterm; $terms =~ s/ //g; } undef $allterms; undef @Terms; $tempterms = $terms; ## Make a space delimited string of terms, using " _" in any quoted term while( $tempterms =~ m{" ([^\" \\]*(?:\\.[^\" \\]*)*)" }gx ) { $temp = IWEB::ul($1); $terms =~ s/$1/$temp/g; } $terms =~ s/\" //g; foreach $searchterm( split(/\s+/,$terms) ) { $searchterm =~ s/_/ /g; if(! $hyperseek{' grp' }) { $hyperseek{' grp' } = IWEB::Make_Alpha($searchterm); } if($allterms) { $allterms .= " $searchterm" ; } else { $allterms = $searchterm; } } ## Change operational vars into codes $allterms =~ s/ and not / -/ig; $allterms =~ s/ not / -/ig; $allterms =~ s/ and / \+/ig; $allterms =~ s/ or / \|/ig; # $allterms =~ s/(\+\+)/$hyperseek{' cpp' }/g; $allterms =~ s/(\*+)/$hyperseek{' WildCard' }/g; ## Now, foreach term, do the magic. foreach $searchterm( split(/ /,$allterms) ) { if($ignored{$searchterm}) { $forbidden{$searchterm}++; next; } # Determine if it' s required, optional, or screened if( substr($searchterm,0,1) eq " +" ) { $searchterm =~s/\+//; $required{$searchterm}++; $searchterm = quotemeta($searchterm); $hyperseek{' required' } .= " (?=.*$searchterm)" ; } elsif( substr($searchterm,0,1) eq " -" ) { $searchterm =~s/\-//; $screen{$searchterm}++; $searchterm = quotemeta($searchterm); $hyperseek{' screened' } .= " (?=.*$searchterm)" ; } elsif( substr($searchterm,0,1) eq " |" ) { $searchterm =~s/\|//; $optional{$searchterm}++; $searchterm = quotemeta($searchterm); $hyperseek{' optional' } .= " (?=.*$searchterm)" ; } else { $required{$searchterm}++; $searchterm = quotemeta($searchterm); $hyperseek{' required' } .= " (?=.*$searchterm)" ; } } ## END SETUP ##
< Message edited by Gil -- 4/15/2003 2:25 PM >
_____________________________
Gil Harvey, 1947-2004
|
|
|
|
DaAngel
Posts: 300 Joined: 3/30/2003 From: Posting Machine - Belfast Child Status: offline
|
RE: Hit king.....Don' t read this - 4/15/2003 14:43:07
Ok, to bobby then, this looks like a neat idea that I can use to save me time when updating my footers. This can be done with a txt file you say! Ok sounds great. Thinking, If I include the the html for my footer in a separate file and call it from say anypage.html, would the file I call be footer.txt or footer.html? does it matter. Ie. if the text file has say <img src=" blahblahpic.jpg" > will that work as html or will it show as text saying <img src=" blahblahpic.jpg" >? Update: Got it working using a text file. However not sure how much use that is going to be just yet. The links on my footer change slightly depending on what page the viewer is on. I don' t include the current page in the footer links.
< Message edited by DaAngel -- 4/15/2003 3:04 PM >
_____________________________
North Carolina Web Design Rockingham City Web Design
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Hit king.....Don' t read this - 4/15/2003 15:02:41
DaAngel, It ' shouldn' t matter - I say shouldn' t because it all depends on the server configuration - if you are hosted on a Windoze server it might - most *nix boxes are configured to parse .txt. Again if the server parses the file the <img src=" blahblahpic.jpg" > will do the same as a regular HTML file IE: show the image. Any and all HTML that is valid will work fine in an included file.
_____________________________
Gil Harvey, 1947-2004
|
|
|
|
Gil
Posts: 7533 From: North Carolina, USA Status: offline
|
RE: Hit king.....Don' t read this - 4/15/2003 15:04:31
quote:
Holy smokes LOL You want to learn Perl, start here: http://www.perl.com/
_____________________________
Gil Harvey, 1947-2004
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|