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.

apfparadise 01-18-2005 04:45 AM

Love the hack, installed it and clicked install, but have one small problem, probably something I did.

When someone enters the description it shows up twice, once next to the title, and once right below it.

It looks like this:

I would like some critique - HP - just random shots with 2 diferent cameras.
just random shots with 2 diferent cameras.

Here is the link:
http://aquatic-photography.com/forum...splay.php?f=22

apfparadise 01-19-2005 11:59 PM

anyone? please? :)

apfparadise 01-26-2005 03:41 AM

Wow it's been a week and no replies, what's up everyone, can't someone help me with this. I already pm'ed and emailed the author and nothing. :(

Andreas 01-26-2005 03:51 AM

Check the template modifications you made.
As I don't know this hack, I can only assume that there must be smth. wrong in template threadbit.

apfparadise 01-26-2005 04:46 AM

Thanks, Kirby, it's amazing, you pointed out the right template and all of a sudden I found it. It was the optional step, I read the directions wrong and kept both statements instead of choosing one. :)

Luciolle 04-22-2005 02:54 PM

It's work great but I have one little problem, when I try to edit, everything it's nice, but when I hit save change, He don't take the change, he show me the old entry not the new ?

I check all templates et file but he still not working.
Somme body help me on this thing ?

My vb version is: 3.0.7

Thanks in advanced

Luciolle 04-25-2005 10:39 AM

Just to put on top of list again after more 24 hours ;) !

No body know about my little problem ?
I still have same problem the editing post don't take the change and I don't find why, if any body know how thanks to help me ;) !

Luciolle 04-28-2005 04:56 PM

How to make option on admincp to show the new box on X forum and not on Y forum ?

Because now the box show on all forum, if it'S possible and you have little bit of time to help me or tell me how do that ;) !

Thanks for your futur help

Luciolle 04-29-2005 02:04 PM

Try another time to put up the message to have a little answer or help for the permission via cpadmin to show or not the box by forum !

Thanks

JohnBee 04-30-2005 02:00 AM

I found a small typo:

Code:

######
#Find#
######
                        SELECT $previewfield
                                thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid,
                                thread.replycount, IF(thread.views=0, thread.replycount+1, thread.views) as views, thread.sticky,
                                thread.pollid, thread.open, thread.lastpost AS postdateline,
                                thread.lastpost, thread.lastposter, thread.attach, thread.postusername, thread.forumid,
#################
#Add right after#
#################

thread.threaddesc

Insated of: thread.threaddesc
it should be thread.threaddesc,

Otherwise you'll get db errors.

Luciolle 04-30-2005 10:12 AM

Yes that ok I correct right away when I install the hack ;) !

Now I need to know how to put permission via cpadmin to show or not the box on each forum ?

If anybody know how & like to help your welcome :P !

Thanks

playboy 05-01-2005 04:57 PM

I Keep Getting This Whenever I Make A New Thread:


There seems to have been a slight problem with the Mysite.Com database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Quote:

Database error in vBulletin 3.0.7:

Invalid SQL:
INSERT INTO thread(title, lastpost, forumid, open, replycount, postusername, postuserid, lastposter, dateline,
iconid, visible, attach, similar, threaddesc
VALUES
('TestaSD', 1114967453, 3,
1, 0, 'Name', 1,
'Name', 1114967453, 0, 1,
0, '', 'TestDD'

mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VALUES
('TestaSD', 1114967453, 3,
1, 0, 'Name', 1,


mysql error number: 1064

Date: Sunday 01st of May 2005 01:10:53 PM
Script: http://mysite.com/newthread.php
Referer: http://mysite.com/newthread.php?do=newthread&f=3
Username: [NAME]
IP Address: 4.229.6.201
:( :( :(

playboy 05-01-2005 07:37 PM

I also just noticed that the thread starter's name is still below the thread name, and also in the thread starter column. :-S

playboy 05-09-2005 04:12 PM

bump......................///

paul41598 07-01-2005 05:04 PM

anyway so i can have this hack show in specific forums!?? I need that

Fallback 07-15-2005 10:18 AM

how many querys does this hack add?

Q-v-n-s-Q 08-13-2005 03:37 AM

some buggy - Views support to be 40 and Replies support to be 9 , but it show replies = 40 and view = 9 lol, and when u click on topic, it doesnt count up even if you reply

Edit: nvm i fix it:D just replace view to replies and replies to views XDD


All times are GMT. The time now is 04:17 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.01242 seconds
  • Memory Usage 1,840KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (2)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
  • (27)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