![]() |
John,
A few comments from only reading the code. * The implementation should never return an error message instead of a link. If I post a link and you find that I do not have access or you could not find the post, the code should fall through to behave as it would without this mod -- i.e., just leave the link alone. * Are you replacing all instances of "forumid", "threadid", and "postid" with "f", "t", and "p"? This would mangle a mod with those strings anywhere else in the URL, like "/my_mod_forumid.php?p=1234". * Access to a thread/post should be CANVIEWOTHERS if one is not the author. * You seem to be checking a URL for "p=" first and then overwriting the results if "t=" is found in the same URL. Perhaps you are missing an 'else'. * You could think about using the post title (p=1234 case) when it is set (i.e., not the thread title). * "showpost.php" case would be useful and is very similar to "showthread.php" case. Also, this may give you some other ideas: https://vborg.vbsupport.ru/showthread.php?t=68398 Cheers |
Completely agree with everything - it was just fast "weekend idea" and far from perfect :)
May be except "post title" - i still think that thread title will always give better description for link. I'll make and upload v1.2 as soon as I'll have free time again :) But one question - sorry :) I never was vb3 administrator and have no working vb3 near, so can you please give example url with both "p=" and "t=" variables? |
t= and p= in same URL
I was mistaken. Although they can both appear in a showthread URL, the t= will override. Nevertheless, you likely still need an else between the t= and p= code. Also, I would guess that most people likely want local links to open in the same window. A config option would be a good idea here. |
Sorry :(. I found another bug. When parsing a URL to a member user, it creates a link like: member.php?u=1234 and drops out the name of the user. You can see an example here: http://www.churchmedia.net/community...ead.php?t=5100
Edit: I uninstalled the hack and resaved the post above and it fixed it, so it doesn't show the problem anymore. Just try this in a post and see what you get: Code:
[ url=http://www.churchmedia.net/community/forum/member.php?u=1]Tim Eason[/url ] Also, I agree that you should make the url just show up as-is instead of giving a "post not found" error. That would take care of potential problems. Great concept :) |
i'll add everything and fix exerything tomorrow :)
sorry - too busy today... |
great!
|
Good idea. How's the server load affected for those using this on a busy site?
|
what happens when someone uses the
Code:
[url =link]text[ /url] tags instead ? |
How about rewriting a posted text when a user inserts a reply?
I mean really change a http://www.blabla....-Textpart into a valid vbCodelike:{url=http://www.blablabl]Thread name[/url] and store that in the users post in the text. This would easy the load for larger boards (no on-the-fly checks necessary). |
this hack has more bugs than windows 95,98,2000 and xp combined. ;)
|
All times are GMT. The time now is 01:34 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|