vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Get Rid Of &p=postid ? (https://vborg.vbsupport.ru/showthread.php?t=243180)

ChopSuey 05-24-2010 01:09 AM

Get Rid Of &p=postid ?
 
Code:

http://forum.vbdiscussions.com/showthread.php?t=7997&p=9005#post9005
Nasty URL (i just randomly selected a thread. )Im wanting to take out the
"&p=9005" there.

Edit showthread.php? Or ?

I know Shawn did this on DigitalPoint.

Marco van Herwaarden 05-24-2010 04:39 AM

It is the postid, not the threadid.

And why would you want to get rid of it?

ChopSuey 05-24-2010 06:55 AM

I meant postid sorry! I haven't slept yet...LOOK at the URL, its calling the post twice.

Code:

http://forum.vbdiscussions.com/showthread.php?t=7997#post9005
Thats more better. showing it twice is just not good.

Code:

http://forum.vbdiscussions.com/showthread.php?t=7997&p=9005
They both lead to the same thing. I want to get rid of it though.

Marco van Herwaarden 05-24-2010 08:41 AM

Not really. The first would fail if the post is on the second page of a thread.

With showthread.php the threadid could be ommited when the postid is provided.
If you want to remove a postid then it would need to be the #post9005. This will probably still work, although i am not sure of that would work in all circumstances.

ChopSuey 05-24-2010 10:34 AM

Well it never used to be like that until i upgraded to vBulletin 4.

That URL in first post - Thats how it shows up in Google.

Paul M 05-24-2010 10:41 AM

Quote:

Originally Posted by ChopSuey (Post 2042619)
That URL in first post - Thats how it shows up in Google.

and why is that a problem ?

Marco van Herwaarden 05-24-2010 10:50 AM

It has always worked like that.

See for example here on vBulletin.org:

Correct (should bring up the last post in the thread):
https://vborg.vbsupport.ru/showthrea...87#post2017787
https://vborg.vbsupport.ru/showthread.php?p=2017787
https://vborg.vbsupport.ru/showthrea...2335&p=2017787
https://vborg.vbsupport.ru/showthrea...87#post2017787

Incorrect (does not bring up the last post):
https://vborg.vbsupport.ru/showthrea...35#post2017787

ChopSuey 05-24-2010 11:17 AM

I guess its the &posted thing.....

Can't explain it correctly.


All times are GMT. The time now is 07:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04965 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete