Icy Phoenix
phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
faethor [ Tue 21 Aug, 2012 14:02 ]
Post subject: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Hi there
First, thanks for the great Black Pearl Style
I have some trouble with the Gallery Mod for phpbb. There I should find in subsilver2 template in the viewtopic_body.html this line:
<td><div class="gensmall" style="float: {S_CONTENT_FLOW_BEGIN};"> <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- 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 --> </div> <div class="gensmall" style="float: {S_CONTENT_FLOW_END};"><!-- IF not S_IS_BOT --><!-- IF postrow.U_EDIT --><a href="{postrow.U_EDIT}">{EDIT_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a> <!-- ENDIF --> <!-- ENDIF --> </div></td>
and in this line I should find
<!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->
and add after them following code:
<!-- IF postrow.U_GALLERY --><a href="{postrow.U_GALLERY}"><img src="{T_IMAGESET_LANG_PATH}/icon_contact_gallery.gif" alt="{L_PERSONAL_ALBUM}" /></a> <!-- ENDIF -->
Now, the prblem is, that in Black Pearl no such code like above exists. I looked in subsilver2 because BP is bades on this style.
Can somebody tell me what I have to change in Black Pearl indeet the subsilver2 file?
Many thanks
Faethor
Joshua203 [ Tue 21 Aug, 2012 14:14 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Hi Faethor, welcome to Icy Phoenix
I have edited your post to swap Bold bbcode for CODE bbcode, please use this next time you include code samples (it's easier to read and safer to not cause possible conflicts).
I'll be taking a look at your problem now and post back once I see what you are talking about.
Joshua203 [ Tue 21 Aug, 2012 14:25 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
You should have absolutely no problem finding this line directly in black pearl (not even a need to compare to subsilver2):
<!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->

faethor [ Tue 21 Aug, 2012 14:48 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Hi Joshua
Many thanks for editing my post and helping me to solve my problem

I didnt know that I can the code that is around the line to edit

Now it works fine but my next problem is, that I need a german button for the gallery.
Do you know where I can find empty buttons in Black Pearl style to create one? If I download the existing ones, ther are to small to edit
Thanks!
Faethor
Joshua203 [ Tue 21 Aug, 2012 14:53 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
What exactly do you want the button to say?
Gallery or Album ...something else?
Joshua203 [ Tue 21 Aug, 2012 14:59 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Look at the bottom of my posts .. right click the album image and download it ... rename it and upload it to the correct directory
PS.... oooh maybe first you need to switch this site to black pearl style in profile or portal

faethor [ Tue 21 Aug, 2012 15:21 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Great! That helps a lot!
I uploaded your image, but where I have to change the code that the right button will be displayed?
Sorry for that many questions...
Joshua203 [ Tue 21 Aug, 2012 15:25 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Sorry for that many questions...
Don't worry ... that's what we're here for!
It's why I said "rename the downloaded button", if you rename it to what the mod uses (icon_contact_gallery.gif) and while uploading it choose to overwrite the original, it will use the new image

faethor [ Tue 21 Aug, 2012 15:27 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Ah, this way. I would like to hold the original one, if somebody wants to change to subsilver2 style. I named the button icon_contact_gallery.png. like all my german buttons

Is there a chance to do this?
Joshua203 [ Tue 21 Aug, 2012 15:32 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Any style has its own folder for those lang buttons.
So for any style you would need to upload the button of your choice, the style you want to have default image should contain the original button and black pearl the new one.
Just incase .... you need to do the all edits for all styles on your board too.
faethor [ Tue 21 Aug, 2012 15:40 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
I uploaded the button to styles/black_pearl/imageset/de
I changed the imgaeset.cfg this way:
img_icon_contact_aim = icon_contact_aim.png
img_icon_contact_email = icon_contact_email.png
[color=#E50000]img_icon_contact_gallery = icon_contact_gallery.png[/color]
img_icon_contact_icq = icon_contact_icq.png
But the button is still the original one

Joshua203 [ Tue 21 Aug, 2012 15:43 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Have a close look at the added code:
<!-- IF postrow.U_GALLERY --><a href="{postrow.U_GALLERY}"><img src="{T_IMAGESET_LANG_PATH}/icon_contact_gallery.gif" alt="{L_PERSONAL_ALBUM}" /></a> <!-- ENDIF -->
it's going for .gif not .png

faethor [ Tue 21 Aug, 2012 15:46 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Just found it
Many thanks for your support!! Now it works.
Joshua203 [ Tue 21 Aug, 2012 15:49 ]
Post subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
You're welcome ... I'll mark this thread as SOLVED (something you can do by yourself in the future at title edit ...right bottom of the page)