php forum
php mysql forum
php mysql smarty
 
Page 4 of 4 < 1 2 3 4
Topic Options
#316338 - 11/19/07 12:43 PM Re: [7.2x] - Naked shoutbox [Re: Gary Dean]
Ian_W Global Moderator Offline
Veteran

Registered: 02/22/02
Posts: 2574
Loc: England

   Re: [7.2x] - Naked shoutbox to Del.icio.us Add to del.icio.us
  Digg Re: [7.2x] - Naked shoutbox Digg it
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....)

Top
#316537 - 12/28/07 09:04 AM Re: [7.2x] - Naked shoutbox [Re: sirdude]
mishter Offline
Newbie

Registered: 10/08/07
Posts: 10




Edited by mishter (12/28/07 03:05 PM)
Edit Reason: Question withdrawn

Top
#316784 - 03/03/08 07:59 PM Re: [7.2x] - Naked shoutbox [Re: mishter]
Dslam Offline
Member

Registered: 06/05/01
Posts: 246
Loc: 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


Edited by Dslam (03/03/08 09:52 PM)
Edit Reason: compared to simple.inc.php

Top
#316917 - 05/03/08 11:15 PM Re: [7.2x] - Naked shoutbox [Re: Dslam]
DougMM Offline
Lurker

Registered: 05/03/08
Posts: 1
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?

Top
#316926 - 05/08/08 03:01 PM Re: [7.2x] - Naked shoutbox [Re: sirdude]
Jaymo Offline
Lurker

Registered: 04/29/08
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!

Top
#316927 - 05/08/08 04:16 PM Re: [7.2x] - Naked shoutbox [Re: Jaymo]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5122
Loc: 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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#316930 - 05/08/08 06:48 PM Re: [7.2x] - Naked shoutbox [Re: Gizmo]
Jaymo Offline
Lurker

Registered: 04/29/08
Posts: 7
Thanks, Giz!

Top
#317396 - 07/11/08 12:18 PM Re: [7.2x] - Naked shoutbox [Re: Jaymo]
MarkeeDragon Offline
Lurker

Registered: 10/26/02
Posts: 2
Loc: Portland Oregon
Does this work in 7.3?

Top
#317397 - 07/11/08 01:30 PM Re: [7.2x] - Naked shoutbox [Re: MarkeeDragon]
sirdude Moderator Offline
Bada bing!
Enthusiast

Registered: 11/08/03
Posts: 439
Loc: SoCal
i'll prolly have a new nakedshout after the weekend. one dude, who's been using it needs an upgrade..
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#317398 - 07/11/08 04:07 PM [7.3] - Naked shoutbox [Re: sirdude]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
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" => "",
	);
}
?>



_________________________
/Gardener | Complete list of my mods

Top
#317400 - 07/12/08 12:56 AM Re: [7.3] - Naked shoutbox [Re: Gardener]
sirdude Moderator Offline
Bada bing!
Enthusiast

Registered: 11/08/03
Posts: 439
Loc: 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
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#317402 - 07/12/08 04:53 PM Re: [7.3] - Naked shoutbox [Re: sirdude]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Yeah, my server broke down completely a while ago and I haven't had time to set up the site again.
_________________________
/Gardener | Complete list of my mods

Top
#317514 - 08/22/08 07:27 PM Re: [7.3] - Naked shoutbox [Re: Gardener]
Iann128 Offline
Lurker

Registered: 05/31/08
Posts: 3
Sirdude any update on v2 smile

Ian

Top
Page 4 of 4 < 1 2 3 4


Moderator:  sirdude 
Who's Online
0 Registered (), 19 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
Yesterday at 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3] Language file checker
by blaaskaak
09/09/08 12:56 AM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
blaaskaak 12
AllenAyres 10
FREAK1 7
Mike L_dup1 4
Chris Bale 4
Ian_W 4
tackaberry 4

 

 

 
fusionbb message board php hacks