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)

Zweeper 05-13-2006 11:53 AM

still need a wordwrap function :(

DjTaz 05-13-2006 12:16 PM

why do u need a wordwrap function ? doesnt it already wordwrap when it reaches the end of the table ?

Zweeper 05-13-2006 12:36 PM

no, look @ attachment

Sir_Yaro 05-13-2006 12:51 PM

Quote:

Originally Posted by S@NL - BlackBik
I made a autoprune function for vBshout.
Just download the attached file and put in the /includes/cron directory.
Then make a new scheduled task (see attached jpg).
I run it every night at 3 o clock but offcourse your free to run it more often than that.

What is does: It will delete all shouts that are older than 24 hours.
This way you will allways have an archive that's holds no shouts that are older than two days.
You can alter the deletion time in the php by altering the "(TIMENOW - (60 * 60 * 24)" statement.

Enjoy :)

[edit]Replaced the php with the right one [/edit]

thank you!!

Sir_Yaro 05-13-2006 12:54 PM

Quote:

Originally Posted by Zweeper
still need a wordwrap function :(

YES! I need it too!!

Zweeper 05-13-2006 01:02 PM

one more, look @ post # 1755

DjTaz 05-13-2006 01:11 PM

lol ok - fair point - try this :

In Vbshout.php around line 260 (ish) find :

Code:

                if ($Shout['data']['italic'])
                {
                        $Shout['style'] .= 'font-style:'.$Shout['data']['italic'].';';
                }

and under it add in the following :
Code:

/////////////////////////////
//// SHOUTBOX WORDWRAP  /////
//// BY DJTAZ ///////////////

                $wrapafter=25;

                if ($Shout['s_shout'])
                {
                        $Shout['s_shout'] = wordwrap($Shout['s_shout'], $wrapafter , "<br />" ,1);
                }

// END SHOUTBOX WORDWRAP ////
/////////////////////////////

Change the 25 to have the max amount of characters that you want

Zweeper 05-13-2006 01:14 PM

DjTaz, i love you :D

it works!!


THANKS!!!

DjTaz 05-13-2006 01:26 PM

No probs , glad to help.

Sir_Yaro 05-13-2006 01:29 PM

Quote:

Originally Posted by DjTaz
lol ok - fair point - try this :

In Vbshout.php around line 260 (ish) find :

Code:

                if ($Shout['data']['italic'])
                {
                        $Shout['style'] .= 'font-style:'.$Shout['data']['italic'].';';
                }

and under it add in the following :
Code:

/////////////////////////////
//// SHOUTBOX WORDWRAP  /////
//// BY DJTAZ ///////////////

                $wrapafter=25;

                if ($Shout['s_shout'])
                {
                        $Shout['s_shout'] = wordwrap($Shout['s_shout'], $wrapafter , "<br />" ,1);
                }

// END SHOUTBOX WORDWRAP ////
/////////////////////////////

Change the 25 to have the max amount of characters that you want


thank you.
its working almost good. unfortunatelly it's not parsing links corectly. They comes as pure tekst not as link. Same with smilies - they appear as text (link to the smile is shown not smile) in a shoutbox.


All times are GMT. The time now is 11:32 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.03579 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (3)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