News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Ultimate Profile

Started by JovanT, March 12, 2009, 12:14:40 PM

Previous topic - Next topic

sneijder23

I have a problem with the ultimate mod profile, the width of the forum is deformed.
Someone knows how to fix it?

,thanks!

JovanT

It happened because of the text in About me field. Browsers try to display as many text as possible without using scroll-bars and that's why About me field goes out of forum "borders".

sneijder23

Thanks for replying, how could I solve the problem?

Afro

Quote from: sneijder23 on July 03, 2010, 04:37:42 PM
Thanks for replying, how could I solve the problem?

Reduce the text.

danandloree

I just installed this ULTIMATE PROFILE on my 2.0 rc3 version and when i click the PROFILE button in my menu, it reads this.....

Unknown column 'com.time' in 'field list'
File: /home/clubs2/public_html/forumsmf/Sources/Profile-View.php
Line: 257

Any ideas?

bahgheera

Were there any errors, test failed, etc. when you did the install? Did you make sure you installed to the theme you are using?

danandloree

No errors. Using the facebook looking theme as default theme. I also click on SUMMARY and get the same error message of coarse.
Is there a custom field that need to be created perhaps?

danandloree

ok, i edited the page and deleted that field error 'com.time' highlighted in red. Works fine now. Maybe the com.time was an auto refresh for the current time, not sure.

   $request = $smcFunc['db_query']('', '
      SELECT com.id_comment, com.id_member, com.comment, com.time, mem.real_name, mem.show_online,
         IFNULL(lo.log_time, 0) AS is_online, IFNULL(a.id_attach, 0) AS id_attach, a.filename, a.attachment_type, mem.avatar
      FROM {db_prefix}profile_comments as com
         LEFT JOIN {db_prefix}members AS mem ON (com.id_member = mem.id_member)
         LEFT JOIN {db_prefix}log_online AS lo ON (lo.id_member = com.id_member)
         LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = com.id_member)
      WHERE com.comment_member_id = {int:id_member}
      ORDER BY id_comment DESC
      LIMIT {int:start}, {int:maxindex}',
      array(
         'id_member' => $memID,
         'start' => $context['start'],
         'maxindex' => $maxComments,
      )
   );
But anyways, working now. When photos are added, it doesnt thumbnail and run the scroll bar wild. I will play it a bit more.

Thanks for replying ;)

Dan

danandloree

whoops, time.com is for commenting and is needed for comments to work. so forget everthing i just posted.

danandloree

well, beats me. I still get the original database error nomatter which theme i have. If i take the COM.TIME out, it works until i go to add a comment on a profile then i get another error. Basically same thing except says 'time' rather than com.time.

danandloree

ok seems all i had to do was add 'time' to my database. So far everything works good but going through all the possible notions just to be sure...

Afro

You can edit your previous post if no one commented after you. Stop spamming.

Cobra97

I just installed it in a fresh 2.0 RC3  and it all seemed to work fine.  However if you try to leave a comment on anyone's profile it acts like it's about to change pages (stays white) and just sets there....Nothing happens at all, just a white screen?

Any ideas?

Thanks

danandloree

well, you can message me the link and i can at least take a look.

Afro

How possible is it to have a kind of default customized profile for all members.

I customized my profile as the admin but i want the whole profiles to look that way. (just the colours, not media)
Is there anything that could be done to achieve that ?

danandloree

Quote from: Afro on July 05, 2010, 07:51:37 AM
How possible is it to have a kind of default customized profile for all members.

I customized my profile as the admin but i want the whole profiles to look that way. (just the colours, not media)
Is there anything that could be done to achieve that ?

I would go out on a limb and say a few different lines in the .css and that page, renaming a couple things but i am not a programmer at all. I've done some things but all by trial and error. Sorry i am not much help here :(

(sorry for the spam earlier on)

gbsothere

Quote from: danandloree on July 05, 2010, 10:37:14 AM

(sorry for the spam earlier on)




No, you must be punished!   *grin*

When we first arrive here as newbies, most of us spam, however unintentionally, but we learn how to edit our posts and move on to post another day.   ;)

Welcome to SMF.
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

Afro

Quote from: danandloree on July 05, 2010, 10:37:14 AM
Quote from: Afro on July 05, 2010, 07:51:37 AM
How possible is it to have a kind of default customized profile for all members.

I customized my profile as the admin but i want the whole profiles to look that way. (just the colours, not media)
Is there anything that could be done to achieve that ?

I would go out on a limb and say a few different lines in the .css and that page, renaming a couple things but i am not a programmer at all. I've done some things but all by trial and error. Sorry i am not much help here :(

(sorry for the spam earlier on)

That would be nice if someone can get that to work.

enCyde

I had Referrals stats on my profile before I installed Ultimate profile. Is there a way to get it into ultimate profile? that drop down menu to see who Referrals u added..


big thanks

Chair

Quote from: enCyde on July 06, 2010, 01:08:26 PM
I had Referrals stats on my profile before I installed Ultimate profile. Is there a way to get it into ultimate profile? that drop down menu to see who Referrals u added..


big thanks

Yes, there is. Here are the edits you will need to make in order to display your members referral links on the ultimate profile mod (2.0RC3 ONLY):

Firstly, open your /Themes/default/UltimateProfile.template.php.

Find:
function up_block_user_info() {
    global $settings, $txt, $context;


Replace with:
function up_block_user_info() {
    global $settings, $txt, $context, $scripturl;


Find:
echo '
<div id="up_user_info">
<div class="windowbg creator">
<span class="topslice"><span></span></span>
<div class="content">
<dl>';


Add After:
// Add the referral/referred user information to the profile summary
echo '
<dt>', $txt['referrals_referrals'], '</dt>
<dd>
', $context['member']['referrals_no'], '  ';

// Show in dropdown username of those referred
if (!empty($context['member']['referred_members'])){
echo '
<select onchange="location=options[selectedIndex].value;">
<option>', $txt['referrals_membersreferred'], '</option>';
foreach($context['member']['referred_members'] as $referred)
echo '
', $referred;

echo '
</select>';
}

echo '
</dd>
<dt>', $txt['referrals_referrals_hits'], '</dd>
<dd>', $context['member']['referrals_hits'], '</dd>';

if (!empty($context['member']['referred_by'])){
echo'
<dt>', $txt['referrals_referred_by'], '</dt>
<dd>', $context['member']['referred_by_link'], ' ', $txt['referrals_on'], ' ', timeformat($context['member']['referred_on']), '</dd>';
}

// Remove the # on the next line to make the link appear for the profile's owner ONLY!
# if ($context['user']['id'] == $context['member']['id'])
echo '
<dt>', $txt['referrals_link'], '</dt>
<dd>
<input type="text" onselect="this.select()" id="referral_link" value="', $scripturl, '?action=register;referredby=', $context['member']['id'], '" readonly="true" style="width:250px;" />
</dd>';


And that my friend is how you add the referrals mod to the ultimate profile mod. Unfortunately I do not know how to do this in SMF 1.1.11

Advertisement: