|
Joined: Feb 2007
Posts: 329
Yarp™
|
Yarp™
Joined: Feb 2007
Posts: 329 |
hehe.. well you want kick + ban, max online limit ? (i will leave out the start/stop times as you can figure a way to deal with that manually -- ie make the link not work or have a default screen -- for now) The start/stop time in our previous chat worked a bit better then that. It was a time when you could get in, but it didn't close up after that time. If you were in, you stayed in. If somehow you had to reboot, you got 5 minutes to get back in. I'll get that in myselve again. Our max online was combined also with an idle kick. If you were chatter limit+1, it would kick a passive user (no activity for x minutes). once caveat.. php 5, so i can use the zend built in json_encode routine (very fast). php 5 is fine, that's what running at our host.
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
well, excellent! maybe i get it to a point and then you add those features in and post back here!  ty blaaskaak
|
|
|
|
Joined: Feb 2007
Posts: 329
Yarp™
|
Yarp™
Joined: Feb 2007
Posts: 329 |
maybe i get it to a point and then you add those features in and post back here!  That's what ubb haxxors are for right?
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
awee, so cute, SD made a new playmate!
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
once caveat.. php 5, so i can use the zend built in json_encode routine (very fast).
I was getting excited, until I read that 
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
did you read the rest of the post ? once caveat.. php 5, so i can use the zend built in json_encode routine (very fast).
if you MUST have php4, then there is a workaround, but i don't recommend. (slower and in php code vs compile c)
|
|
|
|
Joined: Feb 2007
Posts: 329
Yarp™
|
Yarp™
Joined: Feb 2007
Posts: 329 |
did you read the rest of the post ? I didn't, I have php5 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Yeh, who isn't using PHP5 now :x
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
Me  If only I could  Maybe one day 
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Jun 2006
Posts: 4
Lurker
|
Lurker
Joined: Jun 2006
Posts: 4 |
Hi Sirdude,
are there any updates on this mod? I would like to integrate a testversion of it on Astronomie.de.
Regards, Thorsten
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
well, i kinda got sidetracked into 7.3 development. so this puppy sat on the shelf for a bit.
the next time i take it off the shelf and dust it off should be where it get it to the point that it does most of what i've described in the wish list.
i know blaask has some more ideas, so i'm hoping that once i feed it out here, he will also add his magic to make it even better.
if you're looking for a timeframe, i'd say it's a couple of weeks away as i still have some 7.3 items to finish off.
|
|
|
|
Joined: Feb 2007
Posts: 329
Yarp™
|
Yarp™
Joined: Feb 2007
Posts: 329 |
i know blaask has some more ideas, so i'm hoping that once i feed it out here, he will also add his magic to make it even better. We have a date 
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
whoops i said blaask, when i meant Yarp™
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
|
|
|
|
Joined: Feb 2007
Posts: 329
Yarp™
|
Yarp™
Joined: Feb 2007
Posts: 329 |
Funny thing is, our Hamster is called yarr, and we have for almost 2 years now  He has his own pirate boat next to his cage and stuff. (Yep, I'm not a 100%  )
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
You make me feel normal...
When my son was 6 months, I bought him a piggy bank... Which is a pirate jumping out of a pirates chest... :flex:™
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
ok, i've complete overhauled it to use new javascript. this is essentially standalone and only shares with ubbthreads on the user DB side of things as well as to grab the styles. i will wrap it up soon, but it ain't ready for prime time yet.. til then... patience  Any developments on these changes?
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Jun 2006
Posts: 4
Lurker
|
Lurker
Joined: Jun 2006
Posts: 4 |
is there any place where this mod is installed where it can be tried out?
from what i've seen so far in this thread, it looks very good, though perhaps far more sophisticated than i really require!
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
i have it running on 2 private boards (7.2.2) ... and haven't touched this puppy in a long time. until 7.3 comes out, it's going to remain as is.. after that, i can revisit this 
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
is there any place where this mod is installed where it can be tried out?
from what i've seen so far in this thread, it looks very good, though perhaps far more sophisticated than i really require!
We have it running at http://www.fansfocus.com 
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
Joined: Oct 2007
Posts: 10
Newbie
|
Newbie
Joined: Oct 2007
Posts: 10 |
Last edited by mishter; 12/28/2007 4:05 PM. Reason: Question withdrawn
|
|
|
|
Joined: Jun 2001
Posts: 176
Member
|
Member
Joined: Jun 2001
Posts: 176 |
hey this is what I was looking for question here how do I add the header/footer to the naked shout then I would not have to open another page
edit I looked over the simple.inc.php & compared to naked shout . but still fail to see why it's not pulling the header & footer can someone point me in the right direction
Last edited by Dslam; 03/03/2008 10:52 PM. Reason: compared to simple.inc.php
|
|
|
|
Joined: May 2008
Posts: 2
Lurker
|
Lurker
Joined: May 2008
Posts: 2 |
I just installed this and I'm looking for a way to add code to the shout box, it would be nice for urls to be clickable and what not. [url ]???????? [/url ] Any ideas on this?
|
|
|
|
Joined: Apr 2008
Posts: 7
Lurker
|
Lurker
Joined: Apr 2008
Posts: 7 |
Hi everyone! I asked this over at Ubbcentral, but since it might be a coding issue that needs to be played with, I thought I'd ask it here, too.
Is there a way to periodically clear the messages in the ShoutBox? I don't use the shoutbox on the portal page, but want to experiment with the Naked Shoutbox. I have all of the other coding in place, however, the only problem is that when I opened the naked shoutbox, it had the last posts still listed (and the shoutbox has been turned off since like the beginning of March.)
I would like to empty the shoutbox from time to time, so that people aren't seeing months-old conversations. Since this may be a coding thing, I thought this would be the best place to ask. Thanks!
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
As posted at UBBCentral; items in the shoutbox should scroll off sith subsequent posts; believe the total number is 30. So on the 31st post, the first in the file will scroll off.
|
|
|
|
Joined: Apr 2008
Posts: 7
Lurker
|
Lurker
Joined: Apr 2008
Posts: 7 |
|
|
|
|
Joined: Oct 2002
Posts: 2
Lurker
|
Lurker
Joined: Oct 2002
Posts: 2 |
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
i'll prolly have a new nakedshout after the weekend. one dude, who's been using it needs an upgrade..
|
|
|
|
Joined: May 1999
Posts: 1,715
Addict
|
Addict
Joined: May 1999
Posts: 1,715 |
This seems to work for me (in 7.3): templates/default/nakedshout.tpl {* Script Version 7.3 *} {* SD - Mod: The naked shoutbox is born! *} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang.XML_LANG}" lang="{$lang.XML_LANG}" dir="{$lang.READ_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={$lang.CHARSET}" /> <link rel="stylesheet" href="{$stylesheet}" type="text/css" /> <script type="text/javascript" src="{$config.BASE_URL}/ubb_js/ubb_jslib.js?v=7.3"></script> <script type="text/javascript" src="{$config.BASE_URL}/ubb_js/shoutbox.js?v=7.3"></script> <script type="text/javascript" src="{$config.BASE_URL}/ubb_js/boxover.js?v=7.3"></script> <script language="javascript" type="text/javascript"> var confirmText = "{$lang.CONFIRM}"; var notLogged = "{$lang.NO_SHOUT}"; var baseurl = "{$config.BASE_URL}"; var fullurl = "{$config.FULL_URL}"; var imagedir = "{$style_array.general}"; var script = "{ubb url="" full="true"}"; var myUid = '{$myid}'; // Don't get excited, you can't exploit this :D var submitClicked = "{$lang.SUBMIT_CLICKED}"; var s_priv = '{$s_priv}'; </script> <title>Naked Shout - {$lang.POWERED_BY} UBB.threads™</title> </head> <body>
<table width="810px" height="560px" cellpadding="0" cellspacing="0" border="0"> <tr><td> {$tbopen} <tr> <td class="tdheader">{$lang.SHOUT_BOX}</td> </tr> <tr> <td class="alt-1"> <div id="shout_box" style="height:550px; width: 800px; overflow:auto;"> <div id="shout_content" style="height: 530px;"> </div> </div> <form name="shoutbox" method="post" action = "" onsubmit="shoutit();return false;"> <div align="center"> <span id="shout_field"> <input type="text" name="shoutbody" size="80" class="form-input" maxlength="255" value="" onenter="shoutit()" /> </span> <span id="sending_field" style="display:none"> Sending... </span> <br /> <input type="button" name="shoutbutton" value="{$lang.SHOUT_IT}" class="form-button" onclick="shoutit()" /> <input type="reset" value="{$lang.RESET_IT}" class="form-button" /> </div> <div id="shout_uid" style="display:none;"> Delete this shout? <input type="button" class="form-button" id="del_yes" value="Yes" /><input type="button" class="form-button" id="del_no" value="No" /> </div> </form> </td> </tr> {$tbclose}
</td></tr></table> <script type="text/javascript">getShouts(0);</script> </body> </html>
scripts/nakedshout.inc.php
<?php
if(!defined("UBB_MAIN_PROGRAM")) exit;
function &page_nakedshout_gpc () { return array( "input" => "", "wordlets" => "" , "user_fields" => "", "regonly" => 1, "admin_only" => 0, "admin_or_mod" => 0, ); } function &page_nakedshout_run () { global $style_array,$smarty,$user,$in,$ubbt_lang,$config,$forumvisit,$visit,$dbh,$var_start,$var_eq,$var_sep,$var_extra,$userob; extract($in, EXTR_OVERWRITE | EXTR_REFS); $smarty_data = array(); define('NO_WRAPPER',1); $stylesheet = "{$config['BASE_URL']}/styles/{$style_array['css']}"; $s_priv = $userob->check_access("site","CAN_SHOUT");
$smarty_data = array( "stylesheet" => $stylesheet, "myid" => $user['USER_ID'], "s_priv" => $s_priv, );
return array( "header" => array ( "title" => "Naked shout", "refresh" => 0, "user" => $user, "Board" => "", "bypass" => 0, "onload" => "", "breadcrumb" => "", ), "template" => "nakedshout", "data" => & $smarty_data, "footer" => false, "location" => "", ); } ?>
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
Good stuff, Gardener  I'll be adding a new version with more bells / whistles, since it's needed.. I might just leave your example as the final version of nakedshout v1.1 and then create a new thread with v2.0 ty  ps: the link to your 'Complete list of my mods' is busticated 
|
|
|
|
Joined: May 1999
Posts: 1,715
Addict
|
Addict
Joined: May 1999
Posts: 1,715 |
Yeah, my server broke down completely a while ago and I haven't had time to set up the site again.
|
|
|
|
Joined: May 2008
Posts: 18
Newbie
|
Newbie
Joined: May 2008
Posts: 18 |
Sirdude any update on v2  Ian
|
|
|
|
Joined: Mar 2007
Posts: 94
Power User
|
Power User
Joined: Mar 2007
Posts: 94 |
|
|
|
|
Joined: Nov 2003
Posts: 482
Enthusiast
|
Enthusiast
Joined: Nov 2003
Posts: 482 |
i just had someone who 'needs' it.. so i will be resurrecting this in the next few weeks.. v2.1 i guess  prolly with either MT or jQ for the javascript library, but that won't really matter to non-coders..
|
|
|
|
Joined: Mar 2009
Posts: 3
Lurker
|
Lurker
Joined: Mar 2009
Posts: 3 |
i just want to move the shout box to beneath the navbar without having to click it to open it..
|
|
|
|
Joined: Mar 2009
Posts: 3
Lurker
|
Lurker
Joined: Mar 2009
Posts: 3 |
now let me think.. what was the reason i went with VB?.
|
|
|
|
Joined: Jan 2007
Posts: 70
Power User
|
Power User
Joined: Jan 2007
Posts: 70 |
Because you're insane? 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Not sure if it's as easy as creating template code out of the cache rebuilder routines; if i get some time before this weekend I'll take a look.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|