 |
Account Login
|
 |
 |
Latest Articles
|
 |
 |
IRC Channel
|
 |
 |
Associates
|
 |
 |
Associates
|
 |
|
 |
|
 |
|
 |
04-07-2009, 08:12 PM
|
#1 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
What is this called?
Hey guys, here's an easy newbie question.
I believe I understand what pagination is, highlighted in green.
But is there a name for the links highlighted in orange?
And if so, any topics here on TP related to the best way to code it?

|
|
|
|
04-07-2009, 08:15 PM
|
#2 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
|
The common term would be "breadcrumbs" (after the trail left in the fairytale, Hansel and Gretel).
|
|
|
|
04-07-2009, 08:18 PM
|
#3 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Salathe
The common term would be "breadcrumbs" (after the trail left in the fairytale, Hansel and Gretel).
|
Thanks you are quick!
I found a topic so I will go ahead and read....
Breadcrumb Navigation?
|
|
|
|
04-07-2009, 08:23 PM
|
#5 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by WebSavvy
|
Thanks, I guess I will have a lot of reading to do!
|
|
|
|
04-07-2009, 11:31 PM
|
#6 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by WebSavvy
|
I noticed that this website doesn't have any examples using XML.
I guess most people don't use XML to create the breadcrumbs?
I want to stay away from using databases because I don't want to query the DB on every single page click, I can see how that can get out of hand if there's a lot of traffic.
The link has a ton of ideas almost everything but XML..
So that leads me to believe that XML probably isn't the best method??
|
|
|
|
04-07-2009, 11:39 PM
|
#7 (permalink)
|
|
The Addict
Join Date: Jun 2008
Posts: 335
Thanks: 2
|
Well the issue is how would you use xml? The member goes to his control panel, and within his control panel he goes to the password reset and within password reset he presses next to do so and goes the email validation page?
|
|
|
|
04-08-2009, 12:06 AM
|
#8 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
|
@allworknoplay -- that class doesn't call from the db at all. If he has an example there, it's another option not a requirement.
The class actually reads the folder/file structure from the server itself.
Years ago when I first wrote my directory script, I used that class and it worked fine. I was new to php back then and have learned tons more since.
I no longer use any classes for navigation, I get all the data I need from one pass to the db and it's called from another external file based on location of the master page. It's all done using a templated system with mod_rewrite -- which I wrote myself.
Anyway, it was just an example to provide you with a little more information regarding the usage of breadcrumbs.  One size does not fit all.
|
|
|
|
04-08-2009, 12:13 AM
|
#9 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by WebSavvy
@allworknoplay -- that class doesn't call from the db at all. If he has an example there, it's another option not a requirement.
The class actually reads the folder/file structure from the server itself.
Years ago when I first wrote my directory script, I used that class and it worked fine. I was new to php back then and have learned tons more since.
I no longer use any classes for navigation, I get all the data I need from one pass to the db and it's called from another external file based on location of the master page. It's all done using a templated system with mod_rewrite -- which I wrote myself.
Anyway, it was just an example to provide you with a little more information regarding the usage of breadcrumbs.  One size does not fit all.
|
Oh no I understand, I guess I failed to mentioned I was reading another article that used DB's, so that's why I mentioned the database...I like the file/directory structure the best, at least so far from what I read, it seems efficient.
I'll have to put this into practice so I get a full understanding... 
|
|
|
|
04-08-2009, 12:21 AM
|
#10 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
|
LOL @OK. You were speaking of the TalkPhp thread regarding navigation using a db. (I have a headache so I'm not following along too well right now.  )
Yeah, his class is written pretty well and it's easy to understand. There's a readme file that explains pretty much everything too.
I'm sure it'll be super easy for you to get it up and running.
|
|
|
|
04-08-2009, 12:34 AM
|
#11 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by WebSavvy
LOL @OK. You were speaking of the TalkPhp thread regarding navigation using a db. (I have a headache so I'm not following along too well right now.  )
Yeah, his class is written pretty well and it's easy to understand. There's a readme file that explains pretty much everything too.
I'm sure it'll be super easy for you to get it up and running.
|
Hope you feel better! You need to step away from the PC! I know when I have headaches, I just can't stand to be in front of the PC or TV...makes things worse....
I need to understand this and pagination. I've always sorta just hacked my way in implementing my own methods and they were not good methods so I have to just start coding better...
Preferably in OO which I am a super newbie right now....
|
|
|
|
04-08-2009, 01:26 AM
|
#12 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
|
meh ... my headache is from Internet Explorer 6 not doing what I want it to. <growl>
I have a new design I'm working on and it uses one fixed element (the footer). I've added all the required CSS hacks for it, but it still wants to drop itself into the middle of the page and it's ticking me off.
I'll figure it out, I'm sure -- but it sure is a pain. I loathe IE6!
If you want an easy pagination routine, I have one and can post it here for you if you'd like. I use it on my site too.
OK ... here's an example of it in use (note that I haven't done ANY work on my site since last year due to an accident)
In that time my host updated to PHP5 and I have a few files that need to be updated as a result.
Here's my site, and no laughing please : http://www.websavvy.cc/
|
|
|
|
|
The Following User Says Thank You to WebSavvy For This Useful Post:
|
|
04-08-2009, 01:39 AM
|
#13 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by WebSavvy
meh ... my headache is from Internet Explorer 6 not doing what I want it to. <growl>
I have a new design I'm working on and it uses one fixed element (the footer). I've added all the required CSS hacks for it, but it still wants to drop itself into the middle of the page and it's ticking me off.
I'll figure it out, I'm sure -- but it sure is a pain. I loathe IE6!
If you want an easy pagination routine, I have one and can post it here for you if you'd like. I use it on my site too.
OK ... here's an example of it in use (note that I haven't done ANY work on my site since last year due to an accident)
In that time my host updated to PHP5 and I have a few files that need to be updated as a result.
Here's my site, and no laughing please : http://www.websavvy.cc/
|
Cool! I will check it out! Sorry about your accident...
As for IE, it's not just IE6, it's IE and it's history of not playing nice!
I am sure everyone here was happy in their design via FF then...oops, forgot to check in IE and bam! It looks horrible!!
Do you design for Safari and Opera too? I don't even know anything about those browsers. Supporting FF and IE is more than enough pain...
EDIT: Ok, I can't seem to find your article on pagination, could you link me?
Thanks..
|
|
|
|
04-08-2009, 01:47 AM
|
#14 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
|
If you visit my site, click on the top link that says Preferences. It'll take you to the script I wrote where you can select from one of three themes. The default theme is the Chess theme.
I design a bit differently because I use PHP to create dynamic CSS so it can accept variables from POST data from my preferences script. Right now it's just shoved into the header because I did a quick fix to deal with the PHP5 update.
In my development area, it's coded differently and that'll be rolled out pretty soon. I use one CSS file for structure and then the styles are each in their own css file.
I can generally get all browsers to display the design pretty much the same way without having to add any special tweaks.
If you want to see what your site looks like in other browsers you can use totalvalidator.com and select from lots of different browsers and it'll do a screen cap and display it to you so you can see what browsers are having issues.
Most of my traffic uses FF, Opera, and IE. I have some traffic using safari, and linux though not nearly as many as the other browsers I've mentioned.
|
|
|
|
04-08-2009, 01:49 AM
|
#15 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
|
@LOL. I'm sorry, I didn't mean to confuse you. I don't have an article on pagination. I meant you can visit my site and see how my pagination is done by going to a category with more than 10 listings in it.
I'd give you the codes I use on my site so you'd be able to implement them on your own site.
|
|
|
|
04-08-2009, 02:02 AM
|
#16 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by WebSavvy
If you visit my site, click on the top link that says Preferences. It'll take you to the script I wrote where you can select from one of three themes. The default theme is the Chess theme.
I design a bit differently because I use PHP to create dynamic CSS so it can accept variables from POST data from my preferences script. Right now it's just shoved into the header because I did a quick fix to deal with the PHP5 update.
In my development area, it's coded differently and that'll be rolled out pretty soon. I use one CSS file for structure and then the styles are each in their own css file.
I can generally get all browsers to display the design pretty much the same way without having to add any special tweaks.
If you want to see what your site looks like in other browsers you can use totalvalidator.com and select from lots of different browsers and it'll do a screen cap and display it to you so you can see what browsers are having issues.
Most of my traffic uses FF, Opera, and IE. I have some traffic using safari, and linux though not nearly as many as the other browsers I've mentioned.
|
Thanks I will take a look. Perhaps I asked you this before and I apologize if I did, but do you use any GUI application to develop your sites? I use Dreamweaver and Ultraedit...
EDIT: ohhh, I like the butterfly theme.....
Quote:
Originally Posted by WebSavvy
@LOL. I'm sorry, I didn't mean to confuse you. I don't have an article on pagination. I meant you can visit my site and see how my pagination is done by going to a category with more than 10 listings in it.
I'd give you the codes I use on my site so you'd be able to implement them on your own site.
|
Ahhh ok...yeah, I thought there was an article...well if it's not too much trouble, feel free to send me your code, but it's no big deal, just whenever you have time...
I am learning so much from various members here on this site, I'm so glad I found it, I hope I can return the favor to everyone here one day....
My knowledge of PHP is "patchy", meaning that I am all over the place because I am responsible for so many things other than PHP. Such as Apache, redhat, server configuration, Cisco...so my head is all scrambled....
But I am trying my hardest to solidify my fundamentals of PHP and Redhat Linux. I believe those two go well together...
|
|
|
|
04-08-2009, 02:06 AM
|
#17 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Hey Web:
If you go to AOL.com
http://www.aol.com/
On the top right hand corner, they have a bunch of little boxes. If you click on them, it changes the theme on the fly.
Do you think they are using just CSS for that? Or CSS/Ajax?
|
|
|
|
04-08-2009, 02:17 AM
|
#18 (permalink)
|
|
The Addict
Join Date: Jun 2008
Posts: 335
Thanks: 2
|
they use AJAX to load a new stylesheet most likely
|
|
|
|
|
The Following User Says Thank You to Enfernikus For This Useful Post:
|
|
04-08-2009, 02:18 AM
|
#19 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
|
AOL is also my ISP @LOL.
I think they're probably using some kind of backend programming ... though I can't really say. I don't know anything about Ajax except that it isn't web accessible ... meaning, it's invisible to screen readers.
FYI ... screen readers don't see anything that's inside JS at all.
Thanks for the compliments on the butterfly theme. I actually did that one for my son. It's his favorite one.
Yeah, I can post the codes for the pagination for you tomorrow some time. Is this for the MyISAM db? If so, it'll work just fine because it's what I'm using the codes in as well.
[EDIT]= sorry, I didn't answer this question ...
Quote:
|
Thanks I will take a look. Perhaps I asked you this before and I apologize if I did, but do you use any GUI application to develop your sites? I use Dreamweaver and Ultraedit..
|
No, I don't use anything like that at all. I write all of my code myself by hand one line at a time. I use editPad. It's the only thing I've ever used.
|
|
|
|
04-08-2009, 02:27 AM
|
#20 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Enfernikus
they use AJAX to load a new stylesheet most likely
|
Thanks, Yeah that's what I figured, something that occurs on the backend. If you notice, when you hover over it, it changes what's in the URL, so perhaps it's simpler, maybe it just calls different CSS stylesheets based on what is on the URL...who knows....
Quote:
Originally Posted by WebSavvy
AOL is also my ISP @LOL.
I think they're probably using some kind of backend programming ... though I can't really say. I don't know anything about Ajax except that it isn't web accessible ... meaning, it's invisible to screen readers.
FYI ... screen readers don't see anything that's inside JS at all.
Thanks for the compliments on the butterfly theme. I actually did that one for my son. It's his favorite one.
Yeah, I can post the codes for the pagination for you tomorrow some time. Is this for the MyISAM db? If so, it'll work just fine because it's what I'm using the codes in as well.
[EDIT]= sorry, I didn't answer this question ...
No, I don't use anything like that at all. I write all of my code myself by hand one line at a time. I use editPad. It's the only thing I've ever used.
|
Well I like the color blue, that's probably why I liked the butterfly theme, but the butterfly looks nice too...
Feel free to provide the pagination OR breadcrumbs code whenever you have time. For me, I would probably use a pagination script that works with my mySQL DB, and for the breadcrumbs, I'm still trying to figure out how it all works, still reading that link you sent me.
I'm really amazed at how many people handcode their web designs. Makes me feel like I am cheating with Dreamweaver.
Don't get me wrong, I do a ton of hand coding, but I use DW to create the quick and dirty layout so I can visually see how I am going to lay out my site, then I go in with the PHP and start hacking away the HTML and mixing it in with PHP. It's always worked well for me, but you know what, I am finding that the more advanced PHP programmers just simply don't use any fancy tool at all...
I haven't heard of editPad, but I have heard of Notepad++, I hear that's pretty popular too....
Funny, back in 2000 when I started coding, UltraEdit was "the" tool to use, and for whatever reason, it seems to have dropped off the map, but I love using it...
EDIT: BTW, I've had the same AOL account for 15 years!!!
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|