vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - [hide] hack incl post thank you "addon" (https://vborg.vbsupport.ru/showthread.php?t=130887)

Dermo-MIO 11-19-2006 05:46 PM

Quote:

Originally Posted by itsid (Post 1120789)
well, in the unaltered database of vb 3.6.3 there has to be the column post.visible , that's the item that handles softdeleted posts (userdeleted but visible to mods and admins)
I cannot say where the problem comes from, maybe another hack that removes or alters this column (nerver heard of such, but that doesn't mean anything)

Dermio had/has almost the same problem a page ago, so I verified the existance of this table and column.
Same friend of mine (who gave me the sql-layout) installed this hack in his very clean 3.6.3 testboard and it worked without any errors.
Again, I have to say sorry, but I have no idea what's causing your problems :(

hang on a sec, i'll try to im my friend to find some hint in vb3.6.3
[EDIT]
So.. that's fast isn't it ?
there are 59 hits, searching for "post.visible" within the original vb 3.6.3 files.
for example this one:
PHP Code:

file (functions_forumdisplay.php)
$mythreads $vbulletin->db->query_read_slave("
            SELECT COUNT(*) AS count, threadid, MAX(dateline) AS lastpost
            FROM " 
TABLE_PREFIX "post AS post
            WHERE post.userid = " 
$vbulletin->userinfo['userid'] . " AND
            post.visible = 1 AND
            post.threadid IN (0
$ids)
            GROUP BY threadid
        "
); 

So, I'm sure that's somewhere else to search the error but the missing column :D
maybe we run different versions of MySQL and/or php.

Just to try:
Open the xml file with an appropate Editor (notepad++ ultraedit or even a simple wordpad) something with numbered lines best.
Edit Line 173 : find post.visible replace with visible
same in line 272 and 341.
save and try again.

I can't promise that this will help, but I assume
do not edit the way mentioned if you do not have THIS ERROR

'sid

thankyou sid i did those changes and it now works thankyou so much, you do not know how much hassle iv gone through to get a hide code that works. i will donate you money in the first week in december as i get paid monthly. im very greatfull to you. :cool:

Genjuro-Sensei 11-19-2006 07:46 PM

Quote:

Originally Posted by itsid (Post 1120789)
well, in the unaltered database of vb 3.6.3 there has to be the column post.visible , that's the item that handles softdeleted posts (userdeleted but visible to mods and admins)
I cannot say where the problem comes from, maybe another hack that removes or alters this column (nerver heard of such, but that doesn't mean anything)

Dermio had/has almost the same problem a page ago, so I verified the existance of this table and column.
Same friend of mine (who gave me the sql-layout) installed this hack in his very clean 3.6.3 testboard and it worked without any errors.
Again, I have to say sorry, but I have no idea what's causing your problems :(

hang on a sec, i'll try to im my friend to find some hint in vb3.6.3
[EDIT]
So.. that's fast isn't it ?
there are 59 hits, searching for "post.visible" within the original vb 3.6.3 files.
for example this one:
PHP Code:

file (functions_forumdisplay.php)
$mythreads $vbulletin->db->query_read_slave("
            SELECT COUNT(*) AS count, threadid, MAX(dateline) AS lastpost
            FROM " 
TABLE_PREFIX "post AS post
            WHERE post.userid = " 
$vbulletin->userinfo['userid'] . " AND
            post.visible = 1 AND
            post.threadid IN (0
$ids)
            GROUP BY threadid
        "
); 

So, I'm sure that's somewhere else to search the error but the missing column :D
maybe we run different versions of MySQL and/or php.

Just to try:
Open the xml file with an appropate Editor (notepad++ ultraedit or even a simple wordpad) something with numbered lines best.
Edit Line 173 : find post.visible replace with visible
same in line 272 and 341.
save and try again.

I can't promise that this will help, but I assume
do not edit the way mentioned if you do not have THIS ERROR

'sid

Thank you very mutch, it solved the problem ^^
Thanks to you !! really !!

itsid 11-19-2006 10:13 PM

Dermio-MIO, Genjuro-Sensei, you're welcome ;)
good to have you back in the "in working condition"-list :D

ga2000gt, I'm sorry what "preview" exactly are you talking about?
(what php is shown, what was you doing that moment, do you have any screenshot and/or errormessage?)

'sid

ga2000gt 11-19-2006 10:36 PM

the thread preview, i'm using this hack and it doesn't work when the hide hack is enabled.

itsid 11-19-2006 10:50 PM

Well, preview text is altered by one of my plugins to prevent users seeing the hidden content in forumdisplay.
But it's altered (only hidden content replaced by "This post contains hidden content") so there should be something in this box though.
what hack is this (link?) or: what hook does that hack uses, is it $thread['preview'] that is visible there, what execution-order do you have?

Maybe I will find a way to help you out

'sid

ga2000gt 11-20-2006 12:54 AM

the name of the hack is 'Improved Thread Preview', yes, it's the link i put above.
is only one plugin, then there are a few templeta changes and two js files.
hook location is 'threadbit_process'
i don't know how to check the 'execution-order', if you tell, i'll do it =P
here is the plugin code, maybe it helps...

Code:

if ($ignore["$thread[postuserid]"])
        {
                $thread['preview'] = '';
        }
        else if (isset($thread['preview']) AND $vbulletin->options['threadpreview'] > 0)
        {
                $thread['preview'] = strip_quotes($thread['preview']);
                $thread['preview'] = htmlspecialchars_uni(fetch_trimmed_title(strip_bbcode($thread['preview'], false, true), $vbulletin->options['threadpreview']));
//tc
                $thread['preview'] = preg_replace("/\n/\n","<br />",$thread['preview']);
                $thread['preview'] = str_replace("\r\n","<br />",$thread['preview']);
                $thread['preview'] = str_replace("\n","<br />",$thread['preview']);
                $thread['preview'] = str_replace("\r","<br />",$thread['preview']);
                $thread['preview'] = str_replace("--","- - ",$thread['preview']);
//tc
        }


emmanuel132 11-20-2006 04:36 AM

theres a problem when i install this and go to my site and make a new post and put this [hide] hack on it keeps saying database error and it wont let me post

itsid 11-20-2006 11:07 AM

ga2000gt, go to plugin management in your acp, there find the plugin Andreas hint 3 click on edit and see the executionorder 126
go back and edit the plugin Improved Thread Preview 1.5 change it's executionorder to something higher than 126, or change the executionorder of "Andreas hint 3" to let's say 4 :D
If this still wont help, you can deactivate this plugin alone to see your threadpreview again, but keep in mind:
then you will have all hidden content in the preview.

emmanuel, some more information would be great,
what vbulletin version? what exact errormessage is showing?

'sid

ga2000gt 11-21-2006 01:08 AM

i changed the executionorder of Improved Thread Preview 1.5 to 127, is working fine now =)
thnx a lot!! : D

yoyoyoyo 11-24-2006 06:43 PM

will this work with 3.5.X?

edit: nope


All times are GMT. The time now is 09:40 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.02276 seconds
  • Memory Usage 1,766KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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