nneonneo's Shoutbox

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

Previous topic - Next topic

OmarM

Hello

I'm gettings this error:
yshout/yshout.php on line 798
File error (writeLine); aborted

What can i do to fix this?

Really thanks!

Grettings from OmarM

neotan


Quote
@neotan: It means to replace all four instances.

Thanks. Any ideas how to combine the smiley script with ameo's news fader script:

HI,

I wish to add the smiley bar to your news code (pongsak + ameo 's ideas)

<div id="yshout">',$txt['yshout_loading'],'

===========================================
<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>

- What's the right way to do this?

drinkingbuddies_ca

I've tried to read through as many posts as i can but i haven't found anything about changing the time/date layout... Can anyone post where the time() or date() function is? I just want it to display (8:30 PM)... Thanks for any help

the_shadow

it's all ok!!!!! thkx i'm newbie sorry

thnkx

nneonneo

@drinkingbuddies_ca: Answered one page ago: http://www.simplemachines.org/community/index.php?topic=137508.msg1584257#msg1584257

@Hades™: :P
$writeText.="<span$a_class>:</span></em> <span$a_class>$newText</span></p>\n";

@OmarM: chmod chats, chats/home.txt and chats/history.home.txt to 755 or similar.

@neotan: I don't think the news box supports full PHP, so it may not be doable (sorry)

@zookeeper: Have you tried visiting yshout/yshout.php in a web-browser?
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!

zookeeper

Attaching index.template.php

Visiting yshout.... in web browser?  Sorry don't follow you with that?

nneonneo

#2686
http://<forum.domain.com>/<forum>/yshout/yshout.php

Aside from the fact that you have multiple copies of the shoutbox, it seems OK. My guess is chmod permissions and/or missing files (sometimes happens for no good reason).

It's perfectly safe to remove the existing
// YSHOUT HERE
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

code (x2) since you've already added the shoutbox elsewhere.
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!

neotan

Quote from: nneonneo on June 20, 2008, 08:45:26 PM

@neotan: I don't think the news box supports full PHP, so it may not be doable (sorry)

Hi , I need my smiley so I decided to embed the shoutbox in the index.template.php - it gave some parsing errors when I added in the smiley code. I followed the instructions as per your smiley bar instructions:

I am just supposed to add "<div class="smalltext" ...... " after the  ['yshout_loading'] code snippet ,  right ?


// YSHOUT HERE
      echo '
                     <br /><b>Shout Box</b><br /><br />
                     <div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
      // YSHOUT END

<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>

nneonneo

// YSHOUT HERE
      echo '
                     <br /><b>Shout Box</b><br /><br />
                     <div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></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>';
      // YSHOUT END
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!

neotan

Quote from: nneonneo on June 20, 2008, 11:37:54 PM
// YSHOUT HERE
      echo '
                     <br /><b>Shout Box</b><br /><br />
                     <div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></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>';
      // YSHOUT END


Sweet !!  great mod and best support yet

neotan

Hi,

How can I change the color of the name (boxed in red) ? Thanks




nneonneo

#yshout #forum-name CSS
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!

neotan

Quote from: nneonneo on June 21, 2008, 12:00:04 AM
#yshout #forum-name CSS

Hmm.. strange ... it remains the same. I installed the scroller bar . Could that be the issue ?

nneonneo

Might be your browser. Some browsers (...IE...) ignore CSS for disabled elements, when they really shouldn't. Blame them :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!

zookeeper

Quote from: nneonneo on June 20, 2008, 11:10:52 PM
Aside from the fact that you have multiple copies of the shoutbox, it seems OK. My guess is chmod permissions and/or missing files (sometimes happens for no good reason).

It's perfectly safe to remove the existing
// YSHOUT HERE
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

code (x2) since you've already added the shoutbox elsewhere.

Removed the above twice and the page now shows no box with "shoutbox loading" but it does show a line that has Shoutbox words.

The code would now appear like the following, should there be more deleted?

// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }



      echo '            </span>';
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {


      echo '            </span>
                        <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>


Next: need advice on the following which I've not done.  Is this necessary to get the mod to work?  I've looked for these files and not found them.
http://custom.simplemachines.org/mods/index.php?action=parse

File Operations
Move the included directory "yshout" to "the root directory".
Move the included file "yshout.css" to "./Themes/default/css".
Move the included file "calendar.png" to "./Themes/default/images".
Move the included file "info.png" to "./Themes/default/images".
Move the included file "cog_delete.png" to "./Themes/default/images".
Move the included file "cog_add.png" to "./Themes/default/images".
Move the included file "smile.png" to "./Themes/default/images".
Move the included file "date.png" to "./Themes/default/images".



ameo

OK. Zookeper, in order your shoutbox to work you need to have "yshout" in the root directory.
That means it has to be one of folders into forum folder, nowhere else. Other things are inside that yshout folder
and need not to be moved anywhere else.

As I see you're trying to add shoutbox somewhere where it won't work. I'm not sure about position where you want it but best one would probably be here:

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];

      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo '&nbsp;>&nbsp;';
   }

   echo '</div>';
// YSHOUT HERE
      echo '
                     <br /><b>Shout Box</b><br /><br />
                     <div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
      // YSHOUT END
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

neotan

Quote from: nneonneo on June 21, 2008, 02:04:02 AM
Might be your browser. Some browsers (...IE...) ignore CSS for disabled elements, when they really shouldn't. Blame them :P.

Another issue I face :



a)When I click on the username , it's the correct URL http://goshopjapan.com/forum/index.php?action=profile;u=734 (correct)

b) However , when I visit a different part of site like the Arcade,
it becomes http://goshopjapan.com/forum/arcade/index.php?action=profile;u=1
- which is wrong.

Any ideas?



zookeeper

Thanks to the individuals that are trying to help by sending me messages.  I've completely deleted the forums.  Looked through all the file manager areas and restarted.  Made all the changes I could read about.  I see this 500 error and checked permissions and everything point to 755 so guess this was right.  I'm still checking all the message replys to why this isn't working and finally understood and found the below error. 

I'm still trying to understand the delete of both shoutbox I mentioned in previous message Reply #2705.  When I take them both out there isn't any shoutbox showing.

==========

yshout/yshout.php shows top of IE a 500 Internal Server Error

==========

The website when opened to forum page has only this on the page:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 241

234:   document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
235:
236:             current_header_ic = mode;
237:          }
238:       // ]]></script>
239:
240:   // script for shoutbox upshrink
241:   echo'<script language="JavaScript" type="text/javascript"><!-- // -->242:       // Create the shoutbox header object.
243:       var sbHeader = new smfToggle("upshrinkSB", ', empty($options['collapse_shoutbox']) ? 'false' : 'true', ');
244:       sbHeader.useCookie(', $context['user']['is_guest'] ? 1 : 0, ');
245:       sbHeader.setOptions("collapse_shoutbox", "', $context['session_id'], '");

Thanks again

nneonneo

@neotan: That would probably be search-engine friendly URLs at work, though I have to admit I haven't seen URLs like that before (is it a mod?)

@zookeeper: Remove the echo' from line 241. If your server (not forum) error logs say nothing about why yshout.php is making a 500 error, then I'm afraid I can't help you (though I plan on making 1.20 work in those conditions).
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!

zookeeper

Thanks again for replying

I've removed that before and it didn't help.  This is what happens:

// script for shoutbox upshrink

shows at the very top of the entire forum




      // ]]></script>

  // script for shoutbox upshrink
  <script language="JavaScript" type="text/javascript"><!-- // -->
      // Create the shoutbox header object.
      var sbHeader = new smfToggle("upshrinkSB", ', empty($options['collapse_shoutbox']) ? 'false' : 'true', ');
      sbHeader.useCookie(', $context['user']['is_guest'] ? 1 : 0, ');
      sbHeader.setOptions("collapse_shoutbox", "', $context['session_id'], '");
      sbHeader.addToggleImage("upshrinkSB", "/upshrink.gif", "/upshrink2.gif");
      sbHeader.addTogglePanel("upshrinkSBHeader");
      sbHeader.addTogglePanel("upshrinkSBHeader2");
   // </script>';

   echo '
</head>
<body>';

   echo '
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>

=========

Again if I take out both the sections there is no shout box at all.  If I take out the first but leave the second the shout box is there wish loading..


Advertisement: