vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   change showpost.php (like vbSEO) (https://vborg.vbsupport.ru/showthread.php?t=144018)

DiSpy 04-04-2007 06:34 PM

change showpost.php (like vbSEO)
 
Hi,

I've looked at vBseo, but i'm not interested in over 90% of the stuff it does (and I don't like the fact that it's encrypted code). So the only 2 things that I wanted out of it were:

The rel=nofollow links for certain areas, so they don't get spidered/cached on google. (which I was able to add manually)

The showpost.php modification. This seems reasonable to me... I see no need to have it take people to a seperate page when they click a post number in postbit. This page not only looks ugly, but is an entirely unneccessary extra query and load on my database.

Therefore, I'd love it if someone could come out with a mod that will take the #1, #2 #3, etc links and change them from:

http://www.yourdomain.tld/forum/show...52&postcount=1
TO
http://www.yourdomain.tld/forum/showthread.php?p=1216452#post1

Where it will just take the person who clicks it directly to the appropriate post in the thread. (I assume this uses "a name" html tags to do this.)

THANK YOU!

Zachery 04-04-2007 09:44 PM

Just change showpost.php to showthread.php

DiSpy 04-04-2007 10:10 PM

Haha, that works great...

You (my friend) are a genious, and I am an idiot. :up:

THANK YOU!

For anyone else wanting to do this in the future, just goto the style manager and edit templates and choose the postbit (and/or postbit_legacy) and search for showpost.php and change it to showthread.php.

THAT SIMPLE! :cool: :o

Zachery 04-04-2007 10:24 PM

You're not an idiot, I've just got 5 years expirence on ya ;)

haytham 04-05-2007 08:12 PM

Thanks for the both of you. I learned something new.

kall 04-05-2007 08:17 PM

Something to bear in mind, by doing this, you are actually *increasing* the number of URLs that the thread in question will have.

This is creating Duplicate Content, something that the search engines don't like.

DiSpy 04-05-2007 10:37 PM

Quote:

Originally Posted by kall (Post 1220654)
Something to bear in mind, by doing this, you are actually *increasing* the number of URLs that the thread in question will have.

This is creating Duplicate Content, something that the search engines don't like.


Sorry, is it? I was under the impression that search engines ignored #XXX after a url? It's similar to using an "<a name=" tag in html. no?

kall 04-06-2007 02:23 AM

showthread.php?p=12345 and showthread.php?t=34567 are different URLs, no?

Both point to the same content, right?

DiSpy 04-07-2007 05:52 PM

Ok, for my purposes it doesn't matter... since I don't allow search engines to spider my forums anyway (only the archive, which is custom made, not vB stock).

However, since this is the case then anyone else reading this should add the rel="nofollow" tag to the href so that search engines don't spider it. (Where you change showpost.php to showthread.php... example: <a href="link" rel="nofollow">link</a>)

Thanks kall & Zachery! :D

DiSpy 04-10-2007 01:18 PM

I actually figured out an even better way to do this...

Quote:

<if condition="$show['postcount']">#<a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;#post$postid" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
This was you not only use the rel="nofollow" but you also aren't changing the URL of the page at all... it's still "showthread.php?t=34567" with just the postid added at the end. Everyone should be happy now. :up:

THANKS for all your help guys!! :D


All times are GMT. The time now is 05:22 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.01613 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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