board77

The Last Homely Site on the Web

The Way the board looks

Post Reply   Page 2 of 6  [ 109 posts ]
Jump to page « 1 2 3 4 5 6 »
Author Message
LalaithUrwen
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 5:12 pm
The Grey Amaretto as Supermega-awesome Proud Heretic Girl
Offline
 
Posts: 21787
Joined: Thu 24 Feb , 2005 3:46 pm
 
I prefer that, too, elsha.

Here's what I found. :Q :Q :Q
Quote:
Compared to phpBB3, links in phpBB2 had a slightly different behaviour: When you clicked them, they opened a new window with the requested page. This was changed in phpBB3 for a couple of reasons, but one of the most important ones was the goal to achieve XHTML 1.0 Strict-validation for the whole board.


If you still want to get the same behaviour on your new phpBB3 board, there are a couple of small modifications have you to make, which this guide should hopefully explain in enough detail.

Modifying auto-detected links

First of all, make auto-detected links (those that you didn't wrap with the url-BBCode) open new windows when getting clicked. Therefor open the includes/functions_content.php and look for following line (which should be around line 592):

Code: Select all
$html = "$whitespace<!-- $tag --><a$class href=\"$url\">$text</a><!-- $tag -->$append";




And replace it with following line:

Code: Select all
if ($type == MAGIC_URL_EMAIL)
{
$html = "$whitespace<!-- $tag --><a$class href=\"$url\">$text</a><!-- $tag -->$append";
}
else
{
$html = "$whitespace<!-- $tag --><a$class href=\"$url\" onclick=\"window.open(this.href);return false;\">$text</a><!-- $tag -->$append";
}



BBCode URLs

Next open the bbcode.html of your style (if you're using prosilver, this would be the styles/prosilver/template/bbcode.html file) and look for following line:

Code: Select all
<!-- BEGIN url --><a href="{URL}" class="postlink">{DESCRIPTION}</a><!-- END url -->



Now replace it with this line:

Code: Select all
<!-- BEGIN url --><a href="{URL}" onclick="window.open(this.href);return false;" class="postlink">{DESCRIPTION}</a><!-- END url -->



Help phpBB read the output again

Last but not least, you should also do the following change which will allow the created HTML output to be parsed again by phpBB: Open the includes/functions.php and replace this segment which you should find around line 2740...

Code: Select all
case 'bbcode_htm':
return array(
'#<!\-\- e \-\-><a href="mailto:(.*?)">.*?</a><!\-\- e \-\->#',
'#<!\-\- l \-\-><a (?:class="[\w-]+" )?href="(.*?)(?:(&|\?)sid=[0-9a-f]{32})?">.*?</a><!\-\- l \-\->#',
'#<!\-\- ([mw]) \-\-><a (?:class="[\w-]+" )?href="(.*?)">.*?</a><!\-\- \1 \-\->#',
'#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#',
'#<!\-\- .*? \-\->#s',
'#<.*?>#s',
);



... with this one:

Code: Select all
case 'bbcode_htm':
return array(
'#<!\-\- e \-\-><a href="mailto:(.*?)">.*?</a><!\-\- e \-\->#',
'#<!\-\- l \-\-><a (?:class="[\w-]+" )?href="(.*?)(?:(&|\?)sid=[0-9a-f]{32})?" onclick="window\.open\(this\.href\);return false;">.*?</a><!\-\- l \-\->#',
'#<!\-\- ([mw]) \-\-><a (?:class="[\w-]+" )?href="(.*?)" onclick="window\.open\(this\.href\);return false;">.*?</a><!\-\- \1 \-\->#',
'#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#',
'#<!\-\- .*? \-\->#s',
'#<.*?>#s',
);



And since you've updated also a template file, don't forget to also purge your board's cache through the respective button on the frontpage of your board's admin panel.
:help: I think I'll just stick to right-click, Open in New Tab.

Lali

_________________

[ img ]


Top
Profile Quote
yovargas
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 6:30 pm
User avatar
Offline
 
Posts: 14779
Joined: Thu 24 Feb , 2005 12:11 pm
 
Err, yeah, I really dislike links overriding my current page. How rude!


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 6:58 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
Estel wrote:
How about these?

eTech cyan -- linky

prostain copper -- linky

They're the closest I can find to Aeolus and Rainy Day.


Thanks!! :)
eTech cyan looks good, and has fixed width for Avatars

prostain copper puts Avatars on the right and most people don't seem to like that!

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 7:00 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
Erunáme wrote:
I fear we're going to get annoying to Jude and Alatar! If I knew how to install board styles I'd totally volunteer to help. Anyway, to me Avalon is pretty darned close to Rainy Day:

http://demo.phpbb3styles.net/Avalon+Blue

This looks good too, but I'd suggest that we choose either this or the one Estel suggested as they're very similar

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 7:44 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
Here's a neat link!

memberlist.php?mode=leaders

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 7:46 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
Testing subscription emails

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 7:50 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
That didn't work. Testing again

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 8:04 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
And again

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
LalaithUrwen
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 8:07 pm
The Grey Amaretto as Supermega-awesome Proud Heretic Girl
Offline
 
Posts: 21787
Joined: Thu 24 Feb , 2005 3:46 pm
 
Did it work?


Lali

_________________

[ img ]


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 8:10 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
Not yet, which is wierd, cause the send email function is now working.

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
LalaithUrwen
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 8:13 pm
The Grey Amaretto as Supermega-awesome Proud Heretic Girl
Offline
 
Posts: 21787
Joined: Thu 24 Feb , 2005 3:46 pm
 
Hmmm, fwiw, I also went in and "changed" my email addy. (I didn't really change it, but just made it think I had.) I have also just now subscribed to another thread, so I'll let you know if I get any notifications.


Lali

_________________

[ img ]


Top
Profile Quote
LalaithUrwen
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 8:19 pm
The Grey Amaretto as Supermega-awesome Proud Heretic Girl
Offline
 
Posts: 21787
Joined: Thu 24 Feb , 2005 3:46 pm
 
Something you did worked! I just got a notification to the thread I recently subscribed to.


Lali

_________________

[ img ]


Top
Profile Quote
Alatar
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 8:38 pm
of Vinyamar
Offline
 
Posts: 8281
Joined: Mon 28 Feb , 2005 4:39 pm
Location: Ireland
Contact: ICQ
 
Ooh, nice. Embedding Youtubes is possible

_________________

[ img ]
These are my friends, see how they glisten...


Top
Profile Quote
Jude
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 10:20 pm
Aspiring to heresy
User avatar
Offline
 
Posts: 19690
Joined: Wed 23 Feb , 2005 6:54 pm
Location: Canada
 
I changed the colour of the Administrators group to the deep blue we used to have on the old board - I just didn't like that in-your-face bold red. :D

However, I can't find any way to change the name to "Rangers". :bawl:

_________________

[ img ]

Melkor and Ungoliant in need of some relationship counselling.


Top
Profile Quote
Holbytla
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 11:08 pm
Grumpy cuz I can be
User avatar
Offline
 
Posts: 6642
Joined: Thu 09 Dec , 2004 3:07 am
 
Jude wrote:
I changed the colour of the Administrators group to the deep blue we used to have on the old board - I just didn't like that in-your-face bold red. :D

However, I can't find any way to change the name to "Rangers". :bawl:
Administrator and Moderator are pre-defined or default groups. You need to create a new group and specify the name and color.

3.6.2. Group attributes
A list of attributes a group can have:

Group name
The name of your group.

Group description
The description of the group that will be displayed on the group overview list..

Display group in legend:
This will enable the display of the name of the group in the legend of the "Who is Online" list. Note, that this will only make sense if you specified a colour for the group.

Group able to receive private messages
This will allow the sending of Private Messages to this group. Please note, that it can be dangerous to allow this for Registered Users, for instance. There is no permission to deny the sending to groups, so anyone who is able to send Private Messages will be able to send a message to this group!

Group private message limit per folder
This setting overrides the per-user folder message limit. A value of "0" means the user default limit will be used. See the section on user preferences for more information about private message settings.

Group colour
The name of members that have this group as their default group (see Section 3.6.3, “Default groups”) will be displayed in this colour on all forum pages. If you enable Display group in legend, an legend entry with the same colour will appear below the "Who is Online" listing.

Group rank
A member that has this group as the default group (see Section 3.6.3, “Default groups”) will have this rank below his username. Note, that you can change the rank of this member to a different one that overrides the group setting. See the section on ranks for more information.

Group avatar
A member that has this group as the default group (see Section 3.6.3, “Default groups”) will use this avatar. Note that a member can change his avatar to a different one if he has the permission to do so. For more information on avatar settings, see the userguide section on avatars.

3.6.3. Default groups
As it is now possible to assign attributes like colours or avatars to groups (see Section 3.6.2, “Group attributes”, it can happen that a user is a member of two or more different groups that have different avatars or other attributes. So, which avatar will the user now inherit?

To overcome this problem, you are able to assign each user exactly one "Default group". The user will only inherit the attributes of this group. Note, that it is not possible to mix attributes: If one group has a rank but no avatar, and another group has only a avatar, it is not possible to display the avatar from one group and the rank from the other group. You have to decide for one "Default group".

Important
Default groups have no influence on permissions. There is no added permissions bonus for your default group, so a user's permissions will stay the same, no matter what group is his default one.

You can change default groups in two ways. You can do this either through the user management (see Section 3.5, “Users Management”), or directly through the groups management (Manage groups) page. Please be careful with the second option, as when you change the default group through a group directly, this will change the default group for all its group members and overwrite their old default groups. So, if you change the default group for the "Registered Users" group by using the Default link, all members of your forum will have this group as their default one, even members of the Administrators and Moderators groups as they are also members of "Registered Users".

Important
If you make a group the default one that has a rank and avatar set, the user's old avatar and rank will be overwritten by the group.

edit:
And of course you have to set the permissions for that group.

_________________

[ img ]


Top
Profile Quote
LalaithUrwen
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 11:23 pm
The Grey Amaretto as Supermega-awesome Proud Heretic Girl
Offline
 
Posts: 21787
Joined: Thu 24 Feb , 2005 3:46 pm
 
Thanks, Jude! I don't like red at all, but I wasn't going to complain. Do you think we should set up a Ranger group? (Thanks, holby.)


Lali

_________________

[ img ]


Top
Profile Quote
Jude
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 11:26 pm
Aspiring to heresy
User avatar
Offline
 
Posts: 19690
Joined: Wed 23 Feb , 2005 6:54 pm
Location: Canada
 
Yes, please! Do you want to give it a try?

(thanks, Holby!)

_________________

[ img ]

Melkor and Ungoliant in need of some relationship counselling.


Top
Profile Quote
LalaithUrwen
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 11:27 pm
The Grey Amaretto as Supermega-awesome Proud Heretic Girl
Offline
 
Posts: 21787
Joined: Thu 24 Feb , 2005 3:46 pm
 
I will take a look and see.

Wish me luck!


Lali

_________________

[ img ]


Top
Profile Quote
Ara-anna
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 11:39 pm
Daydream Believer
User avatar
Offline
 
Posts: 5780
Joined: Mon 28 Feb , 2005 11:15 pm
Location: Pac Northwest
 
Everything looks good to me except the emoticons look all smooshed up weird. Might be this computer. :)

_________________

Just when I thought I was out, they pull me back in

Five seconds away from the Tetons and Yellowstone


Top
Profile Quote
LalaithUrwen
Post subject: Re: The Way the board looks
Posted: Sat 13 Sep , 2008 11:40 pm
The Grey Amaretto as Supermega-awesome Proud Heretic Girl
Offline
 
Posts: 21787
Joined: Thu 24 Feb , 2005 3:46 pm
 
Well, I'm not sure I did that correctly, but what I did appears to have worked. I renamed the existing "admin" group (not the pre-defined group "Administrators"). I renamed the admin group "Rangers" and set the color to what you had it set for Administrators. I then took Administrators and Group Moderators off of the legend, so the only group you can see now is Rangers.

??? Do you think that will work? The only one missing from the newly named Rangers group (used to be "admin") is *Alandriel* but I thought she was gone anyway. ??

Lali

_________________

[ img ]


Top
Profile Quote
Display: Sort by: Direction:
Post Reply   Page 2 of 6  [ 109 posts ]
Return to “Business Room” | Jump to page « 1 2 3 4 5 6 »
Jump to: