Dream Portal is a portal system designed to function with Simple Machines Forum (aka SMF).

It allows you to easily manage your site and webpages in an SMF environment. Place Modules on different actions and non-actions of your SMF forum using a simple drag-and-drop approach. Users can also create and save multiple layouts by name and assign pages to any layout(s). Bundled with Dream Pages and Dream Menu helps put the power and ease of customizing your SMF forum right at your fingertips.

Dream Portal allows you the ability to easily customize your SMF forum and site with many different possibilities helping to make customization truly what dreams are made of!

DreamPortal1.0.5.zip
File size: 221KB
Download count: 1662
DreamPortal1.0.5.tar.gz
File size: 176KB
Download count: 159
Download
Hello, Guest
Please login or register.

 
 
 

Did you miss your activation email?

Re: Menübutton lassen sich nicht löschen.
Last Poster: Tony_R in German on May 14, 2012, 10:18:03 AM


hat mir auch geholfen, vielen dank !

Re: Sologhost went mad. Check this fast!
Last Poster: ThoTh in Chit Chat on May 13, 2012, 03:07:02 PM


Congrats :D

Re: Think I have Everything I need
Last Poster: SoLoGHoST in Chit Chat on May 09, 2012, 01:36:37 PM



Your Recent Image Attachments...
Last Poster: SoLoGHoST in Team Blog on May 07, 2012, 04:13:46 AM


Well, just thought I'd let you all know of the ability to see your 15 most recent image attachments

Re: Inspire Romance
Last Poster: SoLoGHoST in Website Showcase on May 03, 2012, 12:34:22 PM


Looks great!! :)

Author Topic: Disable smileys in shoutbox.  (Read 1392 times)

0 Members and 1 Guest are viewing this topic.

9mmtylenol

  • Day Dreamer
  • **
  • Posts: 14
  • My cloud is the "custom module" to sleep on.
    • Singed Souls clan
Disable smileys in shoutbox.
« on: July 17, 2011, 04:57:16 AM »
Is there any way to disable smileys in the shout box, the ones I installed take over the default smileys from SMF and I would rather just leave my shout box unlinked from the preview pane for adding them and maybe keep the functionality.
#1
*
SoLoGHoST
  • Constant Sleeper
  • Posts: 2081
Re: Disable smileys in shoutbox. - July 17, 2011, 04:59:23 PM
Ok, so you want to keep smiley codes in there, but just unlink it from the bottom of the shoutbox where the smiley preview pane shows up.  There isn't a way to do this within the parameters for the smiley, but you can do this in the coding of Dream Portal, I haven't looked, but check out DreamModules.php and/or Subs-DreamModules.php to find out where the html for the smiley preview pane is outputted, and you should be able to figure it out from there.  I think it's in DreamModules.php within the shoutbox function for this.

#2
**
9mmtylenol
  • Day Dreamer
  • Posts: 14
Re: Disable smileys in shoutbox. - July 18, 2011, 12:22:17 AM
Well I did find the functions for the shoutbox concerning the smileys but I can't find a command that disables the drop down pane that the smileys load on, on neither of the sources to change.  :(

#3
**
9mmtylenol
  • Day Dreamer
  • Posts: 14
Re: Disable smileys in shoutbox. - July 18, 2011, 12:36:57 AM
I did it. Well kinda it disabled the rest of the other shout box options as well, but I think that I would disable them too, in DreamModules.php


Code: [Select]
         echo  '
         <form name="post_shoutbox', $unique_id, '" id="post_shoutbox', $unique_id, '" method="post" action="javascript:void(0)">
            <input name="dp_Reserved_Message" id="shout_input', $unique_id, '" maxlength="', $max_chars, '" type="text" value="" style="width: 100%;" />
            <br class="clear" /><div style="padding-bottom: 3px;"><>
            <input name="shout_submit" value="', $txt['shoutbox_shout'], '" class="button_submit" type="submit" />
               <img src="', $context['dpmod_image_url'], 'shoutbox/emoticon_smile.png" alt="" title="', $txt['shoutbox_emoticons'], '" style="cursor: pointer;" id="toggle_smileys_div', $unique_id, '" />
               <img src="', $context['dpmod_image_url'], 'shoutbox/font.png" alt="" title="', $txt['shoutbox_fonts'], '" style="cursor: pointer;" id="toggle_font_styles_div', $unique_id, '" />
               <img src="', $context['dpmod_image_url'], 'shoutbox/clock.png" alt="" title="', $txt['shoutbox_history'], '" style="cursor: pointer;" id="toggle_history_div', $unique_id, '" />
               <div class="shout_smileys" id="shout_smileys', $unique_id, '">';


Change it where the "$unique_id" for shout box is something else like I put "$idk"


Code: [Select]
         echo  '
         <form name="post_shoutbox', $unique_id, '" id="post_shoutbox', $unique_id, '" method="post" action="javascript:void(0)">
            <input name="dp_Reserved_Message" id="shout_input', $unique_id, '" maxlength="', $max_chars, '" type="text" value="" style="width: 100%;" />
            <br class="clear" /><div style="padding-bottom: 3px;"><>
            <input name="shout_submit" value="', $txt['shoutbox_shout'], '" class="button_submit" type="submit" />
               <img src="', $context['dpmod_image_url'], 'shoutbox/emoticon_smile.png" alt="" title="', $txt['shoutbox_emoticons'], '" style="cursor: pointer;" id="toggle_smileys_div', $idk, '" />
               <img src="', $context['dpmod_image_url'], 'shoutbox/font.png" alt="" title="', $txt['shoutbox_fonts'], '" style="cursor: pointer;" id="toggle_font_styles_div', $unique_id, '" />
               <img src="', $context['dpmod_image_url'], 'shoutbox/clock.png" alt="" title="', $txt['shoutbox_history'], '" style="cursor: pointer;" id="toggle_history_div', $unique_id, '" />
               <div class="shout_smileys" id="shout_smileys', $unique_id, '">';


Might make it where I can just lose the icons and just still run the functionalities, but yeah this topic is solved.
Last Edit: July 18, 2011, 12:56:10 AM by 9mmtylenol

#4
*
SoLoGHoST
  • Constant Sleeper
  • Posts: 2081
Re: Disable smileys in shoutbox. - July 18, 2011, 06:00:30 PM
Bro, just delete the relevant code here:
Code: [Select]
<img src="', $context['dpmod_image_url'], 'shoutbox/emoticon_smile.png" alt="" title="', $txt['shoutbox_emoticons'], '" style="cursor: pointer;" id="toggle_smileys_div', $unique_id, '" />

That should get rid of it from the shoutbox.

#5
**
9mmtylenol
  • Day Dreamer
  • Posts: 14
Re: Disable smileys in shoutbox. - July 19, 2011, 11:03:41 AM
Well, I don't code that's my problem, Lol. Anyway thanks, I appreciate the fix.


Also I got rid of the rest of the options in the shout box as well, seems a whole lot cleaner in my opinion. In the next update you might want to think of adding that option in the next probable package update of DP. :D
Last Edit: July 19, 2011, 11:10:10 AM by 9mmtylenol


 

SHOUTBOX NOT FOR SUPPORT!

 Forum Staff