vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - microBUSINESS (Business directory and more) (https://vborg.vbsupport.ru/showthread.php?t=218044)

bartek24m 10-30-2009 06:36 AM

did you improved the microBUSINESS in sugest a new subcategories by users?

AfterWorldForum 10-30-2009 03:23 PM

Quote:

Originally Posted by bartek24m (Post 1908216)
did you improved the microBUSINESS in sugest a new subcategories by users?

Come again? What exactly do you mean?

I've probably determined what causes the pain for me. I added the categories to the Profiles section as well, and rewrote the current JS GetHorizontalCategories method. (Just a copy from the existing one but pointing to the profiles table instead).

I'm starting to think maybe I also overdid things with sub sub sub categories etc, and the two combined are causing this.

Will keep everyone updated :)

AfterWorldForum 11-01-2009 07:17 AM

The promised update: I edited out the counting, and the mod went blazing again. Then I undid the commenting from before, and it's still darn fast :cool:

I'm looking if I can add a small module for vBAdvanced. If I get anywhere with it, I'll add it here.

AfterWorldForum 11-01-2009 04:55 PM

Found a bug. If I set the permissions to have more than 1 profile to no, I cannot edit my own profile. I'll get the message that I'm only allowed to have 1 profile.

This is caused by the add/edit functionality being the same, and the check being performed at a too early stage.

To solve this, edit business.php, and find the following (under add/edit profile):

Code:

    if(!($permissions['microbusiness'] & $vbulletin->bf_ugp['microbusiness']['profiles']) AND $hasprofile == 1)
    {
      $vbulletin->url="business.php?" . $vbulletin->session->vars['sessionurl'] . "do=myprofiles";
      eval(print_standard_redirect('microbusiness_no_multiple_profiles', true, true));
    }

A couple of lines below that, find the following snippet of code:

