vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   New Posting Features - [HTL] & [Normal] Thread Descriptions v1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=60697)

eXtremeTim 01-24-2004 10:00 PM

[HTL] & [Normal] Thread Descriptions v1.0.1
 
THIS HACK IS BACK UNDER PRODUCTION
I will be working on getting a new version of this hack out tonight. I will provide support here the best I can. For priority support go here

Thread Descriptions
Version: 1.0.1
vB-version: 3.0.0 Release Candidate 2
Developer: Tim "eXtremeTim" Yarbrough
Install-difficulty: Easy
File-edits: 4
Template-edits: 2
Files modified for this Hack:
root/newthread.php
root/forumdisplay.php
root/includes/functions_newpost.php
Templates modified for this Hack:
newthread
threadbit
DB Tables modified for this Hack:
thread

Updated in v1.0.1:
Fixed html security problems.

What is coming in the next version:
Ability to edit descriptions
Ability to turn descriptions on and offer on a per forum basis and globaly
Ability to turn on showing the descriptions at the top of every page of the thread for reference.
Ability to define the cutoff on the display of it on forumdisplay (recommended only to use this when using the display in thread feature)
Ability to define the cutoff for how many characters can be input into the description box.

This hack was made for eXtremeChatForums.com by Tim "eXtremeTim" Yarbrough


https://vborg.vbsupport.ru/external/2010/09/1.gif

Gio Takahashi 01-25-2004 02:26 AM

Awesome job, Extreme Tim. I'll definitely install. Keep up the good work.

eXtremeTim 01-25-2004 02:38 AM

Im planning to release my currency hack that i did for my site soon and possible a few other code changes.

Boofo 01-25-2004 10:35 AM

What is the character limit on the thread description? And how can you add a bigger character limit to it?

eXtremeTim 01-25-2004 01:30 PM

Its 85 right now. You can change the limit in the html for newthread up to 125 after that you must change the varchar field in the database to allow more.

bluecat 01-25-2004 11:19 PM

I apologize asking a stupid question, but can this query be ran simply by Import & Maintenance>Execute SQL Query, and adding it to the second window under manual query? (under VB3)? Thanks.

eXtremeTim 01-26-2004 12:03 AM

Yes it can.

bluecat 01-26-2004 12:21 AM

Thank you.

Boofo 01-26-2004 02:49 AM

Any way to add this to the editpost so we can add thread descriptions to threads that are already there?

gmarik 01-26-2004 05:32 AM

It's DHTML ow just JavaScript or just alt?

achtungbaby 01-26-2004 09:02 AM

Quote:

Originally Posted by Boofo
Any way to add this to the editpost so we can add thread descriptions to threads that are already there?

That's what I'm waitin for.

StarBuG 01-26-2004 09:33 AM

Nice hack!

That´s what I´m waiting for!

/me clicks install

Greetings

Star

TheComputerGuy 01-26-2004 11:05 AM

Quote:

Originally Posted by Boofo
Any way to add this to the editpost so we can add thread descriptions to threads that are already there?

That would be a good feature

SteveK 01-26-2004 02:03 PM

Perhaps I missed the step, but I believe the HTL version needs to support database prefix's. I was able to edit this in via the Hack Manager to get it installed. Nice one, overall--- thanks.

eXtremeTim 01-26-2004 05:44 PM

EVERYBODY USING APPLY THIS FIX NOW. There was a major security problem found. This stops the use of html and applies swear filering to the text.

Open functions_newpost.php

Find:
PHP Code:

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

Add Below:
PHP Code:

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

I will update the two install files to have this new change in v1.0.1. The only change will be this security update.

Boofo 01-29-2004 03:47 PM

Any word on updating this for the editpost to add descriptions to threads already there?

fly 02-07-2004 04:28 PM

<i>...Posting here to be informed of an update...</i>

M.C. 02-10-2004 11:03 PM

any chance to add description on POST EDIT?

Boofo 02-10-2004 11:33 PM

We figured out what needed to be added and it is more code than the original hack. But it works! ;)

achtungbaby 02-11-2004 02:18 AM

Quote:

Originally Posted by Boofo
We figured out what needed to be added and it is more code than the original hack. But it works! ;)

Care to post the code...?

LOD-squa 02-14-2004 05:21 PM

Something I would like to see in this hack would be that you *can* change the thread description from Thread(or however it is called) Tools ----> Edit Thread

Boofo 02-14-2004 05:27 PM

That requires extensive editing of postings.php. It can be done, but only with time and patience. ;)

LOD-squa 02-14-2004 05:34 PM

If someone could do it I would appreciate it. :)

setsykid 02-22-2004 08:11 PM

:/

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline,
iconid, visible, attach, threaddesc, similar)
VALUES
(':(', 1077487797, 39,
1, 0, 'Dx', 2,
'Dx', 1077487797, 0, 1,
0, '', 'yaaaa'

Boofo 02-22-2004 08:23 PM

Quote:

Originally Posted by setsykid
:/

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline,
iconid, visible, attach, threaddesc, similar)
VALUES
(':(', 1077487797, 39,
1, 0, 'Dx', 2,
'Dx', 1077487797, 0, 1,
0, '', 'yaaaa'

Where's the rest of the error message?

setsykid 02-22-2004 08:48 PM

Fix it :)

Boofo 02-22-2004 09:10 PM

What was it?

FleaBag 02-23-2004 06:35 AM

LOL I was just about to release this myself. Though I did it in two file edits, probably the insecure way. :)

Boofo 02-23-2004 06:53 AM

I'm going to be releasing a version on my site that has the edits for the postings.php and editpost.php (as soon as I get the install file put together, which is almost done). ;)

Serge 02-25-2004 12:23 AM

Quote:

Originally Posted by setsykid
:/

Database error in vBulletin 3.0.0 Release Candidate 4:

Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline,
iconid, visible, attach, threaddesc, similar)
VALUES
(':(', 1077487797, 39,
1, 0, 'Dx', 2,
'Dx', 1077487797, 0, 1,
0, '', 'yaaaa'

In reply to your problem it is because of a missing ) at the end of that line. It seems to be a typo cause I got the same thing using v1.0.1


Quote:

Originally Posted by eXtremeTim
######
#Find#
######

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

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

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

At the end of the replace line there should be a ) so it should be

PHP Code:

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

Try that to see if it works as that is what I had to do.

PET 02-25-2004 01:43 PM

This hack isn't complete.

How can i edit a thread Description ?
How can i see the thread description while i am in a thread ?

Can you implement this things ?

thanx

fly 02-25-2004 02:04 PM

Quote:

Originally Posted by PET
This hack isn't complete.

How can i edit a thread Description ?
How can i see the thread description while i am in a thread ?

Can you implement this things ?

thanx

You did notice there were other pages in this thread, right?

PET 02-25-2004 04:56 PM

what other pages in this thread ? I only see one page....your post is the post number 32. Or what did you ask me ??

fly 02-25-2004 05:23 PM

Sorry, I was just being a smartass. Your request has already been mentioned more than once.

PET 02-25-2004 06:03 PM

and have it been solved ?

Boofo 02-25-2004 06:12 PM

Ok, guys, for anyone interested, I have solved this for my site. I won't release it here as to not step on any toes with cross-over hacks. If you want it, log onto my site and pm me and I will get it to you. ;)

PET 02-26-2004 10:33 AM

you have solved all my problems ? I mean...posiblity to edit the description ?

Boofo 02-26-2004 10:50 AM

Yes! And you can add descriptions to threads that were already there before you installed this hack. ;)

Chris M 02-26-2004 10:57 AM

I would love to view it, but I can't remember if I have created an account there or not...

Edit: I just registered again ... still not sure if I had an account:ermm:

Satan

Boofo 02-26-2004 11:24 AM

You did on vB2, but I did a new install for vB3. ;)


All times are GMT. The time now is 02:41 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
  • Page Generation 0.01289 seconds
  • Memory Usage 1,817KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete