Biography Mod

Started by Bullcat Webhosting, January 18, 2005, 04:26:43 AM

Previous topic - Next topic

Bullcat Webhosting

Link to Mod

Biography for use in your members profile.

NOT FOR USE IN PACKAGE MANAGER.

take a look at http://www.het-catshuys.nl/test-forum/index.php

Hans


Wij ondersteunen SMF forums & safe mode staat uit.

zillion

Can you set-up a "Test" account on your test site, so's we don't have to Register to view?  (My Dutch isn't that hot!  ;)


Bullcat Webhosting

i have a test account there

users "bio"

pass "tester"

language "english"


Wij ondersteunen SMF forums & safe mode staat uit.

zillion

Thanks.

Ah.  Could be very useful on my "family tree" forum.

It says "put your picture here" (or similar), but how?
Do you insert a URL link, paste a GIF file, or what?
(or am I just not thinking straight this morning?!!)

FaSan

#5
I found a little few bugs.


In Profile.template.php, this lines is not correctly :



// Show the users biografie.
if  ( !$modsettings['biomod_enabled'] )



change it in :



// Show the users biografie.
if  ($modSettings['biomod_enabled'])




On Display.template.php change this :


<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';



in this :


<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/bio.gif" alt="' . $txt['bio-4'] . '" title="' . $txt['bio-4'] . '" border="0" />' : $txt['bio-4']), '</a>';




In Memberlist, the sort is not work if you have many users in your forum. Change this :



'biografie' => array(
'down' => 'LENGTH(mem.bio) > 0 DESC, ISNULL(mem.bio) OR mem.bio = 0 ASC, mem.bio ASC',
'up' => 'LENGTH(mem.bio) > 0 ASC, ISNULL(mem.bio) OR mem.bio = 0 DESC, mem.bio DESC'
),



in this :


'biografie' => array(
'down' => 'mem.bio DESC',
'up' => 'mem.bio ASC'
),



and... if required, it is a italian translate :


//Bio Mod
$txt['visual_bio_mod'] = 'Modulo Biografia.';
$txt['biomod_enabled'] = 'Attiva Biografia ?';
$txt['biomod_ubbc'] = 'Accetta Codici UBBC [img]url[/img]?';
$txt['bio-1'] = 'La tua Biografia';
$txt['bio-2'] = '<div class="smalltext">Puoi scrivere qualcosa sulla tua vita, il tuo lavoro, ecc. ecc.!</div>';
$txt['bio-3'] = 'Biografia';
$txt['bio-4'] = 'Guarda la sua Biografia.';
$txt['bio-5'] = 'Bio';
$txt['bio-5a'] = 'Biografia';



Thanks for your work, Hans ;)



FaSan

FaSan

Little AddOn.

If you want a SmallText, like Signature, change this in Profile.template.php :


<td colspan="2" width="100%"><div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $context['member']['bio'], '</div></td>


in :


<td colspan="2" width="100%" class="smalltext"><div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $context['member']['bio'], '</div></td>




;)


FaSan

Bullcat Webhosting

Quote from: zillion on January 18, 2005, 07:15:06 AM
Thanks.

Ah. Could be very useful on my "family tree" forum.

It says "put your picture here" (or similar), but how?
Do you insert a URL link, paste a GIF file, or what?
(or am I just not thinking straight this morning?!!)

Just between [ img]url to your picture[ /img]


Wij ondersteunen SMF forums & safe mode staat uit.

Bullcat Webhosting

hello FaSan when i do

Quote
// Show the users biografie.
   if  ($modSettings['biomod_enabled'])

i dont see anything in summary anymore :( 

I think i forgot a litle thing :)


Wij ondersteunen SMF forums & safe mode staat uit.

FaSan

Quote from: Hans_de_Echte on January 18, 2005, 08:34:44 AM
hello FaSan when i do

Quote
// Show the users biografie.
   if  ($modSettings['biomod_enabled'])

i dont see anything in summary anymore :( 

I think i forgot a litle thing :)


Activate the Mod in your Settings.

the $modsettings is not work... the $modSettings is correct ;)

Bullcat Webhosting

The Mod is activated, otherwise i can't write in my bigraphy :( , but in summary, i don't see anything at all if i use that ! i see it good !

HELPPPP


Wij ondersteunen SMF forums & safe mode staat uit.

FaSan

 :-X :-\ :-X


My changes is for the mod that you posted. If you have change a sources in your forum, I cannot know it !!

With the Mod on Link, work very fine.


FaSan

FaSan

In Profile.template is correct this :

   // Tekst box voor Biografie-mod
   if ($modSettings['biomod_enabled'])

Bullcat Webhosting

#13
I see the BUG, i have $modsettings , and not $modSettings

Ooo and i hate C++ for that Grrrrrrrrrrrrrr  :D :D :D

I post the update + your Italian  Modification part !


Wij ondersteunen SMF forums & safe mode staat uit.

FaSan

Great, but the ! at the first is not correct. Is it indicate a negation.



FaSan

Bullcat Webhosting

I have correct that also ! now its working fine here !


Wij ondersteunen SMF forums & safe mode staat uit.

spitlo

I'm lost. This is the first mod I try to install manually, and I can't get it working. I don't even know where to start. I tried searching simplemachines.org for a solution, but the page that seems to be the right one (http://mods.simplemachines.org/docs/manual-install.php) gives me a 404 (as have been mentioned before in the forum).

Furthermore, when I look at the code in biography.mod, there's a constant (or whatever you call it, I'm an ASP guy) called $themadir that I don't have anywhere else in the SMF code. I have a $themedir in Sources/Subs-Packages.php, and that sounds more reasonable to me (seeing how all the code is in English). Also, the path to modifications.english.php was spelled modifications.englisch.php, which leads me to believe this mod is endemic to dutch?

Well, I don't have a clue. Any help would be appreciated. Preferably a step-by-step. I don't know what specs you guys need, but I'm using SMF 1.0.1 on a remote server.

Thanks,
spitlo

Bullcat Webhosting

$themadir = is the location of YOUR themes directory for example http://www.your-forum-com/Themes/default

that is the location of the files you have to change !

$source dir = http://www.your-forum-com/Sources

$Languagesdir = http://www.your-forum-com/Themes/default/languages


Wij ondersteunen SMF forums & safe mode staat uit.

[Unknown]

Umm... except that directories are never URLs...

-[Unknown]

spitlo

Hi again!

Yeah, I figured that $themadir was the theme directory, but I got the inpression that you could somehow "run" the .mod file:

//bio-mod start's here

//Run before BioPdb.php

//you have to upload te file "bio.gif" in $themadir/default/images/icons


And if so, shouldn't I change the name of the variable to $themedir? As to reflect the name given to the constans in my installation of SMF? Or should I just replace it with (in my case) /public_html/forum/Themes/Curve/ and save the file? And how do I run the .mod? Maybe this is RTFM type questions, but I'm not used to *nix/php environments.

Still lost, sorry ...

Advertisement: