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)

lordofgun 05-25-2002 06:30 PM

hmm...thanks...but...

when i type it on the shoutbox, i get this

* loves hockey

it doesn't show the username.

also, on the index page, it shows "/ me" instead of the username on the "latest hack" table.

any ideas??

BTW, TWT, you got a great site!

WebMasterAJ 05-27-2002 06:49 PM

Just curious, how do I make the smilies show up on the main page of the boards. http://www.finheaven.com/boardvb2/

Note that the smilies do show up on the shoutbox page, just not the main forum page.

WebMasterAJ 05-27-2002 07:00 PM

Also, there is an idiot on our board that likes to post LOOOOONG shouts, is there a way to make the forum home only display like the first 20 characters of the shout on the forum home?

Thanks in advance!

tony 05-31-2002 12:59 AM

How do I do this part???

CREATE TABLE `shoutbox` (
`shoutid` int(11) NOT NULL auto_increment,
`userid` int(11) NOT NULL default '0',
`shout_text` text NOT NULL,
`timestamp` int(11) NOT NULL default '0',
PRIMARY KEY (`shoutid`)
) TYPE=MyISAM;

TWTCommish 05-31-2002 01:00 AM

Ask your host for command-line MySQL access, or enter it using a MySQL script like phpMyAdmin. If that fails, just ask your host how you can execute a query on your DB.

Zombie 05-31-2002 02:51 AM

Thanks for the hack TWTCommish

Jeremy W. 06-03-2002 07:46 PM

Or use FireFly's SQL hack :)

Dean C 06-05-2002 11:15 AM

This is great... it works fine... but is there any way i could have pop up (like on the random quote hack) where users can submit a shout out from the forumhome???

Thanks In Advance

- Mist

TWTCommish 06-05-2002 12:44 PM

Yeah, it's perfectly possible...but a little bit of an annoyance. How badly do you want it?

Dean C 06-05-2002 01:07 PM

its just a thought... i dont need it ya kno... but i'd like it as i feel it would make a good addition to this hack ...

but if ure busy i wont be heartbroken if you dont make it ;) :D

LavaNoX 06-05-2002 05:05 PM

How do I make it so that my forum takes up 75% of the space, on the left, and the shoutbox takes up the rest of the space, on the right?

Mr L 06-10-2002 01:58 PM

...is it possible to add a function to enable uses only to post once every 60 seconds?

Otherwise, this has made a huge impact on my board in a positive way! Thank you!

firewars 06-10-2002 03:33 PM

Weird.
When shouting it goes to the webservers root and doesn't stay in the forums root :(
Any solutions?

TWTCommish 06-10-2002 04:13 PM

firewars: in your "shoutbox_postshout" template, replace "shoutbox.php" in the form's action attribute with "$bburl/shoutbox.php" -- I think that ought to do it.

HLodder: use the attached shoutbox.php file to prevent users from shouting more than once every 60 seconds. It's just a primitive little thing I threw together, but it works...I think. :D All it does is ignore their shout if it's been less than 60 seconds. No error or anything...this is quick and dirty at it's best. :D

Mr L 06-10-2002 04:18 PM

Chris,

Thanks for this. Very much appricated and now in use!!!

Cheers.

Harvey.

firewars 06-10-2002 04:53 PM

TWTCommish:

Thanks, but before applying your fix I thought about it and then I was sure it should work as it's in the same directory, but:

There is a slash (/) before it which makes it use the directory above the $bburl-directory and thus using root.
Thanks for telling me where to look, though: it works like a charm.
Impressive hack :)

firewars 06-10-2002 06:47 PM

Does anyone know how to change the timeformat?
I'm not talking about $time_posted, I was able to change that.
I am talking about $timestamp which is used in the forumhome_shoutbox-template.
Any idea?

TWTCommish 06-10-2002 06:50 PM

It's simple... find this line in your index.php file:

PHP Code:

$shout[timestamp]  = vbdate('n-j-y, g:i:s a'$shout[timestamp]); 

Modify the first argument passed to the vbdate() function (the text inside the single quotation marks) to a different format using the same characters you'd use for PHP's date() function.

Mr L 06-10-2002 07:19 PM

Can I ask, are you planning to release a later version of this hack and if so, can you offer any insight on what may be included?

Thanks!!!

TWTCommish 06-10-2002 07:30 PM

Yeah, I am, but not for awhile yet. I've detailed potential features in earlier posts. I don't feel like diggin' 'em up just now, though. I'll get back to you later. :D (sorry, I'm lazy, I guess)

firewars 06-10-2002 07:38 PM

One more thing:

How would I "echo" a letter (m) in the same function?
As the function recognizes m as a part of the datefunction and thus returns a value.
Thanks so far :)

TWTCommish 06-10-2002 07:40 PM

Since it recognizes that letter, you'll just have to add the letter in afterwards, sorry to say. You might need two variables as a result.

firewars 06-10-2002 07:43 PM

Any idea how to? ;)
Sorry for keeping asking you, I appreciate your help :)

TWTCommish 06-10-2002 07:46 PM

Nevermind, my mistake: just put a backslash before the "m" and it should be treated literally.

firewars 06-10-2002 07:47 PM

Thanks, it works like a charm :D

Tech_Koss 06-11-2002 05:40 AM

sorry .....I realise this hack is a bit old, but I need some help.
Is there any way where I could limit the amount of words/letters and smillies used in a shout-out ???

Unfortunately there are some people that abuse the function, and I hate to remove this wonderful hack because of those very few people.

-thanks in advance!

TWTCommish 06-11-2002 11:30 AM

Actually, this hack is less than a month old. :)

Yes, you could limit the total number of characters in each shout. How many characters would you like to limit it to?

firewars 06-11-2002 11:47 AM

Could you just tell me/us the code so we can define the max. chars ourselves?
Thank you :)

TWTCommish 06-11-2002 11:49 AM

*sigh* You can define it yourselves anyway, but I'd rather have an actual digit to stick there for now, which you can then modify at your leisure.

Whatever...I'll just wing it.

firewars 06-11-2002 12:23 PM

Something between 500 and 750 maybe?

Tech_Koss 06-11-2002 03:54 PM

awesome thanks! :)
how bout 2 smilies and 300 characters/letters. Would that be possible?

TWTCommish 06-11-2002 03:58 PM

The character limit is easy enough, but the smilie thing is not. I just don't know that part of the system well enough.

Tech_Koss 06-11-2002 04:15 PM

then i guess i should remove the smillies. but thats alright.
would I have to edit the shoutbox.php to do that?

TWTCommish 06-11-2002 04:22 PM

That depends on what you mean. Do you want to just remove the clickable smilies, or do you want the vB Code parsing turned off?

Tech_Koss 06-11-2002 04:48 PM

i would like the vB Code parsing turned off. that way if people type : ) (without the space) then the smillie wouldnt appear.

but since the vB Code parsing is turned off, then there is no reason to have the smillies on the page, since they cant be used.

so i guess I would have to remove both of them.

TWTCommish 06-11-2002 04:51 PM

Well, it'll turn off ALL vB Code parsing, just so you know. Not just smilies.

Anyhoo, open shoutbox.php and REMOVE this:

PHP Code:

$shout_text  bbcodeparse($shout_text); 

Then, in your shoutbox_postshout template, find, and REMOVE, the following:

Code:

<br/>$smiliebits
That should do it.

Tech_Koss 06-11-2002 05:06 PM

thanks that did it! :)

Hoffi 06-12-2002 09:24 PM

Hi,

I am just testing out vbportals, and in this case i want to see the last 10 Shouts and maybe a "Quick-Shout-Box" at the End of a Box.

Has someone got this working or any Idea?

Lionel 06-16-2002 01:34 AM

the best shoutbox out there! I can't believe I missed it!

Lionel 06-16-2002 07:26 PM

ability to make a shout sticky! For example today is father day, I'd like to wish happy fathers day to all the dads members and keep that up all day long on front page. Once you unstick, then the last one takes over :classic:


All times are GMT. The time now is 08:14 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.01572 seconds
  • Memory Usage 1,794KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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