EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

New built in translations for six langauges! by EzPortal
March 26, 2024, 11:15:32 pm

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

Author Topic: Modifying standard shout box  (Read 117280 times)

0 Members and 1 Guest are viewing this topic.

Offline CrouchingPanther

  • Posts: 4
  • Karma: 0
Re: Modifying standard shout box
« Reply #30 on: March 06, 2010, 06:11:22 pm »
Thank you! such a quick response, I'll give that a try! :)

Offline CrouchingPanther

  • Posts: 4
  • Karma: 0
Re: Modifying standard shout box
« 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' => ':)', 'filename' => 'smiley.gif'),
            array('code' => ';)', 'filename' => 'wink.gif'),
            array('code' => ':D', 'filename' => 'cheesy.gif'),
            array('code' => ';D', 'filename' => 'grin.gif'),
            array('code' => '>:(', 'filename' => 'angry.gif'),
            array('code' => ':(', 'filename' => 'sad.gif'),
            array('code' => ':o', 'filename' => 'shocked.gif'),
            array('code' => '8)', 'filename' => 'cool.gif'),
            array('code' => '???', 'filename' => 'huh.gif'),
            array('code' => '::)', 'filename' => 'rolleyes.gif'),
            array('code' => ':P', 'filename' => 'tongue.gif'),
            array('code' => ':-[', 'filename' => 'embarrassed.gif'),
            array('code' => ':-X', 'filename' => 'lipsrsealed.gif'),
            array('code' => ':-\\', 'filename' => 'undecided.gif'),
            array('code' => ':-*', 'filename' => 'kiss.gif'),
            array('code' => ':\'(', 'filename' => 'cry.gif')
      ),
      
      );
      
      $settings['smileys_url'] = $modSettings['smileys_url'] . '/' . $user_info['smiley_set'];
   // Show each row of smileys ;).
      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!

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Modifying standard shout box
« Reply #32 on: March 07, 2010, 12:53:58 pm »
After
Code: [Select]
   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 />';
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline CrouchingPanther

  • Posts: 4
  • Karma: 0
Re: Modifying standard shout box
« Reply #33 on: March 07, 2010, 01:18:09 pm »
Thank you for your help, that works perfectly!   ;D

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« Reply #34 on: March 10, 2010, 10:04:52 am »
Dear  EzPortal

I hope you remember my previous request  ;D


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

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Modifying standard shout box
« 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.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« 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 ;)

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

Kind reagrds
Katrien

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« Reply #37 on: March 17, 2010, 04:23:34 am »
Dear  EzPortal

I hope you remember my previous request  ;D


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

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« 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

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1299
  • Karma: 67
Re: Modifying standard shout box
« Reply #39 on: March 17, 2010, 08:30:43 pm »
Still planned and in the works to do. Really complex to update.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« 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

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« 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

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« 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  :'(

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

Offline Vertigo

  • Posts: 7
  • Karma: 0
Re: Modifying standard shout box
« Reply #43 on: March 31, 2010, 08:44:49 pm »
After
Code: [Select]
   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 :(

If you can, put the complete code to add a line ...thanks!

Offline Katrien

  • Posts: 21
  • Karma: 2
  • Gender: Female
Re: Modifying standard shout box
« 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

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
15124 Views
Last post September 17, 2009, 06:00:23 am
by ressevil
12 Replies
16992 Views
Last post May 06, 2010, 02:20:52 am
by EzPortal
0 Replies
7040 Views
Last post November 07, 2010, 04:12:56 pm
by a5a4aa3a2a1
0 Replies
5700 Views
Last post December 08, 2010, 06:14:29 pm
by tazzman
2 Replies
6664 Views
Last post April 02, 2012, 02:02:37 pm
by Maxx

+-SMF Gallery

Quick Menu


Powered by EzPortal