vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Complete Thread Description Hack 1.7 (https://vborg.vbsupport.ru/showthread.php?t=68263)

Hades-1 11-05-2004 08:37 PM

whenever i edit a post it does not enter the info into the database, i also get no errors, it just dosent work

It works great when i post a new thread tho

sblum 11-15-2004 08:54 PM

That has to do with the time limit you've set on editing a post title, if I recal correctly.

lancepoint 11-20-2004 05:29 AM

how do i fix it??? i tried dropping the threaddesc and all my forums crashed.. i so i added it back for now..people can reply to threads but posting them gets this error.

Thanks Pre Hand


PHP Code:

Invalid SQL
                
INSERT INTO vbulletin_thread(titlelastpostforumidopenreplycountpostusernamepostuseridlastposterdateline,
                     
iconidvisibleattachsimilarthreaddesc)
                
VALUES
                    
('THREAD TEST ETEST'110085626932,
                     
10'DesignerBeat'1,
                     
'DesignerBeat'110085626901,
                     
0''''0)
            
mysql errorColumn count doesn't match value count at row 1

mysql error number: 1136 


kall 11-28-2004 02:36 AM

Odd...the thread description deosn't change when a member uses editpost.php

All of the edits have been done.

eXtremeTim 12-27-2004 03:42 AM

Just wondering

When was I asked for permission for this to be worked on and released? I dont really care but a pm would have been nice.

kikosho 12-30-2004 05:48 AM

Quote:

Originally Posted by kall
Odd...the thread description deosn't change when a member uses editpost.php

All of the edits have been done.


Yeah, I am still getting that problem as well and I have the editing timetable disabled. Still no luck even if I attempt to edit a thread immediately. Very frustrating...someone please help! :)

eXtremeTim 12-31-2004 03:07 AM

Here is my fix that I used on my site.

in editpost.php

If you have the hack installed find the following:
PHP Code:

if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse); 

Replace with:
PHP Code:

        if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse);
        } else {
$threadupdate[] = "threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "'";
        } 


If still getting ready to install that hack find:
PHP Code:

if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse); 

Replace with:
PHP Code:

        if ($getpost['postid'] == $postid AND $edit['title'] != '' AND ($postinfo['dateline'] + $vboptions['editthreadtitlelimit'] * 60) > TIMENOW)
        {
            
// need to update thread title iconid, and thread description
            
$threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "', iconid = $edit[iconid]";
            
// do we need to update the forum counters?
            
$forumupdate iif($foruminfo['lastthreadid'] == $threadinfo['threadid'], truefalse);
        } else {
$threadupdate[] = "threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "'";
        } 


acrimony 01-04-2005 07:38 AM

For some reason I cant find the function_newpost file...... ????

charlesk 01-10-2005 05:54 PM

Install clicked. Thanks.

eXtreme Tim: one strange thing. So far I am finding that editing does work with the stock hack code, without your modifications. That is, I am able to edit in editpost.php as the hack was originally provided. Not complaining but I wonder now why that would be?

Charles

charlesk 01-10-2005 07:17 PM

Never mind, I just figured out how to make that bug appear.

Thanks for the fix. Note that there's an extra "}" in your replacement text, however.


All times are GMT. The time now is 07:24 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.14015 seconds
  • Memory Usage 1,782KB
  • 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
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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