Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Fork Threads Details »»
Fork Threads
Version: 1.0.1, by GilbertZ GilbertZ is offline
Developer Last Online: Jul 2007 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-15-2005 Last Update: 10-08-2005 Installs: 49
Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Boring Preamble
Sometimes a thread gets really long or some posts generate interesting but off topic conversation. I wanted to test the new cool product manager system and thought of this very simple mod to add Fork Thread functionality to the end user.

What it does
Allows the end user to divert off-topic tangents into a new thread, while automatically quoting the original thread.

Specs
Plugin: Included

Phrases added automatically: 2
fork_prefix and fork_this_post

Templates added automatically: 1
newpost_fork

Templates to edit: 1
postbit or postbit_legacy

Images to upload: 1 (optional)
fork.gif

How to Install

This is a full blown plugin. Follow the usual instructions for a plugin. Then you have to edit the postbit or postbit_legacy template.

For the graphical version you have to insert these lines where you want the link to appear:
PHP Code:
<a href="newthread.php?fork=1&do=newthread&p=$post[postid]"><img src="$stylevar[imgdir_button]/fork.gif" alt="$vbphrase[fork_this_post]border="0" /></a
For the text version use this code:
PHP Code:
<a href="newthread.php?fork=1&do=newthread&p=$post[postid]">$vbphrase[fork_this_post]</a
You may want to place it in an "if" conditional so that only users who can post New Threads will see the image. Just use the same code as what's embedded in the "quote" image.

Updated to version 1.0.1 on 08/18/2005

*Modified to use the phrase manager.
*Fixed minor bug when "Automatically Quote Post / Thread Title" was set to "no".
*Fixed minor bug where after processing the title I pointed to the wrong variable

Preview and Live Demo

Preview attached. Or you can Register and try to fork the posts in the fork me thread.

Graphics help solicited

The quickie image I put together of a fork sucks
If someone comes up with an edited image of the .psd file vb comes with I will edit this post.

Wishlist for this mod

1. I doubt I will have the time to put this together, but it would be nice if there was a dropdown with forums the user has permission to post in so that the user can fork the thread to a different forum.
2. Adding a post to the original thread stating it had been forked and a link to the new thread

Final note

Oblivion Knight donated an image you can use of a fork (Thanks). It is attached to this post.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 01-16-2008, 07:49 AM
hyppa's Avatar
hyppa hyppa is offline
 
Join Date: Dec 2007
Location: Sandnes, Norway
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And what will the code be if we consider this:

You may want to place it in an "if" conditional so that only users who can post New Threads will see the image. Just use the same code as what's embedded in the "quote" image.

</if>
<if condition="$show['search']">

<a href="newthread.php?fork=1&do=newthread&p=$post[postid]"><img src="$stylevar[imgdir_button]/fork.gif" alt="$vbphrase[fork_this_post]" border="0" /></a>

what shall there be instead of search?
Reply With Quote
  #83  
Old 01-19-2008, 03:33 PM
hyppa's Avatar
hyppa hyppa is offline
 
Join Date: Dec 2007
Location: Sandnes, Norway
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured it out.

In postbit legacy, after.

<if condition="$post['editlink']">

BUT, how do i get it to appear in an other underforum?
Reply With Quote
  #84  
Old 01-19-2008, 08:04 PM
hyppa's Avatar
hyppa hyppa is offline
 
Join Date: Dec 2007
Location: Sandnes, Norway
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Domenico View Post
This hack needs to be updated for 3.6.x. Can someone please pick up this cool hack?

I have, and it is working like this:


Ok, if you want to use this on 3.6.8, it works.

https://vborg.vbsupport.ru/showt...highlight=fork


I put the cod in Postbit legacy, and the forkbutton in images/buttons

after

<if condition="$post['editlink']">

in postbit legacy,

post this:

<a href="newthread.php?fork=1&do=newthread&p=$post[postid]"><img
src="$stylevarHow be able to select another "room" for the new, forked thread.
Reply With Quote
  #85  
Old 01-20-2008, 09:39 AM
hyppa's Avatar
hyppa hyppa is offline
 
Join Date: Dec 2007
Location: Sandnes, Norway
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IF anyone have a solution/code to this ill be happy:

How be able to select another "forum" for the new, forked thread.
Reply With Quote
  #86  
Old 01-20-2008, 09:54 AM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't wish to be rude, but it feels like every thread I open has you asking this same question. You've even asked it on vBulletin.com.

I am sure the author of this modification will be aware that people want that feature adding.

If you're expecting someone else to simply jump up and add the feature in just because you keep asking for it, I'm afraid you're likely to be disappointed.

Please stop asking for it, you're not the only one who has asked as you can see if you read the thread.
Reply With Quote
  #87  
Old 01-20-2008, 12:09 PM
hyppa's Avatar
hyppa hyppa is offline
 
Join Date: Dec 2007
Location: Sandnes, Norway
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
I don't wish to be rude, but it feels like every thread I open has you asking this same question. You've even asked it on vBulletin.com.

I am sure the author of this modification will be aware that people want that feature adding.

If you're expecting someone else to simply jump up and add the feature in just because you keep asking for it, I'm afraid you're likely to be disappointed.

Please stop asking for it, you're not the only one who has asked as you can see if you read the thread.

-------

You dont wish to be rude? If you dindnt wish that you could have sent me an pm instead of writing it here.

I have asked here and there, yes, but the only way to get an answer is to ask.

And i dont expect anyone to jump for me, not at least you. I have written in the correct code for 3.6.8 myself, so i quess i jump my self.

If you had looked up and checked the author of this modification has not been online since june 2007.

It is my interest to get this to work. If it is not in your i simply suggest that you stop reading everything that contains the word "fork".
Reply With Quote
  #88  
Old 01-27-2008, 05:43 PM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
 
Join Date: Nov 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually we'd be *really* interested in having this mod updated for vB 3.7 and agree that the ability to spawn the new thread in a specified forum would be invaluable. We've got a very specific use for this in mind and envision the new "fork" being created in a subforum and creating a link in the parent thread to the new fork as well as a link in the first post of the fork that connects back to the original thread.

hyppa, if you or anyone else would be interested, we'd be glad to share the cost of having this developed? Perhaps a bid request on here or rentacoder?

James and Susan
Reply With Quote
  #89  
Old 01-27-2008, 06:06 PM
Tigratrus's Avatar
Tigratrus Tigratrus is offline
 
Join Date: Nov 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually Susan just pointed out to me that much of the groundwork for the functionality we're looking for already exists in the "Report this post" function built into vB. It spawns a child (forked) thread into a separate forum already IIRC? So we'd just need to copy that functionality and tweak it a bit so that links are created in the parent thread to the new child/forked thread.

James and Susan
Reply With Quote
  #90  
Old 01-27-2008, 07:26 PM
hyppa's Avatar
hyppa hyppa is offline
 
Join Date: Dec 2007
Location: Sandnes, Norway
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting.
Reply With Quote
  #91  
Old 08-23-2008, 09:17 PM
Mum Mum is offline
 
Join Date: Jun 2006
Location: New Zealand
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd be very keen to ahve this for 3.7 - hope it will be updated at some stage
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04722 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete