|
Comunitatea uCoz Configurări ale sistemului uCoz Configurarea design-ului Configurare module retea sociala Ucoz |
Configurare module retea sociala Ucoz |
Salutare tuturor !
De ceva vreme am inceput sa lucrez la o retea sociala pentru ucoz. Am reusit sa o termin dar din pacate mai am o singura problema: 1. Modul publisher pe care l-am transformat in modul grupuri ,problema este ca atunci cand cineva intra pe un grup(intrare) nu ii apare butonul alaturate grupului care normal scriptului ar fi trebuit sa apara,exceptie facand cel care a creat grupul: Codul pagini este urmatorul : Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=windows-1251"> <link type="text/css" rel="StyleSheet" href="/new_shab/css/main.css" /> <link type="text/css" rel="StyleSheet" href="/css/bt.css" /> <script type="text/javascript" src="/pool.entry.js"></script> <link type="text/css" rel="StyleSheet" href="/groups/groups.css" /> <script src="/js/lib.js"> </script> <title> social Ucoz - Grup - $ENTRY_TITLE$ </title> <style> .blogs { background: #FFF; border: 1px solid #e2e2e2; } /* Post Form */ .codeButtons {font-size:7pt;color:#292929;background:#CACED2;border:1px solid #808080;} .codeCloseAll {font-size:7pt;color:#292929;background:#CACED2;border:1px solid #808080;font-weight:bold;} .postNameFl,.postDescrFl {background:#CACED2;border:1px solid #FFFFFF;width:400px} .postPollFl,.postQuestionFl {background:#CACED2;border:1px solid #FFFFFF;width:400px} .postResultFl {background:#CACED2;border:1px solid #FFFFFF;width:50px} .postAnswerFl {background:#CACED2;border:1px solid #FFFFFF;width:300px} .postTextFl {background:#CACED2;border:1px solid #FFFFFF;width:550px;height:150px} .postUserFl {background:#CACED2;border:1px solid #FFFFFF;width:300px} .pollPos {display:none;} .pollAnsw { background-color: #edeff4; padding-top: 3px; padding-bottom: 3px; padding-left: 3px; padding-right:3px; border-top: 1px solid #d8dfea; border-bottom: 1px solid #d8dfea; border-left: 1px solid #d8dfea; border-right: 1px solid #d8dfea; color: #4b6690; } .pollResult { background-color: #edeff4; color: #4b6690; padding-top: 3px; padding-bottom: 3px; padding-left: 3px; padding-right:3px; border-top: 1px solid #d8dfea; border-bottom: 1px solid #d8dfea; border-left: 1px solid #d8dfea; border-right: 1px solid #d8dfea; margin-bottom:5px; } .pollPers { background-color: #edeff4; color: #4b6690; padding-top: 3px; padding-bottom: 3px; padding-left: 3px; padding-right:3px; border-top: 1px solid #d8dfea; border-bottom: 1px solid #d8dfea; border-left: 1px solid #d8dfea; border-right: 1px solid #d8dfea; margin-bottom:5px; } .pollTotal { background-color: #edeff4; color: #4b6690; padding-top: 3px; padding-bottom: 3px; padding-left: 3px; padding-right:3px; border-top: 1px solid #d8dfea; border-bottom: 1px solid #d8dfea; border-left: 1px solid #d8dfea; border-right: 1px solid #d8dfea; } .pollBar { text-align: left; } .pollQuestion {display:none;) .pollHelp {font-weight:normal;font-size:7pt;padding-top:3px;} .smilesPart {padding-top:5px;text-align:center} </style> </head> <body> <div class="main"> <div class="top"> $GLOBAL_AHEADER$ <div style="display:none;"><div id="qqqqs"><img src="<?if($AUTHOR_SITE$)?>$AUTHOR_SITE$<?else?>/new_shab/images/noava.png<?endif?>" class="miniphotorec"></div></div> <div class="cont"> <table width="100%" class="collapse"> <tr> <td class="leftbl" valign="top"> <div style="width:210px;margin:0 auto;padding-bottom:7px;" class="paddingc"> <div class="leftblavatar"> <?if($AUTHOR_SITE$)?> <img src="$AUTHOR_SITE$" width="200px"> <?else?> <img src="/new_shab/images/noava.png"> <?endif?> </div> <div style="display:none;"><div id="id2avas"><img src="<?if($AUTHOR_SITE$)?>$AUTHOR_SITE$<?else?>/new_shab/images/noava.png<?endif?>" width="60px"></div></div> <div style="padding-top:12px;"></div> <?if($_USER_ID$=$USER_ID$)?> <ul class="vtmenu"> <div class="aload"> <li> <span id="adduser"> <a href="javascript://" onclick="iingroup();addload();">Alatura-te grupului</a> <?else?> <a href="javascript://" onclick="alert(exit);">Parasiti grupul</a> </span> </li> </div> </ul> <?endif?> </div> <!-- Creatorul grupului --> <div class="block"> <div class="blocktop set"> <table height="33px" width="100%"> <tr> <td> <div style="color:#DDE8F1;margin-left:5px;">Creatorul grupului</div> </td> </td> </tr> </table> </div> </div> <div class="paddingd" style="height: ;"> <ul> <li><span><a class="memLink" href="$PROFILE_URL$">$USER$</a></span></li> </ul> <div style="display:none;"> </div> </div> <!-- /Creatorul grupului --> <!-- Participantii --> <div class="block"> <div class="blocktop groups"> <table height="33px" width="100%"> <tr> <td> <div style="color:#DDE8F1;margin-left:5px;">Participantii</div> </td> <td style="padding-right:15px;" align="right"> <span id="uusnumb1"> <span id="uus1"><u>$_LOAD_ENTRIES$</u>participanţii</span> </span> </td> </tr> </tbody> </table> </div> </div> <div class="paddingd" style="height: ;"> <center> <span class="vgrA"> </span> <span class="vgrB"></span> <span class="vgrC"></span> <span class="vgrD"></span> <span class="vgrE"></span> <span class="vgrF"></span> <span class="vgrJ"></span> <span class="vgrQ"></span> <span class="vgrQa"></span> <span class="vgrQd"></span> <span class="vgrQc"></span> <span class="vgrQf"></span> <span class="vgrQfa"></span> <span class="vgrQfb"></span> <span class="vgrQfc"></span> <span class="vgrQfca"></span> <span class="vgrQfcb"></span> <span class="vgrQfcc"></span> <span class="vgrQfcca"></span> <span class="vgrQfccb"></span> <span class="vgrQfccc"></span> </center> <script> // buton să se alăture grupului: var addbuttons = '<a href="javascript://" onclick="iingroup();addload();">Alatura-te grupului</a>'; // pentru a părăsi grupului: var logoutbutton = '<a href="javascript://" onclick="alert(\'Această caracteristică este temporar indisponibil.\');">Ieşiţi din grup</a>'; $.get('/search/groups$USER$$ID$', function (data) { $('#adduser').html($('#bodyadd', data).text().indexOf('660')==-1?addbuttons:logoutbutton); $('.vgrA').html($('#friendTablePers::eq(0)', data).html()); $('.vgrB').html($('#friendTablePers::eq(1)', data).html()); $('.vgrC').html($('#friendTablePers::eq(2)', data).html()); $('.vgrD').html($('#friendTablePers::eq(3)', data).html()); $('.vgrE').html($('#friendTablePers::eq(4)', data).html()); $('.vgrF').html($('#friendTablePers::eq(5)', data).html()); $('.vgrJ').html($('#friendTablePers::eq(6)', data).html()); $('.vgrQ').html($('#friendTablePers::eq(7)', data).html()); $('.vgrQa').html($('#friendTablePers::eq(8)', data).html()); $('.vgrQd').html($('#friendTablePers::eq(9)', data).html()); $('.vgrQc').html($('#friendTablePers::eq(10)', data).html()); $('.vgrQf').html($('#friendTablePers::eq(11)', data).html()); $('.vgrQfa').html($('#friendTablePers::eq(12)', data).html()); $('.vgrQfb').html($('#friendTablePers::eq(13)', data).html()); $('.vgrQfc').html($('#friendTablePers::eq(14)', data).html()); $('.vgrQfca').html($('#friendTablePers::eq(15)', data).html()); $('.vgrQfcb').html($('#friendTablePers::eq(16)', data).html()); $('.vgrQfcc').html($('#friendTablePers::eq(17)', data).html()); $('.vgrQfcca').html($('#friendTablePers::eq(18)', data).html()); $('.vgrQfccb').html($('#friendTablePers::eq(19)', data).html()); $('.vgrQfccc').html($('#friendTablePers::eq(20)', data).html()); }); function iingroup() { $.get('/publ/0-0-0-0-1', function(data){ var ssid = $('input[name="ssid"]', data).val(); $.post('/publ/', { a: '12', jkd428: '1', jkd498: '1', ocat: '2', brief: '$USER_ID$', <?if($USER_AVATAR_URL$)?>title: '$USER_AVATAR_URL$',<?else?>title: '/img/nophoto.gif',<?endif?> coms_allowed: '1', tags: 'groups$USER$$ID$,name$USERNAME$$ID$', ssid: ssid }, function(a){}); }); } function addload(){ $('.aload').html('<br><center><img src="/img/upload.gif"></center><br>'); setTimeout(function(){ $('.aload').html('<br><div id="msg">V-aţi alăturat cu succes grupului!</div><br>'); }, 3000); } $('#uusnumb1').load('/search/groups$USER$$ID$ #uus1'); </script> <script> function toanswer(id) { //Script by LllMmm $.get('/index/58-'+id, function(data){ var sos = $('input[name="sos"]', $('cmd[p="content"]', data).text()).attr('id'); var tsanswer = $('.tanswer'+id).val(); $.post('/index/', { pid: +id, a: '36', copyright: 'lllmmm', message: tsanswer, sos: sos }, function(){ _uWnd.alert('Reîmprospătaţi pagina pentru a vedea mesajul.','Răspuns',{name:'add',copyright: 'lllmmm',w:280,h:120}); }); }); } </script> <div style="display:none;"> </div> </div> <!-- /Participantii --> <div style="width:210px;margin:0 auto;padding-bottom:7px;"> </div> </td> <td class="rightbl" valign="top"> <div class="subtitle"> <a class="sublink" href="#"> social Ucoz </a> » <a class="sublink" href="/publ/1"> Grup </a> » <b> $ENTRY_TITLE$ </b> </div> </div> <?if($AUTHOR_EMAIL$)?> <!-- Interviu --> <div class="block2"> <div class="blocktops infogroup"> <table height="20px" width="100%"> <tbody> <tr> <td> <div style="color:#DDE8F1;margin-left:5px;">Interviu</div> </td> </tr> </tbody> </table> </div> <div class="paddingd"> <div id="poolPlace" align="center"><center><img src="/img/upload.gif"><br>Descarcare sondaj...</center></div> <script type="text/javascript"> $("#poolPlace").load("$AUTHOR_EMAIL$ .postPoll"); function pollfrm(f){document.getElementById('sbmPl').disabled=true;_uPostForm('forumPollF',{type:'POST',url:'/forum/'});}function pollReslt(id){_uPostForm('',{url:'/forum/'+id});} </script> <style> hr {border:0;background:#cdd5de;width:100%;height:1px;margin: 11px 0pt 10px;} </style> </div> </div> <!-- /Interviu--> <?endif?> <!-- Descriere --> <div class="block2"> <div class="blocktops infogroup"> <table height="20px" width="100%"> <tbody> <tr> <td> <div style="color:#DDE8F1;margin-left:5px;">Descrierea</div> </td> </tr> </tbody> </table> </div> <div class="paddingd"> $BRIEF$ <style> hr {border:0;background:#cdd5de;width:100%;height:1px;margin: 11px 0pt 10px;} </style> </div> <!-- /Descrierea --> <!-- Interviu --> <div class="block2"> <div class="blocktops infogroup"> <table height="20px" width="100%"> <tbody> <tr> <td> <div style="color:#DDE8F1;margin-left:5px;">Comentarii</div> </td> </tr> </tbody> </table> </div> <div class="paddingd"> <div style="background:#eeeeee;border-bottom:1px solid #e2e2e2;padding-top:4px;padding-bottom:4px;padding-left:6px;padding-right:3px;"><a onclick="$('#acom').slideToggle('1');"href="javascript://">Scrie</a></div><br> <div id="acom" style="display:none;"><?if($USER_AGENT$=='opera')?><div style="margin-left:4px;margin-right:-8px;">$COM_ADD_FORM$</div><?else?><div style="margin-left:5px;">$COM_ADD_FORM$</div><?endif?></div> $COM_BODY$ </div> </div> <!-- /Interviu --> </td> </tr> </table> </div> </div> $GLOBAL_BFOOTER$ </body> <script> // buton să se alăture grupului: var addbuttons = '<a href="javascript://" onclick="iingroup();addload();">Alatura-te grupului</a>'; // pentru a părăsi grup: var logoutbutton = '<a href="javascript://" onclick="alert(\'Această caracteristică este temporar indisponibil.\');">Ieşiţi din grup</a>'; $.get('/search/groups$USER$$ID$', function (data) { $('#adduser').html($('#bodyadd', data).text().indexOf('660')==-1?addbuttons:logoutbutton); $('.vgrA').html($('#friendTablePers::eq(0)', data).html()); $('.vgrB').html($('#friendTablePers::eq(1)', data).html()); $('.vgrC').html($('#friendTablePers::eq(2)', data).html()); $('.vgrD').html($('#friendTablePers::eq(3)', data).html()); $('.vgrE').html($('#friendTablePers::eq(4)', data).html()); $('.vgrF').html($('#friendTablePers::eq(5)', data).html()); $('.vgrJ').html($('#friendTablePers::eq(6)', data).html()); $('.vgrQ').html($('#friendTablePers::eq(7)', data).html()); $('.vgrQa').html($('#friendTablePers::eq(8)', data).html()); $('.vgrQd').html($('#friendTablePers::eq(9)', data).html()); $('.vgrQc').html($('#friendTablePers::eq(10)', data).html()); $('.vgrQf').html($('#friendTablePers::eq(11)', data).html()); $('.vgrQfa').html($('#friendTablePers::eq(12)', data).html()); $('.vgrQfb').html($('#friendTablePers::eq(13)', data).html()); $('.vgrQfc').html($('#friendTablePers::eq(14)', data).html()); $('.vgrQfca').html($('#friendTablePers::eq(15)', data).html()); $('.vgrQfcb').html($('#friendTablePers::eq(16)', data).html()); $('.vgrQfcc').html($('#friendTablePers::eq(17)', data).html()); $('.vgrQfcca').html($('#friendTablePers::eq(18)', data).html()); $('.vgrQfccb').html($('#friendTablePers::eq(19)', data).html()); $('.vgrQfccc').html($('#friendTablePers::eq(20)', data).html()); }); function iingroup() { $.get('/publ/0-0-0-0-1', function(data){ var ssid = $('input[name="ssid"]', data).val(); $.post('/publ/', { a: '12', jkd428: '1', jkd498: '1', ocat: '2', brief: '$USER_ID$', <?if($USER_AVATAR_URL$)?>title: '$USER_AVATAR_URL$',<?else?>title: '/img/nophoto.gif',<?endif?> coms_allowed: '1', tags: 'groups$USER$$ID$,name$USERNAME$$ID$', ssid: ssid }, function(a){}); }); } function addload(){ $('.aload').html('<br><center><img src="/img/upload.gif"></center><br>'); setTimeout(function(){ $('.aload').html('<br><div id="msg">V-aţi alăturat cu succes grupului!</div><br>'); }, 3000); } $('#uusnumb1').load('/search/groups$USER$$ID$ #uus1'); </script> <script> function toanswer(id) { //Script by LllMmm $.get('/index/58-'+id, function(data){ var sos = $('input[name="sos"]', $('cmd[p="content"]', data).text()).attr('id'); var tsanswer = $('.tanswer'+id).val(); $.post('/index/', { pid: +id, a: '36', copyright: 'lllmmm', message: tsanswer, sos: sos }, function(){ _uWnd.alert('Reîmprospătaţi pagina pentru a vedea mesajul.','Răspuns',{name:'add',copyright: 'lllmmm',w:280,h:120}); }); }); } </script> </html> Site-ul este : social Ucoz ,rog pe cineva care se pricepe sa ma ajute si pe mine sa termin odata ! Multumesc mult Material modificat de daniel - Joi, 28/06/2012, 0:42 AM
|
e tare site-ul . m-am gandit sa fac si eu o retea .(poate aveam succes) dar pe urma mi-am dat seama ..ca mai bine nu ... la 400 de mb ..mai multi useri...mai mult spatiu pe disc.. si m-am lasat pagubas.dar oricum tare site-ul imi place mult .bravo .le ai asa oleaca :P
|
| |||
| |||