SOLVED Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style


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:
Code: [Download] [Hide] [Select]
<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
Code: [Download] [Hide] [Select]
<!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->

and add after them following code:
Code: [Download] [Hide] [Select]
<!-- 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

Profile PM  
Subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Hi Faethor, welcome to Icy Phoenix :wink:

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.

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):
Code: [Download] [Hide] [Select]
<!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a> <!-- ENDIF -->

:wink:

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

Profile PM  
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?

Subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
http://www.icyphoenix.com/files/images/10637/album.jpg

It should be like this, but in Black Pearl Style :)

Maybe without the camera :)

Last edited by faethor on Tue 21 Aug, 2012 15:01; edited 3 times in total
Profile PM  
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 :wink:

PS.... oooh maybe first you need to switch this site to black pearl style in profile or portal :oops:

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...

Profile PM  
Subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
faethor wrote: [View Post]
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 :wink:

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?

Profile PM  
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.

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:
Code: [Download] [Hide] [Select]
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 :(

Profile PM  
Subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Have a close look at the added code:
Code: [Download] [Hide] [Select]
<!-- 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 :LOL:

Subject: Re: Problem With Viewtopic-body.html In Phpbb Gallery And Black Pearl Style
Just found it :D

Many thanks for your support!! Now it works.

Profile PM  
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)


Page 1 of 1


  
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

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1623s (PHP: 21% SQL: 79%)
SQL queries: 15 - Debug Off - GZIP Enabled