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)
-   -   [AJAX] vBShout v2.0 (https://vborg.vbsupport.ru/showthread.php?t=93097)

jerx 04-08-2006 09:15 AM

Quote:

New Commands

- /prune (Clears the shoutbox completely)
- /prune [username] (Clears all shouts posted by specified user)
Don' t these commands delete the database?

exegete 04-08-2006 12:31 PM

Quote:

Originally Posted by lucky64
Any chance of being able to control what vbcode can be used?

I don't want html, or img for example, but do want smilies..

Don't know whether this has been answered already, but I achieved it with the following...

In vbshout.php, find the function "bbcodeparser", and specifically the following code in that function:

Code:

        if ($vbulletin->options['shout_bbcode'])
        {
                return $vbulletin->vbshout_parse->parse(convert_url_to_bbcode($text), 'nonforum');
        }

Replace with:

Code:

        if ($vbulletin->options['shout_bbcode'])
        {
                $text = preg_replace('/\[\/?(img|size|quote|html|code|center|spoiler|anchor|link|blockquote)(=[^\]]*)?\]/', '', $text);
                return $vbulletin->vbshout_parse->parse(convert_url_to_bbcode($text), 'nonforum');
        }

As you can see, I've removed a whole bunch of BB codes - just add or remove the keywords as necessary. Brackets and options etc for the codes should be handled automatically by the regular expression.

Hope it's self-explanatory. :)

Reece^B 04-08-2006 08:13 PM

anyone got any ideas for me?
The index is now named shoutbox lol when a user is viewing it.

hotwheels 04-09-2006 02:30 AM

Quote:

Yeah, how can we mass delete the database of shouts?
Jerx is correct, just type /prune in your shout box and hit the shout button.......It does a quick job of it.....

Quote:

Yes, but it was fine before I upgraded.
If you go to vbadvanced.com and type in vbshout, you can read some of the article's on the cmps upgrade, and it isn't working right. Alot of the people using vbadvanced have removed that part of the hack from their site's and are strictly using vbshout in the forums only......i could be wrong, which i usually am, but i read and read till my eye's hurt and found people just removing the mod.

sinizter 04-09-2006 10:22 AM

one problem,i uploaded the vbulletin.php file to my forum root directory,but where do i put it?...in acp? in archive?....also, how come its loading forever,it hasnt syopped loading.

hassi 04-09-2006 11:21 AM

Hi,

i've installed vbshout yesterday and i feel quite comfortable with it but i have some questions remaining. Maybe someone can answer them.

1) Can i prevent users from linking external graphics in the shoutbox? I remarked they may not only use system smilies but also diverse pics from their onw websites etc.

2) Is it possible to prevent users from editing/deleting their own shouts? I think this question or a similiar one has been raised before.

Sorry for my english, i'm german ;)

Thanks in advance
Hassi

Reece^B 04-09-2006 11:37 AM

Quote:

Originally Posted by hotwheels
If you go to vbadvanced.com and type in vbshout, you can read some of the article's on the cmps upgrade, and it isn't working right. Alot of the people using vbadvanced have removed that part of the hack from their site's and are strictly using vbshout in the forums only......i could be wrong, which i usually am, but i read and read till my eye's hurt and found people just removing the mod.

Yeha, but my shoutbox isnt in the CMPS it's jsut in the forums. Does this still count?

bashy 04-09-2006 02:16 PM

Hi ZT

I have a javascript issue showing up on the FF java console, this is:

Code:

Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://www.bashys-place.com/forums/index.php? :: showShouts :: line 2584"  data: no]
Source File: http://www.bashys-place.com/forums/index.php?
Line: 2584

Please advise?

Exitilus 04-09-2006 09:18 PM

I've tried searching this thread for my answer. But not finding it. So if this has been asked... Sorry.

Basically I have two domains. forums.my-domain.com and gallery.my-domain.com

The Shoutbox works fine in forums but not gallery. I tried changing all instances of vbshout.php to point to the forums.my-domain.com but that doesn't work. What am I missing? :)

hassi 04-10-2006 09:51 AM

How to prevent certain usergroups from editing/deleting shouts:

Because some users were doing nothing else than deleting / editing shouts and some more who were just mod (but no team-member though) of their userforum were editing / deleting shouts of others i tried to figure out how to restrict access to edit / delete function for certain usergroups only. So if someone is interested in it, please feel free to use the following code.

go to your templates -> look for forumhome_vbshout_archive_shout -> find the following line:

Code:

<if condition="$bbuserinfo[userid] == $Shout[s_by] OR can_moderate()">
replace it with:

Code:

<if condition="in_array($bbuserinfo[usergroupid], array(x, x, x))">
the x's should be replaced by the usergroups who should have access to edit / delete function.

i hope my explanation is understandable (i'm german)

cu
hassi


All times are GMT. The time now is 01:53 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.04656 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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