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)

turbidblue 08-12-2004 11:33 PM

worked like a charm! thanks alot! i really appreciate it! :)

FleaBag 08-13-2004 12:07 AM

Oustanding, this is just what I was looking for. :)

wrongful 08-13-2004 03:55 AM

I could be wrong here, I don't know much about PHP but in the following edit in search.php

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

shouldn't

Code:

thread.threaddesc
be
Code:

thread.threaddesc,

wrongful 08-13-2004 04:24 AM

Also for some reason when I edit the threads, and change the thread description, it isn't updating. I have checked all of my edits. :(

sblum 08-13-2004 05:06 AM

Does anyone else have the same problem that wrongful is having? It works 100% for me

turbidblue 08-13-2004 11:15 PM

works 100% here too :)

wrongful 08-14-2004 08:42 PM

Ok after some testing I came to the following conclusion:

It is only not letting me edit the thread desciptions of threads that are older than 10 minutes, which is the time limit to edit the thread title set in the admincp options. Since I am an admin, this rule shouldn't apply to me. I think that's what the problem is. :)

sblum 08-16-2004 06:59 AM

I'll check it out wrongful, but that means that there's other conditionals set somewhere while editing a post to check if you're an admin that I don't know about. I'll check it out tomorrow and try to figure it out.

wrongful 08-20-2004 02:56 PM

I have a huge problem. Whenever someone edits a post, and uses and apostrophie, you get a database error:

Quote:

Database error in vBulletin 3.0.3:
Invalid SQL:
UPDATE thread
SET title = 'gfdsgds', threaddesc = 'gdfgs'', iconid = 0
WHERE threadid = 4110

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 ''gdfgs'', iconid = 0
WHERE threadid = 4110' at line 2
mysql error number: 1064
Date: Friday 20th of August 2004 11:56:02 AM
Script: http://www.wrongfuldistribution.com/forums/editpost.php
Referer: http://www.wrongfuldistribution.com/...itpost&p=34096
Username: Terry Norris
IP Address: 69.1.28.89

sblum 08-20-2004 04:45 PM

Sorry abou that, can't believe I overlooked it. If you've instaleld this hack prior to 8/20, open up editpost.php

Find:
PHP Code:

            $threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '$edit[threaddesc]', iconid = $edit[iconid]"

and replace it with:
PHP Code:

            $threadupdate[] = "title = '" addslashes(htmlspecialchars_uni($edit['title'])) . "', threaddesc = '" addslashes(htmlspecialchars_uni($edit['threaddesc'])) . "', iconid = $edit[iconid]"



All times are GMT. The time now is 08:44 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.01094 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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