Awesome Posted February 11, 2015 Report Posted February 11, 2015 Am hook-ul Members Online Today, dar nu vrea sa folosesc forma clasica, asa ca am facut cateva div-uri si afisez eu unde doresc si cum doresc statistica, intrebarea e, cum pot extrage datele din acest hook? De exemplu numarul membrilor online astazi, am incercat cu parse template dar nu am reusit, ceva idei? http://gta-mp.ro/forum Skype: petry.claudiu
Moderators gadeas Posted February 11, 2015 Moderators Report Posted February 11, 2015 De ce nu ai editat fisieru .xml direct si sa-i dai stilu acolo? Creezi DIV-ul cu ID-ul/Clasa care vrei si dupacea dai normal stilu din ipb_styles.css. PHP Developer - Not available for freelancing right now Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament
Awesome Posted February 11, 2015 Author Report Posted February 11, 2015 De ce nu ai editat fisieru .xml direct si sa-i dai stilu acolo? Creezi DIV-ul cu ID-ul/Clasa care vrei si dupacea dai normal stilu din ipb_styles.css. Am modificat aspectul footerului si o editare in acel .xml ar fii inutila, am nevoie de acele date... http://gta-mp.ro/forum Skype: petry.claudiu
Moderators gadeas Posted February 11, 2015 Moderators Report Posted February 11, 2015 Footeru nu prea are legatura cu ce adauga hook-ul, el ce face este un simplu insert de la urmatoru cod: <br /> <h4 class='statistics_head'> {$this->lang->words['hookLangOnlineToday']} {$count} <if test="$this->settings['expcol_mot']"> [<a href='#' onClick="toggleMOT(this); return false;"><if test="$state == 'collapsed'">{$this->lang->words['hookLangExpand']}<else />{$this->lang->words['hookLangCollapse']}</if></a>] </if> </h4> <p id="mot_body"<if test="$this->settings['expcol_mot'] && $state == 'collapsed'"> class='collapsedMOT' style='display: none;'</if>> <if test="$this->settings['mot_show_most_online']">{$this->lang->words['hookLangOnlineMostEver']}<br /><br /></if> <if test="count($mems)"> {$this->lang->words['hookLangOnlineList']}<br /> <span class='name'>{parse expression="implode( ",</span>n<span class='name'>", $mems )"}</span> <else /> {$this->lang->words['hookLangOnlineTodayNone']} </if> </p> Care il gasesti si in: AdminCP > Look & Feel > Alegi tema > Tabu Templates > Board Index > hookMembersOnlineToday De acolo ii poti da tot stilu ce vrei tu sau sa stergi din el. Ca ai dat un aspect total diferit la footer si vrei sa fie in partea dreapta informatiile astea, poti foarte usor sa-i dai cum am zis mai sus ID si CLASA cum vrei tu la elemente sau sa creezi structura cum vrei tu. Inafara lui hookMembersOnlineToday, totu ce este legat de cod PHP precum: {$this->lang->words['hookLangOnlineToday']} --> Extrage numele de la hook {$count} --> Trage numaru de membri online in functie de setari Etc Le gasesti in bucata postata mai sus restu. Daca vrei cum zici tu functii mai speciale care sa le poti adauga in globalTemplate sau boardIndexTemplate, asteapta-l pe Courage poate a mai invatat ceva de cand se ocupa cu astea. PHP Developer - Not available for freelancing right now Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament
Awesome Posted February 11, 2015 Author Report Posted February 11, 2015 Footeru nu prea are legatura cu ce adauga hook-ul, el ce face este un simplu insert de la urmatoru cod: <br /> <h4 class='statistics_head'> {$this->lang->words['hookLangOnlineToday']} {$count} <if test="$this->settings['expcol_mot']"> [<a href='#' onClick="toggleMOT(this); return false;"><if test="$state == 'collapsed'">{$this->lang->words['hookLangExpand']}<else />{$this->lang->words['hookLangCollapse']}</if></a>] </if> </h4> <p id="mot_body"<if test="$this->settings['expcol_mot'] && $state == 'collapsed'"> class='collapsedMOT' style='display: none;'</if>> <if test="$this->settings['mot_show_most_online']">{$this->lang->words['hookLangOnlineMostEver']}<br /><br /></if> <if test="count($mems)"> {$this->lang->words['hookLangOnlineList']}<br /> <span class='name'>{parse expression="implode( ",</span>n<span class='name'>", $mems )"}</span> <else /> {$this->lang->words['hookLangOnlineTodayNone']} </if> </p> Care il gasesti si in: AdminCP > Look & Feel > Alegi tema > Tabu Templates > Board Index > hookMembersOnlineToday De acolo ii poti da tot stilu ce vrei tu sau sa stergi din el. Ca ai dat un aspect total diferit la footer si vrei sa fie in partea dreapta informatiile astea, poti foarte usor sa-i dai cum am zis mai sus ID si CLASA cum vrei tu la elemente sau sa creezi structura cum vrei tu. Inafara lui hookMembersOnlineToday, totu ce este legat de cod PHP precum: {$this->lang->words['hookLangOnlineToday']} --> Extrage numele de la hook {$count} --> Trage numaru de membri online in functie de setari Etc Le gasesti in bucata postata mai sus restu. Daca vrei cum zici tu functii mai speciale care sa le poti adauga in globalTemplate sau boardIndexTemplate, asteapta-l pe Courage poate a mai invatat ceva de cand se ocupa cu astea. Crezi ca nu am incercat asta? Nu-mi afiseaza count-ul si celelalte functii de dedesubt, apare ca si cum nu ar fii nimeni conectat. http://gta-mp.ro/forum Skype: petry.claudiu
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now