vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - CERBERUS: 1 vB4: runs multiple domains with custom styles, forums, universal login (https://vborg.vbsupport.ru/showthread.php?t=254197)

sticky 12-12-2010 12:03 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2132663)
4.0.8 here.

I figured it out, I needed bburl to point to the homepage not the forum home page. That is why it was breaking up.

I'm wondering why that is completely different from the instructions though which tell you go to the forum index. I also got the second domain to work correctly by pointing bburl to the domain itself instead of forum index. I'm happy now :)

Having a couple issues with cookies but hoping I will get that resolved.

sticky 12-12-2010 12:24 PM

Ok, when trying to post a thread on the second forum I receive a no permissions message, looks like I need to do that forumidx change although I am not quite sure how to do it.

sticky 12-12-2010 12:31 PM

Also another error, when creating threads they go into another forum instead of the one in which they are created.... not sure why.

BirdOPrey5 12-12-2010 12:39 PM

Quote:

Originally Posted by sticky (Post 2132827)
Ok, when trying to post a thread on the second forum I receive a no permissions message, looks like I need to do that forumidx change although I am not quite sure how to do it.

Quote:

Originally Posted by sticky (Post 2132832)
Also another error, when creating threads they go into another forum instead of the one in which they are created.... not sure why.

KW902 posted a fix for this issue in post #99 of this thread.

Now that you got it "working" I suggest you re-read the entire thread so you up to date on the known issues and solutions.

Remember this is an "Alpha" product... that means "less stable" than Beta even...

sticky 12-12-2010 12:52 PM

Quote:

Originally Posted by KW802 (Post 2128941)

To confirm I changed all references in that plugin from $forumid to $forumidx to make it unique and repeated my experiments. Success!

Sorry, but how exactly do I do this?

sticky 12-12-2010 12:53 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2132836)
KW902 posted a fix for this issue in post #99 of this thread.

Now that you got it "working" I suggest you re-read the entire thread so you up to date on the known issues and solutions.

Remember this is an "Alpha" product... that means "less stable" than Beta even...

Just caught this post, I'm trying :) I'm not as good as the rest of you guys at this so I'm learning as I go. I'm not exactly sure where or how how I make the changes in post 99.

Edit: Read it over a couple times and I think I get it now :)

BirdOPrey5 12-12-2010 02:33 PM

Basically you go to the plugin named "Forum Display"

Look through the code, look for all instances if $forumid and change it to something else, like $forumidx

If you want this is the entire plugin with the variable name changed to $forumidz
Code:

// Hide any non-matching categories and forums by removing them from our in-memory copy of the forum cache

    // Don't alter the forumcache if we're somewhere that it would mess things up.
    if(THIS_SCRIPT == 'subscription' || THIS_SCRIPT == 'usercp' || THIS_SCRIPT == 'inlinemod') {
        $alterState = FALSE;
    } else {
        $alterState = TRUE;
    }

    global $vbulletin;
    global $ib_match_found;
    global $ib_category_ids;
    global $ib_valid_forumids;
        global $vb_cerberus_options;

if(THIS_SCRIPT == 'search' && $vb_cerberus_options['search']['search_global'] == TRUE)
{
      $alterState = FALSE;
}


    $vbulletin->userinfo['forumpermissions_orig'] = $vbulletin->userinfo['forumpermissions'];
    $can_view = 524288; // 0008:0000h
    $forumids = array();
    $vbulletin->forumcache_original = $vbulletin->forumcache;
    if($ib_match_found == TRUE) {
        foreach(array_keys($vbulletin->forumcache) as $forumidz) {
            // If there is no match between the visible categories and the parentlist
            // (which includes the current forumid), we don't display it

            $ib_checkforumids = explode(",", $vbulletin->forumcache[$forumidz]['parentlist']);

            $ib_intersection = array_intersect($ib_checkforumids, $ib_category_ids);

            $is_visible = $vbulletin->userinfo[forumpermissions][$forumidz] & $can_view;

            // If it's not in the list of valid forums for this domain, OR we can't view it, forget it exists
            if((count($ib_intersection) == 0 || $is_visible == 0) && !(THIS_SCRIPT == 'postings')) {
                if($alterState) {
                    //debug("Unset " . $vbulletin->forumcache[$forumidz][title]);
                    unset($vbulletin->forumcache[$forumidz]);
                    unset($vbulletin->iforumcache[$forumidz]);
                    unset($vbulletin->userinfo[forumpermissions][$forumidz]);
                }
            } else {
                //debug("+++ " . $vbulletin->forumcache[$forumidz][title]);
                $forumids []= $forumidz;
            }
        }
    }
    $ib_valid_forumids = join(",", $forumids);


FReeSTER 12-12-2010 06:46 PM

Quote:

Originally Posted by KW802 (Post 2132519)
Try this...

ACP => Rebuild => Rebuild Style Information

By doing this I believe I will lose all the Template edits I have done to the forum, not a good idea to do. maybe there will be another way to correct this

FReeSTER 12-12-2010 06:48 PM

I have done everything on this thread and still cant get it to work correctly with the style distortion I currently have. lol

Any help or any other ideas?
Thanks guys

FReeSTER 12-12-2010 06:56 PM

I will continue to read this thread to see if there will be a better way to do this. I really need this mod for sure. If anyone willing to help me out I will appreciate even If I have to make a small donation for the help. As I see all I need is the configuration because the sub-domain is done and anything else. Is just the style break up the problem now.

Thanks you guys a lot


All times are GMT. The time now is 03:18 PM.

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.01591 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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