vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBPrivate Threads (https://vborg.vbsupport.ru/showthread.php?t=109096)

Eikinskjaldi 03-02-2006 07:12 PM

Can you post or PM me the lines of code you are having issues with? I had no issues with my own board and this hack so it might be that something is interfering, if the line is a plugin then please specify the plugin and i'll check it to see if there is anything outstanding in it.

The other thing you mentioned is that it shows a link to a new private thread, but it gives you an error message, it should be a vBphrase error message as well. This is to alert the user they don't have permission. However until I figure out the exact code I need to use I cannot remove them from the 'New thread' area without making it do a much more ugly thing of 'Private thread' and no link.

drex 03-02-2006 07:27 PM

that would be the 4th line of code in search.php.... ?? not sure which code you want me to give you!

Eikinskjaldi 03-02-2006 10:09 PM

I believe I've found the problem - It was where several file edits had been changed to be plugins, plugins that, looking at the code, come at inopportune times. I am editing the install file and the product to reflect the revert back to having, I believe, 2 more file edits and 2 less plugins.

Eikinskjaldi 03-03-2006 01:29 AM

*slaps forehead*

Well, I have found the cause of the search issue, It is quite a stupid one to be honest. If you have the current private thread hack installed, all you need to do is change the search and forumdisplay files. The instructions for each will be in the install directions.

Good luck!

[[Will shortly upload the new and improved install file with the correct code edit. Sorry about that!]]

Ambie 03-03-2006 02:36 AM

Nothing I was doing was working, but I just got an update e-mail. I just uploaded the new file and did the file edits and now it works great. Thank you! :)

rnmcd 03-03-2006 02:38 AM

Quote:

Originally Posted by Ambie
Nothing I was doing was working, but I just got an update e-mail. I just uploaded the new file and did the file edits and now it works great. Thank you! :)

Where did the update email come from?

Eikinskjaldi 03-03-2006 03:48 AM

I sent an update that automatically e-mails any user who has clicked "install" for this hack.

buro9 03-03-2006 06:45 AM

Quote:

Originally Posted by Eikinskjaldi
I sent an update that automatically e-mails any user who has clicked "install" for this hack.

Is the printthread.php hack not missing one of these:
PHP Code:

include_once('./includes/functions_privatethread.php'); 


drex 03-03-2006 01:04 PM

i didn't see an email.... (i haven't uninstalled, just not activated a private forum)...

can you post the file edits here or pm me?

Eikinskjaldi 03-03-2006 01:54 PM

buro9: Quite apparently in the installer, although my installed version seems to already have it. The product's been updated, thank you for catching that :)

drex: The plugins at threadbit_display and search_results_threadbit have been removed. They've been replaced with the following file edits.

In search.php
Find:
PHP Code:

    // show results as posts
    
if ($search['showposts'])
    {
        foreach (
$itemids AS $post)
        { 

Add BELOW:
PHP Code:

         // M/DD/YY PRIVATE THREADS PORT
            
include_once('./includes/functions_privatethread.php');
            if (
private_thread_not_allowed($post))
                        {
                            continue;
                        }
                  
// END PRIVATE THREADS PORT 

In forumdisplay.php
Find:
PHP Code:

        while ($thread $db->fetch_array($threads))
        { 
// AND $counter++ < $perpage) 

Add BELOW:
PHP Code:

        // M/DD/YY PRIVATE THREADS PORT
            
include_once('./includes/functions_privatethread.php');
                    if (
private_thread_not_allowed($thread))
                    {
                            continue;
                    }
                
// END PRIVATE THREADS PORT 



All times are GMT. The time now is 06:49 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.01160 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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