Previous Thread
Next Thread
Print Thread
Hop To
#258975 01/22/2017 5:53 PM
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
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,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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, 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: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
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: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
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,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Gotcha


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
1 members (Havenofsobriety), 458 guests, and 91 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)