News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

Maltray

yeah! 1.1.5 compatibility, i will try it

ty!

RobXduffy

Anyway to to hide the shoutbox from a certain membergroup?

Slug1

Hello, I loaded up the Shoutbox for the SMF v1.1.5 today and attempted to follow the instructions to correct the box saying just, "Loading Shoutbox". I failed to get it to work. I do have alterations to my index.template.php file so I don't know if this was the cause.

Anyway, in the process to uninstall it I got the red Warning but let it uninstall anyway. Well that failed also and I have a permanent shoutbox.

So where do I look to get this uninstalled 100%?
Slug1--out

~My blessings are as many as the miles I marched all these years~

jossanaijr

Quote from: Slug1 on May 05, 2008, 02:42:04 PM
Hello, I loaded up the Shoutbox for the SMF v1.1.5 today and attempted to follow the instructions to correct the box saying just, "Loading Shoutbox". I failed to get it to work. I do have alterations to my index.template.php file so I don't know if this was the cause.

Anyway, in the process to uninstall it I got the red Warning but let it uninstall anyway. Well that failed also and I have a permanent shoutbox.

So where do I look to get this uninstalled 100%?
Yes uninstall is not working.
You will have to manually edit your index.template.php and remove the 2 script blocks that start and finish with /yshout
Also I notice that the directory yshout was not removed so I did it manually.

ALEJO

Quote from: nneonneo on May 05, 2008, 12:47:34 AM
@ALEJO: How did you ban him? Did you use the link provided, or did you ban him by display name? It's possible to evade a display name ban, but not a username ban.
i banned him on the shoutbox with the button at the left of the name, and i banned him from the froum too...
solo el mas paranoico sobrevive

Cobra97

Quote from: Slug1 on May 05, 2008, 02:42:04 PM
Hello, I loaded up the Shoutbox for the SMF v1.1.5 today and attempted to follow the instructions to correct the box saying just, "Loading Shoutbox". I failed to get it to work. I do have alterations to my index.template.php file so I don't know if this was the cause.

Anyway, in the process to uninstall it I got the red Warning but let it uninstall anyway. Well that failed also and I have a permanent shoutbox.

So where do I look to get this uninstalled 100%?

I had the same problem, It all installed ok but would not work..........and uninstall gives a  Parser error.  I just uploaded a backup of my index.template.php and deleted the yshout manually.

Slug1

OK, fixed it now. Thanks allot!
Slug1--out

~My blessings are as many as the miles I marched all these years~

nneonneo

@edi67: font-size in yshout-style.css or index.template.php

@Slug1, jossanaijr, Cobra97: I included a broken package-info.xml file. That's now been fixed; thanks for noticing it!

@RobXduffy: One way: after
if (count(array_intersect($moderatorGroups, $membergroups)) > 0)
$user['is_mod']=true;

in yshout/yshout.php, add
if (count(array_intersect(array(<membergroup IDs not allowed to access>), $membergroups)) > 0)
die('Sorry, you can't access the shoutbox.');

This has the disadvantage that the shoutbox is still visible, but disabled. To completely hide it, you would have to edit index.template.php and add code like this:
if(loadMemberData(Array($context['user']['id']),false,'profile')!==false)
{
global $user_profile;
$userData=$user_profile[$context['user']['id']];
$membergroups=$userData['additionalGroups']; // use additional_groups for SMF2
$membergroups=explode(',', $membergroups);
$membergroups[]=$userData['ID_GROUP']; // use id_group for SMF2
$membergroups[]=$userData['ID_POSTGROUP']; // use id_post_group for SMF2
if (count(array_intersect(array(<membergroup IDs not allowed to access>), $membergroups)) == 0)
echo '
<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />
<div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></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!

Nibogo

#2188
In my forum i can see the shoutbox but when i make a click in "History" nothing happend what i can do?

and

i want to add the scroll but when i open: yshout-style.css and put the:

#yshout #shouts {
         overflow: auto;
                        width: 165px;       /* the width you want to display */
         height: 200px;     /* the height you want to display */
}

dindt work appear the same thing



william_04_x

i don't have any text in the "submit/shout" button....nor is there anything above the box (History, Commands, Extended History, etc.), as shown in the screen shot in the first post of this thread...

am i still missing something?

nneonneo

@william_04_x: Copy Modifications.english.php to Modifications.<yourlanguage>.php.

@NIBOGO: It's yshout-style.css *or* index.template.php for a custom theme.
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

#2191
Hello! I want these features if possible.
-Add a bbc code on top.
-Seperate the panel (history, commands, extended history, so on..) from messages using hr. Also display it neater like history | commands | so on..|

-How do you show more shouts (ex: last 20 using scroll instead of last 10) without going to the full history.

Niagra

Quote from: nneonneo on March 21, 2008, 12:28:36 PM
@Niagra: The member map is using onload events to position the pins. The shoutbox, however, loads after the page does, so the pins are placed before the shoutbox is completely setup.
The easiest thing to do is simply to disable the shoutbox on that page.
In yshout/js/yshout.js, under
function loadChat() {
if ($("yshout").style.display=="none") return;

add
if(document.location.href.indexOf("action=mm")!=-1) {$("yshout").style.display="none"; return;}
and the shoutbox will simply not load on that page.

For the second problem, presumably TinyPortal isn't even active on the other pages -- have you put the shoutbox in TP and in index.template.php? If so, then it is quite easy to make this change -- you just edit index.template.php, set a small table tag with two columns, putting the shoutbox in the left and whatever you want in the right.
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="50%">!!SHOUTBOXCODE!!</td>
<td>
!!OTHERTHING!!
</td>
</tr>
</table>


@Mystiquo: why did you need to use onstop?


Hi there...  well  i  tried  this   in  my index template  and  its  giving a parse error  on the  line that says width 100%  padding  and  border stuff  at  the  top of this code.  anyway  here is  what change I  made    Let  me  know  what th problems  are  ok?


<table width="100%" cellpadding="0" cellspacing="0" border="none">
<tr>
<td width="30%"><img src="http://www.frogn.com/Photos/fansign.jpg" /></td>
<td>
//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?Feb242008" type="text/javascript"></script>
   <script type="text/javascript">var shoutFile = "home.txt";</script>
   <style type="text/css">
      #yshout {
         font-size: 10px;
      }
      #yshout p {
         margin: 0 0 0; /* Top Bottom Linespacing */
      }
      .shout-invalid {
         background: #FFFDD1;
      }
      #yshout fieldset {
         border: none;
      }
      #yshout em {
         font-style: normal;
      }
      #yshout p {
         line-height: 1.5;
         margin-top: 0;
      }
      #yshout {
         overflow: hidden;
      }
      #yshout .shout-timestamp {
         font-weight: normal;
         color: #ccc;
      }
      #yshout .adminlink {
         font-size: 6pt;
         color: #afffe9;
      }
      #forum-name, #shout-text, #shout-button {
         font-size: 10px;
         margin: 0;
         padding: 0;
      }
      #yshout #forum-name {
         color: #000000;
         width: 70px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         color: #fff;
         width: 310px;
         margin-right: 5px;
      }
      #yshout #shout-button {
         width: 55px;
      }
   </style>';
    //YSHOUT END
