News:

Wondering if this will always be free?  See why free is better.

Main Menu

[BETA] Ultimate profile mod

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

Previous topic - Next topic

Shadow_KC

Anyway to get the Member Awards Mod to show on the profiles?

ElectricSquid

#1041
What CSS id controls the Add a Comment and My Pictures text color in SMF 1.1.4 / 1.1.5?

I have the rest figured out and gave my users an easy to use Sample CSS code, cause I want everyone to be able to modify ;D , but I can't seem to be able to nail down that one control.

brianjw

Quote from: Shadow_KC on May 26, 2008, 12:51:02 AM
Anyway to get the Member Awards Mod to show on the profiles?
I am truely tired of seeing messages like this in this topic. Use the search!!
Here is the answer: You have to manually install it.

Shadow_KC

#1043
um...thanks for being rude. I USED the search feature. I tried to manually install it, I have no idea what I'm supposed to add to the UltimateProfile.template.php (or whatever name it is) for the awards to show up, and apparently I didn't find it by searching or I wouldn't have asked. If you don't want to help, say so, don't be rude about it.

I'm sorry I'm not a master of php


And yea, I installed the Mod, it works just fine, but I need to know what and where to put the code for it to show on ultimate profiles, but if no one knows, then who cares, don't complain.

Oh, and I contacted the author of the Mod. I've seen no support for it and havn't got a reply yet. If there's a topic on here that has a way of doing this, please post a link for me, I'd really appreciate that.

If not, I guess I'll have to learn php

Eliana Tamerin

Did you try JovanT's support forum that he links to in the first post?
Do NOT PM me for support.

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

runebergen


LOVING THIS MOD!! IT ROCKS


Could someone please help me with a certain piece of code?   O:)
Might even be a good new feature for Ulti-Profile...


If the user have set his profile to "Only buddies can view my customized profile", I want to show a page with following message only :
"This profile has been set to private"


Anyone that know a good way of getting that done ?

Thanks in advance

Rune

runebergen


[solved]  ;D


comment out all inside function template_summary() .. you find this in profile.template.php
.. and add your custom message within the function..


function template_summary() { /* comment out all content */

echo 'This profile is set to private'; // Or what ever else output you want

}



Shadow_KC

Quote from: Eliana Tamerin on May 27, 2008, 11:18:45 AM
Did you try JovanT's support forum [nofollow] that he links to in the first post?

Yes, but he specifically said in a post not to ask him, to contact the mod author, well since niether worked, I was hoping someone else had already solved this problem.


I made a support request on his support forum, but as far as I know, there's been no replies.


Also, the private profile script is useful, thanks for posting it :D

runebergen

#1048
Quote from: Shadow_KC on May 27, 2008, 01:34:19 PM
I made a support request on his support forum, but as far as I know, there's been no replies.


Also, the private profile script is useful, thanks for posting it :D

thanx  :D


As for your request, there is a part in the UltimateProfile.Template.php file for custom code...

Search for :



// This section is optional. You can paste code and display fields from Custom Profile fields mod.

                                    // PASTE YOUR CODE HERE



Add the code needed to show the awards there... 

I'll look in the awards php, if you dont know how.. :)

Shadow_KC

Quote from: runebergen on May 27, 2008, 01:39:29 PM
Quote from: Shadow_KC on May 27, 2008, 01:34:19 PM
I made a support request on his support forum, but as far as I know, there's been no replies.


Also, the private profile script is useful, thanks for posting it :D

thanx  :D


As for your request, there is a part in the UltimateProfile.Template.php file for custom code...

Search for :



// This section is optional. You can paste code and display fields from Custom Profile fields mod.

                                    // PASTE YOUR CODE HERE



Add the code needed to show the awards there... 

I'll look in the awards php, if you dont know how.. :)


I appreciate it :D
I have tried to put the code in, but I did it wrong because I got templat parse errors, if you could get the code for it that would be great!

icon

installation failed with me at profile.php so I manually edit it
but when i checks my profile, this error message appears... what does it mean?

Fatal error: Cannot redeclare template_customized() (previously declared in /home/*******/public_html/forums/Sources/Load.php(1901) : eval()'d code:1937) in /home/*******/public_html/forums/Sources/Load.php(1901) : eval()'d code on line 2367

Lord Anubis

looks like you installed the mod twice, or when  you uninstalled a previous version it never cleared out the Load.php file

you will have to manually delete any duplicate code in this file, you might want to start with line 2367 ;)

shiver

Great Mod!!!   

Wondering though how can I make in the Customization Box,  a header photo to be default on all profiles.

For example, Simply making  <img src="http://mysite.com/images/image.jpg" /> as default in every profiles Customization Box. 

thx

isara

Great mod! Really looking forward to getting it setup right. Unfortunately I'm currently getting the following error when accessing a Profile.

Parse error: syntax error, unexpected T_FUNCTION, expecting '{' in .../Themes/default/Profile.template.php on line 1717

Here is that section of code.

1708: if ($context['show_spellchecking'])
1709: echo '
1710: <form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
1711: }
1712:
1713: // Template for showing theme settings. Note: template_options() actually adds the theme specific options.
1714: function template_theme()
1715:
1716: // Template for profile specific options - about me, interests, customization...

1717: function template_customized()

1718: {
1719: global $context, $settings, $options, $scripturl, $modSettings, $txt;
1720:
1721: // The main containing header.


I can't find any other mentions of "function template_customized()" within any other files. If I remove that huge piece of Ultimate Profile code from Profile.template.php the profile becomes accessible and looks ok (can add pictures and comments) but the "Customize Profile" link does not work. It gives an error of "
Fatal error: Cannot redeclare class inputfilter in /home/isaracom/public_html/forum/Sources/InputFilter.php on line 12"  which another member previously mentioned.

I have only installed the mod once and there was only one error while installing. The error was for Profile.template.php so I manually made the changes to it ...and have triple checked the changes.

Any help you can provide would be greatly appreciated. :)

isara

Update: For some reason I can now view Profiles with the function template_customized () in place on Profile.template.php.  Not sure what happened. BUT when I click the "Customize Profile" it still gives the InputFilter error. I opened Profile.php and commented out:

require_once $sourcedir . '/InputFilter.php';

That makes the previous error go away but when the page loads it says "Unable to load the 'customized' template."

Any ideas?

JovanT

Quote from: ∑£ℓ¢†®¡¢ §ợų¡đ on May 26, 2008, 10:19:15 PM
What CSS id controls the Add a Comment and My Pictures text color in SMF 1.1.4 / 1.1.5?
I haven't tested but you can try something like

#pictures .titlebg a

#post_comments .titlebg a


Quote from: shiver on May 29, 2008, 03:20:36 AM
Wondering though how can I make in the Customization Box,  a header photo to be default on all profiles.
Do you want to display code by default on every profile so that users can remove it if they want or you don't want your users to be able to remove it?


@isara
You should manually install my mod again to Profile.template.php. Obviously, you've made some error. Maybe you should use some Package Parser for easier installing?

shiver

Quote from: JovanT on May 30, 2008, 06:38:59 AM
Do you want to display code by default on every profile so that users can remove it if they want or you don't want your users to be able to remove it?

Hey JovanT, thanks for the reply.   I would like it if users could remove or change it to whatever they like.
Just to be default so that everyone starts off with a nice profile header.

Love this  mod BTW, by far my favorite!
Thanks for all the work you've put into this!

ElectricSquid

What controls the Add a Comment and My Pictures text color?  SMF 1.1.5

Lord Anubis

#1058
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>';


CG Icon

Awesome Block for TP !!! thanks!!!!!!!!

Advertisement: