Advertisement:

Author Topic: Custom Profile Field Mod  (Read 942979 times)

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #760 on: January 03, 2007, 05:08:57 PM »
Well, When you look at a message or a profile, SMF 1.1.1 no longer acknowledges that they are there, in either the Core theme, or Helios (which I modded to also apply this mod).

Matter of fact, even though I have not changed any settings, and the jpgs are still in the proper folder, with everything pointing to it, SMF told me that there were NONE. When I attempted to reload an avatar, it shows a lovely [ x ]... and nothing else.
« Last Edit: January 03, 2007, 05:13:42 PM by Gwydion Frost »

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #761 on: January 03, 2007, 05:10:20 PM »
Can I have a link to your site?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #762 on: January 03, 2007, 05:14:06 PM »

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #763 on: January 03, 2007, 05:34:17 PM »
Strange. It doesn't seem to have anything to do with this mod though. Do you have any attachments? Can you tell me if they work?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #764 on: January 03, 2007, 06:00:57 PM »
Sigs work.

Smilies work.

Nope, it dropped all the attachments.

Reason I think its this mod is because it only happened once I installed this mod.

The only other mod I have installed is the Member Color Link... and things were still there when I added that.
« Last Edit: January 03, 2007, 06:03:39 PM by Gwydion Frost »

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #765 on: January 03, 2007, 06:28:40 PM »
"1 attachments/avatars have an entry but no longer exist on disk"

This is the message I get on the File Maintenance option for the Avatars.

Problem is, I am staring at the directory on my FTP and I clearly see all of them, attachments and avatars, still sitting there, quite alive and well.

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #766 on: January 03, 2007, 06:49:44 PM »
Also, when go to the browse files option, I see the lone avatar listed, but when I click on the link to see it, I get a 404 page... its unable to display it.

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #767 on: January 03, 2007, 07:29:59 PM »
So all of the files are intact in the attachment/avatar directory?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #768 on: January 04, 2007, 03:00:54 AM »
Yeah, they are there, taking up space... ;)

It just seems like SMF isn't aware of them being there at all...

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #769 on: January 04, 2007, 11:33:47 AM »
Have you done anything related to avatars recently?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #770 on: January 04, 2007, 03:35:59 PM »
Nope.

Never touched them.

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #771 on: January 04, 2007, 04:50:22 PM »
If you reupload an avatar, does it appear again?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline @ngel

  • Semi-Newbie
  • *
  • Posts: 61
Re: Custom Profile Field Mod [Correction of some "bugs"]
« Reply #772 on: January 04, 2007, 05:45:02 PM »
Two questions :

1. Why the routine "DisplayFieldPosts" and "DisplayFieldPostsPictures" are not the same in the file "customprofile.php" because there is a misplaced display ?  I think these routines must be the same except in "DisplayFieldPostsPictures" :
Code: [Select]
if ($modSettings['CP' . $i . '_post']!='image')
{
$i++;
continue;
}
in "DisplayFieldPosts" :
Code: [Select]
if ($modSettings['CP' . $i . '_post']!='text')
{
$i++;
continue;
}

However a single routine with a parameter can do the same :
Code: [Select]
DisplayFields($display)  with $display = 'image' or 'text'
2. A misplacement of the custom field if SMF Arcade is used (see image "custom misplaced.png".  I think this is a normal thing because the Arcade informations are not included in the main SMF file but in "ArcadeSigsStats.php", so I used the BBC {b} in before field and after field (see image "custom corrected").

BUT I think it's better to place it after avatar. So, i adapted the source code (file "display.template.php" in /Themes/default) as follows :

Previous
Quote
Code: [Select]
// 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>';
DisplayFieldPostsPictures();
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
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>';


//-- start champ in post profile --------------
arcade_champs_post_profile($message);
//--  end champ in post profile ---------------
// Done with the information about the poster... on to the post itself.

New
Quote
Code: [Select]
// 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.
elseif (empty($message['member']['hide_email']))
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>';


//-- start champ in post profile --------------
arcade_champs_post_profile($message);
//--  end champ in post profile ---------------
//-- start show custom profile ----------------
echo '<br/>';
DisplayFieldPostsPictures();
//--  end show custome profile ----------------
// Done with the information about the poster... on to the post itself.

« Last Edit: January 04, 2007, 06:28:03 PM by @ngel »

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #773 on: January 04, 2007, 06:27:09 PM »
1. It will be done completly differently in the next version.

2. That feature is actually designed to show an image, and in that case it would work correctly.
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline @ngel

  • Semi-Newbie
  • *
  • Posts: 61
Re: Custom Profile Field Mod
« Reply #774 on: January 04, 2007, 06:29:52 PM »
Thanks for answer and the great job.

Offline Gwydion Frost

  • Jr. Member
  • **
  • Posts: 172
  • Gender: Male
  • Third World Network
    • Third World Network
Re: Custom Profile Field Mod
« Reply #775 on: January 05, 2007, 04:45:53 AM »
If you reupload an avatar, does it appear again?

No.

In fact, the only avatars I can seem to get access to are the preassigned ones that come with SMF, unless I take everyone's custom avatar and load it into that folder with the pre-loads.

Another interesting note... the little pop-up windows where a '?' is found on the avatar and attachment pages...? They don't pop up ANYTHING... as if I wasn't even hitting them...howver I can adjust the profile as I see fit.

So long as I don't let them upload an attachment or avatar.

Offline sparky33

  • Jr. Member
  • **
  • Posts: 315
    • Renault Forums
Re: Custom Profile Field Mod
« Reply #776 on: January 05, 2007, 07:46:54 PM »
I installed this, and with the help of others it worked a treat, had no effect on other mods?

Offline Exsharaen

  • Semi-Newbie
  • *
  • Posts: 68
Re: Custom Profile Field Mod
« Reply #777 on: January 07, 2007, 09:28:46 AM »
I'm sorry for being silly. I installed your mod on SMF 1.1.1 and it was successful, but I don't see any configurations in Features and Options. What is it called and where exactly can I find it?

Thank you.

Offline winrules

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,085
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #778 on: January 07, 2007, 10:05:27 AM »
sparky33 - Can you try to explain your problem more?

Exsharaen - It should be a tab at the top. Are you using a language other than english?
winrules
SMF Developer
               My Mods
Please do not PM me for support.


Offline henri.bourme

  • Newbie
  • *
  • Posts: 6
  • Gender: Male
Re: Custom Profile Field Mod
« Reply #779 on: January 07, 2007, 10:44:59 AM »
Hello,
I have a little problem,

I want to put a profile field in a other page of my web site, (Intranet, portail), this portail is in relation with smf, so I would like to put a Field for example the number 4 (CP4). Is there a person that can give me the php code for this?


Thant you!
 :P
Merci à tous ceux qui pourront m'aider