Funkcija Mani Draugi - UCoz Sistēmā
|
|
Marks
|
|
|
VECĀ MIESA
Foruma ieraksti: 1472
UWM Reputācija:
|
uWEBMEISTARS ordeņi:
1. līmenis
2. līmenis
3. līmenis
Jaunākie apbalvojumi:
|
@Marks raksta .. :
Pats pirmais kodarām ir aktivizējam Moduli BLOG un uzreiz dodamies uz Moduļa uzstādijumiem. Meklējam Daļu "Fields of a new entry form:" un tur atķeksējam Custom field no 1 - 4. Un aukstāk atstājam tikai title. Protams neaizmirstam ieslēkt iespēju meklēt lietotāja materiālus. Quote Enable capability to search entries of a particular user: Tālāk dodamies uz Blog - CT (Customize Design) - Page Of Entry Archive Un visu Tur Esošo aizstājam Ar šo te: Code <title>Draugi</title> <link type="text/css" rel="StyleSheet" href="/_st/my.css" /> <style>.cuzadpn{display:none;}</style> </head> <body> <center><font size="5" face="Bleeding Cowboys" color="blue">Draugu Saraksts</font></center><hr> <script language="javascript">var linckinum = 1;</script> $BODY$ <br><center>$POWERED_BY$</center> </body> </html> <script language="javascript"> if('$PAGE_ID$' == 'add') { if(document.getElementById('blM16')) document.getElementById('blM16').style.display = 'none'; document.getElementById('blF1').value = parent.document.getElementById('favik2').innerHTML; document.getElementById('blF12').value = parent.document.getElementById('favik3').innerHTML; document.getElementById('blF13').value = parent.document.getElementById('favik4').innerHTML; document.getElementById('blF11').value = parent.window.location.href; document.getElementById('doSmbBt').click(); alert('Labais, Šis cilvēks ir pievienots Jūsu Draugu Sarakstam!'); } </script> Nākošais Solis. Dodamies turpat bet tikai uz appearence of entries un visu tur esošo aizstājam ar šo te Code <style> .box {padding:1px;} .chatentry {padding:3px; background:#eeeeee url(http://skyscript.ucoz.com/images/topbg.png); border:1px solid #41a0ff; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; border-bottom-left-radius:0px; -moz-border-radius-bottomleft:0px; -webkit-border-bottom-left-radius:0px; border-bottom-right-radius:0px; -moz-border-radius-bottomright:0px; -webkit-border-bottom-right-radius:0px; -moz-box-shadow:inset 0 0 5px #0079ff; -webkit-box-shadow:inset 0 0 5px #0079ff; box-shadow:inset 0 0 5px #0079ff;} .Message {padding:3px; background:#eeeeee; border:1px solid #41a0ff; border-radius:0px; -moz-border-radius:0px; -webkit-border-radius:0px; border-bottom-left-radius:4px; -moz-border-radius-bottomleft:4px; -webkit-border-bottom-left-radius:4px; border-bottom-right-radius:4px; -moz-border-radius-bottomright:4px; -webkit-border-bottom-right-radius:4px; } a.username:link {text-decoration:none; color:#fff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.username:active {text-decoration:none; color:#fff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.username:visited {text-decoration:none; color:#fff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.username:hover {text-decoration:none; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} .avatar {-moz-box-shadow: 0 0 3px #0079ff; -webkit-box-shadow: 0 0 3px #0079ff; box-shadow: 0 0 3px #0079ff;} a.MyFriendLink:link {text-decoration:none; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.MyFriendLink:active {text-decoration:none; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.MyFriendLink:visited {text-decoration:none; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.MyFriendLink:hover {text-decoration:underline; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.SendPM:link {text-decoration:none; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.SendPM:active {text-decoration:none; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.SendPM:visited {text-decoration:none; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} a.SendPM:hover {text-decoration:underline; color:#0079ff; cursor:url(http://skyscript.ucoz.com/images/cursor.png),auto;} </style> <div class="box"><div class="chatentry"> <center><font color="white"><b>Draugs Pievienots:</b> $DATE$ - $TIME$ - $WDAY$</font></center>
</div> <div class="Message"> <table border="0" cellspacing="0" width="100%"> <tr> <td width="60" valign="top"><center><?if($_AVATAR_URL$)?><img src="$_AVATAR_URL$" width="50" title="Mana Drauga ($_USERNAME$) avatārs" valign="absmiddle"><?else?><img src="http://skyscript.ucoz.com/images/avatar.png" width="50" title="Mana Drauga ($_USERNAME$) avatārs" valign="absmiddle"><?endif?></center></td> <td valign="top"> <table id=table1 width="100%" border=0> <tr> <td width="70%"> <div style="alagn:left;font:7pt;"><a target="_blank" href="/index/8-$OTHER3$" class="MyFriendLink"><b><span class="g$OTHER2$">$TITLE$</span></b></a></div> </td> <?if($MODER_PANEL$)?> <td width="80"> <div style="alagn:right;font:7pt;">$MODER_PANEL$</div> </td> <?endif?> <td width="180"> <div style="alagn:right;font:7pt;"><a target="_blank" class="SendPM" href="/index/14-$TITLE$-0-1">Sūtīt PZ</a></div> </td> </table></td> </tr> </table> </div></div> Vēl nedaudz un funkcija gatava, Tālāk Jums ir Jāatver Lietotāju Personīgās Skata (CT users- personal page) un tur tūlīt aiz tega BODy liekam šo te Code <script language="javascript"> function add_fr() { if(document.getElementById('favik')) document.getElementById('favik').innerHTML = '<iframe style="width:1px;height:1px;" frameborder="0" scrolling="no" hspace="0" vspace="0" allowtransparency="true" src="/blog/0-0-0-0-1"></iframe>'; } </script><span id="favik"></span><span id="favik2" style="display:none;">$_USERNAME$</span><span id="favik3" style="display:none;">$_GROUP_ID$</span><span id="favik4" style="display:none;">$_USER_ID$</span> Vēl atliek uzstādīt Pogas kas ļaus mums konkrētus lietotājus pievienot savam draugu sarakstam Tātad liekam tur kur vēlamies redzēt šis pogas. Code <?if($USER_LOGGED_IN$)?><input title="Pievienot $USERNAME$, manam draugu sarakstam" class="commSbmFl" value="Pievienot Draugu" href="javascript://" onclick="add_fr();" type="button"><?endif?> <br> <input title="Lietotāja Draugu Saraksts" class="commSbmFl" value="Lietotāja Draugi" href="javascript://" onclick="window.open('/blog/0-0-0-0-17-$_USER_ID$','upp','scrollbars=1,top=0,left=0,resizable=1,width=400,height=500') || alert('Lūdzu AtslēdzietPop-Up Logu bloķēšanu!'); return false;" type="button">
</div> <?else?> <?if($USER_LOGGED_IN$)?> <div style="position:relative;float:right;text-align:center;"> <input title="Manu Draugu Saraksts" class="commSbmFl" value="Mani Draugi" href="javascript://" onclick="window.open('/blog/0-0-0-0-17-$USER_ID$','upp','scrollbars=1,top=0,left=0,resizable=1,width=400,height=500') || alert('Lūdzu AtslēdzietPop-Up Logu bloķēšanu!'); return false;" type="button"> </div> <?endif?> <?endif?> Ir vēlviens mazs Knifiņš, ir iespēja ielikt Pogu mani draugi arī lapas Mini-Profilos un kods ir sekojošs (input Poga :D) Code <input title="Manu Draugu Saraksts" class="commSbmFl" value="Mani Draugi" href="javascript://" onclick="window.open('/blog/0-0-0-0-17-$USER_ID$','upp','scrollbars=1,top=0,left=0,resizable=1,width=400,height=500') || alert('Lūdzu AtslēdzietPop-Up Logu bloķēšanu!'); return false;" type="button"> Nu tas būtu takā arī Viss, ceru ka noderēja un ar uzstādīšanu Jums nebūs Problēmu
http://myvinyldecal.shop/
Connect with me on discord: Marcis Kols
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|