Previous Thread
Next Thread
Print Thread
Hop To
ShoutChat Box #262389 02/20/2019 4:15 PM
Joined: Mar 2015
Posts: 91
M4TT Offline OP
Journeyman
OP Offline
Journeyman
Joined: Mar 2015
Posts: 91
Hi,

The shout button isn't changing according to the major button style, any way to fix this?

In Form Properties, the Major Button has a different coloring than the Form Button.


[Linked Image from imagizer.imageshack.com]
[Linked Image from aliendisc.net]
[Linked Image from aliendisc.net]
Re: ShoutChat Box [Re: M4TT] #262390 02/20/2019 4:25 PM
Joined: Jun 2006
Posts: 15,860
Likes: 1
Gizmo Online Tapedshut
UBB.threads Developer
Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,860
Likes: 1
The .major-button class is for highlighting important buttons on the page for members to contribute content; as the shoutbox contributes no forum content (as it will scroll off with activity) and generally lives only in the sidebar, it isn't an area that we feel should have a highlighted button.

Following that logic, the .major-button class is only in use in the following templates:
Code
[gizmo@vncservices ~]# grep -r "major-button" /public_html/forum/
/public_html/forum/templates/default/editusers.tpl:<input type="button" onclick="location.href='{ubb url="ubb=add_favorite_user"}';" value="{$lang.ADD_FAVORITE}" class="form-button major-button" />
/public_html/forum/templates/default/notifymod.tpl:<input type="submit" name="sendit" value="{$lang.SEND_IT}" class="form-button major-button" />
/public_html/forum/templates/default/quickreply.tpl:<input class="form-button major-button" type="button" name="textcont" value="{$lang.POST_REPLY}" onclick="submitPost()" tabindex="2">
/public_html/forum/templates/default/viewmessage.tpl:<input type="submit" name="textcont" value="{$lang.POST_REPLY}" class="form-button major-button" />
/public_html/forum/templates/default/gallerylist.tpl:<div class="form-button major-button" onclick="location.href='{ubb url="ubb=newpost&Board=$Board"}';">
/public_html/forum/templates/default/newreply.tpl:<input type="button" tabindex="3" name="textcont" value="{$lang.SUBMIT_REPLY}" onclick="submitPost();" class="form-button major-button">
/public_html/forum/templates/default/newpost.tpl:<input type="button" tabindex="3" name="textcont" value="{$lang.SUBMIT_NEWTOPIC}" onclick="submitPost();" class="form-button major-button">
/public_html/forum/templates/default/sendprivate.tpl:          <input type="submit" tabindex="5" name="textcont" value="{$lang.SUBMIT_MSG}" class="form-button major-button" />
/public_html/forum/templates/default/mess_handler.tpl: <input type="submit" tabindex="3" name="buttsubmit" value="{$lang.SUBMIT_REPLY}" class="form-button major-button">
/public_html/forum/templates/default/showflat.tpl:<td class="form-button major-button" onclick="location.href='{ubb url="ubb=newreply&Number=$first_post"}';" style="min-width:90px;">{$lang.NEW_REPLY}</td>
/public_html/forum/templates/default/admin/editstyle.tmpl:if (strpos($extra_css,"\n.major-button{")) {                 $extra_css_txt .= "<tr><td>"    ."Form" ."</td><td>"    .".major-button"        ."</td></tr>";}
/public_html/forum/templates/default/admin/stylepreview.tmpl:<input type="button" class="form-button major-button" value="Major Button" />
/public_html/forum/templates/default/postlist.tpl:<div class="form-button major-button" onclick="location.href='{ubb url="ubb=newpost&Board=$Board"}';">
/public_html/forum/scripts/showflat.inc.php:<div class=\"ubbcode-block\" style=\"margin-bottom:2px;margin-left:2px;\"><div class=\"ubbcode-header\">{$ubbt_lang['PDF_ATTACHED']} <input type=\"button\" class=\"form-button major-button\" style=\"margin:0 14px;padding:2px 14px;\" value=\"{$ubbt_lang['PDF_SHOW']}\" onClick=\"toggle_spoiler(this, '{$ubbt_lang['PDF_HIDE']}', '{$ubbt_lang['PDF_SHOW']}')\"></div>
/public_html/forum/scripts/editpost.inc.php:   $changebutton = "<input tabindex=\"3\" type=\"submit\" name=\"peditchange\" value=\"{$ubbt_lang['PEDIT_CHANGE']}\" class=\"form-button major-button\">";

You could edit the shoutbox templates (island_shoutbox.tpl and shoutchat.tpl) and insert the class into the shoutbox button by changing
Code
<input type="button" class="form-button sb-butt" onclick="shoutit();" value="Shout" />
To:
Code
<input type="button" class="form-button major-button sb-butt" onclick="shoutit();" value="Shout" />

Please note that any modifications to the base code are completely unsupported.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
Forum Search
Recent Topics
Subscriptions Question
by Ruben - 01/14/2020 12:11 PM
Page won't load after 7.7.3 Update
by Jim0421 - 01/08/2020 11:11 AM
Ubb 7.7.3 winkey emoji shortcut issue
by Ruben - 01/07/2020 4:04 PM
testing winkey emoji shortcut
by Ruben - 01/06/2020 2:36 PM
Very strange problem
by Baldeagle - 01/05/2020 1:22 PM
Who's Online Now
2 members (isaac, Gizmo), 52 guests, and 329 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200106)