vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Local links to titles (https://vborg.vbsupport.ru/showthread.php?t=69077)

JohnWoo 09-03-2004 10:00 PM

Local links to titles
 
Hello!

Not sure again - may be something like it exist already, but I was not able to find :)
That small hack adds only one feature. Links to local board posts, threads and forums will appear on that threads and post titles. For example link text for
https://vborg.vbsupport.ru/showthrea...2&goto=newpost
will be turned to "Fulltext boolean search v.2.2 for vB" and on https://vborg.vbsupport.ru/forumdisplay.php?f=32 - to "Code Modifications vB3".
But please be careful - it adds additional DB request for each local link on page.

Fixes:
v 1.1

- fixed links to multiply pages threads with pp= in url

nexialys 09-04-2004 12:03 PM

i always dreamed of this, but never took a look at the code.. lol

btw, GREAT!

BarHopper 09-04-2004 12:32 PM

Wow,l this is great,. Thanks

Dean C 09-04-2004 04:44 PM

Thankyou for sharing your work with the community :)

ranger2kxlt 09-04-2004 05:31 PM

I'm lost as to what this does? Can someone explain a bit more?

Thanks

roundhost 09-04-2004 05:37 PM

wicked cool!

Mike11212 09-04-2004 08:36 PM

Quote:

Originally Posted by ranger2kxlt
I'm lost as to what this does? Can someone explain a bit more?

Thanks

Basically when someone post a link to a thread the link will turn into a text link. The text being the threads title.

ChurchMedia 09-05-2004 04:39 AM

Nice! *installs

Small bug that I'm sure you can fix. If you use a link that came from (for instance) a page 3 of a thread, you get a "Post not found". This link won't work:

I think it's because of the &page=3&pp=15.

I'm sure you can fix it up :)

JohnWoo 09-05-2004 04:55 AM

yes.. sorry - it is because of pp=15
to fix it just replace
Code:

if (preg_match("~p=([0-9]+)~", $rightlink, $num)) {
with
Code:

if (preg_match("~[^a-z]p=([0-9]+)~", $rightlink, $num)) {
:)
i'll upload new zip in few minutes

ChurchMedia 09-05-2004 05:14 AM

Perfect! Works great now.

Thanks!!! :)


All times are GMT. The time now is 09:08 PM.

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.01049 seconds
  • Memory Usage 1,725KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete