Previous Thread
Next Thread
Print Thread
Hop To
ShoutChat Box
#262389 02/20/2019 5:15 PM
Joined: Mar 2015
Posts: 96
Likes: 1
M4TT Offline OP
Journeyman
OP Offline
Journeyman
Joined: Mar 2015
Posts: 96
Likes: 1
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
M4TT #262390 02/20/2019 5:25 PM
Joined: Jun 2006
Posts: 15,937
Likes: 27
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,937
Likes: 27
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, I Find Rocks, 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
Recent Topics
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Unread posts no longer tracked per user...
by KirkW - 06/16/2020 12:21 AM
Max Image file size upload
by jjjjj - 06/10/2020 10:25 PM
Error on Inert into POSTS
by jjjjj - 06/07/2020 8:09 PM
YouTube embedding
by jjjjj - 06/06/2020 6:14 PM
Who's Online Now
2 members (Ruben, jjjjj), 82 guests, and 43 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