News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

nneonneo's Shoutbox

Started by nneonneo, December 26, 2006, 06:58:11 PM

Previous topic - Next topic

MothMan

#2320
Where can I change the font size of the HISTORY text?




GMCbris

Here is my index template - I am damned if I can get it to work

Thanks in advance for all those that help

GMC

_Anthony_

Quote from: SunKing on May 16, 2008, 07:07:27 PM
Did you INSERT the SQL line into your database as posted above? It will not collapse unless you do this. You will need to use phpMyAdmin or similiar to INSERT it. Here is my tutorial on exactly how to do it.
This is to add it collapsible?
Does it work with smf2?
I have it but it would be cool to make it collapsible.

[unplugged]

#2323
@GMC your (fixed) index.template.php is attached.

@MrMoney It only works on SMF 2 beta 3.1 as of yet
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



_Anthony_

Aww, Ok SunKing. I will just wait till it is.

GMCbris

Quote from: SunKing on May 16, 2008, 11:48:56 PM
@GMC your (fixed) index.template.php is attached.

@MrMoney It does not work with SMF2.0 as of yet.

I am gonna have to awsk what I did wrong - I have spent hours on this :(

GMCbris


faminsk

Quote from: nneonneo on May 16, 2008, 08:54:11 PM

@faminsk: The block is a phpblock, right? The code should look like
echo '<div id="yshout"></div><div class="smalltext" style="padding-left:25px;"><a href="javascript:collapse1.slidedown()">Open Smiley</a> | <a href="javascript:collapse1.slideup()">Close</a>';
                     require('mymod/smiley.php');
                     loadSmileys();
                  echo '
                     <div id="smiley_pic">';
                        printSmileys('shout_form','shout_text');
                  echo '
                     </div>
                     <script type="text/javascript">
                     //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
                     var collapse1=new animatedcollapse("smiley_pic", 1000, false)
                     </script>
                  </div>';

For putting the form up top instead of on the bottom, you will want to move this code in yshout/yshout.php
echo '<div id="shouts">';
echo readChat($chatFile, $logDir);
echo '</div>';

to right before
if($gzipCompression) ob_end_flush();
break;

case "shout":

That will output the shouts after the form. Then, you may wish to reverse the shout order: there's a link on the main mod page or first page of this thread for that.


Yes, it is a phpblock.  Thanks for the quick answers. I'll give this a try.

_Anthony_

Can anyone make it so it is in a better position like on NIBOGO's but for smf 2 beta 3.1?

[unplugged]

Like this?

That is in SMF 2 Beta 3.1.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Enders

Shouting videos? when someone posts up a video, u cant delete it nor watch it because it refreshes.

nneonneo

@sashafiero: I have no idea what's going on :-\ *Maybe* you could try installing the english-utf8 package and seeing if that makes a difference, but I really don't know.

@MothMan: yshout.php, near the bottom: there's a CSS block for modifying the history appearance.

@Enders: Hmm, that's a good point. I would suggest just posting a link to the video -- this is a low-tech way to make it work. To delete it, use the del link: if that doesn't work, then the video is probably using multiline code, which would break things :P
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Enders

Del link doesn't work at all. Is there a way to just restrict it only from the shoutbox?

sashafiero

As copied from my board:

[Today at 01:25:28 AM] del  ban Sasha Fiero: Hey, alright, I uploaded fresh language files, as nneonneo suggested, and that did fix the errors

[Today at 01:25:57 AM] del  ban Sasha Fiero: But the History and such links are still gone, and there's still that unusual login box down there

[Today at 01:26:21 AM] del  ban Sasha Fiero: And I think that has to do with the links, it's like it thinks I'm half a valid user.  My name should be red because I'm an admin, but it's not

[Today at 01:26:49 AM] del  ban Sasha Fiero: And the button to the right of the text box has no label. But we have PROGRESS

Thank you so much for the help you've provided thus far!
SMF 1.1.5 | nneonneo's Shoutbox 1.20

[unplugged]

I managed to get the collapsible shoutbox to work under SMF 1.1.4. I spent a few hours on it and it is now 5:00 in the morning here. I will try and post the index.template.php here soon so maybe someone can make use of the edits.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



KiLLuMiNaTi-7-

Does the shoutbox still work in the boardindex.template.php file? because i tryed but it comes up with

The shoutbox shows but when you try to shout a message it says

Write error (writeLine); aborted

nneonneo

@sashafiero: Check Modifications.english(-utf8).php. If either are empty, copy the following into them:
<?php
// Version: 1.1; Modifications

// ---- Begin modification - nneonneo's Shoutbox ----
$txt['yshout_shoutbox'] = 'Shout Box';
$txt['yshout_loading'] = '...loading shoutbox...';
$txt['yshout_rp_banned'] = "Sorry, you've been banned from the shoutbox.";
$txt['yshout_no_guests'] = 'Sorry, you must be logged in to use the shoutbox!';
$txt['yshout_ban_conf'] = 'Ban Confirmation';
$txt['yshout_select_mode'] = 'Select Ban Mode:';
$txt['yshout_rp'] = 'Reading and Posting';
$txt['yshout_p'] = 'Posting only';
$txt['yshout_error'] = 'ERROR: ';
$txt['yshout_no_user'] = 'User not found.';
$txt['yshout_del_success'] = 'Shout deleted.';
$txt['yshout_no_action'] = 'Nothing to do.';
$txt['yshout_history'] = 'History';
$txt['yshout_commands'] = 'Commands';
$txt['yshout_exthistory'] = 'ExtendedHistory';
$txt['yshout_hide'] = 'Hide';
$txt['yshout_show'] = 'Show';
$txt['yshout_admlinks'] = 'AdminLinks';
$txt['yshout_return'] = 'ReturnToShoutbox';
$txt['yshout_p_banned'] = 'You are banned from posting.';
$txt['yshout_banned'] = 'Banned';
$txt['yshout_shout_button'] = 'Shout!';
$txt['yshout_banlist_caption'] = 'Shout Box Bans (click to unban)';
$txt['yshout_ip_bans'] = 'IP Bans for ';
$txt['yshout_username_bans'] = 'Username Bans for ';
$txt['yshout_ban_type_error'] = 'use /banuser or /banip!';
$txt['yshout_ban_mode_error'] = 'Must have mode argument.';
$txt['yshout_imp_slash_error'] = 'Prefix shout with "/" (slash character)! See "/help impersonate" for details.';
$txt['yshout_imp_uname_error'] = 'No username given!';
$txt['yshout_imp_max4_error'] = 'Maximum 4 arguments!';
$txt['yshout_cmd_reference'] = 'Command Reference';
$txt['yshout_cmdlist'] = array(
'/help' => ' [command]: Help on a command, or all if no command is specified.',
'/return' => ': Go back to the Shout Box.',
'/pi' => ' [digits]: What is the value of pi to the nth digit?',
'/me' => ' &lt;message&gt;: Emotes the message (e.g. <font color="red"> * Nathaniel likes dogs</font>)');
$txt['yshout_cmdlistadmin'] = array(
'/clear' => ': Completely empty the Shout Box.',
'/help' => ' [command]: Help on a command, or all if no command is specified.',
'/return' => ': Go back to the Shout Box.',
'/banlist' => ': List all bans currently in place. Unban the users by clicking on their names.',
'/banuser' => ' &lt;mode&gt; &lt;username&gt;: Ban a user by name. You should use the user\'s real username, otherwise the ban can be evaded. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
'/banip' => ' &lt;mode&gt; &lt;IP&gt;: Ban a user by IP. Mode can be "u" to unban, "rp" for read and post bans, or "p" for a post ban.',
'/impersonate' => ' &lt;user&gt; [userlevel] [ip] [userid] /[shout text]: Impersonate a user. Shout text must be prefixed by a "/" or else it will fail.<blockquote>
&lt;user&gt;: Username to use<br />
[userlevel]: User Level to use. 0=normal, 1=mod, 2=admin<br />
[ip]: IP address to use, as 1.2.3.4<br />
[userid]: User ID from forum, to fix profile link</blockquote>'
,
'/lock' => ' &lt;message&gt;: Lock the shoutbox for maintenance with the specified message.',
'/unlock' => ': Release the shoutbox from maintenance.');
$txt['yshout_maintenance'] = 'Locked';
$txt['yshout_lock_arg_error'] = 'You need to specify a reason for maintenance!';
$txt['yshout_lock_changed'] = 'Changed maintenance reason to "%s".';
$txt['yshout_lock_success'] = 'Locked shoutbox for maintenance with reason "%s".';
$txt['yshout_unlock_already'] = 'Failed to unlock: shoutbox isn\'t locked!';
$txt['yshout_unlock_success'] = 'Successfully unlocked shoutbox.';
// ---- End modification - nneonneo's Shoutbox ----
?>

As for the login thing, I think that might just be an accident when you installed the shoutbox to the custom theme (note the login bar doesn't appear if you are a guest :P). So, just look in index.template.php for the login bar after the shoutbox, and move it to where it should be.

@UTM-MaKaVeLi: chmod yshout/chats and yshout/chats/home.txt to 755 or 777 and try again. The error would probably occur no matter where the shoutbox was installed.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!


nneonneo

Pretty easy, actually. Do the smiley guide as usual, but instead of step 4, change your phpblock to
echo '<div id="yshout"></div><div class="smalltext" style="padding-left:25px;"><a href="javascript:collapse1.slidedown()">Open Smiley</a> | <a href="javascript:collapse1.slideup()">Close</a>';
                     require('mymod/smiley.php');
                     loadSmileys();
                  echo '
                     <div id="smiley_pic">';
                        printSmileys('shout_form','shout_text');
                  echo '
                     </div>
                     <script type="text/javascript">
                     //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
                     var collapse1=new animatedcollapse("smiley_pic", 1000, false)
                     </script>
                  </div>';
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

MothMan

Quote@MothMan: yshout.php, near the bottom: there's a CSS block for modifying the history appearance.

Thank you. :)

Advertisement: