Risultati da 1 a 3 di 3

Discussione: Modifico al profilo

  1. #1
    Inattivo
    Data Registrazione
    Jul 2006
    Località
    Porto Recanati, Italy
    Età
    40
    Messaggi
    871

    Modifico al profilo

    Stavo facendo queste modifiche al profilo ma non riesco a capire una cosa...

    http://www.vbulletin.org/forum/showthread.php?t=123254

    Copio qui sotto tutta la loro spiegazione anche se quello che non capisco è nelle prime righe.
    Mettendo in nero+grassetto quelle che non sono riscuito a capire (o perchè non capisco la frase in inglese o perchè non riesco a farle) mentre in rosso+-grassetto quello che vi chiedo...

    Grazie 1000

    [quote]
    || ********************************** ||
    || Additional Section within Profile ||
    || by Wired1 ||
    || ||
    || Version 2.1.1 ||
    || vBulletin Version: 3.6.7 ||
    || ||
    || ********************************** ||

    NOTE: My Extra Profile Fields Page hack (URL=http://www.vbulletin.org/forum/showthread.php?t=123253) is needed for this template mod to work!


    ===================

    First, we'll have to create a new hook within the hook list. To do this:

    Come si crea il nuovo hook?

    Open /includes/xml/hooks_vbulletin.xml

    FIND:

    <hook>member_complete</hook>

    AFTER IT ADD:

    <hook>member_extras</hook>



    New Hook Location: vBulletin: Member's Profile -> member_extras (see? I told you it would create a new hook!)

    Non ho capito che devo fare...

    Now, we have to place it within the file for it to work.

    Open member.php

    FIND:

    // END CUSTOM PROFILE FIELDS
    // *************************

    AFTER IT ADD:

    ($hook = vBulletinHook::fetch_hook('member_extras')) ? eval($hook) : false;

    ====================================




    ===================

    The following code changes the Group Memberships quadrant of a poster's profile to whatever information a user has placed within the Extra Profile Fields Page.

    ===================

    vB AdminCP -> Styles & Templates -> Style Manager -> (Select Style) -> Member Info Templates -> MEMBERINFO

    Change the vB Phrase [group_memberships] to whatever you would like the title of the new area to be.
    Example: System Specs

    OR if you would like the extra options page and this quadrant to have the same title, change // This adds the label for the extra options page within the profile,

    change:
    <td class="tcat" width="50%">$vbphrase[group_memberships]</td>

    to:
    <td class="tcat" width="50%">$vbphrase[extra_options]</td>



    FIND:
    <if condition="$show['membergroups']">
    <dl id="membergroups_list" class="smallfont">
    $membergroupbits
    </dl>
    <else />
    <div class="smallfont"><strong><phrase 1="$userinfo[username]">$vbphrase[x_is_not_a_member_of_any_public_groups]</phrase></strong></div>
    </if>


    REPLACE WITH:

    <if condition="$show['extrainfo']">
    <dl id="additionalinfo_list">
    $customfields2
    </dl>
    <else />
    <div class="smallfont"><strong><phrase 1="$userinfo[username]">$vbphrase[n_a]</phrase></strong></div>
    </if>


    ===================



    The following code places the dropdown within the user's post. The IF condition is only needed if you wish the dropdown to only show if a particular field has information within it, and fieldX is the fieldID of said field.
    Note: The "PC Specs" area can be changed to be whatever. I just happen to use it for PC Specs!

    ===================

    vB AdminCP -> Styles & Templates -> Style Manager -> (Select Style) -> Postbit Templates -> postbit

    FIND:
    <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

    After it post:

    <!-- post specs_menu -->
    <if condition="$post['fieldX']">
    <div id="specs_$post[postid]" class="vbmenu_control">
    <a href="#specs">$post[username]'s PC Specs</a>
    <script type="text/javascript"> vbmenu_register("specs_$post[postid]"); </script>
    </div>
    </if>
    <!-- / post specs_menu -->

    ===================



    The following code fills out the dropdown with information. Some examples are listed below, tailored to my personal need for the hack.

    Yes, it's up to you (for now anyway) to make sure the labels match up with the field #s from when you added new profile areas.
    Yes, this part will eventually be replaced by a nice and neat admin area to make it easier.

    Note: The "PC Specs" area can be changed to be whatever.

    ===================

    vB AdminCP -> Styles & Templates -> Style Manager -> (Select Style) -> Postbit Templates -> postbit

    FIND:

    <!-- / post $post[postid] popup menu -->

    After it post:

    <!-- post specs_menu -->
    <div class="vbmenu_popup" id="specs_$post[postid]_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr>
    <td class="thead">$post[username]'s PC Specs</td>
    </tr>

    <if condition="$post['field5']">
    <tr><td class="vbmenu_option">Motherboard: $post[field5]</td></tr>
    </if>

    <if condition="$post['field6']">
    <tr><td class="vbmenu_option">Processor: $post[field6]</td></tr>
    </if>

    <if condition="$post['field7']">
    <tr><td class="vbmenu_option"> You get the idea. Fill in the blanks!!! </td></tr>
    </if>

    </table>
    </div>
    <!-- / post specs_menu -->

    ===================
    [quote]

  2. #2
    Bodyweb.com L'avatar di Sergio
    Data Registrazione
    Oct 2004
    Località
    Sezana, Slovenia
    Età
    55
    Messaggi
    2,754
    Nella prima parte credo ti dica di aggiungere il nuovo "gancio" modificando il codice di quella pagina (hooks_vbulletin.xml)

    Poi nella seconda parte di fa notare che quell'aggiunta in effetti è stata caricata sul vbulletin.

    Credo ad ogni modo che poi vada caricato anche un file XML, il plugin vero e proprio che viene agganciato come detto.

  3. #3
    Inattivo
    Data Registrazione
    Jul 2006
    Località
    Porto Recanati, Italy
    Età
    40
    Messaggi
    871
    A ok perfetto.

    Mi funziona tutto ma volevo esserne certo

Discussioni Simili

  1. vBulletin 3.6.x Profilo ecc...
    Di Alle619 nel forum VBulletin 3
    Risposte: 15
    Ultimo Messaggio: 24-05-2008, 22:15
  2. vBulletin 3.6.x Campi profilo utente...aiutatemi raga...
    Di xbrian88 nel forum VBulletin 3
    Risposte: 8
    Ultimo Messaggio: 21-08-2007, 03:26
  3. vBulletin 3.6.x Visualizzazione Profilo
    Di Dariox nel forum VBulletin 3
    Risposte: 1
    Ultimo Messaggio: 26-05-2007, 15:18
  4. vBulletin 3.5.x Dove Modifico L'header?
    Di slash89 nel forum VBulletin 3
    Risposte: 1
    Ultimo Messaggio: 10-05-2007, 21:06
  5. vBulletin 3.6.x eseguire query per impostare opzioni profilo utente
    Di djmarvin nel forum VBulletin 3
    Risposte: 2
    Ultimo Messaggio: 26-08-2006, 23:57

Tag per Questa Discussione

Segnalibri

Permessi di Scrittura

  • Tu non puoi inviare nuove discussioni
  • Tu non puoi inviare risposte
  • Tu non puoi inviare allegati
  • Tu non puoi modificare i tuoi messaggi
  •