Code:

    // Then, check if Profile id exists or not
    if(!$profileid)
    {

Move the first piece of code right after the second piece of code. This ensures that the check for multiple profiles will only occur after we have determined a new profile is being set up, rather than an edit taking place.

I imagine something similar will have to be done in the items section.

Hope this helps someone.

P.s. It'd be awesome if there'd be some kind of option to set the maxium amount of items/profiles per usergroup. I now am giving my registered users the ability to create 1 profile, and unlimited items. I'd have prefered to set it to 2 services with 3 items each or something along those lines :)

bartek24m 11-10-2009 07:53 AM

after rewrite files and importing product to 1.1.0
i get error:

Code:

Database error in vBulletin 3.8.2:

Invalid SQL:
SELECT forumid FROM microbusiness_config LIMIT 1;

MySQL Error  : Table 'autole.microbusiness_config' doesn't exist
Error Number  : 1146

and i would like to combine the companies into categories insted of items the same as some users say few pages before

SorentoUltimate 11-10-2009 12:08 PM

Thanks Maria, i install microBUSINESS tonight.

SorentoUltimate 11-11-2009 07:19 PM

I found a small problem with templates cashing

open rootforum/business.php

find

PHP Code:

$globaltemplates = array(
    
'microbusiness_main',
    
'microbusiness_addedit_question',
    
'microbusiness_view_question',
    
'microbusiness_browse_questions',
    
'microbusiness_browse_questions_bit',
    
'microbusiness_category_questions_bit',
    
'microbusiness_vertical_categories',
    
'microbusiness_vertical_categories_bit',
    
'microbusiness_categories',
    
'microbusiness_categories_bit',
    
'microbusiness_member_menu',
    
'microbusiness_tech_menu',
    
'microbusiness_reply_info',
    
'microbusiness_important_questions',
    
'microbusiness_important_questions_bit',
    
'microbusiness_latest_questions',
    
'microbusiness_latest_questions_bit',
    
'microbusiness_submit_ticket',
    
'microbusiness_browse_tickets',
    
'microbusiness_browse_tickets_bit',
    
'microbusiness_reply_ticket',
    
'microbusiness_browse_replies',
    
'microbusiness_browse_my_tickets',
    
'microbusiness_browse_my_tickets_bit',
      
'bbcode_code',
      
'bbcode_html',
      
'bbcode_php',
      
'bbcode_quote',
    
'editor_toolbar_on'
); 

and replace with

PHP Code:

$globaltemplates = array(
    
'microbusiness_addedit_item',
    
'microbusiness_addedit_profile',
    
'microbusiness_approve_items',
    
'microbusiness_approve_item_bit',
    
'microbusiness_approve_profiles',
    
'microbusiness_approve_profile_bit',
    
'microbusiness_browse_items',
    
'microbusiness_browse_item_bit',
    
'microbusiness_browse_profiles',
    
'microbusiness_browse_profile_bit',
    
'microbusiness_browse_reviews',
    
'microbusiness_categories',
    
'microbusiness_categories_bit',
    
'microbusiness_forums',
    
'microbusiness_item_files',
    
'microbusiness_item_gallery',
    
'microbusiness_letter',
    
'microbusiness_main',
    
'microbusiness_member_menu',
    
'microbusiness_my_bookmarks',
    
'microbusiness_my_bookmark_bit',
    
'microbusiness_my_items',
    
'microbusiness_my_item_bit',
    
'microbusiness_my_profiles',
    
'microbusiness_my_profile_bit',
    
'microbusiness_navbar',
    
'microbusiness_new_items_left',
    
'microbusiness_new_items_wide',
    
'microbusiness_new_item_left_bit',
    
'microbusiness_new_item_wide_bit',
    
'microbusiness_new_profiles_left',
    
'microbusiness_new_profile_left_bit',
    
'microbusiness_popular_items_left',
    
'microbusiness_popular_items_wide',
    
'microbusiness_popular_item_left_bit',
    
'microbusiness_popular_item_wide_bit',
    
'microbusiness_popular_profiles_left',
    
'microbusiness_popular_profile_left_bit',
    
'microbusiness_premium_items_left',
    
'microbusiness_premium_items_wide',
    
'microbusiness_premium_item_left_bit',
    
'microbusiness_premium_item_wide_bit',
    
'microbusiness_premium_profiles_left',
    
'microbusiness_premium_profile_left_bit',
    
'microbusiness_profile_files',
    
'microbusiness_profile_gallery',
    
'microbusiness_search',
    
'microbusiness_search_results',
    
'microbusiness_top_items_left',
    
'microbusiness_top_items_wide',
    
'microbusiness_top_item_left_bit',
    
'microbusiness_top_item_wide_bit',
    
'microbusiness_top_profiles_left',
    
'microbusiness_top_profile_left_bit',
    
'microbusiness_usercp',
    
'microbusiness_user_overview',
    
'microbusiness_view_item',
    
'microbusiness_view_item_files',
    
'microbusiness_view_item_gallery',
    
'microbusiness_view_profile',
    
'microbusiness_view_profile_files',
    
'microbusiness_view_profile_gallery',
      
'bbcode_code',
      
'bbcode_html',
      
'bbcode_php',
      
'bbcode_quote',
    
'editor_toolbar_on' 


SorentoUltimate 11-11-2009 07:30 PM

another small bug and the correction.

if you select USER CP and you try to select Forums no Forums open.

open rootforum/business.php

Find
PHP Code:

if ($_REQUEST['do'] == 'usercp')
{
    if(
$permissions["microbusiness"] & $vbulletin->bf_ugp["microbusiness"]["moderate"])
    {
       
$approvals getCountApprovals();
    } 

after add

PHP Code:

    // Forum use check
    
if ($vbulletin->options["microbusiness_forums"])
    {
        
$checkforum $db->query_read("SELECT forumid FROM " TABLE_PREFIX "microbusiness_config LIMIT 1");
        
$results $db->fetch_array($checkforum);
        
$forumid $results["forumid"];
    } 


SorentoUltimate 11-12-2009 07:23 AM

DropDown NavBar Menu ADDON for microBUSINESS

https://vborg.vbsupport.ru/showthread.php?t=227783

SorentoUltimate 11-17-2009 05:40 PM

Another Small Bug and the Correction.

If you select USERCP there is no Category Selection List at Search.

Open ForumRoot/business.php

Find
PHP Code:

if ($_REQUEST['do'] == 'usercp')
{
    if(
$permissions["microbusiness"] & $vbulletin->bf_ugp["microbusiness"]["moderate"])
    {
       
$approvals getCountApprovals();
    } 

After Add
PHP Code:

    // Get Categories for Search
    
$catid 0;
    
$tablename "".TABLE_PREFIX."microbusiness_categories";
    
$selectCat = new SelectCategory('categoryid'$tablename);
    
$selectCat->SetMultiple(false30);
    
$selectCat->SetFirstOption($vbphrase["microbusiness_all"], 0);
    
$selectCat->SetSelected($catid);
    
$selectCat->SetStyle('width:150px;');
    
$selectcategory $selectCat->Output(); 



All times are GMT. The time now is 09:07 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.01327 seconds
  • Memory Usage 1,791KB
  • 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
  • (6)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)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