Previous Thread
Next Thread
Print Thread
Hop To
#258975 01/22/2017 5:53 PM
Joined: Mar 2007
Posts: 309
Likes: 3
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 309
Likes: 3
How and where would I add a right margin to Users Avatar when Author info is set to top of Post?

I can do it using FireBug, but can't figure out where/how to make that change in reality.

Bill

Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
The template names for if author data to the left of the post is "post_side.tpl", on top of the post is "post_top.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
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: Mar 2007
Posts: 309
Likes: 3
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 309
Likes: 3
I tried adding margin-right: 7px; maybe not in the right place, or syntax?

I'll give it another try

Bill

PS, give me a hint... does it go in here somewhere?

Code
<td valign="top" width="75%" class="author-content">
<span style="float:left">
{$postrow[post].Picture}
</span>

Last edited by ECNet; 01/22/2017 6:11 PM.
Joined: Mar 2007
Posts: 309
Likes: 3
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 309
Likes: 3
Got it !!

Code
<td valign="top" width="75%" class="author-content">
<span style="float:left;margin:0px 7px 0px 0px;">
{$postrow[post].Picture}
</span>

or

<td valign="top" width="75%" class="author-content">
<span style="float:left; margin-right: 7px;">
{$postrow[post].Picture}
</span>

facepalm grin

Last edited by ECNet; 01/22/2017 6:28 PM.
Joined: Dec 2003
Posts: 6,649
Likes: 88
Joined: Dec 2003
Posts: 6,649
Likes: 88
Something to remember Bill.

Minor code changes such as this will not port over to the next version you are waiting on.
You will need to kinda keep track of them and hack the newer code again.
Now possibly the newer version may make most of it a moot point.
Just something to keep in the back of your head if you need to do some again.

Of course if it is a control panel setting that should preserve them on a upgrade.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Mar 2007
Posts: 309
Likes: 3
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 309
Likes: 3
Gotcha


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Upgraded to ver8 - now can't login
by phoenix011235 - 10/24/2024 8:50 AM
Who's Online Now
1 members (Phun), 259 guests, and 127 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)