Skip to Content Skip to Menu

Make Profilelink with an image

  • emthev
  • emthev
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 0
12 years 5 months ago #199568 by emthev
Make Profilelink with an image was created by emthev
Hello,

I would like to change the link in the profile (I use the plugin Profilelink) : instead of the text "Send a private message", I would like to display the link with an image (like a button).
I tried to change the template of CB, I can display the image but the link stays on the text.

How can I do this ?

I use CB 1.8 and uddeIM 2.7

Thanks a lot for your help !!!!

Em

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 5 months ago #199571 by slabbi
Replied by slabbi on topic Re: Make Profilelink with an image
"Send a private message" is not a language string from uddeIM.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • emthev
  • emthev
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 0
12 years 5 months ago #199573 by emthev
Replied by emthev on topic Re: Make Profilelink with an image
Sorry, the exact text is "Send Private Message" (it's the default text).
I translated it in french in the tab manager (_UE_PMSLINK).
It's the uddeIM Profilelink plugin that I use.

I published the tab, it works perfectly, but I just would like to change the appearance of the link : instead of the text, I would like an image to be the link to send a message to the user.

How can I do this ? In the file /pms.uddeim.profilelink.php ?

Thank you very much for your help :)

Em

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 5 months ago #199574 by slabbi
Replied by slabbi on topic Re: Make Profilelink with an image
I understand. The text can be changed in the profile manager. When you want to change it to an image, you have to modify the code itself. There is no option for that.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • emthev
  • emthev
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 0
12 years 5 months ago #199575 by emthev
Replied by emthev on topic Re: Make Profilelink with an image
Thank you very much for your help.

I thought it was only doable with the code, but I was not really sure. Could give me some help to change the code ?
Which file and how could I do that ?
I have basic knowledge in PHP, but quite OK in HTML and CSS. I can spend time with this because I need to reach that result, but I really don't know where to begin and what to do...

I know it is beyond the plugin itself, but if you could help me with that point, it would be great !!!

Thanks a lot again.
:)

Em

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 5 months ago #199579 by slabbi
Replied by slabbi on topic Re: Make Profilelink with an image
In pms.uddeim.profilelink.php line 125+ the output is created:
Code:
$return .= "<div class=\"fieldCell\" style=\"text-align:left;width:95%;\">"; $return .= "<a href='".$link."'>".$textLink."</a>"; $return .= "</div>";

$link contains the link to the user profile and $textLink the text that is usually defined in the tab manager. You can place an image there if you like. I have not tested it but maybe you can also use "<img ...>" in the tab manager in order to display an image, so maybe there is no need to change the code.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer
The following user(s) said Thank You: emthev

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum