1
catalin12345
anniversaire integration in user menu....

hhttp://www.clubxtrem.net/anniversaire.php
if you make an user there you will have acess to that from user menu..
i found the module adapted there but i don`t now french and neither german can anyone explain me what is this readme text is saying here to do to integrate the anniversaire in the user menu block?!
here it is the readme:
Salut voilà le système d'anniversaire à la Clubxtrem.net et à la Bahut.com
Original code par XtremDj et adapté par Lmaix.


INSTALLATION:

1° étape :

-dézipper le tout et balancer ça à la racine de votre site.
-activer depuis l'admin et vérifier les acces des groupes.


3° étape : que si vous voulez avoir un lien dans le Menu du membre

-ouvrer le fichier system_blocks.php dans le répertoire modules/system/blocks
-dans la fonction b_system_user_show() vers la ligne 48 ajouter


/////////apres cette ligne/////////////

$block['content'] = "· "._MB_SYSTEM_VACNT."
";

////////////////////////////////////////


///////////le code suivant///////////

$block['content'] = "· Anniversaire
";

////////////////////////////////////////

-et voilà c'est bon !



IMPORTANT:

Le problème de ce système est que vous allez avoir le bloc tout le temps
sur votre site même si il n'y a pas d'anniversaire le jour en question !

FEATURES:

Résolution de ce problème et amélioration du design !

-------------------------------------------
Übersetzt von Nickel (http://www.99abi99.de)
Viel spass
nickel
-------------------------------------------

Installation:

1.Schritt

1. Datei entzippen und ins Module verzeichnis kopieren
2. Das Modul im Admin installieren und die Gruppenrechte setzen
3. WICHTIG: Die sql-tabelle muss du per hand in die Datenbank per phpmyadmin o.ä. erstellen
--------------------------------------------



3.Schritt (Wenn du einen Link im Mitglieder-Block haben möchtest

1.öffne die Datei system_blocks.php im Verzeichnis modules/system/blocks
2.unterhalb der Funktion b_system_user_show() in der Zeile 48 fügst du ein


/////////nach dieser Zeile/////////////

$block['content'] = "· "._MB_SYSTEM_VACNT."
";

////////////////////////////////////////


///////////kommt diese zeile rein///////////

$block['content'] .= "· Geburtstag
";

////////////////////////////////////////


Für die Leute, die einen eigenen Hauptmenü-Block haben und keinen Link im Mitglieder-Block haben möchten gilt:
damit sich die Leute eintragen könne, muss ein Link im Hauptmenü anni/index.php existieren

Viel spass damit...

gruss nickel


so explain in english more clearly someone what i have to do ...

2
ALFA-FOXTROT
Re: anniversaire integration in user menu....

Rough translation but here it goes...

NSTALLATION:

1° stage:

- unzip everthing to the root of your site
- activate, and the admin has to check the accesses of the groups.

2° stage:

that if you want to have a bond in the Menu of the member
- ouvrer the file system_blocks.php in the repertory modules/system/blocks
- in the function b_system_user_show() towards line 48 to add

/////////////////after this line/////////////////////
$block['content'] = "· "._MB_SYSTEM_VACNT."
";

////////////////the following code///////////////////////////

$block['content'] = "· Anniversaire
";

- and it is good!

IMPORTANT:

The problem of this system is that you will have the block all the time on your site even if there is no birthday the day in question!

FEATURES:

Resolution of this problem and improvement of the design!

3
catalin12345
Re: anniversaire integration in user menu....

thanks for the traduir i will try it right the way to see if works!
thanks buddy!
p.s:i have to unzip in the modules or in the root root where is all XOOPS puted?!

4
catalin12345
Re: anniversaire integration in user menu....

function b_system_user_show()
{
global $xoopsUser;
if (is_object($xoopsUser)) {
$pm_handler =& xoops_gethandler('privmessage');
$block = array();
$block['lang_youraccount'] = _MB_SYSTEM_VACNT;
$block['lang_editaccount'] = _MB_SYSTEM_EACNT;
$block['lang_notifications'] = _MB_SYSTEM_NOTIF;
$block['uid'] = $xoopsUser->getVar('uid');
$block['lang_logout'] = _MB_SYSTEM_LOUT;
$criteria = new CriteriaCompo(new Criteria('read_msg', 0));
$criteria->add(new Criteria('to_userid', $xoopsUser->getVar('uid')));
$block['new_messages'] = $pm_handler->getCount($criteria);
$block['lang_inbox'] = _MB_SYSTEM_INBOX;
$block['lang_adminmenu'] = _MB_SYSTEM_ADMENU;
return $block;
}
return false;
}

// this block is deprecated
------------------------------------------------------
after what to add that line:
$block['content'] = "· Anniversaire
";
.??????
i`ve added after $block['lang_youraccount'] = _MB_SYSTEM_VACNT;
and is not showing anniversaire from user menu.......
after what to add it ?!
i cannot find in system blocks php that line:
$block['content'] = "· "._MB_SYSTEM_VACNT."
";

??????????????

5
catalin12345
Re: anniversaire integration in user menu....

it will be great..if in the future anniversaire module will be integrated directly in XOOPS user menu!

Login

Who's Online

1065 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 1065


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits