![]() |
Admins creates threads which are actually links
Ok this is a really neat idea requested by e_dove here:
https://vborg.vbsupport.ru/showthrea...threadid=36862 New version![/b] Now includes links to Delete Thread as well as Stick/Unstick Thread. If you already installed the hack, open forumdisplay.php and replace this: Code:
if (empty($thread['link'])) { Code:
$thread['deletelink'] = ''; It gives admins the option to create threads, in any forum, which are actually links to someplace else. Really basic, when admins create a new thread they have a box to enter URL. If the box isn't empty, whenever the thread is accessed the user will be redirected to that URL. Using vbHacker as always, edits newthread.php, showthread.php and forumdisplay.php. Adds a field to thread table, creates a new template and edits 2 existing templates. Have fun. :) |
Thank you.. and people it doies work.. he tested it on my thread,, ill install tommorow
|
Here's an example of this hack:
https://vborg.vbsupport.ru/forumdisp...?s=&forumid=13 Click the thread "vBulletin 2.2.5 released". |
I did this same thing a while ago but never wrote up any directions.
I used the edit thread option of postings.php so you'd have to start a thread then go into postings and edit it to enter the redirect url. It was very simple to add to postings. I used a redirect page to send you to the new url. the views hit counter still works. I made a simple cp script which lists all threads with redirects with edit links. that admins script can also be used to list all stickies, all threads with polls, and all news threads (another hack). I'd be happy to write it up if you wanted it. I feel the need to contribute since I started using vbhacker. damn handy tool. |
I LOVE IT! Just what I wanted... and vbhacker! *drool*
thanks firefly! anyway you could make my "attachments on calendar events" hack? :D cheer mate! -Myles |
let's count views?!
|
175...... i installed.. works great :)
|
Works fantastic!
er, how do I delete a thread that is a link? :nervous: |
lol... i was wondering the same....lol... i saw u edited the first thread u tested it on and took the link off it again... may i ask how?
|
Great hack. Firefly, is it possible to target a new window? If not, it's still a cool hack :)
JC |
nafae: lol I dunno. :p
TheCaver: sure. In forumdisplay.php replace: Code:
if (empty($thread['link'])) { Code:
if (empty($thread['link'])) { |
Chen:
Yet another cool hack. I too would like to be able to delete a thread that is a link though after it has been up for awhile or you want to edit it. Parker |
Chen:
I tried using: Quote:
Unfortunately this gives me the delete icon with every thread. I want it to only show up when $thread['link] has something in it. I played around with different items to use for $thread['link] but got nowhere. Any ideas? Parker |
Put that bit of code BEFORE what my hack adds. :)
|
I put it before
Quote:
Parker |
Try in the if to use !empty($thread['link']).
|
Ok I tried:
Quote:
Parker |
This would be even sweeter if there was a panel at the top of the linked page, saying "Return to forum" or something similar. <drools> :cool:
|
Quote:
|
I'll add both of these things once I get some time.
|
Quote:
|
Deletion would be nice.....but this hack is great!
Thanks! |
I tried $thread['link']!="" and that didn't work either.
Thanks again for a great hack. Parker |
Thanks FF, works great!
JC |
Can you please post a plaintext instructions file?
It would be greatly appreciated. :) |
To delete one link. Has it been done? :)
|
DRKfusion:
This is something that is getting worked on. Parker |
When you do the delete thread option can you add the option to make sticky?
|
Can someone post the plaintext version here?
|
Please! Can anyone help here?
|
I will post a text version of the hack in the new release.
|
Isn't the vbhacker export-to-txt function enough affordable ?
:grin: |
to delete the post goto admin area and then delete the purne etc.
|
Would this hack work with 2.0.3?
|
Just upload vbhacker, upload the hack, and choose "make text file" and quit whining about it.
|
Nafae-
If your comment is directed at me, the reason I asked for the text version is because I'm having a problem with vbHacker. I uploaded the vbhacker.php file to my admin folder. I also uploaded the hack I wanted to install (the hack here) But when I run the script, it gives me this error: Warning: Variable passed to reset() is not an array or object in /home/macfora/public_html/forums/admin/vbhacker.php on line 555 Running ver 2.2.2 All I need is the hack in text version so I can install it |
Parker Clack, for the code in the 13th post, change it to:
Quote:
Small addition to hack: Like the hack, but I after posting a link I'd rather it not go to the link URL. To instead have the forum displayed, in file "newthread.php" change if ($visible) { to if ($visible and $link=='') { |
Quote:
Thanks |
Sorry I forgot, basically all the new version has it a delete link and someone already posted that but I'll post my version anyway later.
|
And here's the text version of the new update...
|
All times are GMT. The time now is 10:29 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|