vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Shoutbox 1.0 (https://vborg.vbsupport.ru/showthread.php?t=38698)

Mr L 06-29-2002 11:36 AM

Hi,

I wonder if anybody can help with this great hack!

I have some users that are actually using the "Shoutbox" as a chatroom! Intresting reading but it is really annoying some other members.

Can I restrict users from posting if their user ID is X or Y?

Thanks.

TWTCommish 06-29-2002 12:42 PM

Sure. Right BEFORE this...

Code:

  if ($bbuserinfo[usergroupid] == 10 && $action == 'delete' && $shoutid) {
    $DB_site->query("DELETE FROM shoutbox WHERE shoutid = $shoutid");
    header("Location: shoutbox.php");
  }

...add this...

Code:

  if ($bbuserinfo[userid] == X || $bbuserinfo[userid] == Y) {
    header("Location: index.php");
  }

Replace X and Y with the userids you want to block, and those users will just be redirected back to the board's index when they try to load the Shoutbox. :)

Mr L 06-29-2002 01:01 PM

Surperb! Thank you for this and also the extremely quick response!

Wildthinks 07-01-2002 05:08 AM

the problem is still going on...anybody can help me?
I have create a account
User: guestvb
PW:guestvb
,

so you can try it. :bunny: :dead:
Plz help me...

Quote:

Originally posted by Wildthinks
On my Opera works fine, but when I use mozilla or IE (6.x) ... after click "shout now" I get a Dowenloadbox for Shoutbox.php and in mozilla I see cryptical text...
any hints, whats wrong?

try it here: http://swishzone.net/vb/shoutbox.php


Dyntheos 07-01-2002 05:22 AM

First up love this hack.

some problems Iam experiencing.

1) Smilies. I have tried all the suggestions in this thread to fix them but the bbcode for smilies does not work. all other bbcodes do though, so you can post images using [img] and that's how members are posting smilies at the moment.

2) The width of the text in the output box when posted only stretches half the screen yet you can lengthen, down the page, the output through a post, to basically stretch the forum in length. Currently the box is at the bottom of the forums due to this.

What I would like to do is add it to the top but have it only take up half the width of the page, and have the length of a post limited in its display, possobly using a scrollbar to view it all.

I have my users browsing the forums at the top of the page and would like to have that and the shoutbox side by side in their own category, yet the length of the shout box limited on the forum home, so as it won't screw with the formatting.

any ideas?


My forums are here http://forums.relicnews.com/

It's only visible on the "purplehaze" skin tho as we're testing it out at the moment. The quickskin selector is at the bottom of the forumhome to view the shoutbox.

Dyntheos 07-01-2002 08:28 AM

gah I have the smilies working but I have html code popping out everywhere

[edit]

w00t fixed the code aswell.

in the previous post that stated too add this

Quote:

$shout_text = bbcodeparse($shout_text,X);
above this

Quote:

eval("\$shoutbits .= \"".gettemplate("shoutboxbit",1,0)."\";");
I did this exactly.

what fixed it was to actually replace the instance of
Quote:

$shout_text = bbcodeparse($shout_text);
above this code (some lines above) with
Quote:

$shout_text = bbcodeparse($shout_text,X);

In essence I was basically duplicating a line of code instead of replacing it.

[/edit]

Dyntheos 07-01-2002 08:59 AM

sorry for all these follow up posts but Iam still trying to work this out.

when i posted above i was only refreshing the actual shoutbox page.

all is working fine there, iam not getting smilies to show in the forum home display.

Bugz 07-01-2002 09:42 AM

TWTCommish on your forums shout box your colors and backgrounds are perfect with your forum but when i installed this the colors and back grounds wernt at all right with the rest of the forums i have inserted a pick of your shout box.

Bugz 07-01-2002 09:44 AM

mine as i stated before are messed up

like the cats bagrounds and the borders and cfont colors. i was wondering if you can post the fixes to this if not i will end up figuring it out after awhile

heres a pick of mine i circled whats wrong with it

TWTCommish 07-01-2002 01:19 PM

Well there's nothing to be fixed really: vB Shoutbox uses YOUR settings and colors for categories and table headers to create its look and feel. It's all in the templates.

Dyntheos: replace the "X" with a number of one of your forums, bud. :)


All times are GMT. The time now is 12:41 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.01393 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (5)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