TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 12-29-2009, 08:59 PM   #1 (permalink)
The Wanderer
Newcomer 
 
Parvus's Avatar
 
Join Date: Aug 2008
Posts: 21
Thanks: 1
Parvus is on a distinguished road
Default vB style url's/navbar, how ?

Hi all,

I'm having a question that is driving me kinda nuts right now.
I really like the way vB handles the url's and makes the navbar and I would like to be able to make the same sort of url's and navbar.

First I was looking how the url's where made so nice, so I did some research on mod_rewrite and I am able to make some nice url's, but I'm still with the question how vB handles a url like:
http://www.talkphp.com/general/ and http://www.talkphp.com/general/1-example/. I know that vB (in the second case) just gets the number of the topic and shows it, no mather what is behind the number, but how does vB handle the first case ?
I had a thought that maybe vB takes 'general', looks for a title in a db and gets stuff, but then I thought, how does it handle 'tips and tricks' while the url says /tips-tricks/ . . .

The navbar was also driving my head nuts, but I now know (or actually think) that it gets a parent/child id and looks up the parents/children and then makes the navbar.

Could someone help me in how to make does url's and/or enlight me with some idea's on how to implement this easily ?

*And since we're in between the holidays, happy holidays everone =]
~Parvus
Parvus is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
vB related - rep points for threads? Brook General 1 02-22-2008 02:21 PM
Any coders here use Drupal and vB? (Or have been thinking about it?)) Brook General 0 01-30-2008 04:01 AM
Different style template system? Nor General 2 01-15-2008 01:10 PM
Creating a vB plug-in Brook Absolute Beginners 0 12-16-2007 05:44 PM


All times are GMT. The time now is 09:04 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design