First of all a big thanks for the module. Placed in minipanels this block is a great way to display information about the logged in user (I havent tried the authored block yet.). I just have one query - howe do I replace the default icons provided in the user links section with some of my own. Is there any particular css style that I can replace? I replaced the images in the folder once with my own images but thats a very bad solution of course as everytime an update comes out I have to repeat the action.
Thanks

Comments

Draven_Caine’s picture

Category: support » feature
Status: Active » Postponed

A quick solution is over-ride the template file in the templates folder.

This si the code required for the loggedin profile link.

<?php if (variable_get('user_details_loggedin_profilelink') != 0): ?>
            <div class="profile-link">
              <a href="<?php print $user_details_loggedin_profilelink_url; ?>"><img src="<?php print $user_details_loggedin_profilelink_imgsrc; ?>" title="<?php print $user_details_loggedin_profilelink_imgtitle; ?>" width="20px" height="20px" /></a>
            </div>
          <?php endif; ?>

Now to change the image for the profile link just change
<?php print $user_details_loggedin_profilelink_imgsrc; ?>
change this php line to the url path of your image.

Mind you this would be a good feature request, to make the images alterable in an easier way. I am changing this to a feature request and as time permits I'll add it as a feature request.

As panels goes I do have plans to make this module more panels friendly also.

Thanks for the bug report,
Draven

santam’s picture

Thanks I will wait till the feature is incorporated.

Draven_Caine’s picture

I have added your feature, look for the next release.

Thanks for the feature request,
Draven

santam’s picture

Thanks Draven that was real quick. Since I cant code to save my life thank you once again.

Draven_Caine’s picture

Anytime, just a heads up. Any feature that seems like many people would use it I try to add. Your request was more than that, I know a lot of people like to customize their site even if they can't code :)

What I have done for all the links(the custom links already had it done) was add a text field that has a default value of my images, but you can simple upload your images to your website (i suggest your theme folder or something similar) and than write into the text field where the image is and the links will pick this up.

I didn't want to add an actual upload button to the module to try and keep this module as light as possible.

Thanks for the feature request,
Draven

Draven_Caine’s picture

The update is taking a bit long than i thought so I thought I would drop an update for you.

I am adding your feature to both blocks along with a few more links: home, panels, and views. and also doing a few bug fixes.

Draven

santam’s picture

Thanks thats great news. I am in no hurry :-D

Draven_Caine’s picture

Status: Postponed » Closed (fixed)

Fixed in 7.x-2.3