+-
UserBox
Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Sponsored Links
+- Recent Posts
Re: collapse button by computel
September 08, 2010, 05:43:24 pm

Re: collapse button by EzPortal
September 08, 2010, 05:22:40 pm

collapse button by computel
September 08, 2010, 05:19:53 pm

Re: Facebook "Like" box is box? by Maxx
September 07, 2010, 01:36:11 pm

Re: Facebook "Like" box is box? by JonathanChapell
September 07, 2010, 12:55:26 pm

Re: ezPortal 0.4.1 Released by Maxx
September 07, 2010, 09:20:16 am

Re: ezPortal 0.4.1 Released by EzPortal
September 03, 2010, 04:52:56 pm

Re: ezPortal 0.4.1 Released by Ahwooga
September 03, 2010, 04:33:35 pm

Re: Greek translation - Ελληνική μετάφραση by EzPortal
September 03, 2010, 04:26:56 pm

Re: Google Analytics and other tracking scripts by EzPortal
September 03, 2010, 04:25:10 pm

Pages: 1 2 [3] 4
  Print  
Author Topic: Modifying standard shout box  (Read 20360 times)
0 Members and 2 Guests are viewing this topic.
CrouchingPanther
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #30 on: March 06, 2010, 06:11:22 pm »

Thank you! such a quick response, I'll give that a try! Smiley
Logged
CrouchingPanther
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #31 on: March 07, 2010, 04:30:22 am »

I'm not a coder so this is becoming quite difficult, I thought I might need to add
Quote
</br></br>
somewhere but I can't quite figure out where.

This is the shout code that I found:

