News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

[BETA] Ultimate profile mod

Started by JovanT, July 19, 2007, 05:26:00 PM

Previous topic - Next topic

geo32101

Quote from: geo32101 on August 28, 2008, 04:20:16 PM
Quote from: JovanT on August 28, 2008, 01:24:11 AM
Quote from: runebergen on August 27, 2008, 08:39:22 PM

// auto select of comment HTML or BBC

if(strstr($comment['body'],'[')) {

echo parse_bbc ($comment['body']);
}
else {

echo ( un_htmlspecialchars ($comment['body'])); }

the code works great, I got 3000 forum users posting  very day with this , and working :)

I think that this if is unnecessary. You can accomplish the same thing using parse_bbc(un_htmlspecialchars ($comment['body']))
So should I try that?
So what am I exactly supposed to replace or delete?

char39

Sorry I know this is in here somewhere, but after going through the 70 pages twice and using the search I am giving up.  Does someone know off hand where the discussion starts about how to change the text where it now says My Buddies and My Pictures?

Thank you!

brianjw

Go into UltimateProfile.<language>.php which should be in ./Themes/default/languages/ and you will find those two language strings. Just change them to how you want them. :)

char39


Hoochie Coochie Man

Hi, Thanks for this beautiful mod.

I found a little bug.
Could you add a horizontal scrollbar to the users' pictures.
Because when a user upload a huge image, "edit" and "delete" links are disappearing.

Any help would be great.
Thanks..
İnadına SMF 1.1.X

DonGiovanni

#1385
I put that two links below picture

Hoochie Coochie Man

Quote from: DonGiovanni on August 31, 2008, 08:10:53 AM
I put that two links below picture

Ohh you mean centered them.
Alright :D

Why couldn't i thinkin it anyway ?              (hcm)

Thanks @DonGiovanni
İnadına SMF 1.1.X

runebergen

Quote from: geo32101 on August 30, 2008, 06:54:16 PM

So what am I exactly supposed to replace or delete?

Since you already edited, here is an easy way of change it to the other way...
Remove the code you have there, and replace with this


// auto select of comment HTML or BBC

echo parse_bbc(un_htmlspecialchars ($comment['body']));



Hoochie Coochie Man

Thanks, but one more question.

How could i stop users to not uploading a huge image?
Could we add a limit like gallery mode?
İnadına SMF 1.1.X

DonGiovanni

What did you think?

Huge as file size, or width and height?

brianjw

I would believe he means huge as file size. ;) The size of the picture won't affect the page because it resizes it anyway.

Hoochie Coochie Man

Quote from: DonGiovanni on August 31, 2008, 05:56:00 PM
What did you think?

Huge as file size, or width and height?

I mean width and height

Like smf gallery mod. (Max width and height of image.)
İnadına SMF 1.1.X

JovanT

All profile pictures are resized after uploading. You can set width in admin center. Default is 640px.

Hoochie Coochie Man

Quote from: JovanT on September 01, 2008, 04:54:53 AM
All profile pictures are resized after uploading. You can set width in admin center. Default is 640px.

Yep I found it, thanks for this beautiful mod @JovanT
İnadına SMF 1.1.X

SurrealKilla

ur a legend... i was after exactly what u have doen here ty ty ty

Hoochie Coochie Man

Could you add a "latest photos of users" feature at the bottom of forum?

Like this site. (see at the bottom)

Any help would be great.
Thanks..
İnadına SMF 1.1.X

Sudhakar Arjunan

Quote from: Hoochie Coochie Man on September 01, 2008, 10:05:55 AM
Could you add a "latest photos of users" feature at the bottom of forum?

Like this site. (see at the bottom)

Any help would be great.
Thanks..

Yes you are right.
Any help here.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Hoochie Coochie Man

Quote from: Hoochie Coochie Man on September 01, 2008, 10:05:55 AM
Could you add a "latest photos of users" feature at the bottom of forum?

Like this site. (see at the bottom)

Any help would be great.
Thanks..

I solved my problem..
Thanks to @Yağız
İnadına SMF 1.1.X

Sudhakar Arjunan

Quote from: Hoochie Coochie Man on September 02, 2008, 05:12:34 AM

I solved my problem..
Thanks to @Yağız

Hi HCM,

Kindly help me to, the board you are discussing is an language which i dont know.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Hoochie Coochie Man

#1399
Quote from: asudhakar on September 02, 2008, 08:37:31 AM
Quote from: Hoochie Coochie Man on September 02, 2008, 05:12:34 AM

I solved my problem..
Thanks to @Yağız

Hi HCM,

Kindly help me to, the board you are discussing is an language which i dont know.

Wait a while, i found a bug.
When it's fixed I'll share the codes in here..




Ok. There you go..

BoardIndex.php
Find:
    $context['page_title'] = $txt[18];

Add after:
   // Profile pictures.
   if ($modSettings['profile_enable_pictures'] == 1) {
      $request = db_query("SELECT ID_PICTURE, time, title, filename, ID_MEMBER
            FROM {$db_prefix}profile_pictures
            ORDER BY time DESC
            LIMIT 10", __FILE__, __LINE__);
      while ($picture = mysql_fetch_assoc ($request)) {
         $context['pictures'][] = array (
            'ID_PICTURE' => $picture['ID_PICTURE'],
            'title' => $picture['title'],
            'url' => $scripturl . '?action=profile;u=' . $picture['ID_MEMBER'] . ';sa=pictures;view=' . $picture['ID_PICTURE'],
            'thumb' => $modSettings['profile_pictures_url'] . '/' . $picture['ID_MEMBER'] . '_' . $picture['time'] . '_thumb.' . get_extension ($picture['filename']),
            'time' => timeformat ($picture['time']),
         );
      }
     
      if (@$context['member']['options']['pictures_budd_only'] == 1 && @$modSettings['enable_buddylist'] == 1) {
         if ($context['member']['is_reverse_buddy'] || allowedTo ('profile_extra_any') || $context['user']['is_owner'])
            $context['can_view_pics'] = true;
         else
            $context['can_view_pics'] = false;
      } else
         $context['can_view_pics'] = true;
   }


Find:
?>

Add before:
function get_extension ($filename)
{
   return substr (strrchr ($filename, '.'), 1);
}


BoardIndex.template.php
Find:
}

?>


Add before:
   if ($modSettings['profile_enable_pictures'] == 1 && $context['can_view_pics'])
   {
      echo '<br />
   <table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%">
      <tr>
         <td class="titlebg" height="26" align="center">Son Eklenen Resimler</td>
      </tr>
      <tr>
         <td class="windowbg" width="%100">
            <table width="%100">';         
            if (!empty($context['pictures']))
            {
               echo '
               <tr>
                  <td align="center" valign="top" style="clear: both;"><marquee behavior="scroll" direction="left" height="140" width="100%" scrollamount="5" scrolldelay="1" onmouseover="this.stop()" onmouseout="this.start()">';
               foreach ($context['pictures'] as $picture)
               {
                     echo '
                     <a href="', $picture['url'] ,'"><img src="', $picture['thumb'] ,'" alt="" title="', $picture['title'], '" border="0" /></a>';
               }
               echo '
                  </marquee></td>
               </tr>';
            }
            else
               echo '
               <tr>
                  <td>', $txt['profile_pictures_no'] ,'</td>
               </tr>';
               echo '
            </table>
         </td>
      </tr>
   </table><br />';
   }
İnadına SMF 1.1.X

Advertisement: