Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
[7.2.1] - Naked shoutbox #315254
08/17/2007 9:36 PM
08/17/2007 9:36 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
The shoutbox has been a problem for some sites in that it was perceived to be causing issues on boards ranging from small 'hiccups' to 'catastrophic whatever'.

Some people suggested the idea of opening the shoutbox in it's own window.. Hence the 'naked shoutbox' is born:

Steps to implement:

create a new file called nakedshout.tpl

past the following into it:
Code
{* Script Version 7.2.1 *}
{* SD - Mod: The naked shoutbox is born! *}

<html>
<head>
<link rel="stylesheet" href="{$stylesheet}" type="text/css" />
<script type="text/javascript" src="{$config.BASE_URL}/ubb_js/ubb_jslib.js"></script>
<script type="text/javascript" src="{$config.BASE_URL}/ubb_js/shoutbox.js"></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 myUid = '{$myid}'; // Don't get excited, you can't exploit this :D
	var submitClicked = "{$lang.SUBMIT_CLICKED}";
</script>
<title>Naked Shout - powered by UBB.threads&trade;</title>
</head>
<body>

<table width="810px" height="610px" 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:600px; width: 800px; overflow:auto;">
<div id="shout_content" style="height: 584px;">
</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>


upload to /templates/default directory

Step 1 - Done!

create a new file called nakedshout.inc.php

paste the following into it:
PHP Code

<?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,
	);
} // end page_picupload_gpc

function &page_nakedshout_run () {
	global $style_array,$smarty,$user,$in,$ubbt_lang,$config,$forumvisit,$visit,$dbh,$var_start,$var_eq,$var_sep,$var_extra;
	extract($in, EXTR_OVERWRITE | EXTR_REFS); // quick and dirty fix - extract hash values as vars

	// -------------------
	// Just the facts maam
	$smarty_data = array();
	define('NO_WRAPPER',1);
	$stylesheet = "{$config['BASE_URL']}/styles/{$style_array['css']}";

	$smarty_data = array(
		"stylesheet" => $stylesheet,
		"myid" => $user['USER_ID'],
	);

	return array(
		"header" => array (
			"title" => "",
			"refresh" => 0,
			"user" => $user,
			"Board" => "",
			"bypass" => 0,
			"onload" => "",
			"breadcrumb" => "",
		),
		"template" => "nakedshout",
		"data" => & $smarty_data,
		"footer" => false,
		"location" => "",
	);
}
?>




upload to /scripts dir..

Then you can decide to put a link to it anywhere you want. I chose to add it to the header.tpl and make it part of 'My Stuff' menu, but you can do whatever you want.

the header.tpl code is:
Code
{* SD - Mod (My Shouts) *}
<tr><td class="popup_menu_content">
<a href="{$config.BASE_URL}/ubbthreads.php{$var_start}ubb{$var_eq}nakedshout" target="_blank">My Shoutbox</a>
</td></tr>


added after the 'My Posts' stuff.

the KEY thing to note is the URL. namely http://yourboard/url/ubbthreads.php?ubb=nakedshout (add target="_blank", if you want a new window) and you are done.

Notes:
  • you can disable your shoutbox in the portal and this will still run fine.
  • feel free to change the .tpl heights and widths to your liking. i made mine a large window
  • you can also edit /ubbt_js/shoutbox.js and change the update frequency to less than 30secs.. find:
    Code
    function startTimer(){
    	shoutTimer = setTimeout("getShouts()",30000);
    }

    and change the 30000 to whatever number of milliseconds you want. ie: if you want 5seconds, the number will be 5000.

    Keep in mind of the burden on your board. Most shoutboxes aren't too lively, so i had no problem setting it to 5secs smile


Oh and here's some screenies (note: livewell is just a lang file for my favorite customer - Mitch P !):

[Linked Image]
and
[Linked Image]
and
[Linked Image]

upload all files and *poof* done!

enjoy,
SD

Sponsored Links
Re: [7.2x] - Naked shoutbox [Re: sirdude] #315255
08/17/2007 9:42 PM
08/17/2007 9:42 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
whoopsie. just ignore the 'Bash' and the extra check box stuff in the screenie. i stripped it out of the .tpl for you, so no worries.

that is for another modification.. Push (new member) is the author of that feature and it's really quite neat.

there are a couple more tweaks that i might post here later. namely, /me and right click wallops. i already have the /me colorizing going on and the wallops (trout slams etc) can be added later..

enjoy smile

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315258
08/18/2007 6:15 AM
08/18/2007 6:15 AM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline
Veteran
Ian_W  Offline
Veteran

Joined: Feb 2002
Posts: 2,575
England
Thanks smile

Looking forward to the other features smile

BTW - what is/are bash, Wallops etc.?


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.2x] - Naked shoutbox [Re: Ian_W] #315263
08/18/2007 8:14 AM
08/18/2007 8:14 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
wallop is : click on user name and slap them with a trout or whatever

bash is : if there is a sequence of shouts that seem funny together, you can check the checkboxes and hit the 'Bash' button. That saves it as a post to a special 'Bash forum' for time immemorial.

examples of bash are:

[Linked Image]
and
[Linked Image]
and
[Linked Image]
and
[Linked Image]
and
[Linked Image]
and
[Linked Image]
and
[Linked Image]

The idea came from the website, http://bash.org, where IRC and IM conversation snippets are saved to be rated and read for future..

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315265
08/18/2007 12:05 PM
08/18/2007 12:05 PM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho

Joined: Mar 2000
Posts: 25,587
Texas
hmm.. will this work as a guestbook? May need to allow guest posting and a way to add their name to it.


- Allen wavey
- What Drives You?
Sponsored Links
Re: [7.2x] - Naked shoutbox [Re: AllenAyres] #315268
08/18/2007 12:54 PM
08/18/2007 12:54 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
you mean the shoutbox would be a seperate page, where the shouts get logged to some DB table ?

or am i missing your idea ?

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315273
08/18/2007 8:20 PM
08/18/2007 8:20 PM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho

Joined: Mar 2000
Posts: 25,587
Texas
I think so smile

Someone was asking for a guestbook on their site. I've never used one so... smile


- Allen wavey
- What Drives You?
Re: [7.2x] - Naked shoutbox [Re: AllenAyres] #315274
08/18/2007 8:22 PM
08/18/2007 8:22 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
I have found that most "available" guestbook scripts SUCK!, so I made my own on www.realmhq.com lol... I had needs no one catered to (both a captcha with the ability to approve entries, which one would think would be simple)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315275
08/18/2007 9:35 PM
08/18/2007 9:35 PM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho

Joined: Mar 2000
Posts: 25,587
Texas
That looks good gizzy smile


- Allen wavey
- What Drives You?
Re: [7.2x] - Naked shoutbox [Re: AllenAyres] #315276
08/18/2007 10:02 PM
08/18/2007 10:02 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Dankie <3...

I used to use a paid solution on it, but their captcha wasn't worth the zend encoded container it came in... It never worked, always let spam in, etc...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Sponsored Links
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315277
08/18/2007 10:10 PM
08/18/2007 10:10 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
well, giz just take your form (nice form btw) and threads-ize it.

just add a table ubbt_GUESTBOOK and modify it to sit in the middle of the portal page ?

modify ubbthreads.php to slam that puppy in, instead of the feeder forum topics or above them..

makes sense ?

a giz-guestbook mod!! ?

weird how a naked shoutbox thread turns into a giz-guestbook.. laugh

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315278
08/18/2007 10:21 PM
08/18/2007 10:21 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
'eh, doesn't motivate me... Feel free to gank my forms though lol..


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315279
08/18/2007 10:23 PM
08/18/2007 10:23 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
..er /me looks up 'gank'

if you mean sending me the code.. i can shoehorn it in.

if not, i'm too lazy to view source / copy... you have the form handy in some format laugh

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315280
08/18/2007 10:32 PM
08/18/2007 10:32 PM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho

Joined: Mar 2000
Posts: 25,587
Texas
oui, free giz-guestbook!

or make it a paid mod, let us play with it smile


- Allen wavey
- What Drives You?
Re: [7.2x] - Naked shoutbox [Re: AllenAyres] #315281
08/18/2007 10:38 PM
08/18/2007 10:38 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
lol the form is there, it's called "view source" sd wink...

as for a paid mod, i suppose, when i get some time, i could attempt to work on something... i'd have to see how rick handles the captcha...

it'd likely be a ubbthreads.php/ubb/giz-guestbook page wink...

I really haven't dabbled in the cp at all in ubb.t7 so not sure where to start there...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315282
08/18/2007 10:52 PM
08/18/2007 10:52 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
did you read that i'm too lazy to 'view source' ? tipsy

sheeesh

help a brotha out here.

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315283
08/19/2007 1:05 AM
08/19/2007 1:05 AM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
lol, it'd be the same form weather i emailed it to you or you viewed source; just the one is faster wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315288
08/19/2007 4:20 AM
08/19/2007 4:20 AM
Joined: Nov 2003
Posts: 331
UK
M
Mark_S Offline

Beta Tester
Mark_S  Offline

Beta Tester
M

Joined: Nov 2003
Posts: 331
UK
Great work Naked Shout box.

I wonder if this could be the solution to my forums hanging
when shout box is enabled.

Personally i prefer that members are registered to shout in the box.

Those BASH comments were sooooo funny,
i hope that it becomes stock, i really do pmsl.


BOOM 7.6.+ rocks....
Re: [7.2x] - Naked shoutbox [Re: Mark_S] #315293
08/19/2007 10:37 AM
08/19/2007 10:37 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
that's the main reason this puppy got written -- the forum 'hang'

and this only allows registered users to use the shout box, btw smile

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315295
08/19/2007 4:10 PM
08/19/2007 4:10 PM
Joined: Nov 2003
Posts: 331
UK
M
Mark_S Offline

Beta Tester
Mark_S  Offline

Beta Tester
M

Joined: Nov 2003
Posts: 331
UK
Quality Stuff wink

This thread is now on my watch list for when i can find a little time to give it a go wink


BOOM 7.6.+ rocks....
Re: [7.2x] - Naked shoutbox [Re: Mark_S] #315311
08/21/2007 7:53 AM
08/21/2007 7:53 AM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Great! I was working on this one myself as a chatbox on the site.

I like copy/paste more then typing, so thanks smile


[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315312
08/21/2007 10:36 AM
08/21/2007 10:36 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
you're welcome,

i'm going to be adding shout-header, shout-footer, for those that want to do a little customising.

also will add time to the line, rather than in the hover.

also will be adding 'whos online in the shoutbox' -- basically a list of users who currently have the 'naked shoutbox' open.. (like IRC does)

and will be adding one click (two actually) theme switching for the shoutbox.. (if peeps likey, i'll port the theme switcher over to threads as a mod)

bleh, that's all for now.. oh and there are a couple bug fixes in the common shoutbox.js code too, that i'll post over here.

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315316
08/21/2007 11:26 AM
08/21/2007 11:26 AM
Joined: Nov 2003
Posts: 331
UK
M
Mark_S Offline

Beta Tester
Mark_S  Offline

Beta Tester
M

Joined: Nov 2003
Posts: 331
UK
Give that man a cigar >> SD

Sounds like one of the most exciting addons we have had in ages.
Watching with baited intrest.

< Hate the way he makes it sound O so easy >

Great work mate.


BOOM 7.6.+ rocks....
Re: [7.2x] - Naked shoutbox [Re: sirdude] #315317
08/21/2007 12:36 PM
08/21/2007 12:36 PM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Originally Posted by sirdude
i'm going to


A few suggestions from me wanting it as a chatbox:

  • Have the cursor in the input field after sending a shout and when you load the page.
  • Opening times. Open between time X and time Y, if you're in in that timeslot, you can stay.

    Somehow setting specific chat times helps getting it more busy and fun
  • Max people online, to keep serverload acceptable.
  • Ban from chat.
  • Shoutbox now wordwraps words bigger then 20 characters. For the naked shoutbox this is a bit short.

Last edited by blaaskaak; 08/21/2007 12:48 PM.

[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315318
08/21/2007 12:48 PM
08/21/2007 12:48 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
okies.. all easy, except opening times.. which is medium..

i'll see what i can do.. i have the code open on the operating table, so i might poke around a bit, before closing her up smile

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315325
08/21/2007 9:10 PM
08/21/2007 9:10 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
:mumble: i did some groundwork on UBB.Guestbook; but my wife came home while I was working on the script lol... I have the wordlets file and the view/sign templates done, have to do one for the "sign complete" page then work on the script a bit... Wonder what'd be fair to charge :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315328
08/21/2007 9:48 PM
08/21/2007 9:48 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
make a guestbook thread, when you're done..

this one is for naked shoutbox stuff wink

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315339
08/21/2007 11:08 PM
08/21/2007 11:08 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
haha, you and allen went off on a tangient, figured i'd mention that i've been giving it thought wink...

Though i plan to make my own thread, when i have something to show wink...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315344
08/21/2007 11:41 PM
08/21/2007 11:41 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
shoooo fly shooo tipsy

random musing mode....

idea! had to write it down before putting down for the nite..

the protocol should not only be JSON (leaner), but also only return changes, based upon either last shout id or time.. the way process control does it..

this cuts the xmlhttprequest traffic size down considerably. also, the ajax server(s) should be one file, so that it has a better chance of staying in the php cache as a unit. also easier to maintain one piece of ajaxshoutserver.php code..

drawback.. added branching in the server file.. minimal (imo)

weird idea.. add proxy capability for cross-site / multiple joined shouts in one..

ie site1 + site2 .... siten all serving up to same shout UI..

keep in mind: load!

convert fully to yui.. add effects for new shouts.. fade in.. etc.. not sure yet..

global / personalized wallop menus.. menus need to be ul, li and NOT table, tr, td!

longer history for shouts.. ie ability to search back further than just 30 or whatever..

urls, imgs..

admin cpanel for FULL setup and customization...

possible full page reload interval, so adverts get more hits..

colorized names, like in showflat.. admin, mod, whatever..

dynamic resizing with handles, using yui..

set mode -v laugh

bleh.. that's it.. brain dump over ..



Re: [7.2x] - Naked shoutbox [Re: sirdude] #315345
08/21/2007 11:53 PM
08/21/2007 11:53 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Go put your computer together, so you can send me your old one :x...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315414
08/25/2007 6:33 AM
08/25/2007 6:33 AM
Joined: Nov 2003
Posts: 331
UK
M
Mark_S Offline

Beta Tester
Mark_S  Offline

Beta Tester
M

Joined: Nov 2003
Posts: 331
UK
with all them idea's how can you sleep lol


BOOM 7.6.+ rocks....
Re: [7.2x] - Naked shoutbox [Re: Mark_S] #315417
08/25/2007 5:13 PM
08/25/2007 5:13 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
You should see inside my head... I have once, and it's quite crazy wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315418
08/25/2007 5:27 PM
08/25/2007 5:27 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
dude, no need to see INSIDE.. the outside speaks for itself wink

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315419
08/25/2007 6:27 PM
08/25/2007 6:27 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
bad man!


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315420
08/25/2007 6:51 PM
08/25/2007 6:51 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
hehe.. giz is EVERYWHERE today laugh

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315421
08/25/2007 8:13 PM
08/25/2007 8:13 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
we is built into everything!


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315423
08/26/2007 5:33 PM
08/26/2007 5:33 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
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.

sooo, you don't have to worry about upgrades trashing this.

the new javascript (ajax) is much more efficient by using JSON as the transport format. formerly it took 14K to fill a shoutbox and now it takes 4K.

i've pushed the load of ALL of the formatting to the client, using DOM instead of burdening the php server code. so this is less of a strain on the server itself.

i almost have it done, but will at least leave you with a typical screenie..

[Linked Image]

the lower right side is a space that you can put your own content into.. ads, logo, whatever..

i showed the ajax 'bashing..' 'sending..' reveals here, but they are normally hidden and come into play on an async call begin.

the 2 columns of buttons on the left allow a user to select rows (1st one) for subsequent 'Bash'.. the 2nd column is the same as the delete [x] is now..

selection gives feedback in a different highlight color, like phpmyadmin does for rows..

the upper right hand side is a current tally of who's online in the shoutbox.. configurable in the admin cpanel..

i will wrap it up soon, but it ain't ready for prime time yet..

til then... patience smile

ps: and thanks to Rick!! for the wonderful style from which to use as an excellent look/feel.

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315424
08/26/2007 7:02 PM
08/26/2007 7:02 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Lol, that's a great start man... Looks awesome...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: sirdude] #315427
08/26/2007 11:30 PM
08/26/2007 11:30 PM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Originally Posted by sirdude
til then... patience smile


I'm running out of smile


[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315428
08/26/2007 11:57 PM
08/26/2007 11:57 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
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)

also, i'm using a decay algorithm that offloads the server and it's kinda not right yet.

basically, if you are just idling in the chat window, your delay between async xmlHTTPRequests decays to a longer time (to a limit of course).. this offloads the server load..

when you start chatting or doing things in the chat window, the decay is restored to the 'fast' value (configurable)

i will get a prototype up tomorrow or next day for you to play with.

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)

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315429
08/27/2007 12:20 AM
08/27/2007 12:20 AM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Originally Posted by sirdude
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).

Quote
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.


[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315430
08/27/2007 12:22 AM
08/27/2007 12:22 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
well, excellent!

maybe i get it to a point and then you add those features in and post back here! laugh

ty blaaskaak

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315431
08/27/2007 12:32 AM
08/27/2007 12:32 AM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Originally Posted by sirdude
maybe i get it to a point and then you add those features in and post back here! laugh


That's what ubb haxxors are for right?


[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315436
08/27/2007 2:05 AM
08/27/2007 2:05 AM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
awee, so cute, SD made a new playmate! wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: sirdude] #315437
08/27/2007 12:28 PM
08/27/2007 12:28 PM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline
Veteran
Ian_W  Offline
Veteran

Joined: Feb 2002
Posts: 2,575
England
Originally Posted by sirdude


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 frown


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.2x] - Naked shoutbox [Re: Ian_W] #315438
08/27/2007 1:01 PM
08/27/2007 1:01 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
did you read the rest of the post ?

Quote
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)

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315439
08/27/2007 2:15 PM
08/27/2007 2:15 PM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Originally Posted by sirdude
did you read the rest of the post ?


I didn't, I have php5 smile


[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315452
08/27/2007 7:18 PM
08/27/2007 7:18 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Yeh, who isn't using PHP5 now :x


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315453
08/27/2007 7:41 PM
08/27/2007 7:41 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
Ian

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315460
08/28/2007 4:35 AM
08/28/2007 4:35 AM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline
Veteran
Ian_W  Offline
Veteran

Joined: Feb 2002
Posts: 2,575
England
Me laugh

If only I could frown

Maybe one day smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.2x] - Naked shoutbox [Re: Ian_W] #315706
09/16/2007 11:06 AM
09/16/2007 11:06 AM
Joined: Jun 2006
Posts: 4
Astronomie_de Offline
Lurker
Astronomie_de  Offline
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

Re: [7.2x] - Naked shoutbox [Re: Astronomie_de] #315707
09/16/2007 11:27 AM
09/16/2007 11:27 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
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.

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315714
09/16/2007 4:23 PM
09/16/2007 4:23 PM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Originally Posted by sirdude
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 smile


[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315715
09/16/2007 4:37 PM
09/16/2007 4:37 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
whoops i said blaask, when i meant Yarp™

Re: [7.2x] - Naked shoutbox [Re: sirdude] #315717
09/16/2007 5:55 PM
09/16/2007 5:55 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Yarppy Yarperson?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #315723
09/17/2007 12:33 AM
09/17/2007 12:33 AM
Joined: Feb 2007
Posts: 330
The Netherlands
B
blaaskaak Offline
Yarp™
blaaskaak  Offline
Yarp™
B

Joined: Feb 2007
Posts: 330
The Netherlands
Funny thing is, our Hamster is called yarr, and we have for almost 2 years now smile

He has his own pirate boat next to his cage and stuff. (Yep, I'm not a 100% wink )


[Linked Image]
Re: [7.2x] - Naked shoutbox [Re: blaaskaak] #315725
09/17/2007 3:10 AM
09/17/2007 3:10 AM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
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:™


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: sirdude] #316333
11/18/2007 11:43 AM
11/18/2007 11:43 AM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline
Veteran
Ian_W  Offline
Veteran

Joined: Feb 2002
Posts: 2,575
England
Originally Posted by sirdude
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 smile


Any developments on these changes?


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.2x] - Naked shoutbox [Re: Ian_W] #316334
11/18/2007 5:29 PM
11/18/2007 5:29 PM
Joined: Jun 2006
Posts: 4
Jakarta, Indonesia
G
Gary Dean Offline
Lurker
Gary Dean  Offline
Lurker
G

