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

nneonneo

@F.L.A.M.E.R: For only showing on one board:
global $board;
if(!empty($board) && $board===5)
{
SHOUTBOX CODE
}


For showing on only the arcade:
if($context['current_action']=='arcade')
{
SHOUTBOX CODE
}


For not showing on the admin panel:
if(!in_array($context['current_action'],array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
{
SHOUTBOX CODE
}


@Ferretness: Yeah, edit yshout/settings.php and set $reverseShouts to true
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!

Sut

Where i cant find the head code? i have themes overview, maybe i cant send you my index.template.php in pm?

Adish - (F.L.A.M.E.R)

and where shall i paste or add in those codes ?

dangerboy

#3603
here it is nneonne can you position it same like the default theme

Sut

here is my index.template.php, nnneo please look them :)

nneonneo

@Sut: on the main mod page

@F.L.A.M.E.R: index.template.php, wrapping the existing shoutbox code

@dangerboy: as an attachment, please
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!

dangerboy

#3606
nneonneo yup already modified the first post.. i attached it already hope you can help me

Sut

nneonneo i watch the main mod page, and i paste this code
      // YSHOUT HERE - shoutbox code
      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>';
      // YSHOUT END - shoutbox code

in index.template.php and i have only

nneonneo

@Sut: According to the index.template.php you posted, you already have the shoutbox code elsewhere:

// YSHOUT HERE - shoutbox code
global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />';
echo '<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
echo '</div>';
}
elseif($context['user']['is_guest'])
echo $txt['yshout_no_guests'];
// YSHOUT END - shoutbox code


It needs to be removed if you want the shoutbox somewhere else.

@dangerboy: Add the shoutbox code after
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

and make sure to add the <head> code too.
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!

dangerboy

i still get error
Fatal error: main() [function.require]: Failed opening required '/Subs-Post.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/teknoy/public_html/poroms/yshout/yshout.php on line 193

nneonneo

In yshout/yshout.php: change
global $yshoutdir;
to
global $yshoutdir,$sourcedir;
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!

dangerboy

#3611
i could not find global $yshoutdir in yshout.php.
still get this error Fatal error: main() [function.require]: Failed opening required '/Subs-Post.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/teknoy/public_html/poroms/yshout/yshout.php on line 193

Nequil

#3612
Hi nneonneo!

can you help me?

SMF version: 1.1.5
nneonneo's Shoutbox: 1.21

1. I would like in my shoutbox showed 10 line of messages.

2. How i can delete nick button, and to level to the left side the bar of the message


3. How I can add a limit: in shoutbox can write members which they wrote 25 posts.

4. How I can add a limit for members (3 messages in shoutbox for usual members, [thats does not concern administrators])

uff, can you help me :)?

nneonneo

@dangerboy: OK, then just add
global $sourcedir;
before
require_once($sourcedir . '/Subs-Post.php');

@Nequil:
1) $maxLines in yshout/settings.php
2) In yshout/yshout.php: change
$inputForumName=' <input id="forum-name" name="forum_name" type="text" maxlength="'.$maxUsernameChars.'" ';
to
$inputForumName=' <input id="forum-name" name="forum_name" type="text" style="display:none;" maxlength="'.$maxUsernameChars.'" ';
3) Add a postgroup for 25 posts, then give it the "post in shoutbox" permission.
4) This I am not so sure about.
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!

dangerboy

#3614
i still get this error and half of my page disappeared
Parse error: syntax error, unexpected ',' in /home/teknoy/public_html/poroms/yshout/yshout.php on line 193

Nequil

#3615
Quote
@Nequil:
1) $maxLines in yshout/settings.php
2) In yshout/yshout.php: change
$inputForumName=' <input id="forum-name" name="forum_name" type="text" maxlength="'.$maxUsernameChars.'" ';
to
$inputForumName=' <input id="forum-name" name="forum_name" type="text" style="display:none;" maxlength="'.$maxUsernameChars.'" ';
3) Add a postgroup for 25 posts, then give it the "post in shoutbox" permission.
4) This I am not so sure about.

1. thanks :)

2.

how i can move the bar equally to the begin of text

3. thanks :)

4. I would like to members send only 3 lines of messages in shoutbox (spam security) (understand?)

nneonneo

@dangerboy: Post your modified yshout/yshout.php

@Nequil:
2. Edit CSS and delete margin-right: 5px; from #yshout #forum-name {
4. Possible, I guess. You will have to add something like
global $ip;
if(!isMod() && preg_match($ip, file_get_contents($chatPath))>3)
{
   echo "Sorry, you've already posted 3 messages...";
   return;
}

to writeLine().
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!

Nequil

Quote@Nequil:
2. Edit CSS and delete margin-right: 5px; from #yshout #forum-name {

doesnt work :o ( attach )

Quote4. Possible, I guess. You will have to add something like
global $ip;
if(!isMod() && preg_match($ip, file_get_contents($chatPath))>3)
{
   echo "Sorry, you've already posted 3 messages...";
   return;
}

to writeLine().

in which file?

Nequil

Quote@Nequil:
2. Edit CSS and delete margin-right: 5px; from #yshout #forum-name {

doesnt work :o ( attach )

Quote4. Possible, I guess. You will have to add something like
global $ip;
if(!isMod() && preg_match($ip, file_get_contents($chatPath))>3)
{
   echo "Sorry, you've already posted 3 messages...";
   return;
}

to writeLine().

which file?

dangerboy

my only problem now is that.. the shoutbox appears but it only stays on Loading shoutbox after it freezes

I've attached my error log below can you check it for me? thanks

Advertisement: