Log in

View Full Version : Can someone help make this php line-change into a plug-in please?


Razasharp
03-12-2006, 04:18 PM
Hope someone can help me make this a plug-in:

In newreply.php

FIND

$url = "showthread.php?$session[sessionurl]p=$newpost[postid]#post$newpost[postid]";


REPLACE that with

$url = "forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]";


To go to the forum or


$url = "$vboptions[forumhome].php?$session[sessionurl]";


to go to forum home.

I don't really want to hack the files so thought it would be better to make it a plug-in? I don't know how to do it tho!

Hope someone can help :)

(quote taken from this thread: https://vborg.vbsupport.ru/showthread.php?t=66522&highlight=redirect)

merk
03-13-2006, 07:31 AM
You can use newreply_post_complete to modify $vbulletin->url.

Razasharp
03-13-2006, 03:56 PM
You can use newreply_post_complete to modify $vbulletin->url.

Thanks Merk.... I'm still lost tho :(

ha think I got it!

I basically copied the original code in the php code box for that hook then changed where I wanted it to go!

I'm not sure 'why n how' it works exactly but it does :lol:

Thanks Merk!