Quote
function EzBlockShoutBoxBlock($paramters = array(), $numberofShouts = 10, $iframe = false)
{
   global $txt, $db_prefix, $ezpSettings, $scripturl, $context, $user_info, $settings, $modSettings;
   
   // Check if shoutbox is enabled
   if ($ezpSettings['ezp_shoutbox_enable'] == 0)
   {
      echo $txt['ezp_shoutbox_error_disabled'];
      return;
      
   }
   
   // Pass all the parematers
   foreach($paramters as $myparam)
   {
      if ($myparam['parameter_name'] == 'numberofShouts')
         $numberofShouts = (int) $myparam['data'];
   }
   
   $adminShoutBox = allowedTo('admin_forum');
   
   $useIframe = empty($ezpSettings['ezp_shoutbox_refreshseconds']) ? false : true;
   

   if ($context['browser']['is_ie6'] == true || $context['browser']['is_gecko'] == true || strpos($_SERVER['HTTP_USER_AGENT'], 'WebKit') !== false)
   {
      $iframe = false;
      $useIframe = false;
   }

   
   // Show latest shouts
   if ($iframe == false)
   {
   echo '<table style="width: 100%;table-layout: fixed;">
   <tr>
   <td>
   <div style="overflow: auto;">';
   }
   
   if ($useIframe == true && $iframe == false)
      echo '<iframe src="' . $scripturl . '?action=ezportal;sa=shoutframe;num=' . $numberofShouts   . '" frameborder="0" width="100%" height="100%">';
   
   if ($useIframe == true && $iframe == false)
   {
      
   }
   else
   {
   
      $dbresult = db_query("
         SELECT
            s.shout, s.date,  s.id_shout,  s.id_member, m.realName, mg.onlineColor, mg.ID_GROUP
         FROM {$db_prefix}ezp_shoutbox AS s
         LEFT JOIN {$db_prefix}members AS m ON (s.ID_MEMBER = m.ID_MEMBER) 
         LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(m.ID_GROUP = 0, m.ID_POST_GROUP, m.ID_GROUP))
         ORDER BY s.id_shout DESC LIMIT $numberofShouts", __FILE__, __LINE__);
      while ($row = mysql_fetch_assoc($dbresult))
      {
         // Censor the shout
         censorText($row['shout']);
         
         if ($ezpSettings['ezp_shoutbox_showdate'])
            echo timeformat($row['date']) . ' ';
   
         echo '<a href="',$scripturl,'?action=profile;u=',$row['id_member'],'" style="color: ' . $row['onlineColor'] . ';">',$row['realName'],'</a>';
         
         if (empty($ezpSettings['ezp_shoutbox_hidesays']))
            echo $txt['ezp_shoutbox_says'];
         else
            echo ": ";
         
         echo parse_bbc($row['shout']);
         
         if ($adminShoutBox && empty($ezpSettings['ezp_shoutbox_hidedelete']))
            echo ' <a href="',$scripturl,'?action=ezportal;sa=removeshout;shout=',$row['id_shout'],'" style="color: #FF0000">[X]</a>';
         
         echo '<br />';
      }
      mysql_free_result($dbresult);
      
      
   }
   
   if ($useIframe == true && $iframe == false)
   {
      echo '</iframe>';
      
   }
   if ($iframe == true)
   {
      echo '</div></body></html>';
      return;
   }   
   
   $_SESSION['shoutbox_url'] = $_SERVER['REQUEST_URI'];
   
      
   if ($ezpSettings['ezp_shoutbox_archivehistory'] == 1)
      echo '<span class="smalltext"><a href="',$scripturl,'?action=ezportal;sa=shouthistory">',$txt['ezp_txt_viewshouthistory'],'</a></span><br />';
   
   // Show the shoutbox form
   if (!$user_info['is_guest'])
   {
   echo '<hr />
      <form action="', $scripturl, '?action=ezportal;sa=addshout" id="ezpshoutform" method="post" accept-charset="', $context['character_set'], '">';
   
      if ($ezpSettings['ezp_shoutbox_showbbc'])
      {
         $context['bbc_tags2'] = array();
         $context['bbc_tags2'][] = array(
            'bold' => array('code' => 'b', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_bold']),
            'italicize' => array('code' => 'i', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_italic']),
            'underline' => array('code' => 'u', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_underline']),
            'strike' => array('code' => 's', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_strike']),
            array(),
            'img' => array('code' => 'img', 'before' => '', 'description' => $txt['ezp_bbc_img']),
            'url' => array('code' => 'url', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_link']),
            'move' => array('code' => 'move', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_move']),
         );
         $context['bbc_tags2'][] = array(
            
            'left' => array('code' => 'left', 'before' => '
', 'after' => '
', 'description' => $txt['ezp_bbc_left'] ),
            'center' => array('code' => 'center', 'before' => '
', 'after' => '
', 'description' => $txt['ezp_bbc_center']),
            'right' => array('code' => 'right', 'before' => '
', 'after' => '
', 'description' => $txt['ezp_bbc_right']),
   
            array(),
            'size' => array('code' => 'size', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_size']),
            'face' => array('code' => 'font', 'before' => '', 'after' => '', 'description' => $txt['ezp_bbc_face'] ),
            array(),
            'hr' => array('code' => 'hr', 'before' => '
', 'description' => $txt['ezp_bbc_hr'] ),
   
         );
         
         foreach ($context['bbc_tags2'] as $i => $row)
         {
            foreach ($row as $image => $tag)
            {
               // Is this tag disabled?
               if (!empty($tag['code']) && !empty($context['disabled_tags'][$tag['code']]))
                  continue;
   
               if (isset($tag['before']))
                  echo '<a href="javascript:' . (isset($tag['after']) ? 'surround' : 'replace') . 'Text(\'' . $tag['before'] . '\'' . (isset($tag['after']) ? ', \'' . $tag['after'] . '\'' : '') . ', document.forms.ezpshoutform.shout);"><img src="' . $settings['images_url'] . '/bbc/' . $image . '.gif" align="bottom" width="23" height="22" alt="' . $tag['description'] . '" border="0" /></a>';
            }
   
            if ($i != count($context['bbc_tags2']) - 1)
               echo '<br />';
         }
      }
   
      
   if ($ezpSettings['ezp_shoutbox_showsmilies'])
   {
      echo '<br />';
      $context['shout_smileys']  = array(
         'smileys' => array(
            array('code' => 'Smiley', 'filename' => 'smiley.gif'),
            array('code' => 'Wink', 'filename' => 'wink.gif'),
            array('code' => 'Cheesy', 'filename' => 'cheesy.gif'),
            array('code' => 'Grin', 'filename' => 'grin.gif'),
            array('code' => 'Angry', 'filename' => 'angry.gif'),
            array('code' => 'Sad', 'filename' => 'sad.gif'),
            array('code' => 'Shocked', 'filename' => 'shocked.gif'),
            array('code' => 'Cool', 'filename' => 'cool.gif'),
            array('code' => 'Huh', 'filename' => 'huh.gif'),
            array('code' => 'Roll Eyes', 'filename' => 'rolleyes.gif'),
            array('code' => 'Tongue', 'filename' => 'tongue.gif'),
            array('code' => 'Embarrassed', 'filename' => 'embarrassed.gif'),
            array('code' => 'Lips sealed', 'filename' => 'lipsrsealed.gif'),
            array('code' => 'Undecided\', 'filename' => 'undecided.gif'),
            array('code' => 'Kiss', 'filename' => 'kiss.gif'),
            array('code' => ':\'(', 'filename' => 'cry.gif')
      ),
      
      );
      
      $settings['smileys_url'] = $modSettings['smileys_url'] . '/' . $user_info['smiley_set'];
   // Show each row of smileys Wink.
      foreach ($context['shout_smileys'] as $smiley_row)
      {
         foreach (@$smiley_row as $smiley)
         {
            echo '
            <a href="javascript:replaceText(\' ', addslashes($smiley['code']), '\', document.forms.ezpshoutform.shout);"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="" title="" border="0" /></a>';
         }

      }
      
   }
      
   echo '         
         <textarea name="shout" id="shout" rows="3" cols="30" style="width: 98%"></textarea>
         <br />
         <input type="submit" value="', $txt['ezp_shoutbox_add_shout'], '" />
            
      </form>';
   }   
   
   echo '</div>
   </td>
   </tr>
   </table>';
   
   
}

Please can you let me know where to place the </br>. I'm not ever sure if I must be using /br.

Thank you!
Logged
EzPortal
Administrator
*****

Karma: 38
Offline Offline

Posts: 510


View Profile
« Reply #32 on: March 07, 2010, 12:53:58 pm »

After
Code:
   if ($adminShoutBox && empty($ezpSettings['ezp_shoutbox_hidedelete']))
            echo ' <a href="',$scripturl,'?action=ezportal;sa=removeshout;shout=',$row['id_shout'],'" style="color: #FF0000">[X]</a>';
         
         echo '<br />';
Logged
CrouchingPanther
Newbie
*

Karma: 0
Offline Offline

Posts: 4


View Profile
« Reply #33 on: March 07, 2010, 01:18:09 pm »

Thank you for your help, that works perfectly!   Grin
Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #34 on: March 10, 2010, 10:04:52 am »

Dear  EzPortal

I hope you remember my previous request  Grin


We are now testing on a test site: upgrading from smf 1.11.1 to smf 2.0 RC 2 which succeeded.

We encounter now the following problem:

we are using the theme Extreme6 By Fussilet (dark)
if we enable "refresh" the text area of the shout is blanc
if we disable "refresh" or we look at shouthistory the textarea is as it should be: dark

I hv looked into index.css but everything looks fine there (but i am a n00b lol).
should i look elswhere? can you help me?

f.y.i. on our live forum smf 1.11.1 everything looks fine

Thanks in advance
kind regards
Katrien
« Last Edit: March 10, 2010, 10:06:58 am by Katrien » Logged
EzPortal
Administrator
*****

Karma: 38
Offline Offline

Posts: 510


View Profile
« Reply #35 on: March 10, 2010, 10:14:51 am »

I am really debating what to do with the shoutbox.
I never really liked ajax but people like autorefresh feature.
So I would have to code something for it to work just I don't have enough experience with that yet.
Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #36 on: March 10, 2010, 11:42:12 am »

I am really debating what to do with the shoutbox.
I never really liked ajax but people like autorefresh feature.
So I would have to code something for it to work just I don't have enough experience with that [color=greenyet[/color].

So now you have a new challange Wink

I hope you can help us. we have tested a lot of portals, but your portal is really the best: Friendly in use, looks are really nice and a lot of features!

The shout is for our community very important and used a lot inclusive autorefresh. We are a non-commercial (just hobby) site with almost 9000 members.

Another problem is that we cant use another shout as we are using your Portal unclusive Portal Homepage..so we are depending on you.

You've done really well so far..thanks and compliments! So pls take this challange Cheesy

Kind reagrds
Katrien
Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #37 on: March 17, 2010, 04:23:34 am »

Dear  EzPortal

I hope you remember my previous request  Grin


We are now testing on a test site: upgrading from smf 1.11.1 to smf 2.0 RC 2 which succeeded.

We encounter now the following problem:

we are using the theme Extreme6 By Fussilet (dark)
if we enable "refresh" the text area of the shout is blanc
if we disable "refresh" or we look at shouthistory the textarea is as it should be: dark

I hv looked into index.css but everything looks fine there (but i am a n00b lol).
should i look elswhere? can you help me?

f.y.i. on our live forum smf 1.11.1 everything looks fine

Thanks in advance
kind regards
Katrien


Dear EzPortal we continued testing and now upgraded to SMF 2.0 RC3. Looks nice!

But still we encounter the same problem as above (autorefresh shout/colour text-area)

Could you pls advise us?

Also i have installed latest version of ezportal: 0.3.8. Unfortunately we get a lot of errors all referring to EzPortal which we had also with the previous version of SMF with yr version 0.3.8.
with your version 0.3.7 there are no problems..no errors..(except for shout tekst-erea/autorefresh)

again i like to point out that we are very happy with your portal....thanks! That is why we would like to fix the errors together with you.

Could you pls tell us what to do?

f.y.i. our live forum is running on smf 1.1.11. But due to incompatible theme we must upgrade to the latest SMF version asap in order to keep our looks. A new theme has been released with almost the same look as we have now...but this theme only is compatible with SMF versions 2.0 RC1 and higher. That is why we are testing now with the latest version of smf and we hope we can get your portal also perfect. But we need your help pls?

I hope to hear from you soon

Kind regards
Katrien
« Last Edit: March 17, 2010, 04:45:45 am by Katrien » Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #38 on: March 17, 2010, 10:50:49 am »

Well, I should have the EzPortal guide out by the end of the month, but like I have said, I make no promises because I am very busy.

Howdy

ehhh i am dutch so maybe I misunderstood you. In that case sorry. We dont need a guide but help with solving the problems as explained above.

Kind regards
Katrien
Logged
EzPortal
Administrator
*****

Karma: 38
Offline Offline

Posts: 510


View Profile
« Reply #39 on: March 17, 2010, 08:30:43 pm »

Still planned and in the works to do. Really complex to update.
Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #40 on: March 18, 2010, 02:43:36 am »

i understand EzPortal.

you have seen my comment concerning your latest version (0.3.8 ) of EzPortal?

we are now running  version 0.3.7 on our test site (SMF 2.0 RC3) with no problems except for the tekst area if we activate auto-refresh.

I hoop you can find the time as we would very mutch like to use your portal if the gold version of SMF will be released.
Yours is very easy in use, friendly, and with good looks for which we are thankfull...compliments!

For us it is very important to upgrade as soon as possible due to the errors we have right now in our live forum as explained above.

If you want to have a look on our test site you are welcome to do so. In that case pls sent me a pm and i will give you the url.

Thanks in advance
Kind regards
Katrien
Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #41 on: March 21, 2010, 06:36:47 am »

Dear EzPortal..is this an idea?

Integrade AJAX shout into EzPortal?

http://custom.simplemachines.org/mods/index.php?mod=1319

This one looks nice!

I just want think for a solution together with you. If you integrade this shout into your portal, your portal will be more perfect.

For example:

The admins need to instal this mod themselves via package manager. After this admins make a new php block via ezBlockManager with a script you provide us so that EzPortal will recognize this AJAX shout in default bu also in other themes??

Idea from a n00b but perhepts this is usefull for all of us i hope

I hope to hear from u soon.

Kind regards
Katrien
« Last Edit: March 21, 2010, 08:16:02 am by Katrien » Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #42 on: March 21, 2010, 02:04:25 pm »

Here a reply from me again...sorry.

I am testing on our testsite and perheps you can use my findings....that is why i inform you:

I have temporarely uninstalled EzPortal
Installed AJAX shout box (refresh intigrated, more like a chat)

Same problem with AJAX shout as you have with your shout in your portal:

The tekst area is white  Cry

Dont know where we have to look for the problem:

in the shoutboxes/portals themselves
Or in SMF forum itself (SMF 2.0 RC3)

because of this finding i have asked my question also to SMF themselves:
click here

I hope you can use this info.

If you want to have a look at our testforum, you are welcom ofcourse

Kind regards
Katrien
« Last Edit: March 21, 2010, 02:34:43 pm by Katrien » Logged
Vertigo
Newbie
*

Karma: 0
Offline Offline

Posts: 6


View Profile
« Reply #43 on: March 31, 2010, 08:44:49 pm »

After
Code:
   if ($adminShoutBox && empty($ezpSettings['ezp_shoutbox_hidedelete']))
            echo ' <a href="',$scripturl,'?action=ezportal;sa=removeshout;shout=',$row['id_shout'],'" style="color: #FF0000">[X]</a>';
         
         echo '<br />';
Sorry, but could you give me more details about this? I tried to put
Quote
</br></br>
like CrouchingPanther said, but dont work Sad

If you can, put the complete code to add a line ...thanks!
Logged
Katrien
Newbie
*

Karma: 2
Offline Offline

Gender: Female
Posts: 21



View Profile
« Reply #44 on: April 01, 2010, 06:05:03 am »

howdy EzPortal

Installed EzPortal latest version 0.3.9a on our test forum SMF 2.0 RC3. Unfortunately the tekst-area of the shout ( if auto-refresh is enabled), still is white as descriped in previous page here.

Also so we see this in settings:

Your Version: 0.3.9 Latest Version: 0.3.8 Your EzPortal version is not up to date!


Regards
Katrien
« Last Edit: April 01, 2010, 06:07:10 am by Katrien » Logged
Pages: 1 2 [3] 4
  Print  
 
Jump to:  

Powered by EzPortal