Joined: Jun 2006
Posts: 4
Jakarta, Indonesia
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!


Dangerously too sophisticated
Re: [7.2x] - Naked shoutbox [Re: Gary Dean] #316335
11/19/2007 2:30 AM
11/19/2007 2:30 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
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 smile

Re: [7.2x] - Naked shoutbox [Re: Gary Dean] #316338
11/19/2007 12:43 PM
11/19/2007 12:43 PM
Joined: Feb 2002
Posts: 2,575
England
Ian_W Offline
Veteran
Ian_W  Offline
Veteran

Joined: Feb 2002
Posts: 2,575
England
Originally Posted by Gary Dean
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 smile


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Re: [7.2x] - Naked shoutbox [Re: sirdude] #316537
12/28/2007 9:04 AM
12/28/2007 9:04 AM
Joined: Oct 2007
Posts: 10
M
mishter Offline
Newbie
mishter  Offline
Newbie
M

Joined: Oct 2007
Posts: 10



Last edited by mishter; 12/28/2007 3:05 PM. Reason: Question withdrawn
Re: [7.2x] - Naked shoutbox [Re: mishter] #316784
03/03/2008 7:59 PM
03/03/2008 7:59 PM
Joined: Jun 2001
Posts: 246
USA
D
Dslam Offline
Member
Dslam  Offline
Member
D

Joined: Jun 2001
Posts: 246
USA
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 9:52 PM. Reason: compared to simple.inc.php
Re: [7.2x] - Naked shoutbox [Re: Dslam] #316917
05/03/2008 10:15 PM
05/03/2008 10:15 PM
Joined: May 2008
Posts: 2
D
DougMM Offline
Lurker
DougMM  Offline
Lurker
D

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?

Re: [7.2x] - Naked shoutbox [Re: sirdude] #316926
05/08/2008 2:01 PM
05/08/2008 2:01 PM
Joined: Apr 2008
Posts: 7
J
Jaymo Offline
Lurker
Jaymo  Offline
Lurker
J

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!

Re: [7.2x] - Naked shoutbox [Re: Jaymo] #316927
05/08/2008 3:16 PM
05/08/2008 3:16 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
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.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2x] - Naked shoutbox [Re: Gizmo] #316930
05/08/2008 5:48 PM
05/08/2008 5:48 PM
Joined: Apr 2008
Posts: 7
J
Jaymo Offline
Lurker
Jaymo  Offline
Lurker
J

Joined: Apr 2008
Posts: 7
Thanks, Giz!

Re: [7.2x] - Naked shoutbox [Re: Jaymo] #317396
07/11/2008 11:18 AM
07/11/2008 11:18 AM
Joined: Oct 2002
Posts: 2
Portland Oregon
M
MarkeeDragon Offline
Lurker
MarkeeDragon  Offline
Lurker
M

Joined: Oct 2002
Posts: 2
Portland Oregon
Does this work in 7.3?

Re: [7.2x] - Naked shoutbox [Re: MarkeeDragon] #317397
07/11/2008 12:30 PM
07/11/2008 12:30 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
i'll prolly have a new nakedshout after the weekend. one dude, who's been using it needs an upgrade..

[7.3] - Naked shoutbox [Re: sirdude] #317398
07/11/2008 3:07 PM
07/11/2008 3:07 PM
Joined: May 1999
Posts: 1,966
Sweden, Stockholm
Gardener Offline
Addict
Gardener  Offline
Addict

Joined: May 1999
Posts: 1,966
Sweden, Stockholm
This seems to work for me (in 7.3):

templates/default/nakedshout.tpl
PHP Code

{* 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&trade;</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 Code


<?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,
	);
} // end page_picupload_gpc

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); // quick and dirty fix - extract hash values as vars

	// -------------------
	// Just the facts maam
	$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" => "",
	);
}
?>




Re: [7.3] - Naked shoutbox [Re: Gardener] #317400
07/11/2008 11:56 PM
07/11/2008 11:56 PM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
Good stuff, Gardener smile

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 smile

ps: the link to your 'Complete list of my mods' is busticated wink

Re: [7.3] - Naked shoutbox [Re: sirdude] #317402
07/12/2008 3:53 PM
07/12/2008 3:53 PM
Joined: May 1999
Posts: 1,966
Sweden, Stockholm
Gardener Offline
Addict
Gardener  Offline
Addict

Joined: May 1999
Posts: 1,966
Sweden, Stockholm
Yeah, my server broke down completely a while ago and I haven't had time to set up the site again.

Re: [7.3] - Naked shoutbox [Re: Gardener] #317514
08/22/2008 6:27 PM
08/22/2008 6:27 PM
Joined: May 2008
Posts: 18
I
Iann128 Offline
Newbie
Iann128  Offline
Newbie
I

Joined: May 2008
Posts: 18
Sirdude any update on v2 smile

Ian

Re: [7.3] - Naked shoutbox [Re: Iann128] #317937
03/27/2009 8:08 AM
03/27/2009 8:08 AM
Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
badfrog Offline
Power User
badfrog  Offline
Power User

Joined: Mar 2007
Posts: 94
somewhere on the coast of Main...
did this project die?

Re: [7.3] - Naked shoutbox [Re: badfrog] #317938
03/28/2009 10:33 AM
03/28/2009 10:33 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
i just had someone who 'needs' it.. so i will be resurrecting this in the next few weeks..

v2.1 i guess laugh

prolly with either MT or jQ for the javascript library, but that won't really matter to non-coders..

Re: [7.3] - Naked shoutbox [Re: sirdude] #317940
03/29/2009 12:40 AM
03/29/2009 12:40 AM
Joined: Mar 2009
Posts: 3
W
webDosser Offline
Lurker
webDosser  Offline
Lurker
W

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..


Re: [7.3] - Naked shoutbox [Re: webDosser] #317944
03/30/2009 11:17 PM
03/30/2009 11:17 PM
Joined: Mar 2009
Posts: 3
W
webDosser Offline
Lurker
webDosser  Offline
Lurker
W

Joined: Mar 2009
Posts: 3
now let me think.. what was the reason i went with VB?.

Re: [7.3] - Naked shoutbox [Re: webDosser] #317945
03/31/2009 5:14 AM
03/31/2009 5:14 AM
Joined: Jan 2007
Posts: 70
UK
Stephen G Offline
Power User
Stephen G  Offline
Power User

Joined: Jan 2007
Posts: 70
UK
Because you're insane?

laugh


[b]Stephen G
Re: [7.3] - Naked shoutbox [Re: Stephen G] #317946
03/31/2009 8:19 AM
03/31/2009 8:19 AM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Offline

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
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.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.2.1] - Naked shoutbox [Re: sirdude] #318409
12/28/2009 12:51 PM
12/28/2009 12:51 PM
Joined: Apr 2009
Posts: 4
Thomas_Denmark Offline
Lurker
Thomas_Denmark  Offline
Lurker

Joined: Apr 2009
Posts: 4
Is this combatibme vith 7.5.4.2 ?? i cant get it to work ??

http://www.gramkofi.dk/logen/ubbthreads.php?ubb=nakedshout

Re: [7.2.1] - Naked shoutbox [Re: Thomas_Denmark] #318417
12/30/2009 9:58 PM
12/30/2009 9:58 PM
Joined: Mar 2000
Posts: 25,587
Texas
AllenAyres Offline
I type Like navaho
AllenAyres  Offline
I type Like navaho

Joined: Mar 2000
Posts: 25,587
Texas
It says I have to be logged in. What are you getting?


- Allen wavey
- What Drives You?
Re: [7.2.1] - Naked shoutbox [Re: sirdude] #318498
02/08/2010 10:43 PM
02/08/2010 10:43 PM
Joined: Oct 2009
Posts: 41
L
lightningrod Offline
User
lightningrod  Offline
User
L

Joined: Oct 2009
Posts: 41
This still works with 7.5.3 ?


Re: [7.2x] - Naked shoutbox [Re: sirdude] #318499
02/08/2010 10:45 PM
02/08/2010 10:45 PM
Joined: Oct 2009
Posts: 41
L
lightningrod Offline
User
lightningrod  Offline
User
L

Joined: Oct 2009
Posts: 41
Originally Posted by sirdude
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.

sooo, you don't have to worry about upgrades trashing this.

the new javascript (ajax) is much more efficient by using JSON as the transport format. formerly it took 14K to fill a shoutbox and now it takes 4K.

i've pushed the load of ALL of the formatting to the client, using DOM instead of burdening the php server code. so this is less of a strain on the server itself.

i almost have it done, but will at least leave you with a typical screenie..

[Linked Image]

the lower right side is a space that you can put your own content into.. ads, logo, whatever..

i showed the ajax 'bashing..' 'sending..' reveals here, but they are normally hidden and come into play on an async call begin.

the 2 columns of buttons on the left allow a user to select rows (1st one) for subsequent 'Bash'.. the 2nd column is the same as the delete [x] is now..

selection gives feedback in a different highlight color, like phpmyadmin does for rows..

the upper right hand side is a current tally of who's online in the shoutbox.. configurable in the admin cpanel..

i will wrap it up soon, but it ain't ready for prime time yet..

til then... patience smile

ps: and thanks to Rick!! for the wonderful style from which to use as an excellent look/feel.



What you posted here, it's the same Instructions as the first post on this thread?


Re: [7.2x] - Naked shoutbox [Re: lightningrod] #318500
02/09/2010 11:19 AM
02/09/2010 11:19 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline OP
Enthusiast
sirdude  Offline OP
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
no.. i am redoing it for 7.5.5 on another forum.. won't be done until then

Re: [7.2x] - Naked shoutbox [Re: sirdude] #318593
06/28/2010 1:53 AM
06/28/2010 1:53 AM
Joined: Jul 2001
Posts: 811
Berlin, Germany
Zarzal Offline
Coder
Zarzal  Offline
Coder

Joined: Jul 2001
Posts: 811
Berlin, Germany
Originally Posted by sirdude
no.. i am redoing it for 7.5.5 on another forum.. won't be done until then
What is the status of it right now? I'm looking for a chat solution right now.

Re: [7.2x] - Naked shoutbox [Re: Zarzal] #318613
08/31/2010 12:58 PM
08/31/2010 12:58 PM
Joined: Jun 2010
Posts: 1
M
MithofOT Offline
Lurker
MithofOT  Offline
Lurker
M

Joined: Jun 2010
Posts: 1
Was wondering to if this mod/plugin is dead. I have a forum that the community uses the heck out of the shoutbox. I have the IRC plugin but would like a little more control. Plus this just looks fun.

Re: [7.2x] - Naked shoutbox [Re: sirdude] #318900
02/15/2012 4:14 PM
02/15/2012 4:14 PM
Joined: Jul 2002
Posts: 14
N
NiMS Offline
Newbie
NiMS  Offline
Newbie
N

Joined: Jul 2002
Posts: 14
Same question here. Any updates on the new version?

Re: [7.2x] - Naked shoutbox [Re: sirdude] #318913
05/05/2012 3:42 PM
05/05/2012 3:42 PM
Joined: May 2008
Posts: 7
B
bellaonline Offline
Lurker
bellaonline  Offline
Lurker
B

Joined: May 2008
Posts: 7
Is the new version available somewhere? I've been using FlashChat and it's just not healthy. I don't see any other real option for integrating a chat with the UBB logons except this one.

Re: [7.2x] - Naked shoutbox [Re: sirdude] #318914
05/05/2012 4:00 PM
05/05/2012 4:00 PM
Joined: May 2008
Posts: 7
B
bellaonline Offline
Lurker
bellaonline  Offline
Lurker
B

Joined: May 2008
Posts: 7
OK it turns out I had implemented this a while ago while waiting for the new version to come out, so it was already on my site. It will certainly work for now - it seems to run fine in the latest version of the code.

The only thing is my chats easily run over 30 lines and I need to save the content afterwards to post for the editors who couldn't attend. I tried to find where to alter the 30 line limit but couldn't see where it was. Where is that set, so I can change it to be 1000 lines?

Page 1 of 3 1 2 3

Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with, and recommend, the following Web Hosts:
· Stable Host
· Blue Host
· Interserver.net
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,208
Joined: July 2001
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,466
Posts293,522
Members13,801
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,947
Greg Hard 5,533
Top Posters(30 Days)
isaac 1
Today's Statistics
Currently Online 752
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 11
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.0
(Snapshot build 20181115.dev)
PHP: 5.4.45 Page Time: 0.137s Queries: 15 (0.019s) Memory: 4.0253 MB (Peak: 4.9561 MB) Data Comp: Zlib Server Time: 2018-12-12 00:22:00 UTC