vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hidden Posts (https://vborg.vbsupport.ru/showthread.php?t=27179)

tubedogg 09-04-2001 09:05 AM

s'ok JJR :)

Squashed another bug folks. Involving editpost.php...

Find
$signature=iif($signature=="yes",1,0);
Add right below it
$hidden=iif($hidden=="yes",1,0);

Then find
PHP Code:

  $DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'"); 

and replace it with
PHP Code:

  $DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid', hidden='$hidden'$editedbysql$attachmentsql WHERE postid='$postid'"); 

and reupload editpost.php. Should now work. :o

amykhar 09-06-2001 02:58 PM

Works like a charm (at least for new posts, haven't fully tested edited posts and replies yet)

THANK YOU Kevin :)

Amy

squawell 09-07-2001 03:53 PM

after install find some problem~~

Database error in vBulletin: Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,hidden) VALUES (NULL,'16','[ ???? ]???Ф@?|?s?}?x?׾?','squawell','1','999881856','0' ,'VWEVWEV','1','1','127.0.0.1','0','1','1')
mysql error:
mysql error number: 0
Date: Saturday 08th of September 2001 12:57:36 AM
Script: /vbb203/newthread.php
Referer: http://localhost/vbb203/newthread.ph...read&forumid=4

what's wrong??who can tell me??pls~~~

TWTCommish 09-07-2001 07:03 PM

Dang, I can't believe someone made this...I run a movie forum site, so a [spoiler] tag is becoming a must. I'll probably write my own version of it though, which can give users the option to automatically display spoilers anyway, have them show up in a JS alert, or have them show up in a popup window...or something. :)

amykhar 09-08-2001 08:36 PM

One of my users just noticed a slight hitch in the hack. When hit reply, all of the posts, hidden and not, are displayed down below.

I am going to poke around and see if I can fix it, but it might take a while. :D

Amy

tubedogg 09-08-2001 11:14 PM

I noticed that yesterday too. Shouldn't be too hard to fix...will work on it and release a new version probably by Tuesday.

tubedogg 09-11-2001 11:01 AM

OK all fixed up. See the first post. :)

amykhar 09-12-2001 06:00 PM

Way cool :)

Amy

butty 09-12-2001 10:10 PM

great hack thanks matey apart from a error on the instructions:

Quote:


Step 5 of 5 Find:


post.pagetext,post.allowsmilie,post.userid FROM post


Right below that, add

post.pagetext,post.allowsmilie,post.userid,post.hi dden FROM

whereas ur not sposed to add the code below your sposed to replace it with it.

i know its summet n nothin thought id just let ya know n e ways

keep up the good work matey

squawell 09-14-2001 03:16 PM

tubedogg master:

i download your new file but it still no work in my forum!!

can you help me~~i send need to edit php file to you

can you help me to edit those php file ??please~~~

i already fail too much time~~~

if you won't !! that's alright and sorry bother you too much time!


All times are GMT. The time now is 01:42 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.01017 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)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