News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

[BETA] Ultimate profile mod

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

Previous topic - Next topic

Eliana Tamerin

Yep. PHP editors like to insert their own coding, and Word processors like to insert their own encoding. Text editors are really the best tools for editing code, because they leave it alone and let you work on it without interference.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

DistantJ

When I install this and try to view a profile, it gives me an interesting error which tells me my forum is version 1.1.5 and my database is 1.1.2. That's odd, perhaps because I moved my database over from an old server which wouldn't allow me to update my SMF. I can't find an upgrade option anywhere or anything and I'm not sure I want to risk anything because I've made a few changes to the default template... Any ideas?

[SiNaN]

As I now, it makes some db changes. Possibly, they are not run.

Is this the only error message you get?
Former SMF Core Developer | My Mods | SimplePortal

DistantJ

It's the only one I've noticed...

When I moved server I backed up my database from 1.1.2 then installed 1.1.5 on my new server and imported the database using PHPMyAdmin.  I also reuploaded my old images and smilies, but in order to use a lot of the mods I had installed with my forum's 'look' I had to make some changes to the default theme... Otherwise it's pretty much 1.1.5.

[SiNaN]

Your db is version 1.1.2?

Do not remember any changes made in db since 1.1.2.

Somebody who is more famialiar with the mod can help better.
Former SMF Core Developer | My Mods | SimplePortal

MissyNL

hello..

some of my members have there profile and / or photo's hidden.. I ofcourse can see them.. but is it also possible that my global mods can see them? 

Thanks!!
Sorry for my poor English, but i think it's probably better then your Dutch :)

ElectricSquid

#1086
Can someone please tell me where to locate the color control for the "Add Comment" and the "My Pictures" links in everyones profile. It appears to not be in the main CSS sheet, and I can't seem to find it in any of the templates.

I have done my own searching for over two weeks with no luck or responses. I've also asked here many times. Now I'm to the point of begging, please tell me where this control is hidden.

I need these links to be changed from black to a brighter color so they show up again. Since the site wide redesign, I have a dark background img behind these links, and now they simply don't show.

Eliana Tamerin

Each section should have an id that you can reference in css. Like


a link#pictures
{
    color: red;
}
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

ElectricSquid

Quote from: Eliana Tamerin on June 13, 2008, 10:44:18 PM
Each section should have an id that you can reference in css. Like


a link#pictures
{
    color: red;
}


I have been in and out of the CSS sheet, it's not there. That area around those links is controlled by ".windowbg2" I believe it was, but even if I add ".windowbg2 a" to css, I can't get the color to change on those two links. They change site wide, just not the two that I need.

I've also tried any of the CSS controls for links or text, but they don't do it either.

I'm guessing at this point that it's like the spellcheck page fiasco I went through finding those controls. They were hardcoded right in the page itself, so the css sheet code had no effect.

Eliana Tamerin

Try checking the source page. UltimateProfile.template.php and look for id="buddies" or whatnot in there. You'll find it.

I'm looking on mine, there's id="summary" id="info1" id="contact" etc.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

ElectricSquid

I checked that template a few hours ago for the exact terms I'm looking to change, "Add Comment" and "My Pictures". None of that text is in that template.

ElectricSquid


ElectricSquid

#1092
Thanks for the second voice basically saying it is there but I'm missing it.
.titlebg a:link is the main CSS control I needed to change. Somehow that one kept sneaking past me.

I'll add a note in my main stylesheet as to what that controls so I can find it again.

Eliana Tamerin

Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

MissyNL

Hello.. I love this MOD!!

The only thing is that i really, really, really need the option that members can show there profile or pictures only to the VIP-member and Special VIP Members... Can this be done?? :)

Thanks!!!!!
Sorry for my poor English, but i think it's probably better then your Dutch :)

DistantJ

Anybody got any ideas on my database issue?

Eliana Tamerin

Did you see SiNaN's post?

Quote from: [SiNaN] on June 09, 2008, 09:03:43 AM
Your db is version 1.1.2?

Do not remember any changes made in db since 1.1.2.

Somebody who is more famialiar with the mod can help better.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Angelotus

Quote from: Lord Anubis on May 31, 2008, 02:47:05 AM
UPDATE!!! TinyPortal Block

(USE A PHP BLOCK)


Updated Profile Image Upload Block for Ultimate Profile 0.8.5 (only uploads to the Basic Album ATM)



*NOTE - CHANGE http://www.yoursite.com to the url of your website*

global $context, $scripturl, $settings, $txt;

echo '
<form action="http://www.yoursite.com/index.php?action=profile;sa=pictures;add2" method="post" accept-charset="', $context['character_set'], '" name="picture" id="picture" enctype="multipart/form-data">

Title:<br />

<input type="text" name="title" size="10" value="', @$context['picture_title'] ,'" /><br />';

echo '
Description:<br />
<input type="text" name="description" size="15">', @$context['picture_description'] ,'</textarea><br />';

echo '
Parent Album:<br />
<select name="album_id" id="album_id">
<option value="0">Basic album</option>';
foreach ($context['album_tree'] as $album)
{
echo '
<option value="', $album['id'] ,'"', (@$context['album_parent'] == $album['id']) ? ' selected="selected"' : '', '> ' . str_repeat('=', $album['level']) . '=> ' . $album['title'] . '</option>';
}
echo '
</select><br />';

echo '
Find Photos:<br />

<input type="file" size="10" name="picture" /><br />';

echo '
<input type="submit" value="', $txt[10], '" />
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';



Hi,
This is really a nice one, thanks for it!

I have an other question as well. Is it possible to show the latest 5 uploaded pics by the logged in user in a php block?

Nao 尚

Quote from: Lafemme on June 15, 2008, 05:02:16 AM
Hello.. I love this MOD!!

The only thing is that i really, really, really need the option that members can show there profile or pictures only to the VIP-member and Special VIP Members... Can this be done?? :)
You can add these restrictions into your code manually, it's actually easy provided you don't start playing with creating an actual permission set for that :P
It becomes a bit harder if you want to give profile owners the ability to restrict one particular area to one particular set of people.
I will not make any deals with you. I've resigned. I will not be pushed, filed, stamped, indexed, briefed, debriefed or numbered.

Aeva Media rocks your life.

DistantJ

Would it be possible to carry the Custom Profile Fields across to this?

Advertisement: