News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

Nibogo

#2340
Quote from: nneonneo on May 18, 2008, 07:18:01 PM
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>';


look:

http://www.mundo-se.com/foro/index.php?action=forum

appear the smileys and i can close the smileys but the shoutbox not appear

nneonneo

You still have SunKing's upshrink system installed, but since TinyPortal has its own, it's causing some problems. Easy to fix -- just remove SunKing's upshrink code and it should work.
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!

Nibogo

Quote from: nneonneo on May 18, 2008, 07:59:41 PM
You still have SunKing's upshrink system installed, but since TinyPortal has its own, it's causing some problems. Easy to fix -- just remove SunKing's upshrink code and it should work.

i remove the sunking code but appear the same error:

http://www.mundo-se.com/foro/index.php?action=forum

[unplugged]

I didn't see the actual call to the shoutbox script in your index.
I think you should have something like this:

// YSHOUT HERE
global $boardurl;
echo '
<script src="',$boardurl,'/yshout/js/prototype.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/behaviour.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/domFunction.js" type="text/javascript"></script>
<script type="text/javascript">

var myfunc = new domFunction(function()
{
loadChat();
}, { "yshout":"id"});
var board_url = "'; $boardurlparsed = parse_url($boardurl); echo (isset($boardurlparsed['path'])?$boardurlparsed['path']:""), '";
</script>
<script src="',$boardurl,'/yshout/js/yshout.js?May022008" type="text/javascript"></script>
<script type="text/javascript">var shoutFile = "home.txt";</script>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">
  soundManager.url="',$boardurl,'/yshout/soundmanager2.swf";
  soundManager.debugMode = false;soundManager.consoleOnly = false;
  soundManager.onload = function()
    {
    soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
    }
</script>';
    // YSHOUT END


in the <head> section of your index.template.php (somewhere before the </head>).
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



nneonneo

Ah, I see the problem.
mymod/animatedcollapse.js">
needs a </script> after it.
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!

JRMBelgium

QuoteWarning: require(/mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/cache/data_b97f31ac399967546a83a7046dd5603a-SMF-modSettings.php) [function.require]: failed to open stream: No such file or directory in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/Load.php on line 2401

Fatal error: require() [function.require]: Failed opening required '/mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/cache/data_b97f31ac399967546a83a7046dd5603a-SMF-modSettings.php' (include_path='.:/usr/local/lib/php/') in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/Load.php on line 2401

This error shows up somethimes, it clears up on a page refresh. Any idea what is causing this error?

insanemime

I did a search of the thread but I did not find the answer to this.

I have been searching for the line of code to limit the shouts shown from 12 to 8. The only reference I have seen to 12 lines is:

// Set the maximum amount of lines to be displayed at a time
$max_lines = 12;


This is in the yshout.php. I have changed the value to 8 but I still get 12 lines. Any ideas?

nneonneo

@Jelle Mees: I don't know what's causing it. Looks like a caching setting of sorts (might be serverside).

@insanemime: Clear the shoutbox to make the change take effect.
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!

insanemime

wow..how simple was that...lol  :D

emonk

#2349
When a user put a image between img tags, the shout deforms.
What happen if users put more than one image, or if the users put a high resolution image?.

Can you make a function thath restricts the user of certain tags such as the [ img ] or [ youtube ] tags ?

ameo

#2350
that's interesting thinking emonk. function that restricts pictures and youtube would be useful.

you can also say it's forbidden to post big images and flash files in shoutbox, and ban everyone who does that.
this is of course, another way of dealing with things, but sometimes the best. rules must be obeyed, otherwise admin kicks a** [bans] people  :P
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

glxpa

Quote from: YodaOfDarkness on January 06, 2008, 03:39:41 AM
I've almost got the alternating colors working, but there's one thing stopping it from being done. The settings say to keep 12 lines,  but for some reason only 7.5 or 8 are being kept in the home.txt file, which means the first <p> tag is getting pushed into the history file. Any ideas on how to fix it?

EDIT: Fixed it by modifying the truncateChat function to use </p>\n instead of \n and changing anything that had to deal with that. I made the opening <p> encapsulate the entire new shout, instead of just the first part, so I think I'm ready to plug in the alternating code :)

EDIT2: It's finished :) I'm not sure if I can extract it from the rest of the code, seeing as I was theming it for my forum along the way... I also added a /clearall command that deletes every single shout in the history and the shoutbox.

Yoda, did you ever get this working?  Do you have a code snippet anywhere?

This functionality would be awesome...

Thanks

Riotblade

Anyone know how I can have the it re-focus on the text box again after refresh?

Thanks


_Anthony_

SunKing your code just gives me a parse error on line 220
If you want to look at my index.template here it is
http://uppit.com/4QRD1S

nneonneo

NIBOGO: This is the exact error I get.
smfToggle is not defined
http://www.mundo-se.com/foro/index.php
Line 55: var sbHeader = new smfToggle("upshrinkSB", false);


I'm also not seeing an actual shoutbox.
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!

[unplugged]

#2356
Quote from: MrMoney on May 19, 2008, 09:43:01 PM
SunKing your code just gives me a parse error on line 220
If you want to look at my index.template here it is
http://uppit.com/4QRD1S

look at the index and find :
echo '
// script for shoutbox upshrink
  echo'<script language=...


remove the first echo' before the // script for shoutbox...
and then add an echo' just before </head>
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



_Anthony_


Nibogo

Quote from: nneonneo on May 19, 2008, 09:57:17 PM
NIBOGO: This is the exact error I get.
smfToggle is not defined
http://www.mundo-se.com/foro/index.php
Line 55: var sbHeader = new smfToggle("upshrinkSB", false);


I'm also not seeing an actual shoutbox.

i hide the shoutbox ^^

ok i will try something

MothMan

Is there a way to alter the colour of the usernames of people in the shoutbox?

From what I can see in the yshout style info, the usernames are being coloured by the yshout 'a:link' style... which colours any links within the shoutbox the same (including the commands links, etc).

I'd like to be able to format the usernames seperately (as well as the command links for that matter).

Advertisement: