vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: vForums :: Announcements :: Smaller URLs! - View Topic (Page 1 of 2)Page: 1 2
Topic Rating: *****
Printable View
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Smaller URLs! (4th Mar 10 at 12:22pm UTC)
We are pleased to announce that our URLs have been on an extensive diet and exercise program which has had some amazing results! They've lost a lot of weight {Grin}

/action/view_profile/user/ross has managed to become /profile/ross a loss of 17 characters
/board/general/page/3 has managed to become /general/p2 a loss of 10 characters
/board/general/topic/30464/action/view_topic/subject-key-words/page/2 has managed to become /general/30464/subject-key-words/p2 a loss of an amazing 34 characters!

We're very proud of the work all these URLs have done over the past few weeks.

-------------------------

For those of you who are not quite sure what that was all about - we have cut down the length of URLs used on user forums.

This has been part of our latest set of features which was rolled out earlier today. As well as these shorter URLs we have fixed a number of minor bugs and have added some extra javascript variables in the header to help coders.

These shorter URLs are entirely optional. We have enabled them be default for all new forums as well as any forums which currently have less than 20 topics or 3 members. To enable/disable this feature just go to your admin panel, choose "SEO Settings" and change the "Short URLs" setting.
Some codes may need adjusting in order to work with these new URLs. When enabled, URLs will redirect from the old (long) version to the new (short) version.

Enjoy!
Ross
vForums Staff

Image
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Smaller URLs! (4th Mar 10 at 2:06pm UTC)
Awesome!! Easier to remember now! {Grin}

Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Smaller URLs! (4th Mar 10 at 5:29pm UTC)
I see what you did, it was in /name/value pairs but now just /value

I still don't like topic urls though, too complex for scripting

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Smaller URLs! (4th Mar 10 at 8:54pm UTC)
 
I see what you did, it was in /name/value pairs but now just /value

I still don't like topic urls though, too complex for scripting


There's no real need to use the URLs for scripting. New variables in the header enable you to check if you're on the view topic page by just using:

if(vf_action == 'view_topic') {
alert('You are viewing a topic!');
}


And getting the topic ID isn't that hard - it's the first number sandwiched between two forward slashes (unless the board ID is numeric but lets not go there....).

Basically, we've made them as short and simple as we can without compromising on functionality (particularly for the search engines)

Image
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Re: Smaller URLs! (5th Mar 10 at 12:02am UTC)
So I have a question. When having a table and part of it is a quick link table, do you have to give the full URL in the table? or can you just add something like <a href="/news">News</a> and it will automatically fill in the rest of the url? Because <a href="action/board/news">News</a> would take you to the board. I have not tested it out yet, just wandering if it's the same or not.
dog199200
Guest
Re: Smaller URLs! (5th Mar 10 at 12:29am UTC)
yea that is a very good question, what if a board of category are using the same ID{Confused} I tend to do it a lot actually, use an id for a category and then use it again for a board that uses the same name, and i can see where it might cause a looping problem

Edit: DM@ I know that if you use the full url context, it will redirect to the short url, providing the short url is active, so i'd assume that the short url would redirect to the long url as well.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Smaller URLs! (5th Mar 10 at 9:55am UTC)
Long URLs redirect to their short version. But not the other way around. When entering links you should always provide the full final URL rather than linking to a URL which then redirects to the final one.

Categories don't use these shorter URLs for the reason you mentioned. They're still /category/category-id

Image
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Smaller URLs! (5th Mar 10 at 12:20pm UTC)
Well I mean linking to a topic, like in a additional profile option

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
dog199200
Guest
Re: Smaller URLs! (5th Mar 10 at 5:33pm UTC)
Aiken@ yea maybe a little, but at least they are easier now, plus it helps getting in the habit of copy and pasting the url you need, its a great time saver {Tongue Out}

Ross@ Ok I assume by final you mean using a long url in the long setting and a short url in the short setting instead of the redirected form. Also thats good to hear the categories are the same, maybe in time a way to shorten th categories can be done too.
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Smaller URLs! (5th Mar 10 at 5:55pm UTC)
Yeah, copy/paste, but is would be easier without the topic title needed in the url

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Smaller URLs! (5th Mar 10 at 7:32pm UTC)
The topic title isn't needed, based on the tests that I just ran on my forum. {Smile}
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Smaller URLs! (5th Mar 10 at 9:04pm UTC)
 
Yeah, copy/paste, but is would be easier without the topic title needed in the url


The subject is just there for the search engines. When used correctly it means you get keyword rich URLs - something which has been working well on a some of our forums. But as Wrighty says, it's not 100% necessary to include it in the link.

Image
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Smaller URLs! (6th Mar 10 at 2:45am UTC)
Like is this way my saved passwords for forums don't work {Confused}

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Smaller URLs! (6th Mar 10 at 4:17am UTC)
 
Like is this way my saved passwords for forums don't work {Confused}


Shouldn't be, this doesn't change the domain that is being used, just the subURL that is being used.
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: Smaller URLs! (7th Mar 10 at 7:37pm UTC)
{Unsure} mmmm

For some reason my saved password in FF3 only worked here , on all other forums it didn't i had to fill them out all over again {Shocked}

Image
click here We have 15 Different Skins/Templates for your vForum
 Printable View
Page: 1 2

All times are GMT+0 :: The current time is 2:39pm
Page generated in 0.5505 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums