nneonneo's Shoutbox

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

Previous topic - Next topic

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

Quote from: assam_siddibapa on July 31, 2008, 12:31:40 PM
Quote from: optimushunk on July 31, 2008, 12:14:17 PM
ow srry, i missed one code so had some problem... thanks for this.


Hey optimshunk can u say me what did u do ???


Yes sure.

In your theme index.template.php where you have installed the shoutbox

Find:-

global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<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'];


Add before:-
echo '<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
   <table border="0" width="100%" cellspacing="1" cellpadding="4" class="gridlineColor">
      <tr>
         <td class="titlebg">Shoutbox</td>
      </tr>
      <tr>
         <td class="windowbg">';


Add after the code which i asked you to find:-
echo '</td></tr></table></div>';

CrazyHorse80

Quote from: nneonneo on July 31, 2008, 10:57:21 AM
@CrazyHorse80: For the first problem, I don't know what the issue might be. Does the upshrink work for the Info center and other parts? It uses basically the same code. If you can't figure it out, post a forum URL and I'll come take a look.
Sound should be disabled by default (they're only enabled if a specific cookie is set).
For the smileys, you should make sure that animatedcollapse.js is being included in the <head> section of the code.

Nevermind... I had to remove this 'cause it was taking all my and my visitors CPU time... Everything was going slow, so I took another one...
Thank for your time.
Bye,
PS

Zwerko

Quote from: SunKing on July 23, 2008, 09:42:15 PM
@trekkie and @Zwerko

attach your index.template.php and I will see if I can fix them for you.   :D

(Zwerko, obviously, it needs to be the index.template.php of your Sunset theme)

ok, here it is. tnx

nneonneo

@Nequil: In yshout/yshout.php, change
writeLine("<p class=\"shout\">$timestamp&nbsp;$adminlinks$text</p>\n",$chatPath);
to
writeLine("<p class=\"shout\">$adminlinks&nbsp;$timestamp&nbsp;$text</p>\n",$chatPath);

For history/exthistory style, see history() function in yshout/yshout.php; the line "font-size: 10px;" should be changed.

@Threepwud: Your theme seems to be missing the CSS styling:
  <style type="text/css">
      #yshout {
         font-size: 10px;
         overflow: hidden;
      }
      #yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
      }
      #yshout #shouts { /* main shouts area */
         color: #000000;
      }
      #yshout .shout { /* one shout */
         margin: 0 0 0; /* Top Bottom Linespacing */
         line-height: 1;
      }
      #yshout .shout-timestamp {
         font-style: normal;
         font-weight: normal;
         color: #000000;
      }
      #yshout .shout-adminlinks { /* del and ban buttons */
         font-size: 6pt;
         color: #141414;
      }
      #yshout #shout-form {
         margin: 0;
         padding: 0;
      }
      #yshout #shout-form fieldset {
         border: none;
      }
      #yshout #forum-name {
         color: #666666;
         width: 70px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         color: #000000;
         width: 310px;
         margin-right: 5px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>

Put that in the shoutbox <head> code section, and the spacing issues should be resolved.
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!

Threepwud

Hi mate - thanks for this.

Should I enter it into the index.template.php file? I have checked babylon's css folder and the yshout.css file is in there, containing:
/*SHOUTBOX*/

/* Default theme style. Modify to your taste. */
#yshout {
   font-size: 10px;
   font-style: normal;
   font-family: arial, helvetica, verdana, san-serif;
}
#yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
}
#yshout #shouts {
   border: 1px solid #777777;
   padding: 5px;
}
#yshout .shout { /* one shout */
   margin: 0 0 0; /* Top Bottom Linespacing */
   line-height: 1;
   margin-top: 0;
}
#yshout hr { /* shout divider */
   color: #cccccc;
   height: 1px;
   border: 0;
   background-color:#cccccc;
}
#yshout .shout-timestamp {
   font-weight: normal;
   font-style: normal;
   color: #bbbbbb;
}
#yshout .shout-adminlinks { /* del and ban buttons */
   font-size: 6pt;
   color: #141414;
}
#yshout #shout-form {
}
#yshout #shout-form fieldset {
   border: none;
}
#forum-name, #shout-text, #shout-button {
   font-size: 9px;
   margin: 0;
   padding: 0;
}
#yshout #forum-name {
   color: #666666;
   width: 70px;
   margin-right: 5px;
}
#yshout #shout-text {
   color: #000000;
   width: 310px;
   margin-right: 5px;
}
#yshout #shout-button {
   width: 55px;
}
#yshout .shout-invalid { /* invalid shout (shout textbox) */
   background: #FFFDD1;
}

ousu

#3205
Hi friend's
I uninstalled  SMF Shoutbox 1.16b.

Due to some reasons i would like to switch my shoutbox to neonneo.

Bu when i am trying to install neonneo, it says that please uninstall previous version.

I uninstalled and deleted  the SMF Shoutbox 1.16b.
even after deleting and with out installing neonneo, I am able to use this SMF Shoutbox 1.16b.

How can i uninstall this SMF Shoutbox 1.16b. and install neonneo,????

nneonneo

@Threepwud: OK, so if you have the yshout.css, you can probably just make a link in index.template.php, which looks like this:
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/yshout.css?July022008" />

@ousu: That's very strange, since my shoutbox has nothing to do with SMF SB (in fact, it shouldn't even be recognized as the same). There's a file called "installed.list" in Packages folder. If you can't see any shoutboxes in that list, post the file and I'll take a look.
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!

Threepwud

Thanks again for your reply, mate.

I have added your line to my index.template.php but nothing different seems to happen. Is there any particular place I should put it?

I have a very limited knowledge of css and html but can try.
My site looks like this:



ousu

#3208
Here is the installed list:


this is my site:
www.studentsmasti.net

[unplugged]

Quote from: Zwerko on July 31, 2008, 03:32:14 PM
ok, here it is. tnx

You need to install the shoutbox first (don't worry about the "test failed" for the index.template.php) then I will move it for you to where you want. :D
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



nneonneo

@Threepwud: Yes, you should put that line before
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/css/print.css

@ousu:
nneonneo's AJAX ShoutBox|^|SB_1.09.tgz|^|nneonneo:yshoutforsmf|^|1.12
So, it does seem that the shoutbox is installed. It might be hard to remove (since 1.09-1.12 doesn't uninstall on 1.1.5), so use this page as a guide to removing it. When that's done, edit the installed.list file (make a backup first!) and remove that line.
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!

ccbtimewiz

nneonneo, I have a couple suggestions for your mod.

Include options of where to place the shoutbox. Either:

A.) On the top of the forums.

B.) As a category.

C.) In the Info Center

D.) On a new page with a tab linking to it.

Just some suggestions to reduce the amount of questions. :)

Threepwud

nneonneo, my thanks to you. 5 *****

ousu

#3213
I uninstalled the previos one and installed this ajax nneonneo AdvSB_1.20.zip manually.
as shown in this below link

http://custom.simplemachines.org/mods/index.php?action=parse;mod=585;attach=60060;smf_version=1.1.5

but i am  able to see the shout box but not able to see the typing box(where we shout)

it just looks like

',$txt['yshout_shoutbox'],'

',$txt['yshout_loading'],'
and never it is loding.

and same with all the members

attached all edited files

And in the Modifications.english_british.php is an empty file in the default theme folder.


please help me :( :( :(

nneonneo

#3214
If you uninstalled the previous version, why did you manually install AdvSB_1.20?

BTW: All your modifications ended up on a single line, the index.template.php you posted isn't what it should be (did you upload the wrong file?) and the index.php looks like index.template.php with index.php stacked on the end or something :-\

Your installed.list indicates that my shoutbox is no longer installed, so Package Manager installation, which is probably easier, will work. You will have to undo the previous edits, and make sure that the shoutbox code, between // YSHOUT HERE and // YSHOUT END, is completely removed from index.template.php (I can still see the old code there, so it has not been completely removed)
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!

assam_siddibapa

Quote from: optimushunk on July 31, 2008, 02:29:37 PM
Quote from: assam_siddibapa on July 31, 2008, 12:31:40 PM
Quote from: optimushunk on July 31, 2008, 12:14:17 PM
ow srry, i missed one code so had some problem... thanks for this.



I dont find the code u are asking me to search for .... and i didnt add any code in the index .. as i want the shout box in the catogary...

Hey optimshunk can u say me what did u do ???


Yes sure.

In your theme index.template.php where you have installed the shoutbox

Find:-

global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<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'];


Add before:-
echo '<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
   <table border="0" width="100%" cellspacing="1" cellpadding="4" class="gridlineColor">
      <tr>
         <td class="titlebg">Shoutbox</td>
      </tr>
      <tr>
         <td class="windowbg">';


Add after the code which i asked you to find:-
echo '</td></tr></table></div>';


nneonneo

Err, do you have a question?
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!

Old Lynx

Hi nneonneo :)

When I type { /clear } in the shoutbox, all text is cleared, but I also want this command to do another thing, I want it to automatically write " Welcome to My Forum " in the shoutbox.

Can you please tell me how I can do this

Thank You nneonneo :)

nneonneo

http://www.simplemachines.org/community/index.php?topic=137508.msg1624572;topicseen#msg1624572 is an example. You probably want
makeShout('Welcome to My Forum');
in place of
processUserCommand('/me has just cleared the 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!

Old Lynx

#3219
Thank You .. it worked :)

Thank you VERY MUCH :)

Advertisement: