News: Welcome to the TinyPortal Support site.

Login  |  Register
* *
TinyPortal on Twitter
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 11, 2018, 11:28:48 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3734
  • Latest: nati9
Stats
  • Total Posts: 186722
  • Total Topics: 20602
  • Online Today: 167
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 2
Guests: 156
Total: 158

Author Topic: Article / Downloads functions Block  (Read 165 times)

0 Members and 1 Guest are viewing this topic.

Offline Jippo

  • Jr. Member
  • **
  • Posts: 7
Article / Downloads functions Block
« on: December 02, 2018, 02:21:47 PM »
I understand the the downloads block is built into the tiny portal, I was wondering if there is a way to modify the block itself to shift the contents more to the left hand side of the block to space out the download file names.
« Last Edit: December 02, 2018, 02:55:08 PM by Jippo »

Online @rjen

  • Support Team
  • *
  • Posts: 1148
    • FJR-club Nederland
Re: Tinyportal Downloads Block
« Reply #1 on: December 02, 2018, 02:28:03 PM »
Depends what ‘block’ you mean.?

Can you explain? Perhaps a screenshot or link to the page in question ?
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

Testing TP1.6.2 on SMF2.0
Testing TP1.6.2 on SMF2.1
Want to check what php version I am testing on? See: PHP Info

Offline Jippo

  • Jr. Member
  • **
  • Posts: 7
Re: Tinyportal Downloads Block
« Reply #2 on: December 02, 2018, 02:36:56 PM »
I should have specified a bit more, the block in mention is the DOWNLOADS BLOCK.

I have the block on the right side panel of tinyportal, I am running the newest SMF forums and tinyportal.

The contents of the block it has a spacer on the left side, I wish to move align the contents a little more to the left.

I have attached an picture of the block

Offline lurkalot

  • Administrator
  • *
  • Posts: 5471
    • Camera Craniums
Re: Tinyportal Downloads Block
« Reply #3 on: December 02, 2018, 02:42:06 PM »
Depends what ‘block’ you mean.?

Can you explain? Perhaps a screenshot or link to the page in question ?

That'll be the "Article / Downloads functions" block.  If you look everything is centered, so if you have a long-ish file name it wraps putting it on two lines. When there's a fair bit of space either side which could be made use of.

Think that's what Jippo is referring to.

Offline Jippo

  • Jr. Member
  • **
  • Posts: 7
Re: Tinyportal Downloads Block
« Reply #4 on: December 02, 2018, 02:46:11 PM »
Exactly, I wish to shorten the space on the left side of the contents within the block.

Online @rjen

  • Support Team
  • *
  • Posts: 1148
    • FJR-club Nederland
Re: Article / Downloads functions Block
« Reply #5 on: December 02, 2018, 03:01:44 PM »
I get it.

Thing is that is actually controlled by the default <ul>  settings of the browser...

To control it, you can make this code change:
To the file TPSubs.php (found in sources)

Line 2756
Find
Code: [Select]
<div class="post">
<ul>';

update to
Code: [Select]
<div class="post">
<ul style="padding-inline-start:20px;">';

You can play with the 20px to make it less or more...
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

Testing TP1.6.2 on SMF2.0
Testing TP1.6.2 on SMF2.1
Want to check what php version I am testing on? See: PHP Info

Offline Jippo

  • Jr. Member
  • **
  • Posts: 7
Re: Article / Downloads functions Block
« Reply #6 on: December 02, 2018, 03:01:56 PM »
If you look at the attachment the Calendar is aligned to the left, I wish to do the same with the contents of the Article/Downloads functions Block.

Online @rjen

  • Support Team
  • *
  • Posts: 1148
    • FJR-club Nederland
Re: Article / Downloads functions Block
« Reply #7 on: December 02, 2018, 03:05:03 PM »
I just posted the answer for you...
Running TP1.6.1 on SMF2.0 at: www.fjr-club.nl

Testing TP1.6.2 on SMF2.0
Testing TP1.6.2 on SMF2.1
Want to check what php version I am testing on? See: PHP Info

Offline Jippo

  • Jr. Member
  • **
  • Posts: 7
Re: Article / Downloads functions Block
« Reply #8 on: December 02, 2018, 03:07:56 PM »
Awsome, thanks a million!

Offline lurkalot

  • Administrator
  • *
  • Posts: 5471
    • Camera Craniums
Re: Article / Downloads functions Block
« Reply #9 on: December 02, 2018, 03:09:38 PM »
If you look at the attachment the Calendar is aligned to the left, I wish to do the same with the contents of the Article/Downloads functions Block.

 :hmm: Well actually I don't think the calendar should be aligned to the left. :o

Offline Jippo

  • Jr. Member
  • **
  • Posts: 7
Re: Article / Downloads functions Block
« Reply #10 on: December 02, 2018, 03:21:02 PM »
I agree, on the Calendar, it would look better centered in the block, but it looks aligned with all the other blocks in a pleasing way, maybe could be an option for the Calendar block in the future (an alignment option)