Home arrow Forum Is this possible to do?
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 08:30:16 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  Is this possible to do?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Is this possible to do?  (Read 1892 times)
Bryan DUncan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Is this possible to do?
« on: June 23, 2006, 02:51:46 AM »

Version Information:


SMF Version 1.1 RC2


Configuration description:
Is this possible?  Take the bottom section of the users information and place awards, pictures, small in sized potential 3 across 2 rows?



Problem description:
Not really a problem.

Module help:
There is a mod out there called Award Mod 1.1 if you are familiar with it, you know it only shows awards if you look at the users profile, or at least I havent been able to get it to display in forum form.



Closing:
Anything you guys can do to help me with this would be wonderful and very appreciative.

Thank you for reading.
 
Logged
Gary Raduns
Joomla Newbie
*

Karma: +6/-0
Offline Offline

Posts: 36


View Profile
Re: Is this possible to do?
« Reply #1 on: June 24, 2006, 10:21:13 AM »

Try the readme Huh

According to the readme there are two kinds of awards: one for profiles, one for posts. I can't say for sure HOW you would edit the post awards, but apparently it can be done.
Logged
Bryan DUncan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Is this possible to do?
« Reply #2 on: June 26, 2006, 01:16:52 AM »

Yes ive read the file, I understand how its suppose to work and where I put the info in the admin panel for it to display, and it doesnt.  So instead of asking how does it work, I am asking how can it be done that I take this code between lines 289 and 348 of the Display.template.php file of 1.1RC2:

// Show the member's gender icon?
         if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
            echo '
                        ', $txt[231], ': ', $message['member']['gender']['image'], '<br />';

         // Show how many posts they have made.
         echo '
                        ', $txt[26], ': ', $message['member']['posts'], '<br />
                        <br />';

         // Show avatars, images, etc.?
         if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
            echo '
                        <div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                        ', $message['member']['blurb'], '<br />
                        <br />';

         // This shows the popular messaging icons.
         echo '
                        ', $message['member']['icq']['link'], '
                        ', $message['member']['msn']['link'], '
                        ', $message['member']['aim']['link'], '
                        ', $message['member']['yim']['link'], '<br />';

         // Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            // Don't show the profile button if you're not allowed to view the profile.
            if ($message['member']['can_view_profile'])
               echo '
                        <a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

            // Don't show an icon if they haven't specified a website.
            if ($message['member']['website']['url'] != '')
               echo '
                        <a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

            // Don't show the email address if they want it hidden.
            if (empty($message['member']['hide_email']))
               echo '
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
         }
      }
      // Otherwise, show the guest's email.
      else
         echo '
                        <br />
                        <br />
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

      // Done with the information about the poster... on to the post itself.

-------------------------------------------
Somwhere in here cant some kind of code that says something, please excuse my lack of knowledge in this area:

ifmember=[CMx]Scorpion use_graphic="Donation_Award.gif" in_area= (Right under the ICQ and EMAIL icon.gifs)

**AND FOR FUTURE USERS OF OTHER AWARDS USE, just add on and expand the information**

ifmember=[CMx]Pot-zI use_graphic="TeamKiller_Award.gif" in_area= (Right under the ICQ and EMAIL icon.gifs)

Or if you guys who really know what I am trying to convey and can write this code. . . . . . . .

I am willing to offer payment through PayPal to get this custom request done.
Logged
Gary Raduns
Joomla Newbie
*

Karma: +6/-0
Offline Offline

Posts: 36


View Profile
Re: Is this possible to do?
« Reply #3 on: June 26, 2006, 11:34:01 AM »

By default, when you installed the package, it should have put the code in the template under the number of posts, as it did when I installed it. However, if you want it at the bottom of the user's info, you will need to add the following at the end of the code segment you posted earlier:

Code:
echo'<br />';
                   if (!empty($message['member']['options']['profile_postawards']))
{
$postawards = parse_bbc($message['member']['options']['profile_postawards']);
echo '<br />Awards: ' . $postawards . '';
}

echo ' <br />';

Then, you can edit the member's profile, and use the BBC code to post the image of the award. For example, for [CMx]Scorpion, you would enter this in the post awards field:

Code:
[img]Donation_Award.gif[/img]
« Last Edit: June 27, 2006, 07:09:57 AM by Gary Raduns » Logged
Bryan DUncan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Is this possible to do?
« Reply #4 on: June 27, 2006, 03:42:02 AM »

When I do this in the code:


// Otherwise, show the guest's email.
      else
         echo '
                        <br />
                        <br />
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

echo'<br />'
                   if (!empty($message['member']['options']['profile_postawards']))   
         {
            $postawards = parse_bbc($message['member']['options']['profile_postawards']);
            echo '<br />Awards: ' . $postawards . '';
         }            
         
         echo '            <br />';



     // Done with the information about the poster... on to the post itself.




I get:


Template Parse Error!
There was a problem loading the /Themes/Combat Maximus//Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

syntax error, unexpected T_IF, expecting ',' or ';'




Am I doing something incorrectly?
Logged
Gary Raduns
Joomla Newbie
*

Karma: +6/-0
Offline Offline

Posts: 36


View Profile
Re: Is this possible to do?
« Reply #5 on: June 27, 2006, 07:07:19 AM »

Yes, I actually made the same mistake when I retyped the code here. Add a ";" after the line: echo'<br />'
Logged
Bryan DUncan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Is this possible to do?
« Reply #6 on: June 28, 2006, 04:21:39 AM »

Wallla, perfect, now how do we show more than 1 at a time?


Oh wait, checking my PMs now.
Logged
Bryan DUncan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Is this possible to do?
« Reply #7 on: July 07, 2006, 10:55:03 PM »

anything???
Logged
Bryan DUncan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Is this possible to do?
« Reply #8 on: July 22, 2006, 12:46:26 AM »

nothing, anyone?
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
MamboBuzz.com
Search Contact About Advertise Blogs Topsites Submit News Register Login