Advertisement:

Author Topic: Biography Mod  (Read 52929 times)

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Biography Mod
« on: January 18, 2005, 04:26:43 AM »
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
« Last Edit: January 18, 2005, 07:05:55 AM by Hans_de_Echte »


Wij ondersteunen SMF forums & safe mode staat uit.

Offline zillion

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • Genealogy Website
Re: Biography Mod
« Reply #1 on: January 18, 2005, 06:11:10 AM »
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!  ;)

Offline Midgard

  • Jr. Member
  • **
  • Posts: 271
  • Gender: Male
Re: Biography Mod
« Reply #2 on: January 18, 2005, 06:12:38 AM »

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Re: Biography Mod
« Reply #3 on: January 18, 2005, 07:02:54 AM »
i have a test account there

users "bio"

pass "tester"

language "english"


Wij ondersteunen SMF forums & safe mode staat uit.

Offline zillion

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • Genealogy Website
Re: Biography Mod
« Reply #4 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?!!)

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: Biography Mod
« Reply #5 on: January 18, 2005, 08:07:44 AM »
I found a little few bugs.


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


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


change it in :


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



On Display.template.php change this :

Code: [Select]
<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 :

Code: [Select]
<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 :


Code: [Select]
'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 :

Code: [Select]
'biografie' => array(
'down' => 'mem.bio DESC',
'up' => 'mem.bio ASC'
),


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

Code: [Select]
//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
« Last Edit: January 18, 2005, 09:21:46 AM by FaSan »

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: Biography Mod
« Reply #6 on: January 18, 2005, 08:12:25 AM »
Little AddOn.

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

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

in :

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



;)


FaSan

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Re: Biography Mod
« Reply #7 on: January 18, 2005, 08:17:53 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.

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Re: Biography Mod
« Reply #8 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 :)


Wij ondersteunen SMF forums & safe mode staat uit.

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: Biography Mod
« Reply #9 on: January 18, 2005, 09:01:31 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 ;)

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Re: Biography Mod
« Reply #10 on: January 18, 2005, 09:23:15 AM »
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.

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: Biography Mod
« Reply #11 on: January 18, 2005, 09:34:43 AM »
 :-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

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: Biography Mod
« Reply #12 on: January 18, 2005, 09:37:43 AM »
In Profile.template is correct this :

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

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Re: Biography Mod
« Reply #13 on: January 18, 2005, 09:54:09 AM »
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 !
« Last Edit: January 18, 2005, 09:57:40 AM by Hans_de_Echte »


Wij ondersteunen SMF forums & safe mode staat uit.

Offline FaSan

  • Sophist Member
  • *****
  • Posts: 1,053
  • Gender: Male
  • http://www.smitaly.net
    • SMitaly - Supporto a SMF
Re: Biography Mod
« Reply #14 on: January 18, 2005, 10:19:24 AM »
Great, but the ! at the first is not correct. Is it indicate a negation.



FaSan

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Re: Biography Mod
« Reply #15 on: January 18, 2005, 10:32:34 AM »
I have correct that also ! now its working fine here !


Wij ondersteunen SMF forums & safe mode staat uit.

Offline spitlo

  • Newbie
  • *
  • Posts: 5
Re: Biography Mod
« Reply #16 on: January 19, 2005, 10:34:12 AM »
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

Offline Bullcat Webhosting

  • Sophist Member
  • *****
  • Posts: 1,245
  • Gender: Male
  • Ooit was ik programeur, nu gelukkig weer hobby'ist
    • Bullcat Webhosting
Re: Biography Mod
« Reply #17 on: January 19, 2005, 02:26:23 PM »
$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.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Biography Mod
« Reply #18 on: January 19, 2005, 02:30:22 PM »
Umm... except that directories are never URLs...

-[Unknown]

Offline spitlo

  • Newbie
  • *
  • Posts: 5
Re: Biography Mod
« Reply #19 on: January 19, 2005, 04:05:03 PM »
Hi again!

Yeah, I figured that $themadir was the theme directory, but I got the inpression that you could somehow "run" the .mod file:
Code: [Select]
//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 ...