Changing Block names/ center block width

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
Scatman_mv
Active Member
Posts: 9
Joined: 27. April 2010 03:03

Changing Block names/ center block width

Post by Scatman_mv »

Your Portal Version: 1.0.5
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Basic Knowledge
Boardlink: http://www.completervr.com

What have you done before the problem was there?
nothing, installed phpbb

What have you already tryed to solve the problem?
looking through each blocks .php file, and databse config to find how to do

Description and Message
Hi All.

I have my bb3 and portal install up and running, however, I would like to alter a couple of things.

The Welcome message block I would like to change just the 'Welcome' at the top to 'Welcome to Complete RVR'
The Latest News block, I would like to change the word 'news' do 'DIYs'

As can be seen, the portal itself, slightly over hangs the width of the forum style I have, I would like to tuck in the portal so it will not be this way.

If I change the side bar widths, then the center bar becomes wider, and keeps the aspects the same (still over hanging) how can I change the width of the 3 blocks I have in the center, as well at the bottom directory bar?

Thank you.
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Changing Block names/ center block width

Post by Marc »

You can find the titles of the blocks in language/en/mods/lang_portal.php

I would also recommend refreshing the theme cache of your style. After that, the ugly dots should be gone.

Topic author
Scatman_mv
Active Member
Posts: 9
Joined: 27. April 2010 03:03

Re: Changing Block names/ center block width

Post by Scatman_mv »

Thanks, changed the names.

Anyway of adjusting the width of the center block?


Also, I forgot one question before.
How can I remove the 'last post' information on the News block?

Thanks.
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Changing Block names/ center block width

Post by Marc »

This should fix the width issue:
Open styles/*yourstyle*/template/portal/portal_body.html
Find:

Code: Select all

<table cellpadding="0" cellspacing="0" border="0" width="100%">
Replace with:

Code: Select all

<table cellpadding="0" cellspacing="0" border="0" width="100%" style="padding: 17px 27px 10px;" >
In order to remove the last post information, do this:
Open styles/*yourstyle*/template/portal/block/news_compact.html
Find:

Code: Select all

			<dd class="lastpost" style="width: 25%"><span><dfn>{L_LAST_POST}</dfn>{L_POST_BY_AUTHOR} {news_row.USERNAME_FULL_LAST} <!-- IF news_row.S_UNREAD_INFO --><a href="{news_row.U_VIEW_UNREAD}">{NEWEST_POST_IMG}</a><!-- ELSE --><a href="{news_row.U_LAST_COMMENTS}">{READ_POST_IMG}</a><!-- ENDIF --><br />
				{news_row.LAST_POST_TIME}</span>
			</dd>
And delete it.

P.S: I still think you should refresh the theme cache of your style in the ACP.

Topic author
Scatman_mv
Active Member
Posts: 9
Joined: 27. April 2010 03:03

Re: Changing Block names/ center block width

Post by Scatman_mv »

BIG Thank you for that, much better.

Re: the compact news, it seems as though there is a divider still, the time 'am/pm' is being dropped down to a new line.
Otherwise it is much cleaner, and have also spotted the Replies part which isn't needed, and I removed, as well as the title: 'Last Posts'

Re: refreshing the theme, I'm not 100% sure what the below means, but I do remember ages ago that when I did this, it removed the mods to the theme I had made.
Are you sure you wish to refresh the theme data stored in the database with the contents of the theme on the filesystem? This will overwrite all modifications which have been carried out with the theme editor while the theme was stored in the database.
So, If I refresh the cache, will it make any drastic changes?
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Changing Block names/ center block width

Post by Marc »

I forgot, you still need to do this to news_compact.html
Find:

Code: Select all

<!-- IF S_DISPLAY_NEWS_RVS -->width: 44%;<!-- ELSE -->width: 60%;<!-- ENDIF -->
Replace with:

Code: Select all

width: 90%;


Please don't tell me you edited your files in the ACP. If yes, refreshing the theme cache would force phpBB3 to drop all changes you made to the theme. If not, phpBB3 will just reload all info from the files.

Topic author
Scatman_mv
Active Member
Posts: 9
Joined: 27. April 2010 03:03

Re: Changing Block names/ center block width

Post by Scatman_mv »

Excellent, that works perfect :D


I removed the forum name and description from the header within the ACP
That is all... I believe

Edit: ok, refreshed it, wow, what a change.

Also noticed the directory banner at the bottom of the portal is larger... couldnt find where that was though.

Topic author
Scatman_mv
Active Member
Posts: 9
Joined: 27. April 2010 03:03

Re: Changing Block names/ center block width

Post by Scatman_mv »

I notice at work today using Internet Explorer that the width does not change from how it was.
IE is viewing differently to Firefox and Safari :?
Locked

Return to “board3 Portal 1.0.x - English Support”