|
Page 1 of 1
|
brewster
Joined: October 2009
Posts: 24
Location: New York
|
Moving Buttons In BP Same As Standard PhpBB Templates?
I used the following code on my own forum to move the PM and email buttons from under a post to inside the posters profile:
- template: viewtopic_body.html
- search for...
-
- Code:
- <!-- BEGIN custom_fields -->
- <br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}
- <!-- END custom_fields -->
- </span>
-
- and add after...
-
- Code:
- <br />
- <!-- IF postrow.U_PM --><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->
-
UPDATE...
Well I just tried adding this code and it does not do anything with this style for some reason. I figured the template for viewtopic_body.html would be the same for all styles, but it obviously is not. Yes - I refreshed the style after the edit. No effect. Bummer:(
Can anyone please suggest an alternative code - my son really wants this like my forum.
|
#1 Sat 31 Oct, 2009 23:42 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
brewster
Joined: October 2009
Posts: 24
Location: New York
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
No help on this or my following questions?
|
#2 Mon 02 Nov, 2009 02:20 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
I've done the same to test it and it works fine (looks bad but works fine .... LOL)
i did purge the cache before checking though
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#3 Mon 02 Nov, 2009 12:07 |
|
brewster
Joined: October 2009
Posts: 24
Location: New York
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
I've done the same to test it and it works fine (looks bad but works fine .... LOL)
i did purge the cache before checking though
Maybe because Black Pearl is not using the code properly - like with subsilver2 theme. It is not centering the profile, nor is it MOVING the email and PM buttons - it's just copying them and leaving the originals.
|
#4 Tue 03 Nov, 2009 16:16 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
nor is it MOVING the email and PM buttons - it's just copying them and leaving the originals.
well if you add this code and don t remove the old code yes that will happen, i m not suprised to hear that, you need to remove the old code when the new code is added somewhere else
it looks bad in my personal opinion because the way this is written those buttons no longer allign in height with the other buttons anymore
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#5 Tue 03 Nov, 2009 16:44 |
|
brewster
Joined: October 2009
Posts: 24
Location: New York
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
nor is it MOVING the email and PM buttons - it's just copying them and leaving the originals.
well if you add this code and don t remove the old code yes that will happen, i m not suprised to hear that, you need to remove the old code when the new code is added somewhere else
it looks bad in my personal opinion because the way this is written those buttons no longer allign in height with the other buttons anymore
Remove WHAT old code - this code is supposed to just be added to the existing. It works fine in subsilver2 without removing anything.
What exactly looks bad about this, from my subsilver2 forum..
Everything is perfectly aligned and centered.
|
#6 Tue 03 Nov, 2009 17:04 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
and they are at always the same HEIGHT as the quote button and such? i would be amazed if they were
Edit: i am not familar with subsilver but if the buttons are not there to begin with??? then yeah why remove the code?? but like i said i have not seen that style in along time
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#7 Tue 03 Nov, 2009 17:22 |
|
brewster
Joined: October 2009
Posts: 24
Location: New York
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
and they are at always the same HEIGHT as the quote button and such? i would be amazed if they were
Edit: i am not familar with subsilver but if the buttons are not there to begin with??? then yeah why remove the code?? but like i said i have not seen that style in along time
I don't understand what you mean by "at the same height". The snapshot is what all the profiles on my forum look like. Centered, with the email and profile buttons moved from under the posts to the profiles. The original style has no buttons and nothing is centered, just like Black pearl.
|
#8 Tue 03 Nov, 2009 19:20 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
i mean PM and profile are in one line with quote edit and delete horizontally if it is unmodified in black pearl, i m not talking about pro or subsilver because this board does not cover that
so what i mean is the horizontal allignment of the buttons
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#9 Tue 03 Nov, 2009 19:32 |
|
brewster
Joined: October 2009
Posts: 24
Location: New York
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
i mean PM and profile are in one line with quote edit and delete horizontally if it is unmodified in black pearl, i m not talking about pro or subsilver because this board does not cover that
so what i mean is the horizontal allignment of the buttons
I assume you mean do the PM and email buttons in profile align with the remaining buttons in posts? No - of course not, because additions to profiles - like ranks, rank images, avatar sizes, would all change the vertical height of each profile. I don't really care about that - I want to eliminate the duplicate buttons for PM and email from under the posts, move them into the profiles, and center the profile up. Even adding
- td.profile {
- text-align: center;
- }
-
does nothing with this template - and it does in both ProSilver and subsilver2 - which are the phpBB3 default styles. Mind boggling. In fact from what I can decipher, there are 3 distinct selectors covering just the profile!
|
#10 Tue 03 Nov, 2009 22:12 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
<!-- BEGIN custom_fields -->
<br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}
<!-- END custom_fields -->
</span>
<br />
<!-- IF postrow.U_PM --><center><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a></center> <!-- ENDIF -->
</td>
would this help?
Edit: for deletion you may want to check the left and right viewtopic, i m not sure so be careful back it up before doing anything
Description: |
looks like this |
Filesize: |
10.41 KB |
Viewed: |
195 Time(s) |
|
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#11 Tue 03 Nov, 2009 23:15 |
|
brewster
Joined: October 2009
Posts: 24
Location: New York
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
<!-- BEGIN custom_fields -->
<br /><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}
<!-- END custom_fields -->
</span>
<br />
<!-- IF postrow.U_PM --><center><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a></center> <!-- ENDIF -->
</td>
would this help?
Edit: for deletion you may want to check the left and right viewtopic, i m not sure so be careful back it up before doing anything
Almost:) That centers the 2 buttons, but doesn't align center the "online" button or the ranks image and text. Also not seen is ... does it REMOVE the PM and PROFILE buttons from under the posts?
I have since edited the profile to remove the rank text while leaving the image.
|
#12 Wed 04 Nov, 2009 00:03 |
|
Joshua203
Joshua 203
Dutch A Go Go
Joined: August 2008
Posts: 1754
Location: Earth, Europe, the Netherlands, Rotterdam
|
Re: Moving Buttons In BP Same As Standard PhpBB Templates?
you could just try moving the first <center> tag i added ..up in the code
____________ www.DutchaGoGo.com (development/under construction ...Forever?¿?)
|
#13 Wed 04 Nov, 2009 00:19 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
Similar Topics
Similar Topics
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|