Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2008, 09:13 PM
megabyte366 megabyte366 is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default i guess it's a thread hack

looking for a hack i ran across this on another vb site and can't find it anywhere on here..
It give's you the option to choose a file server.

if anyone know of the hack or temp.. please help.. thanks
Attached Images
File Type: jpg whathack.jpg (47.9 KB, 0 views)
Reply With Quote
  #2  
Old 01-05-2008, 03:56 PM
megabyte366 megabyte366 is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the hack i found on the web.. but i would like some to look at it and convert it over to 3.6.8 so we can use it. thanks... the coder is not attached to vbulletin anymore. and support is no longer applied to this hack....
Appreciated if anyone could convert this to a working mod... for vb3.6.8


#################################
#Hack: Thread Type Hack
#Hack By: Tim "eXtremeTim" Yarbrough
#Created For: http://www.extremechatforums.com/forum/index.php
#Live Demo : ( ID: 143 password: test ) http://www.efz-tm.net/forums/newthre...ewthread&f=130
#################################
#If you like this hack please click install.
#################################
#NOTES
#As with any hack please backup your files and database before installing.
#################################

####################
#Files to be edited#
####################
#root/newthread.php
#root/forumdisplay.php
#root/includes/functions_newpost.php
####################

########################
#Templates to be edited#
########################
#newthread
#threadbit
########################

################
#Queries to run#
################

ALTER TABLE `thread` ADD `threadtype` VARCHAR( 30 ) NOT NULL ;

################

#####################
#Start of file edits#
#####################

###############
#Open root/newthread.php
###############

######
#Find#
######

$newpost['posthash'] = $posthash;

###########
#Add Below#
###########

//Thread Type Hack By Tim "eXtremeTim" Yarbrough for http://www.extremechatforums.com/forum/index.php
$newpost['threadtype'] = $_POST['threadtype'];
//End Thread Type Hack By Tim "eXtremeTim" Yarbrough for http://www.extremechatforums.com/forum/index.php

################
#Save and close#
################

#######################
#Open root/forumdisplay.php
#######################


######
#Find#
######

deletionlog.username AS del_username, deletionlog.reason AS del_reason") . "

##############
#Replace with#
##############

deletionlog.username AS del_username, deletionlog.reason AS del_reason") . ", thread.threadtype

################
#Save and close#
################

#######################
#Open root/includes/function_newpost.php
#######################

######
#Find#
######
// ### POST NEW THREAD ###
if ($type == 'thread')
{

###########
#Add Below#
###########

$post['threadtype'] = htmlspecialchars_uni(fetch_censored_text($post['threadtype']));

######
#Find#
######

iconid, visible, attach, similar

##############
#Replace with#
##############

iconid, visible, attach, similar, threadtype

######
#Find#
######

$totalattachments, '" . addslashes($similarthreads) . "'

##############
#Replace with#
##############

$totalattachments, '" . addslashes($similarthreads) . "', '" . addslashes($post['threadtype']) . "'


################
#Save and close#
################

#########################
#Start of template edits#
#########################

################
#Open newthread#
################

######
#Find#
######

<!-- subject field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1" /></td>
<td>&nbsp;&nbsp;</td>
<td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /><else />&nbsp;</if></td> </tr>
</table>
<!-- / subject field -->

##############
#After it add ( You should edit this list to fit your site )
##############

<!-- Thread Type field -->
<table cellpadding="0" cellspacing="0" border="0" class="fieldset">
<tr>
<td class="smallfont" colspan="3">Thread Type:</td>
</tr>
<tr>
<td><select name="threadtype" tabindex="1">
<option value=""></option>
<option value="News">News</option>
<option value="Informative">Informative</option>
<option value="Important">Important</option>
<option value="Release">Release</option>
<option value="RE-Release">RE-Release</option>
<option value="Joke">Joke</option>
<option value="Question">Question</option>
<option value="Resource">Resource</option>
<option value="Tutorial">Tutorial</option>
<option value="Image Thread">Image Thread</option>
<option value="Point Less">Point Less</option>
<option value="Other">Other (for anything else)</option>
</select></td>
<td>&nbsp;&nbsp;</td>
<td><if condition="$posticons"><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /><else />&nbsp;</if></td> </tr>
</table>
<!-- / Thread Type field -->


###########################
#Save the template changes#
###########################

################
#open threadbit#
################

######
#Find#
######

<if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>

###############
#Before it add#
###############

<if condition="$thread['threadtype']"><span class="smallfont">[$thread[threadtype]]</span></if>

###########################
#Save the template changes#
###########################
Reply With Quote
  #3  
Old 01-05-2008, 04:15 PM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is thread prefixing which is in vb 3.7
Reply With Quote
  #4  
Old 01-05-2008, 09:29 PM
megabyte366 megabyte366 is offline
 
Join Date: Oct 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay.. thanks.... does anyone know when a stable vers coming out (3.7)
Reply With Quote
  #5  
Old 01-05-2008, 10:46 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by megabyte366 View Post
okay.. thanks.... does anyone know when a stable vers coming out (3.7)
Nope, just the vbulletin dev team and they aren't telling us.
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 02:53 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.09814 seconds
  • Memory Usage 2,223KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete