Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
fixing some unused space
Avatar
mike olson
Member
sp_UserOfflineSmall Offline
Mar 21, 2017 - 1:41 pm

WOndering if you guys can help me with something. I have modified the forumViewDesktop template in my child theme but there is some unused space on my forum after allowing the forum to expand the width of the page. Specifically column 3 I would like to shift to the right. 

 

I've included a pic of what I am thinking. 

 

And here is column 3 and 4 of my template:

 

# Column 3 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagId=spColForum3&tagClass=spColumnSection spRight&width=0&height=0px');
sp_TopicIndexReplyCount('tagClass=spRowDescription spLeft&labelClass=spPostsLabel&numberClass=', __sp('Replies:'), __sp('Reply:'));
sp_TopicIndexViewCount('tagClass=spRowDescription spLeft&labelClass=spViewsLabel&numberClass=&before= &after= ', __sp('Views:'), __sp('View:'));
if (function_exists('sp_TopicIndexTopicStatus')) sp_TopicIndexTopicStatus('tagClass=spTopicIndexStatus&iconClass=spIconNoAction', __sp('Search for other topics with this status'));
sp_InsertBreak();
# Adding in lastpost avatar
# Here --------------------------------------
sp_UserAvatar('tagClass=spLeft&size=35&context=user', $spThisTopic->last_user_id);
sp_TopicIndexLastPost('iconClass=spIcon spLeft&icon=sp_ArrowRightSmall.png&labelLink=1&nicedate=1&date=0&time=0&stackdate=0&stackuser=0&stackdate=0&itemBreak=<br /> ', __sp('Last Post'));
#sp_TopicIndexLastPost('iconClass=spIcon spLeft&icon=sp_ArrowRightSmall.png&labelLink=1&nicedate=1&date=0&time=0&stackdate=0&stackuser=0&stackdate=0&itemBreak= - ', __sp('Last Post'));
# to here -----------------------------------

sp_InsertBreak();
sp_TopicIndexPostPageLinks('tagClass=spInRowPageLinks spLeft', __sp('Jump to page %PAGE% of posts'));
sp_ColumnEnd();

# Column 4 of the forum row
# ----------------------------------------------------------------------
sp_ColumnStart('tagId=spColForum4&tagClass=spActionsColumnSection spLeft&height=0px');
sp_TopicIndexStatusIcons('tagClass=spStatusIcon', __sp('This topic is locked'), __sp('This topic is pinned'), __sp('This topic has unread posts'));
sp_TopicForumToolButton("hide=0", '', __sp('Open the forum toolset'));

sp_InsertBreak();

sp_ColumnEnd();

sp_InsertBreak();

sp_SectionEnd('', 'topic');

endwhile; else:

sp_NoTopicsInForumMessage('tagClass=spMessage', __sp('There are no topics in this forum'));

endif;

sp_SectionEnd('', 'topiclist');

sp_SectionEnd('', 'forum');

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 21, 2017 - 2:30 pm

I think you are asking how to change column widths and if so then that is accomplished in the overlay you are using - not the template (as long as we are talking Reboot here).

Look in the overlay file (under styles/overlays - you may need to copy it in from the parent of you have not already done so) and find the section - very near the bottom - starting with the comment

# COLUMN WIDTHS FOR VIEWS

You will want the forum view section. So - four columns and each of the columns has 6 values which represent differing available screen widths. The zero value is for the widest display of course.

Obviously any column width change needs to be balanced across all columns to ensure they do not overflow the 100% - although it is usually better to work to a max of 99% in reality.

Is that enough info to get you started?

andy-signature.png
YELLOW
SWORDFISH
Avatar
mike olson
Member
sp_UserOfflineSmall Offline
Mar 22, 2017 - 1:51 pm

I think that is enough. Will get to work on it today

As always thanks for your guys' help.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 22, 2017 - 3:40 pm

Let us know how it goes...

andy-signature.png
YELLOW
SWORDFISH
Avatar
mike olson
Member
sp_UserOfflineSmall Offline
Mar 22, 2017 - 10:15 pm

It went great!  Thanks for your help!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 22, 2017 - 10:48 pm

good news!  thanks for the update...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616