vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   BVShoutbox FULLL (https://vborg.vbsupport.ru/showthread.php?t=63562)

TexasAtvs 09-12-2004 05:10 AM

Quote:

Originally Posted by TexasAtvs
How do I disallow guests from posting on the shoutbox.... I would like to make it where only registered members can post or view the shoutbox.

Thanks for your help!!!

It seems that I do not have a admin category with the shout manager and on the left bar in the admin cp. I only have what is listed in the admin options. I can't seem to figure out how to edit the permissions and I do not have the Shoutbox manager listed in my admincp. Can anyone please tell me how I can get this added, or how to manually add code to restrict guests from access to the shoutbox on the forums.

Thanks for everyones help!

TTG 09-12-2004 09:55 AM

Quote:

Originally Posted by TexasAtvs
How do I disallow guests from posting on the shoutbox.... I would like to make it where only registered members can post or view the shoutbox.

Thanks for your help!!!

Usergroups > Usergroup Manager > Edit Usergroup .. see attached

TexasAtvs 09-12-2004 01:32 PM

I dont have that listed within any of my usergroups? Im thinking my install went bad? everything else works but I dont have those options available to me. Do you know what I can do to get it there, what templates to edit? or files to add? Thanks!

Smilies aren't working either. When I installed I Just ran the install php file, was I supposed to manually add code to templates or php files? If so,
can someone please list what all needs to be changed or where I can find this.

Thanks,

Brandon

TTG 09-12-2004 01:37 PM

Just run through the install again and when it gets to the point of the template edits, make sure you have made all the correct changes to the templates.

Which version of VB are you running .. ?

I could PM you a copy of my changed templates but that would prove pointless unless you have all the same hacks that I already have installed :ermm:

TexasAtvs 09-12-2004 01:38 PM

Quote:

Originally Posted by TTG
Just run through the install again and when it gets to the point of the template edits, make sure you have made all the correct changes to the templates.

So I need to manually edit the template files seperate from the install? Not just run the install file?

TTG 09-12-2004 01:41 PM

Quote:

Originally Posted by TexasAtvs
So I need to manually edit the template files seperate from the install? Not just run the install file?

Ha .. you were posting as I was editing ..

YES .. you manually have to make the template edits

TexasAtvs 09-12-2004 01:41 PM

Okay I need to make 5 file edits and 1 template edit, is there a text file I can find these changes, bc the instal wont let me get past the first page. When it gets to the permissions table. It tells me this

Database error in vBulletin 3.0.0:

Invalid SQL: ALTER TABLE usergroup ADD shoutboxpermissions INT UNSIGNED NOT NULL DEFAULT '0' AFTER forumpermissions
mysql error: Duplicate column name 'shoutboxpermissions'

I will paypal someone $5 if they can help me get this fixed...

Thanks!

TTG 09-12-2004 02:01 PM

You'll need to completely un-install and re-install .. there is a link listed here un-install information.

Good luck .. If you want me to install for you after the un-install .. PM me

TexasAtvs 09-12-2004 02:28 PM

sent you a pm, thanks!

TTG 09-14-2004 07:22 PM

I've seen so many posts here stating that this shoutbox does not work and one of the main problems is during the install, file edits are not manually completed correctly. I've installed it on 3.0.1 and 3.0.3 with no problems and it works well.

Because the install procedure runs through all the necassary template, phrases and table changes so well automatically .. the only errors are
created by NOT manually changing the necassary phpfile additions.

Files needed to be changed :-
admincp/adminpermissions.php
admincp/index.php
admincp/usergroup.php
includes/functions_online.php
includes/init.php
includes/functions_bbcodeparse.php
includes/adminfunctions_template.php

---------------------------------------------------------------

admincp/adminpermissions.php
Find
Code:

'canadmincron'                        => $vbphrase['can_administer_cron']
Add Below
Code:

'canadminshouts'        => $vbphrase['can_administer_shouts'],
admincp/index.php
Find
Code:

// ***
        if (can_administer('canadminusers'))
        {
                $printhr = true;
                construct_nav_option($vbphrase['subscription_manager'], 'subscriptions.php?do=modify', '|');
                construct_nav_option($vbphrase['add_new_subscription'], 'subscriptions.php?do=add');
                construct_nav_group($vbphrase['subscriptions'], '<hr />');
        }

Add Below
Code:

// ***
        if (can_administer('canadminshouts'))
        {
                $printhr = true;
                construct_nav_option($vbphrase['shout_manager'], 'shout.php?do=modify');
                construct_nav_option($vbpharse['find_shouts'], 'shout.php?do=find');
                construct_nav_group($vbphrase['shoutbox'], '<hr />');
        }

admincp/usergroup.php
Find
Code:

print_table_header($vbphrase['administrator_permissions']);
        print_yes_no_row($vbphrase['is_super_moderator'], 'usergroup[ismoderator]', $ug_bitfield['ismoderator']);
        print_yes_no_row($vbphrase['can_access_control_panel'], 'usergroup[cancontrolpanel]', $ug_bitfield['cancontrolpanel']);
        print_table_break();

Add Below
Code:

print_table_header($vbphrase['shoutbox_permissions']);
        print_yes_no_row($vbphrase['can_shout'], 'usergroup[canaddshout]', $ug_bitfield['canaddshout']);
        print_yes_no_row($vbphrase['can_delete_shouts'], 'usergroup[candropshout]', $ug_bitfield['candropshout']);
        print_yes_no_row($vbphrase['can_delete_others_shouts'], 'usergroup[candropothershout]', $ug_bitfield['candropothershout']);
        print_yes_no_row($vbphrase['can_edit_shouts'], 'usergroup[caneditshout]', $ug_bitfield['caneditshout']);
        print_yes_no_row($vbphrase['can_edit_others_shouts'], 'usergroup[caneditothershout]', $ug_bitfield['caneditothershout']);
        print_yes_no_row($vbphrase['can_read_shouts'], 'usergroup[canreadshouts]', $ug_bitfield['canreadshouts']);
        print_table_break();

includes/functions_online.php
Find
Code:

case 'subscriptions':
                        $userinfo['action'] = $vbphrase['viewing_paid_subscriptions'];
                        break;

Add Below
Code:

case 'shoutarchive':
                        $userinfo['action'] = $vbphrase['viewing_shoutbox'];
                        break;
                case 'editshout':
                        $userinfo['action'] = $vbphrase['editing_shout'];
                        break;

Find
Code:

case 'subscriptions.php':
                $userinfo['activity'] = 'subscriptions';
                break;

Add Below
Code:

case 'shoutbox.php':
                if (empty($values['do']) OR $values['do'] == 'archive')
                {
                        $userinfo['activity'] = 'shoutarchive';
                }
                elseif ($values['do'] == 'edit')
                {
                        $userinfo['activity'] = 'editshout';
                }
                else
                {
                        $userinfo['activity'] = 'index';
                }
                break;

includes/init.php
Find
Code:

'canadminupgrade'      => 32768
Replace with
Code:


'canadminupgrade'      => 32768,
'canadminshouts'        => 65536

Find
Code:

// field names for usergroup display options
$_BITFIELD['usergroup']['genericoptions'] = array(
        'showgroup'            => 1,
        'showbirthday'          => 2,
        'showmemberlist'        => 4,
        'showeditedby'          => 8,
        'allowmembergroups'    => 16,
        'isbannedgroup'        => 32
);

Add Below
Code:

// field names for shoutbox permissions
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
        'canaddshout'          => 1,
        'candropshout'          => 2,
        'candropothershout'    => 4,
        'caneditshout'          => 8,
        'caneditothershout'    => 16,
        'canreadshouts'        => 32
);


includes/functions_bbcodeparse.php
Find
Code:

case 'announcement':
                        global $post;
                        $dohtml = $post['allowhtml'];
                        if ($dohtml)
                        {
                                $donl2br = 0;
                        }
                        $dobbcode = $post['allowbbcode'];
                        $dobbimagecode = $post['allowbbcode'];
                        $dosmilies = $allowsmilie;
                        break;

Add Below
Code:

case 'shoutbox':
                        $dohtml = $vboptions['allowshouthtml'];
                        $dobbcode = $vboptions['allowshoutbbcode'];
                        $dobbimagecode = $vboptions['allowshoutimgcode'];
                        $dosmilies = $vboptions['allowshoutsmilies'];                       
                        break;

includes/adminfunctions_template.php
Find
Code:

'subscription' => $vbphrase['group_paid_subscriptions'],
Add Below
Code:

'shoutbox' => $vbphrase['shoutbox'],
-----------------------------------------------------------------------

Template Edits

FORUMHOME
Find
Code:

$navbar
Add Below
Code:

<if condition="($permissions['shoutboxpermissions'] & CANREADSHOUTS)"><!-- shoutbox -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="$stylevar[tablewidth]" align="center">
<thead>
        <tr>
                <td class="tcat" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_shoutbox')"><img id="collapseimg_forumhome_shoutbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_shoutbox].gif" alt="" border="0" /></a>
                        <a href="shoutbox.php?$session[sessionurl]">Shoutbox</a>
                </td>
        </tr>
</thead>
<tbody id="collapseobj_forumhome_shoutbox" style="$vbcollapse[collapseobj_forumhome_shoutbox]">
        <tr>
                <td class="alt1" width="100%">
                        <iframe src="shoutbox.php?$session[sessionurl]do=iframe" width="100%" height="120" scrolling="yes" frameborder="0" name="shoutbox" id="shoutbox"></iframe>
                </td>
        </tr>
</tbody>
</table>
<!-- end shoutbox -->

<br /></if>



All times are GMT. The time now is 12:02 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.01564 seconds
  • Memory Usage 1,782KB
  • 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
  • (20)bbcode_code_printable
  • (4)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