Previous Thread
Next Thread
Print Thread
Hop To
#262389 02/20/2019 5:15 PM
Joined: Mar 2015
Posts: 96
Likes: 1
Journeyman
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]
M4TT #262390 02/20/2019 5:25 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (Nightcrawler), 963 guests, and 210 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)