Previous Thread
Next Thread
Print Thread
Hop To
#241692 02/13/2011 1:03 PM
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
I am re-styling my forums (7.5.4.2) to match my newly re-designed website. I have had to edit some templates and create some new style classes to suit my needs. I am stuck on changing the topic and post options buttons at the top of the page as indicated by the big red arrow. It looks like this is in the showtopic.tpl template but my changes do not show so my question is, what is the correct template for these items. I am going nuts!

[Linked Image]


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
The buttons are controlled by the tdheader class, the image is controlled in the "general" images folder.


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!
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
Thanx but... I know what CLASS it is, I need to change the class in the code in the template to my own custom class to style the bussons seperate from the tdheader class.


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I think you need to approach this a little different.
Since you may have multiple styles available to your members.
You would make a folder in like:
forums\images\general\forddoctor.
Then select that in the style editor for General images.
If you have other custom styles you will see those folders in the same area.
You may end up with duplicate images but they don't use that much disk space.

The button you reference is:
images/general/default/toggle_open.gif


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
For those buttons in general, you'll want to edit:
gallerylist.tpl
postlist.tpl
showflat.tpl
showtopic.tpl
tab_contents.tpl
viewmessage.tpl


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!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
one way is to edit 2 files

1. libs/html.inc.php
2. templates/default/header.tpl

in html.inc.php find:

PHP Code
'closed_message' => $closed_message, 

add after that

PHP Code
'ubb' => $ubb, 

in header.tpl find:

HTML
<div id="content">

change to:

HTML
<div id="content" class="{$ubb}">

then you now have a container class that varies by what value of $ubb you are using..

so for example, if you wanted to style the forum list ( $ubb = 'postlist' )

you would just add a css rule like ( in extra css):

Code
#content.postlist tdheader {
new css here to override default tdheader
}

and given the nature of CSS, the extra css is added last, so it overrides the preceding rules

using that rules, allows you to override _any_ of the 'standard' style classes. not just tdheader

wink

many designers will actually slap the class on the body tag instead, but i use that ( for me ) as a way of pulling in IE specific css crap that helps to mitigate IE's quirks

example: <body class='ie6' ...>

will pull in all the ie6 specific rules, since php detected that browser..

2c

this might not be what you want however, since it will affect every tdheader on the page and not just those on the left..

so you could refine the css rule to be like:

#content.postlist body_col tdheader to pull in _just_ the one that your red arrow points to smile

Gizmo #241702 02/13/2011 8:32 PM
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
Originally Posted by Gizmo
For those buttons in general, you'll want to edit:
gallerylist.tpl
postlist.tpl
showflat.tpl
showtopic.tpl
tab_contents.tpl
viewmessage.tpl

THANK YOU!!! You are a UBB Master and a Gentleman.

I have always thought those buttons looked bland because they blend in with the table headers. I realize that messing with the templates potentially makes updating more time consuming but I want to give it a try.


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
FordDoctor #241705 02/13/2011 10:14 PM
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
BEH! frown

As I was messing with this I kept thinking about that update comment I made and what I was trying to do just simply is not worth the effort. I made a design change that worked for the buttons and improved the other elements using the same style classes. At least I learned something and in the end came up with something I liked better.



Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
:snicker: you can style the default UBB pretty well with the stock classes... I have a couple:

Back of the Web
The EveryDay Helper


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!
Joined: Jun 2006
Posts: 287
enthusiast
enthusiast
Joined: Jun 2006
Posts: 287
Yeah, I came to my senses. Go ahead and snicker. laugh I like your use of the category and forum roll overs and background color changes. I have not seen anyone do that before.

Aside from those buttons blending in too much the ones with the pop up menu's need to match the popup_menu style or they look really silly. wink But as I mentioned what I eventually came up with looks really good. I just spent the last month completely redesigning my website and it's content and I am a little slap-happy at this point and don't know where to stop. crazy I am close to uploading it all onto my server.

Again I thank you for your assistance!


Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.5.4.2p2

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
2 members (Gizmo, Nightcrawler), 553 guests, and 186 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)