Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello my friends
Thank you very much for this fine theme creator
are there away to put the
["Welcome 'user'
View | Edit | Logout"]
message with the user avatar block?
I made the block by the avatar catch code
<div class="login_form" align="left"><p>
<?php global $user; ?>
<?php if (arg(0) == 'user' && $user->uid != arg(1)) : ?>
<div class="userpic2"><?php print theme('user_picture', $user->uid); ?></div>
<?php elseif ($user->uid) : ?>
<div class="userpic"><?php print theme('user_picture', $user); ?></div>
<?php else : ?>
<div class="userpic2"><img src="files/VIBer.png" /></div>
<?php endif; ?>
</p></div>
best regards
Comments
Comment #1
hswong3i CreditAttribution: hswong3i commentedHmm... I have think for this idea a long long time ago too, seem that maybe much flexible if we able to add some custom message next to this hardcode "welcome" message.
Currently, this message is hardcode in
search-theme-form.tpl.php
. You may add your custom PHP code snippet after the<?php print $message ?>
part. BTW, it is not too flexible, and your code may be override during version upgrade.A better idea is implement this region as block region, so you will able to create custom block and display within this special region. But there is some drawback, too:
Well... Just feel free to comment and let's brainstorm for a suitable solution :)
Comment #2
hswong3i CreditAttribution: hswong3i commentedWell... internet_services-5.x-2.x-dev is no longer supported and so I will mark this issue as won't fix. Please feel free to contact me directly if any tailor-made customization support is required :D