News:

Join the Facebook Fan Page.

Main Menu

Search results for: How to add buttons

Search order
#1
Theme Site Themes / Repulse
March 01, 2023, 02:33:27 PM by Diego Andrés
......  to the theme    Free & Premium Themes for SMF    ............  Networks Logo URL Forum Width Separate sticky topics Avatars Boards Topics Online Users Recent  ............  Memberlist  Menu Customization Disable Menu Icons Add Log out, Log in  ............  Sign up buttons Remove Specific Menu  Community Button for  ............  grab the latest release of the package and go to: Admin > Configuration > Themes and Layout >  ............  documentation about the process in Installation - How do I install a theme. 🌐 Localization  ............  are all based off the Theme Customs strings, and you can contribute directly on  ......
#2
Theme Site Themes / NameX
August 05, 2022, 11:39:45 PM by Diego Andrés
......  to the theme    Free & Premium Themes for SMF    ............  Networks Logo URL Forum Width Separate sticky topics Avatars Boards Topics Online Users Recent  ............  Memberlist  Menu Customization Disable Menu Icons Add Log out, Log in  ............  Sign up buttons Remove Specific Menu  Community Button for  ............  grab the latest release of the package and go to: Admin > Configuration > Themes and Layout >  ............  documentation about the process in Installation - How do I install a theme. 🌐 Localization  ............  are all based off the Theme Customs strings, and you can contribute directly on  ......
#3
Tips and Tricks / Tips and tricks index
August 04, 2018, 07:57:02 PM by Gwenwyfar
......  is a list of all tips and tricks dating back to 2012. Those that were made solely for SMF 1.x are  ............  spot any that is, report this post for a moderator to remove).  The old index can be found here.    ............  get spammers in my forum Anti-spam: Remove colon added to end of Verification Question Autosuggest:  ............  AutoSuggest to Search for 'By user' field Avatar:  ............  editing templates)  Banner: Full width banner - automatically scales to any screen size Bans: Allow  ............  to search for banned members (SMF 2.0.4) Bans:  ............  Problems With Banned Members?  Bans: How to ban users properly from .htaccess BBC: Made  ............ : Highlight Any Text In Your Posts Using a BBC Button BBC: Simple trick to change the background color  ............  mods Boardindex: Limit Recent Posts on BoardIndex to certain boards Boards: A Neat Way To Enhance a  ............  background per board, with only 1 theme Boards: Show board icon as "on" to guests Chatbox: Create  ............  rooms for your SMF using SimplePortal Chatbox: how to COMPLETELY integrate FlashChat into SMF so you  ............  a cool CHAT Chatbox: Integrate Envolve Chat to your Forum Chatbox: How to Add Xat into SMF Clock: ............  Live clock in header Cookies: How to add UK Cookie Consent to SMF  Database: Share  ............  database for 2 (or more) different forums Disqus: How to add Disqus support to SMF Dropbox:  ............  get DropBox images to show using Share link  Emails: Send Email with  ............ : Setting up a gmail account on SMF Emojis: Parser to change Emojis for images in posts for PC users    ............  for malformed activation links Favicon: Add a favicon (bookmark/favorite icon) to your forum  ............  the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds Footer: Auto Update The Year In  ............ -Awesome Icons With Simple Machines Graphics: Slim Top Progress Bar Using NProgress.js in SMF Graphics:  ............  (fix for 2.0.x bug) Graphics: "NEW" post icons to the left Graphics: Auto resizing of images in  ............  window  Karma: Change the Applaud/Smite set up To Thanks  Karma: Increase Post Count With Karma  ............ : Removing extra line breaks from messages  Links: Add "nofollow" for external links Logo: Logo with  ............  to (any) homepage  Menu: Displaying a Statically  ............  Nav Bar  Menu: Advanced sidebar menus Menu: Add open reports to the menu Menu: Center Nav Menu  ............  (1.x and 2.x) Menu: Moving Menu To Top Using CSS for 2.0 Menu: Additional Dropdown  ............  Theme 2.0 RC3 Menu: Lazy Admin Menu Membergroups: HowTo activate team badges Membergroups: Group Images  ............  of Names Moderation: How to enable moderation for first 1/2/3 etc  Modify  ............  for messages in topic search results Mobile: Responsive Topic - Q&A   ............  Multiple Accounts, Same Email  Permissions: Show an error when a guest tries to view a topic  ............ : Hiding Custom Profile Fields from guests in topic view  ............  Yourself Permissions: Allowing guests to see all Boards but not entering Permissions: No  ............  limit for admins Permissions: Redirect guests to the login page when trying to view a topic PDF:  ............  PDF in Posts Posts: Option to post Anonymously on topics Post images: Auto-show  ............  Print page: Floating 'Print this page' button in "printpage" action Profile fields: Skype  ............  Profile fields: Custom Profile Field - only owner can see, only admin  ............  edit Profile fields: Mood Icons using Custom Profile Field Profile fields: Group permissions  ............  modify CPF's set to "only admins can edit" Proxy: Proxy Images  ............ .php (Nginx Users) Proxy: Implement an image proxy to speedup your SMF forum  Radio: Adding an audio  ............  to smf with no restarting when switching pages Radio: ............  How to add a Nice radio player for your forum Radio:  ............  SMF Shortcut Keys when posting via Safari  Scroll buttons: jQuery "scroll to top" and "scroll to bottom"  ............   Sessions: Auto Renew Sessions Signatures: Close Signature Guests  ............ : signature info stats Simpleportal: Add Title Attribute To SimplePortal Front Page Social  ............ : SMF forum posts to Twitter / Facebook (without mods/coding!) Social  ............ : Adding Twitter and Facebook "Share/Like" Button To  ............  with this jQuery Pinterest Plugin Social media: Add Facebook Comments to your first post Social media: ............  Social Media Icons in Profile Field Tutorial Social media: Automatic Twitter Embedding  ............  media: Post to Twitter using SMF RSS and small php file Social  ............ : Get Facebook and others to load a shared url Social media: Facebook Share  ............  Social media: How To Display Facebook, Twitter & Feedburner  ............  Count In Text Statistics: How to include "Recycled" topics and posts into the  ............  Tapatalk banner popup Timer: jquery countdown Topics: [Hack/SMF 2.0.x] Remove "Read xx times" from  ............  view Topics: Add Buddy Button On Post Tracking User  ............  Translation: Add Google Translate to your SMF 2.0 forum Tutorial:  ............ 's online list Who's online: SMF 1.x & 2.x - Custom Who.template.php - Displays Users, Guests &  ............  Wordpress: Show the latest WordPress posts inside  ......
#4
Theme Site Themes / Reseller
July 30, 2014, 11:08:08 AM by Diego Andrés
......  to the theme    Free & Premium Themes for SMF    ............  Networks Logo URL Forum Width Separate sticky topics Avatars Boards Topics Online Users Recent  ............  Memberlist  Menu Customization Disable Menu Icons Add Log out, Log in  ............  Sign up buttons Remove Specific Menu  Community Button for  ............   Select CDN for Fonts Quick New Topic Button 📦 Installation It is installed  ............  grab the latest release of the package and go to: Admin > Configuration > Themes and Layout >  ............  documentation about the process in Installation - How do I install a theme. 🌐 Localization  ............  are all based off the Theme Customs strings, and you can contribute directly on  ......
#5
Theme Site Themes / Curve Reborn
October 28, 2021, 06:22:13 PM by shadav
......  to the theme  This theme is based on the Curve theme  ............  this attachment.   Preinstalled Mods Moved the Topics/Posts/Replies/Views to under the Board/Post  ............   Added footer floating share buttons, you can read  ............  post on how to edit it if you wish  Made the theme responsive  ............ (to the best of my ability anyways) used a combo of  ............  hints and tips throughout the forum and online  Added Favicons, you can edit them however you see fit  ............ .template.php Code Select Expand <link rel="apple-touch-icon" sizes="180x180" href="', $settings[' ............ '], '/favicon/apple-touch-icon.png"> <link rel="icon" type="image/png"  ............ ['images_url'], '/favicon/site.webmanifest"> Added Advanced sidebar menus, for those that like to  ............  sidebars  Added Admin ban button in post  Added Modified No  ............  Message and edited it a bit  Added Edited Time Next To Posted Time  Added Post  ............   Added Tabbed Info Center  Added Tabbed Profile  I  ............  of each mod it was allowed and I have linked to the creators to give credit where credit is due   ............ : https://hostingspot.net/testing/smf20/  thanks to Antechinus I can now show live demos for each  ............   Orange variant  Black variant  And thanks to everyone who commented with advice in the preview  ............  for this theme  also a big thank you to Diego for helping to iron out mistakes and  ............   realized after I took screenshots, Diego mentioned I forgot to add  ............  Settings.english.php corrected the thumbnail.jpg to thumbnail.gif - Fixed editor when creating a post  ............  reply to a post so that the text isn't pushed behind the  ............  of editor - Lowered the catbars and divbars from 40px to  ............    ====   update Nov 28, 2021  - Fixed editor when creating a reply to a post via quickreply  ............  that the text isn't pushed behind the edges of editor   ====   update Nov 29, 2021  - Fixed Undefined  ............   ====   update Dec 23, 2021 - Fixed thumbnail.gif to use the themes default version thumbnail -  ............  theme to smf 2.0. ......
#6
SMF Coding Discussion / Paypal button inside post
December 21, 2023, 04:39:24 AM by durangod
...... ,  I know how to add paypal buttons but not in the post without  ............  html, dont want to do that. I see all of the paypal modules are 11+  ............  old and im not going to trust them.   So has anyone figured out a way to  ............  paypal buttons inside of a post yet. I may have to just create  ............  new dropdown button to a new page outside of the forum. But i  ............  version of SMF supports paypal, ok so i have to ask, what does that mean, just subscriptions or  ......
......  morning one and all..  Not long ago, I updated to 2.1.4 and have the Cleantek theme installed..  I  ............  menu mods get installed or if I edit the sub.php to add my own menu buttons..  They all get  ............  on home or forum.. they stay highlighted..  How does one change this status.. or were is the code  ............  sets the focus on the button..? ? ......
#8
SMF 2.1.x Support / Quick Edit
February 23, 2024, 03:22:12 PM by Alex98
......  it is, but I can't find in the script what I need to remove to make it work. The problem is in Display. ............  in the customized theme. When I remove that file (display. ............  quick edit is located.  If someone can help me to remove the stop on Quick edit Besides, I don't  ............  it to show me a quick answer, only quick edit  Here's  ............  2022 Simple Machines and individual contributors<br /> * @license https://www.simplemachines.org/ ............  />/**<br /> * This template handles displaying a topic<br /> */<br />function template_main()<br />{< ............ '], '<br /> </div>';<br /><br /> // Show new topic info here?<br /> echo '<br /> <div  ............ ><br /> <li>', template_avataronboard($context['topic_starter_id'], 'none'), '</li><br /> <li><br  ............ /><br /> ', $txt['started_by'], ' ', $context['topic_poster_name'], '<br /><br /> ', $txt['read' ............  <div class="forumposts-whos">';<br /><br /> // Show just numbers...?<br /> if ($settings[' ............ ['who_member'] : $txt['members'];<br /> // Or show the actual people viewing the topic?<br /> else< ............  ' ' . $txt['hidden'] . ')');<br /><br /> // Now show how many guests are here too.<br /> echo $txt[' ............  $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '<br /> </div>';<br /> }<br /><br /> //  ............  the anchor for the top and for the first message. If the first message  ............  ? '<a id="new"></a>' : '';<br /><br /> // Is this topic also a poll?<br /> if ($context['is_poll'])<br  ............ ">';<br /><br /> // Are they not allowed to vote but allowed to view the options?<br /> if ($ ............ ['poll']['show_results'] || !$context['allow_vote'])<br /> {<br  ............  /> <dl class="options">';<br /><br /> // Show each option with its corresponding percentage bar. ............  /> echo '<br /> <p><strong>', $txt['poll_total_voters'], ':</strong> ', $context['poll'][' ............ '], '</p>';<br /> }<br /> // They are allowed to vote! Go to it!<br /> else<br /> {<br /> echo  ............  /> <form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context[' ............ $context['character_set'], '">';<br /><br /> // Show a warning if they are allowed more than one  ............ '])<br /> echo '<br /> <p class="smallpadding">', $context['poll']['allowed_warning'], '</p>' ............  /> <ul class="options">';<br /><br /> // Show each option with its button - a radio likely.<br / ............  /> echo '<br /> <li>', $option['vote_button'], ' <label for="', $option['id'], '">', $option[ ............ '<br /> </ul><br /> <div class="submitbutton"><br /> <input type="submit" value="', $ ............ ['poll_vote'], '" class="button"><br /> <input type="hidden" name="', $ ............  id="pollmoderation">';<br /><br /> template_button_strip($context['poll_buttons']);<br /><br />  ............ '<br /> </div>';<br /> }<br /><br /> // Does this topic have some events linked to it?<br /> if (! ............ <br /> {<br /> // Display event info relative to user's local timezone<br /> echo '<time  ............ ']);<br /><br /> // Display event info relative to original timezone<br /> if ($event[' ............  in the user's own timezone? Let 'em know, just to avoid confusion<br /> else<br /> echo ' ',  ............ ><!-- .information -->';<br /> }<br /><br /> // Show the page index... "Pages: [1]".<br /> echo '<br /> ............  <div class="pagesection top"><br /> ', template_button_strip($context[' ............ '], 'right'), '<br /> ', $context['menu_separator'], '<br /> <div class="pagelinks floatleft">< ............  /> <a href="#bot" class="button"><i class="fa-solid fa-chevron-down"></i></a><br  ............ </div>';<br /><br /> // Mobile action - moderation buttons (top)<br /> if (!empty($context['normal_buttons']) ............ )<br /> echo '<br /> <div class="mobile_buttons floatright"><br /> <a class="button mobile_act"> ............ '], '</a><br /> ', !empty($context['mod_buttons']) ? '<a class="button mobile_mod">' . $txt[' ............  /><br /> echo '<br /> </div>';<br /><br /> // Show the topic information - icon, subject, etc.<br />  ............  <form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context[' ............  /> </div><!-- #forumposts -->';<br /><br /> // Show the page index... "Pages: [1]".<br /> echo '<br /> ............  <div class="pagesection"><br /> ', template_button_strip($context['normal_buttons'], 'right'), '<br  ............ /> ', $context['menu_separator'], '<br /> <div class="pagelinks floatleft">< ............  /> <a href="#main_content_section" class="button" id="bot"><i class="fa-solid fa-chevron-up"></i>< ............ </div>';<br /><br /> // Mobile action - moderation buttons (bottom)<br /> if (!empty($context[' ............ ']))<br /> echo '<br /> <div class="mobile_buttons floatright"><br /> <a class="button mobile_act"> ............ '], '</a><br /> ', !empty($context['mod_buttons']) ? '<a class="button mobile_mod">' . $txt[' ............ > echo '<br /> </div>';<br /><br /> // Moderation buttons<br /> echo '<br /> <div id="moderationbuttons">< ............  /> ', template_button_strip($context['mod_buttons'], 'bottom', array(' ............ ' => 'moderationbuttons_strip')), '<br /> </div>';<br /><br /> // Show  ............  jumpto box, or actually...let Javascript do it.<br />  ............  '<br /> <div id="display_jump_to"></div>';<br /><br /> // Show quickreply<br />  ............ "></a><br /> </div><br /> ', template_button_strip($context['normal_buttons']), '<br /> </ ............ ><br /> </div>';<br /><br /> // Show the moderation button & pop (if there is anything  ............  show)<br /> if (!empty($context['mod_buttons']))<br />  ............ "></a><br /> </div><br /> <div id="moderationbuttons_mobile"><br /> ', template_button_strip($ ............ ['mod_buttons'], 'bottom', array('id' => ' ............ '])<br /> {<br /> echo '<br /> var oInTopicModeration = new InTopicModeration({<br />  ............ : \'oInTopicModeration\',<br /> sCheckboxContainerMask: \ ............ 'in_topic_mod_check_\',<br /> aMessageIds: [\'',  ............ ,<br /> sSessionVar: smf_session_var,<br /> sButtonStrip: \'moderationbuttons\',<br />  ............ : \'moderationbuttons_strip\',<br /> bUseImageButton: false,<br />  ............ '] ? 'true' : 'false', ',<br /> sRemoveButtonLabel: \'', $txt['quickmod_delete_selected'], '\', ............ <br /> sRemoveButtonImage: \'delete_selected.png\',<br />  ............ '', $txt['quickmod_confirm'], '\',<br /> bCanRestore: ', $context['can_restore_msg'] ? 'true' : ' ............ ', ',<br /> sRestoreButtonLabel: \'', $txt['quick_mod_restore'], '\', ............ <br /> sRestoreButtonImage: \'restore_selected.png\',<br />  ............ '] ? 'true' : 'false', ',<br /> sSplitButtonLabel: \'', $txt['quickmod_split_selected'], '\',< ............  /> sSplitButtonImage: \'split_selected.png\',<br />  ............ : \'quickModForm\'<br /> });';<br /><br /> // Add it to the mobile button strip as well<br /> echo  ............ '<br /> var oInTopicModerationMobile = new InTopicModeration({<br /> ............  sSelf: \'oInTopicModerationMobile\',<br />  ............ : \'in_topic_mod_check_\',<br /> aMessageIds: [\'',  ............ ,<br /> sSessionVar: smf_session_var,<br /> sButtonStrip: \'moderationbuttons_mobile\',<br />  ............ : \'moderationbuttons_strip_mobile\',<br /> bUseImageButton: false,< ............ '] ? 'true' : 'false', ',<br /> sRemoveButtonLabel: \'', $txt['quickmod_delete_selected'], '\', ............ <br /> sRemoveButtonImage: \'delete_selected.png\',<br />  ............ '', $txt['quickmod_confirm'], '\',<br /> bCanRestore: ', $context['can_restore_msg'] ? 'true' : ' ............ ', ',<br /> sRestoreButtonLabel: \'', $txt['quick_mod_restore'], '\', ............ <br /> sRestoreButtonImage: \'restore_selected.png\',<br />  ............ '] ? 'true' : 'false', ',<br /> sSplitButtonLabel: \'', $txt['quickmod_split_selected'], '\',< ............  /> sSplitButtonImage: \'split_selected.png\',<br />  ............ <br /> sClassName: \'quick_edit\',<br /> bShowModify: ', $modSettings['show_modify'] ? 'true' : ' ............ ', ',<br /> iTopicId: ', $context['current_topic'], ',<br />  ............ ="error"></div><br /> <textarea class="editor" name="message" rows="12" tabindex="' . $context[ ............ '] . '"><br /> <input type="hidden" name="topic" value="' . $context['current_topic'] . '"><br  ............ ['session_var'] . '\');" accesskey="s" class="button">' . ($context['show_spellchecking'] ? ' <input  ............ ="button" value="' . $txt['spell_check'] . '" tabindex="'  ............ (\'quickModForm\', \'message\');" class="button">' : '') . ' <input type="submit" name="cancel"  ............ ="return oQuickModify.modifyCancel();" class="button"><br /> </div><br /> </div>'), ',<br / ............ : ', JavaScriptEscape('<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.msg%msg_id%# ............ ="nofollow">%subject%</a>'), ',<br /> sTemplateTopSubject: ', JavaScriptEscape('%subject%'), ',<br / ............ \'' : '', '<br /> });<br /><br /> aJumpTo[aJumpTo.length] = new JumpTo({<br />  ............ : "display_jump_to",<br /> sJumpToTemplate: "<label class=\" ............  jump_to\" for=\"%select_id%\">', $context['jump_to'][' ............ ,<br /> iCurBoardChildLevel: ', $context['jump_to']['child_level'], ',<br /> sCurBoardName: "',  ............ $context['jump_to']['board_name'], '",<br />  ............  /> sBoardPrefix: "=> ",<br /> sCatSeparator: "-----------------------------",<br />  ............ : "",<br /> sGoButtonLabel: "', $txt['go'], '"<br /> });<br /><br /> ............ ,<br /> sScriptUrl: smf_scripturl,<br /> bShowModify: ', !empty($modSettings['show_modify']) ? ' ............ : ', $context['current_board'], ',<br /> iTopicId: ', $context['current_topic'], ',<br />  ............ ['ignoredMsgs']))<br /> echo '<br /> ignore_toggles([', implode(', ', $context['ignoredMsgs']), ' ............ ], ', JavaScriptEscape($txt['show_ignore_user_post']), ');';<br /><br /> echo '<br / ............ $message An array of information about the message to display. Should have 'id' and 'member'. Can also  ............ '][] = $message['id'];<br /> }<br /><br /> // Show the message anchor and a "new" anchor if this  ............ '], '" id="msg' . $message['id'] . '" style="padding:0; margin:0 0 15px 0;"><br /> ', $message[' ............ > <div class="post_wrapper">';<br /><br /> // Show information about the poster of this message.<br / ............  <div class="poster-name">';<br /><br /> // Show a link to the member's profile.<br /> echo '< ............ -avatar-cover'), '';<br /> <br /> // Show avatars, images, etc.?<br /> if (!empty($ ............ ['show_user_images']) && empty($options['show_no_avatars' ............  /> <ul class="user_info">';<br /><br /> // Show the member's custom title, if they have one.<br /> ............ ['member']['title'], '</li>';<br /><br /> // Show the member's primary group (like 'Administrator')  ............ >';<br /><br /> <br /><br /> // Are there any custom fields below the avatar?<br /> if (!empty($ ............ ['custom_fields']['below_avatar']))<br /> foreach ($ ............ ['custom_fields']['below_avatar'] as $custom)<br />  ............  '<br /> <li class="custom ', $custom['col_name'], '">', $custom['value'], ' ............ </li>';<br /><br /> // Don't show these things for guests.<br /> if (!$message[' ............ ']['is_guest'])<br /> {<br /> <br /> // Show their personal text?<br /> if (!empty($ ............ ['show_blurb']) && !empty($message['member']['blurb']))< ............ ']['blurb'], '</li>';<br /> <br /> <br /> // Show the post group icons<br /> echo '<br /> < ............ ']['group_icons'], '</li>';<br /><br /> // Show how many posts they have made.<br /> if (!isset($ ............  /> echo '<br /> <li class="postcount">Postova: <strong>', $message['member']['posts'], '</ ............ ></li>';<br /><br /><br /><br /> <br /><br /> // Show the website and email address buttons.<br /> if ( ............ $message['member']['show_profile_buttons'])<br /> {<br /> echo '<br />  ............  class="profile_icons">';<br /><br /> // Don't show an icon if they haven't specified a website.<br /> ............ ="_blank" rel="noopener">', ($settings['use_image_buttons'] ? '<span class="main_icons www centericon"  ............ ['id'], '" method="post"><br /> <button type="submit" class="pm-button"><br />  ............  Send PM<br /> </button><br /> </form><br /> </li>';< ............ !-- .profile -->';<br /> }<br /><br /> // Any custom fields for standard placement?<br /> if (!empty( ............ $message['custom_fields']['standard']))<br /> foreach ($message[ ............ 'custom_fields']['standard'] as $custom)<br /> echo '< ............  /> <li class="custom ', $custom['col_name'], '">', $custom['title'], ' ............ : ', $custom['value'], '</li>';<br /> }<br /> // Otherwise,  ............ ['member']['email']) && $message['member']['show_email'])<br /> echo '<br /> <li class=" ............ "><br /> <a href="mailto:' . $message['member']['email'] . '" rel=" ............ ">', ($settings['use_image_buttons'] ? '<span class="main_icons mail centericon"  ............ ']), '</a><br /> </li>';<br /><br /> // Show the IP to this user for this post - because you  ............ -hover="', $message['member']['ip'], '" class="show_on_hover"><span>', $txt['show_ip'], '</span></a> < ............  /> </li>';<br /><br /> // Or, should we show it because this is you?<br /> elseif ($message[' ............ ="return reqOverlayDiv(this.href);" class="help show_on_hover" data-hover="', $message['member']['ip'], ............  '"><span>', $txt['show_ip'], '</span></a><br /> </li>';<br /><br / ............  // Okay, are you at least logged in? Then we can show something about why IPs are logged...<br />  ............ '], '</li>';<br /><br /> // Are there any custom fields to show at the bottom of the poster info?< ............  /> if (!empty($message['custom_fields']['bottom_poster']))<br /> foreach ($ ............ ['custom_fields']['bottom_poster'] as $custom)<br />  ............  '<br /> <li class="custom ', $custom['col_name'], '">', $custom['value'], ' ............  /> </ul>';<br /> <br /> // Are we showing the warning status?<br /> // Don't show  ............ ="subject_title', (empty($modSettings['subject_toggle']) ? ' subject_hidden' : ''), '"><br />  ............  <span class="spacer"></span>';<br /><br /> // Show "<< Last Edit: Time by Person >>" if this post  ............  it wasn't modified!<br /> // Because we insert into it through AJAX and we don't want to stop themers  ............  modified floatright', !empty($modSettings['show_modify']) && !empty($message['modified']['name'])  ............ 'id'], '">';<br /><br /> if (!empty($modSettings['show_modify']) && !empty($message['modified']['name'])) ............ , '_ignored_link" style="display: none;">', $txt['show_ignore_user_post'], '</a><br /> </div>';<br  ............ /><br /> // Show the post itself, finally!<br /> echo '<br />  ............  output the div unless we actually have something to show...<br /> $div_output = false;<br /><br />  ............ )<br /> {<br /> // Do we want this attachment to not be showed here?<br /> if ($attachment[' ............ '] && !empty($modSettings['dont_show_attach_under_post']) && !empty($context[' ............ :none;"' : '', '>';<br /> }<br /><br /> // Show a special box for unapproved attachments...<br />  ............ ['is_image'] && !empty($modSettings['attachmentShowImages']))<br /> {<br /> echo '<br />  ............  <div class="attachments_top">';<br /><br /> if ($attachment['thumbnail'][' ............ > echo '<br /> </div><!-- .attachments_top -->';<br /> }<br /><br /> echo '<br />  ............ <br /> echo '<br /> <li class="smflikebutton" id="msg_', $message['id'], '_likes"', $ignoring  ............  '<br /> </ul>';<br /> }<br /><br /> // Show the quickbuttons, for various operations on posts. ............ <br /> template_quickbuttons($message['quickbuttons'], 'post');<br /><br />  ............ ><!-- .postarea --><br /> <div class="moderatorbar">';<br /><br /> // Are there any custom  ............  the signature?<br /> if (!empty($message['custom_fields']['above_signature']))<br /> {<br />  ............  '<br /> <div class="custom_fields_above_signature"><br /> <ul class=" ............ ">';<br /><br /> foreach ($message['custom_fields']['above_signature'] as $custom)<br />  ............  '<br /> <li class="custom ', $custom['col_name'], '">', $custom['value'], ' ............ </ul><br /> </div>';<br /> }<br /><br /> // Show the member's signature?<br /> if (!empty($message[ ............ 'member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled']) ............  /> </div>';<br /><br /> // Are there any custom profile fields for below the signature?<br /> if  ............ (!empty($message['custom_fields']['below_signature']))<br /> {<br />  ............  '<br /> <div class="custom_fields_below_signature"><br /> <ul class=" ............ ">';<br /><br /> foreach ($message['custom_fields']['below_signature'] as $custom)<br />  ............  '<br /> <li class="custom ', $custom['col_name'], '">', $custom['value'], ' ............  }<br /><br /> echo '<br /> </div><!-- .moderatorbar --><br /> </div><!-- .post_wrapper --><br  ............ [css_class] --><br /> <hr class="post_separator">';<br />}<br /><br />/**<br /> * The template  ............  <div class="roundframe">';<br /><br /> // Is the topic locked?<br /> if ($context['is_locked'])<br />  ............ ['quick_reply_warning'], '</p>';<br /><br /> // Show a warning if the topic is old<br /> if (!empty($ ............ ['oldTopicError']))<br /> echo '<br /> <p class=" ............  smalltext">', sprintf($txt['error_old_topic'], $modSettings['oldTopicDays']), '</p>';<br /> ............ " name="postmodify" id="postmodify" onsubmit="submitonce(this);"><br /> <input type="hidden" name=" ............ " value="', $context['current_topic'], '"><br /> <input type="hidden" name=" ............ $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '"><br /> <input type= ............ " name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '"><br /> <input type=" ............ " name="last_msg" value="', $context['topic_last_message'], '"><br /> <input type=" ............  $context['post_box_name'], '");<br /> sceditor.instance(e).insertQuoteFast(messageid);<br /><br  ............ > </div>';<br /><br /> // Finally, the submit buttons.<br /> echo '<br /> <span id=" ............ "><br /> ', template_control_richedit_buttons($context['post_box_name']), '<br /> </span>'; ............  /> <br class="clear">';<br /><br /> // Draft autosave available and the user has it enabled?<br />  ............  (!empty($context['drafts_autosave']))<br /> echo '<br /> <script><br /> var  ............  = new smf_DraftAutoSave({<br /> sSelf: \'oDraftAutoSave\',<br />  ............  sLastNote: \'draft_lastautosave\',<br /> sLastID: \'id_draft\',', !empty($ ............ ['post_box_name']) ? '<br /> sSceditorID: \'' . $context['post_box_name'] . '\',' : '',  ............ ',<br /> iFreq: ', (empty($modSettings['masterAutoSaveDraftsDelay']) ? 60000 : $modSettings[' ............  });<br /> </script>';<br /><br /> if ($context['show_spellchecking'])<br /> echo '<br /> <form  ............ ({<br /> bDefaultCollapsed: false,<br /> iTopicId: ', $context['current_topic'], ',<br />  ............ : "quickReplyExpand",<br /> sClassCollapsed: "toggle_up",<br /> sClassExpanded: "toggle_down",< ............  /> bIsFull: true<br /> });<br /> var oEditorID = "', $context['post_box_name'], '";<br />  ............  oEditorObject = oEditorHandle_', $context['post_box_name' ......
#9
Modifications and Packages / Naytheet Social Login
November 13, 2023, 02:49:27 PM by Naytheet
......  to the mod  Naytheet Social Login   Author: Naytheet  ............  SMF 2.1.x Introduction This mod allows a user to automatically log them in with Facebook or  ............  if any problem with making it work or any trouble to understand what to do. This Social Login package  ............  to be done done after many changes occured in SMF  ............ . Important notice : FB social login had to be dropped off because of its recent errors. The  ............  description only applies to LinkedIn's. However, I can provide the FB & LI  ............  anyone who has working FB keys. You just have to get your free-of-charge id and secret id to make  ............  network as I guess there's no chance for us to get them with SMF. If someone wants to create  ............  keys for SMF though, kindly get in touch with me, that would avoid to have to work on  ............  is the first version of this SL, and it requires to get two network app with their keys and FB's law  ............  Social networks are FB and LinkedIn. Here is the how-to notice to get the values to be inserted in the  ............  page fields. FB configuration Go to the FB dev page and create a Facebook Login app.  ............  fields. Many fields are optional. You'll have to switch the app Mode: Development to Live mode to  ............  it work, at the top of the page. Prior to it, you first have to add  ............  Click on Settings -> basic in left nav margin and add the Privacy Policy URL and User data deletion URL. ............  You can find auto generated text for these files on the web. Click  ............  the Valid OAuth Redirect URIs big field, you have to add Code Select Expand <your SMF domain name> ( ............ .example.com is a domain name). Don't forget to click on Save changes at the bottom of the page.  ............ 'll find your app keys in Settings > Basic area. Add them in your mod page while you can. About the  ............ -lived token, you have to renew it until it expires, i.e.  ............  value, and save it in your SMF mod page. To get it, go to the basic token page and follow the  ............  to get the basic token. Once done, get the Long- ............  token by following the guide here. And don't forget  ............  add this token to your mod page. LinkedIn  ............ .com/developers. It's easier as you just have to choose a company so you can get your keys  ............ . Product to choose is called "Sign In with LinkedIn". OAuth 2. ............  scopes has to show r_emailaddress and r_liteprofile. Add these  ............  URL. Authorized redirect URLs for your app have to include at least : Code Select Expand https:// ............ .linkedin.com/developers/tools/oauth/redirect <your SMF domain URL>/index.php? ............  <your SMF domain URL>/?social_login=LinkedIn How it works Once the user is connected from his SL  ............  and back to your SMF, the user's nickname will be registered  ............  his/her network's picture to your SMF and he/she'll be connected subsequently.  ............  is the same for any SL people and doesn't need to be known, so please don't share it with anybody.  ............  You should then add this kind of notice to your SMF forum : About  ............  Social login buttons Use them with caution, you would get multiple  ............  and basic features of the forum needs you to provide the password, so keep in mind you have to  ............  a proper account to use them as you don't have to use any password to  ............  glitch, and post any remark or suggestion in this topic.  ......
......  there, I've just upgraded my board to SMF 2.1.1 and I'm extremely pleased with the new  ............  I've always strived for simplicity, I decided to keep plugins to a bare minimum (also to avoid  ............  future issues)  Now, to keep forum content *and* visuals the same as  ............ , I'd like to reintroduce a spoiler BBC tag.  I already have  ............  that will reveal/hide its content with a mouse button), but looking at the updated SMF sources that  ............  old, pre 2.x SMF plugin wanted to change I understand things should be done a bit  ............  now, but I'm not sure exactly HOW. What I understand is that there are certain  ............  about SMF structure nor PHP I need a bit of help to achieve the desired outcome.  So I'd like to ask:  ............  1. where do I need to put the required changes to keep the modification  ............  2.x-compliant 2. if it is possible to add a dedicated, standalone spoiler button (i.e.  ............  grouped with any other buttons) in the SCeditor window, possibly before the  ............  section, and how  Any help will be greatly appreciated.  ......
......  ability to insert attachments is a powerful new feature in 2. ............  - a big aid to effective communication. But being powerful also  ............  can make more mistakes.  We all want new members to join our forums, make it easy for them to  ............  knowledge. This post is a suggestion for a UI to help guide novice users through the attachment  ............  that.  We want our novice, first time forum users to be successful on their first attempt at inserting  ............  has been that if new forum members have a tough time adding photos, they tend to dismiss it as  ............ "too hard" and don't try again.  We want to provide  ............  the information they need to succeed right there on the screen in front of  ............ . No need to... Look up or read any help pages Know how the  ............  Or even know what the word 'attachment' refers to  (Maybe the word 'attachment' is a bit outdated  ............ , the mockups below were done with really basic tools and are intended as rough sketches only. The  ............  and button text could be polished up a bit.  The current UI  ............ .  The word 'Attachments' is replaced by a button - Add a photo or attachment The button now  ............  the word 'photo' for those who are new to forum software and more  ............  to sites like Ebay and so forth.  You cannot view  ............     Here are a few user scenarios..  User presses 'Add a photo..." button  On pressing this 'Add a photo............ ..' button, a new window opens or maybe pops up, putting  ............  user into attachment adding mode.  The posting window  ............  is slightly grayed out so we know we are in 'photo adding' mode.  The idea is you can switch back  ............  forward between writing your text and adding the relevant images where you want them. The ' ............  to post' button takes you back to the posting window  ............ . The drag and drop window is also made bigger to reduce the chance of missing the target and  ............  up with an error (see footnote 1 at bottom).  You cannot view this attachment.     User  ............  first photo The user drops or adds the first photo. The top  ............  within the window tells them what to do next. The four buttons at the bottom offer  ............  the choices. The text underneath the buttons, explains what the buttons do.  You cannot view  ............  attachment.     User adds a second photo If the first file is not inserted, ............  and a second file is added, the files are just queued up in the same  ............  view this attachment.     User inserts a photo and adds a second photo If the first file is  ............  windows opens a 'Files Inserted' section at the top.  You cannot view this attachment.     User  ............  second photo, adds a third photo Here the second file is also  ............  and a third file added to the queue.  You cannot view this attachment.  ............     User inserts last added photo Now the poster has inserted all files  ............  have been uploaded and the BB code has been added to the post.  Since there are no more images in  ............  queue, two options disappear from the bottom row of buttons. So the poster uses the 'Return... ............ ' button to return to the post and preview or post the  ............  view this attachment.    Please note I forgot to remind users they can drag and drop in most of  ............ ' section should have a reminder underneath it as shown in the last sketch above.   Footnote 1 What  ............  and drop or thinks he/she can put it straight into the posting window. This is what happens.  You  ............  this attachment.   Turning off the WYSIWYG editor, we see the image tags now have thousands of  ............  advantage of having a popup window for attachment adding operations. The posting window is inaccessible  ......
#12
...... 'm looking to add a button somewhere up there (maybe between  ............  and HELP.  Ideally, it would be a "contribute" button for the organization with two sub-buttons that  ............  off-site to some donation sites (like Venmo for example).   ............  subject, and I was confused with the references to "tabs" and "buttons". Is this just word  ......
#13
......  cannot view this attachment.  I need to add class="MyButton" to the two unstyled buttons............ " and "Insert" in the screendump. The buttons are created in Javascript and I can´t find a way  ......
#14
Modifications and Packages / Tabbed Info
October 26, 2020, 06:04:07 PM by shadav
......  to the mod This will put the Info Center into tabs   ............  to this article on a how to create tabs:  ............ /creating-tabs-with-html-css-and-jquery/  thanks to vicram10 for helping to get it working correctly ( ............  looks of the tabs with the provided css, i tried to make it match closely to the default theme  you  ............  tabbedinfo.js file  find Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............  one of the below  fade Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............ .siblings().hide(); slide 1 Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............ ).slideDown(400); slide 2 Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............ (400).siblings().slideUp(400);  if you want to see a demo hostingspot.net/testing/smf20/ or  ............  Select Expand <li class="active"><a href="#tab3">to Code Select Expand <li><a href="#tab3"> and then  ............  Expand <div id="tab3" class="tab active">change to Code Select Expand <div id="tab3" class="tab">  ............  you want as default, lets say recent posts simply add the class="active" so change Code Select Expand < ............ ><a href="#tab1">to Code Select Expand <li class="active"><a href="# ............  Code Select Expand <div id="tab1" class="tab">to Code Select Expand <div id="tab1" class="tab  ............ "> === added licence (GNU General Public License) basically  ............  and things so :p I welcome anyone who's willing to improve on it  fixed issue with buttons still  ............  on in admin also changed the default active tab to the forum stats (for those that don't have recent  ............  this with the codes above)  fixed missing jquery  added a second file, Tabbed_Info_Lite.zip, for those  ......
#15
Mod Requests / More buttons in post toolbar
October 25, 2020, 02:16:26 PM by parad0xgr
......  all,  I was looking to add some more buttons to my toolbar on the new  ............ . Like a button to post youtube videos and images (In the forum  ............  will be people that wont know how to use [img]  Anyone has anything in mind? ......
#16
Tips and Tricks / Add The AddToAny Share Buttons
June 18, 2020, 12:18:39 PM by shadav
......  where this has been discussed so I'll share here how I did it on my site  I find it a bit less  ............  codes  you can find the codes and all kinds of customization options on the addtoany.com site  but  ............  I have done the work for you   this will add a centered floating share buttons to the bottom  ............  the page  there will be 3 main buttons shown  facebook, twitter, and whatsapp and then a  ............ + button to show ALL the other options in a pop-up, I  ............  very very end find Code Select Expand ?>before add Code Select Expand echo '<style type="text/css"> . ............  ad: true };  a2a_config.onclick = 2; a2a_config.show_title = 1;  a2a_config.num_services = 10;  ............  "line", "linkedin", "livejournal", "mail_ru", "mastodon", "mendeley", "meneame", "mewe", "mix", "mixi", ............ , "plurk", "pocket", "print", "printfriendly", "protopage_bookmarks", "pusha", "qzone", "reddit", " ............ ", "sitejot", "skype", "slashdot", "sms", "stocktwits", "svejo", "symbaloo_bookmarks", "telegram" ............  a2a_floating_style a2a_default_style" style="bottom:0px; left:50%; transform:translateX(-50%);"> <a  ............ ="a2a_button_facebook"></a> <a class="a2a_button_twitter"></a> ............  <a class="a2a_button_whatsapp"></a> <a class="a2a_dd" href="https:// ............ .addtoany.com/share"></a> </div>  <script async src=" ............ ://static.addtoany.com/menu/page.js"></script> '; you can  ............  the colors however you like in the above code by editing the  ............  = "FFAC63"; as stated there are a lot of customization options on their site, so feel free to  ............  the above to suit your needs  if you'd like to see examples  ......
......  All I would like to add different buttons to the editor (editor.js)  ............  on the board where this thread is. Any hints how i can implement this would be very nice,  Thanks  ......
#18
Modifications and Packages / Tabbed Profile
October 26, 2020, 06:04:01 PM by shadav
......  to the mod  This will change your profile page into  ............  and rearrange things to make it a bit nicer   thanks to this article for  ............  tutorial on how to make tabs : inspirationalpixels.com/ ............   this will not work with other modifications to the profile.template.php that being said you can  ............  it work by adding more tabs and throwing the modifications into  ............  new tabs you'd need to add more tab menus by adding them into the Code  ............ ', $txt['signature'], '</a></li>  </ul>so you'd add Code Select Expand <li><a href="#tab4">NEW MENU  ............  HERE</a></li>and then wrap the modification into a tab Code Select Expand <div id="tab4" class=" ............  GOES HERE </div> <!-- #tab4 -->if you want it to match and have the cat bar you would do Code  ............ > <div class="windowbg2">  <span class="topslice"><span></span></span>  <div  ............  </div></div> </div> <!-- #tab4 -->change info.gif to whatever image you want to use  and this after  ............  on page load) so let's change it from user info to summary change Code Select Expand <li class=" ............ "><a href="#tab1">', $txt['userinfo'], '</a></li>to Code Select Expand <li><a href="#tab1">', $txt[' ............  <li><a href="#tab2">', $txt['summary'], '</a></li>to Code Select Expand <li class="active"><a href="# ............  Select Expand <div id="tab1" class="tab active">to Code Select Expand <div id="tab1" class="tab">  ............  Code Select Expand <div id="tab2" class="tab">to Code Select Expand <div id="tab2" class="tab  ............ ">  you can change the style of the buttons with the provided css, I tried to keep it close  ............  in the tabbedinfo.js find Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............  one of the below  fade Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............ .siblings().hide(); Slide 1 Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............ ).slideDown(400); Slide 2 Code Select Expand // Show/Hide Tabs jQuery('.tabs ' + currentAttrValue). ............ (400).siblings().slideUp(400); === added licence (GNU General Public License) basically  ............  and things so :p I welcome anyone who's willing to improve on it  added error=skip to language edits  ............  missing jquery  fixed issue with signature button showing when user has no signature  added a  ......
......  a modification for my SMF website. I have done to add the code into $hooks array and $buttons.  ............  like these:  ....... 'integrate_menu_buttons' => 'add_menu_buttons',.... function  ............ (&$buttons)...... ....... It seems only add a hook can not  ............  the menu, must I write a xml to modify the index.php's code to chang CDATA[]  ......
#20
SMF Coding Discussion / Looking for help...
February 27, 2019, 01:04:11 PM by djoos5
...... , I just downloaded the fantastic new SMF 2.1 RC1 to my RPG forum and it is working great! I am having  ............  challenge though with restoring the modifications that I had done for my  ............  some of the changes need made, and I know now, too, that the way things are now coded is not the  ............  as it used to be and thus my old notes are not applicable.  So  ............  me start by pointing to the three images attached below. On each are four  ............  that I need help addressing and I think three are easy fixes - the  ............  is going to probably be a bit of a challenge. I will go in  ............  behind the boards. I do not remember where I add that - is it on the Index.css file? If not, I  ............  truly appreciate the guidance on where to code the image. The image itself is already  ............  to my forum software and so I believe I just need to  ............  to it.  2] on my old board, as can be seen in  ............  out more space on my screen. I think that this, too, was done with the Index.css file, but it has  ............  a long time and I don't remember how I did it. My notes that I wrote are vague to this  ............  my old board, as can be seen in picture 1, I had added three new buttons to my main menu, and  ............  are part of the primary theme. I have already added the buttons to my Subs.php file and the code  ............  - you will see that the buttons are there in the picture 3 below. The help I need  ............  this one is how do I get the pictures to show up for the  ............  buttons, instead of having the ? before each of them. I  ............  this function was also done on the Index.css by adding:  Code Select Expand .generic_icons.dice {   ............ : url(../images/dice_button_icon.png);  }  I have added this code for each  ............  the four new buttons, but it is not putting in the button icons.   ............ !  4] Lastly, on my old board, I had used the customization mod for the dice roller and added three  ............  to my Post page that allowed me to add a dice roll  ............  type - picture 4. It also added the buttons and that was done in the Subs- ............  reflects the same arrays.  As an FYI, I did add the Dice Roller code to my Subs.php, Subs-post. ............  rolls the dice and if you tamper with it, it shows that information. What I can't get is the  ............  that I used to have in my Post formatting menu.  So for bullet 4, ............  I would love some help on how to add my three buttons back to the post screen,  ............  my players can quickly add the BBC code with a click.  I know I am being  ............  thankful in this post, but I understand how hard you guys work and then we novice modders  ............  for any help that is given!  I look forward to any response.   ......
Advertisement: