Warning: The author of this contribution does not provide support for it anymore.

Thanks for posts

showing different button then thanks - Thanks for posts

showing different button then thanks

by Don Vito » Tue Nov 29, 2011 4:06 pm

i have a little problem as you can see in the attached picture i have two buttons that are the same, except that the last button should really be the thanks button :?

the style i am working with is the Artodia: Ultra Blue which is based on pro silver.
Attachments
thank button.png
thank button.png (4.61 KiB) Viewed 2128 times
Don Vito
Registered User
Posts: 89
Joined: Mon Jul 04, 2011 1:18 am

Re: showing different button then thanks

by Arty » Tue Nov 29, 2011 5:08 pm

Make sure your <li> has a custom class, open colours.css, find

Code: Select all

.phpbb .profile-icons .quote-icon a {
   background-image: url("{IMG_ICON_POST_QUOTE_SRC}");
}
and add similar line after that but with correct class name and image url. Then in content.css find

Code: Select all

.phpbb .profile-icons .quote-icon a {
   width: {IMG_ICON_POST_QUOTE_WIDTH}px;
}
and make a copy of it with correct class name and image width
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin

Re: showing different button then thanks

by Палыч » Tue Nov 29, 2011 5:39 pm

Thanks Arty!

@Don Vito

Code: Select all

.thanks-icon, .thanks-icon a      { background-image: url("{IMG_THANKPOSTS_SRC}"); }
.removethanks-icon, .removethanks-icon a   { background-image: url("{IMG_REMOVETHANKS_SRC}"); }
Sorry for my bad english
User avatar
Палыч
Registered User
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей

Re: showing different button then thanks

by Don Vito » Tue Nov 29, 2011 7:16 pm

Likely that im doing something wrong but still cant get it to work properly. Here is what i did.

colours.css

Code: Select all

.phpbb .profile-icons .quote-icon a {
   background-image: url("{IMG_ICON_POST_QUOTE_SRC}");
}

.thanks-icon, .thanks-icon a      {
   background-image: url("{IMG_THANKPOSTS_SRC}");
}

.removethanks-icon, .removethanks-icon a   {
   background-image: url("{IMG_REMOVETHANKS_SRC}");
}


and content.css

Code: Select all

.phpbb .profile-icons .quote-icon a {
   width: {IMG_ICON_POST_QUOTE_WIDTH}px;
}

.thanks-icon, .thanks-icon a {
   width: {IMG_THANKPOSTS_WIDTH}px;
}

.removethanks-icon, .removethanks-icon a   {
   width: {IMG_REMOVETHANKS_WIDTH}px;
}
Don Vito
Registered User
Posts: 89
Joined: Mon Jul 04, 2011 1:18 am

Re: showing different button then thanks

by Палыч » Tue Nov 29, 2011 7:24 pm

Code: Select all

.phpbb .profile-icons .thanks-icon a {
   background-image: url("{IMG_THANKPOSTS_SRC}");
}

and similarly
Sorry for my bad english
User avatar
Палыч
Registered User
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей

Re: showing different button then thanks

by Don Vito » Tue Nov 29, 2011 7:30 pm

:oops: Yes, i noticed i forgot to put .phpbb .profile-icons infront of it.

Have a look at the picture, it looks like the thank icon is there but under the cross icon.
Attachments
thank button 2.png
thank button 2.png (4.67 KiB) Viewed 2131 times
Don Vito
Registered User
Posts: 89
Joined: Mon Jul 04, 2011 1:18 am

Re: showing different button then thanks

by Arty » Tue Nov 29, 2011 8:02 pm

Don't leave any parts of default css. This line

Code: Select all

.thanks-icon, .thanks-icon a      {
should be changed to

Code: Select all

.phpbb .profile-icons .thanks-icon a {
first selector .thanks-icon, should be removed

Or apply this patch: https://github.com/cyberalien/phpbb3_ul ... 3a52f3d5a9
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin

Re: showing different button then thanks

by Don Vito » Tue Nov 29, 2011 8:15 pm

:D :D Thanks Arty and Палыч, its working perfect again!!
Don Vito
Registered User
Posts: 89
Joined: Mon Jul 04, 2011 1:18 am

Re: showing different button then thanks

by Палыч » Sat Dec 03, 2011 10:55 pm

OK
Sorry for my bad english
User avatar
Палыч
Registered User
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей

Re: showing different button then thanks

by Romano1 » Fri Dec 09, 2011 11:04 am

Thank you it worked great.
Romano1
Registered User
Posts: 115
Joined: Sat Nov 06, 2010 8:26 am

Re: showing different button then thanks

by pimpelbeert » Tue Jan 24, 2012 9:21 pm

I have the same problem, but cant find where I went wrong. My style is Artodia Helion. This is what I have:

colours.css:

Code: Select all

.phpbb .profile-icons .thanks-icon a      { background-image: url("{T_IMAGESET_PATH}/thankposts.gif"); }
.phpbb .profile-icons .removethanks-icon a   { background-image: url("{T_IMAGESET_PATH}/removethanks.gif"); }


Content.css

Code: Select all

.phpbb .profile-icons  .thanks-icon a {
   width: {IMG_THANKPOSTS_WIDTH}px;
}

.phpbb .profile-icons  .removethanks-icon a   {
   width: {IMG_REMOVETHANKS_WIDTH}px;
}


imageset.cgf

Code: Select all

img_thankposts = thankposts.gif
img_removethanks = removethanks.gif


But I have the wrong (part of the) button:
Image

Hope someone knows where I went wrong, Thx!
pimpelbeert
Registered User
Posts: 8
Joined: Thu Jul 28, 2011 9:00 am

Re: showing different button then thanks

by Палыч » Wed Jan 25, 2012 7:23 pm

pimpelbeert wrote:where I went wrong

styles/Artodia Helion/imageset/imageset.cfg
Sorry for my bad english
User avatar
Палыч
Registered User
Posts: 1543
Joined: Sun Jul 01, 2007 7:59 pm
Location: St. Petersburg
Name: Сергей

Re: showing different button then thanks

by Don Vito » Fri Feb 24, 2012 10:17 pm

Having this same issue again, this time with the Reputation system. Unfortunately i didn't really document what i did last time to make it work with the thanks button but im pretty sure i must be forgetting something here.

My additions to colours.css

Code: Select all

.phpbb .profile-icons .quote-icon a {
   background-image: url("{IMG_ICON_POST_QUOTE_SRC}");
}

.phpbb .profile-icons .rate-good-icon a {
   background-image: url("{IMG_ICON_RATE_GOOD_SRC}");
}

.phpbb .profile-icons .rate-bad-icon a {
   background-image: url("{IMG_ICON_RATE_BAD_SRC}");
}


to content.css

Code: Select all

.phpbb .profile-icons .quote-icon a {
   width: {IMG_ICON_POST_QUOTE_WIDTH}px;
}
.phpbb .profile-icons .rate-good-icon a {
   width: {IMG_ICON_RATE_GOOD_WIDTH}px;
}
.phpbb .profile-icons .rate-bad-icon a {
   width: {IMG_ICON_RATE_BAD_WIDTH}px;
}


and to imageset.cfg

Code: Select all

# Attachment
img_icon_topic_attach = attachment.png*10*5

img_icon_rate_good = icon_rate_good.gif*20*20
img_icon_rate_bad = icon_rate_bad.gif*20*20


At first it didn't show the thumbs but that was because i needed to copy the icon_rate_good.gif and icon_rate_bad.gif to the style i am using.

The thumb up and down are showing now, but instead of the white/green/red square i see a [x] button.

Using a fresh version of phpbb and template to test.
Attachments
exxample.png
exxample.png (5.67 KiB) Viewed 1955 times
Don Vito
Registered User
Posts: 89
Joined: Mon Jul 04, 2011 1:18 am