</td>
</tr>
</table>

Thanks  by the way  ..

master2oo8

Hi, i installed the SB and its a really nice mod, but at me it makes often errors..., sometimes comes:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/forum/host1/board/Sources/Subs.php on line 321

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/forum/host1/board/Sources/Errors.php on line 123

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/forum/host1/board/Sources/Errors.php on line 124


and after refresh comes something with "SMF could not connect to database....".

How can i fix it? thanks for your help

RobXduffy

Quote from: nneonneo on May 05, 2008, 08:02:32 PM


@RobXduffy: One way: after
if (count(array_intersect($moderatorGroups, $membergroups)) > 0)
$user['is_mod']=true;

in yshout/yshout.php, add
if (count(array_intersect(array(<membergroup IDs not allowed to access>), $membergroups)) > 0)
die('Sorry, you can't access the shoutbox.');

This has the disadvantage that the shoutbox is still visible, but disabled. To completely hide it, you would have to edit index.template.php and add code like this:
if(loadMemberData(Array($context['user']['id']),false,'profile')!==false)
{
global $user_profile;
$userData=$user_profile[$context['user']['id']];
$membergroups=$userData['additionalGroups']; // use additional_groups for SMF2
$membergroups=explode(',', $membergroups);
$membergroups[]=$userData['ID_GROUP']; // use id_group for SMF2
$membergroups[]=$userData['ID_POSTGROUP']; // use id_post_group for SMF2
if (count(array_intersect(array(<membergroup IDs not allowed to access>), $membergroups)) == 0)
echo '
<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />
<div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
}



I'm not having any luck with this.

I got the following error in the shoutbox:

Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/content/r/o/b/robxduffy/html/forum/yshout/yshout.php on line 234

Can i  email you my index.template.php  and you can change it up so membergroup 4 sees nothing?

Do you take donations? I'd be willing to do a paypal donation or something of the sort for your time.




kwilyan

Hi nneonneo,
I just discovered something dangereous.
In your script, there are some security risk.

In your shoutbox's History button, there some ways to execute very malicious code.

./yshout/yshout.php?file=home.txt&history

I can't imagine if someone change the 'home.txt' file with some very dangereous php script.

Thanks for your reply.
Indonesian Railfans | www.gm-marka.web.id [nofollow]

edi67

Quote from: nneonneo on May 05, 2008, 08:02:32 PM
@edi67: font-size in yshout-style.css or index.template.php


i change this data but nothing appear everything remain the same :(

#yshout {
   font-size: 16px;
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

denio

Quote from: nneonneo on February 25, 2008, 06:01:59 PM
Ah! Not surprisingly, the problems are related.

Thanks for finding this. The bug has been traced to the prototype.js library. I will have to do some trickery to get rid of the library (newer versions still have this bug).

In Firefox, the additional functions added by the library are misinterpreted as array elements, causing FF to add tons of extra cells to the stat row.

In IE, the additional functions confuse the JS system which promptly throws an error.

Either way, the library has to go (it's part of the base JS core). It may take a while for me to recode the necessary bits, so bear with me here for a short while. It should not be long before I can fix it, but I cannot do that today for I have a midterm to write.

Thanks for finding & reporting it.

Hi.

Do you have any idea solution to a problem?

master2oo8

Quote from: master2oo8 on May 06, 2008, 08:00:46 AM
Hi, i installed the SB and its a really nice mod, but at me it makes often errors..., sometimes comes:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/forum/host1/board/Sources/Subs.php on line 321

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/forum/host1/board/Sources/Errors.php on line 123

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/forum/host1/board/Sources/Errors.php on line 124


and after refresh comes something with "SMF could not connect to database....".

How can i fix it? thanks for your help
somebody here who can help me with this problem? :)

Nibogo

Quote from: nneonneo on May 06, 2008, 12:49:22 AM
@william_04_x: Copy Modifications.english.php to Modifications.<yourlanguage>.php.

@NIBOGO: It's yshout-style.css *or* index.template.php for a custom  theme.

i use the default theme :s

Thanks

Advertisement: