Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Duh.

 
Reply to topic    Forum Index » General chat View previous topic
View next topic
Duh.
Author Message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Duh. Reply with quote
I feel so silly that I never noticed this. Today I realized you can do URL's like this:



http://www.yoursite.com/index.php?category=5



That saves a lot of time but I realize it limits a few capabilities and SEO.



and http://www.yoursite.com/index.php?category=5&number=10



and http://www.yoursite.com/index.php?category=3,4,5&number=10&template=jellyfish

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Wed Feb 14, 2007 1:22 am View user's profile Send private message Visit poster's website AIM Address
Guest








Please login to hide the ads.

Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
Haha, bit slow only figuring that out now Razz



With the help op Friendly URLS you can even make the links more neat. (e.g. http://yoursite.com/(categoryname)/



the .htaccess file translates that to http://yoursite.com/(homepage).php?category=(categoryname)

_________________
Thu Feb 15, 2007 9:58 am View user's profile Send private message Visit poster's website
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
Oooh very nice. Lots of little things I haven't taken the time to learn I see. Rufu's is something I want to get into more. Rufus and htaccess. Thanks again Ramon. Very Happy

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu Feb 15, 2007 7:18 pm View user's profile Send private message Visit poster's website AIM Address
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
I thought you knew Confused

Thought we discussed it in my thread about category-icon list?

Like I have arranged a list of category-icons that link to mysite.tld/categoryname and how to code the links to automatically adjust to category-management:P

_________________
My cute.ru site
Thu Feb 15, 2007 11:27 pm View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Saszoo wrote:
Thought we discussed it in my thread about category-icon list?


Link to this thread:

http://english.cutenews.ru/forum/global-category-icon-code-t1006.html
Thu Feb 15, 2007 11:48 pm View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
Yes, thanks FI-DD Smile

_________________
My cute.ru site
Thu Feb 15, 2007 11:53 pm View user's profile Send private message Visit poster's website
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
Perhaps, but it's abilities and flexibility hadn't sunk in yet hehe. However, that thread doesn't discuss the main reasons and ideas I had behind using those. I guess in a way it does. I'm talking like in your layout instead of making index.php with links in your navigation system to this.php and that.php you could just put



index.php?category=2

index.php?category=3



and it would do the same thing. But, your <title> and meta tags/keywords would all be the same on each page. It would just provide a faster way of putting your site together.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Fri Feb 16, 2007 12:42 am View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Use conditional statements and you can have everything in one file:

Code:
<title><?=($_GET['category'] == 2 ? 'Title of category 2' : ($_GET['category'] == 3 ? 'Title of category 3' : 'Default title')); ?></title>

Fri Feb 16, 2007 1:07 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » General chat All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.