Parašė JaWa· 2009 Spa. 13 16:10:42
#1
Sveiki , noriu padaryti toki dalyka , pvz , jeigu paprastas member tinklapije tavo inbox, outbox ir archive yra
Gauti [0/20] Siuntimas [0/20] Archyvas [0/20] ,
o jeigu tu admin, moderator arba dar kas tai
Gauti [0/200] Siuntimas [0/200] Archyvas [0/200]
stai bandziau cia tai daryt, bet kazkaip nesuveikia :/
opentable($locale['400']);
if ($total_rows) echo "<form name='pm_form' method='post' action='".FUSION_SELF."?folder=$folder'>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n<td align='left' width='100%' class='tbl'><a href='".FUSION_SELF."?msg_send=0'>".$locale['401']."</a></td>\n";
if (iMEMBER) {
echo "<td width='1%' class='tbl' style='white-space:nowrap;font-weight:".($folder=="inbox"?"bold":"normal")."'><a href='".FUSION_SELF."?folder=inbox'>".$locale['402']." [".$bdata['inbox_total']."/".$msg_settings['pm_inbox']."]</a></td>\n";
} else {
echo "<td width='1%' class='tbl' style='white-space:nowrap;font-weight:".($folder=="inbox"?"bold":"normal")."'><a href='".FUSION_SELF."?folder=inbox'>".$locale['402']." [".$bdata['inbox_total']."/".$msg_settings['200']."]</a></td>\n";
}
echo "<td width='1%' class='tbl' style='white-space:nowrap;font-weight:".($folder=="outbox"?"bold":"normal")."'><a href='".FUSION_SELF."?folder=outbox'>".$locale['403']." [".$bdata['outbox_total']."/".$msg_settings['pm_sentbox']."]</a></td>\n";
echo "<td width='1%' class='tbl' style='white-space:nowrap;font-weight:".($folder=="archive"?"bold":"normal")."'><a href='".FUSION_SELF."?folder=archive'>".$locale['404']." [".$bdata['archive_total']."/".$msg_settings['pm_savebox']."]</a></td>\n";
echo "<td width='1%' class='tbl' style='white-space:nowrap;font-weight:".($folder=="options"?"bold":"normal")."'><a href='".FUSION_SELF."?folder=options'>".$locale['425']."</a></td>\n";
echo "</tr>\n</table>\n";
patarkit kaip daryt geriau tai !?>
ADD POST #2:
<script language='javascript'>
function writeCookie() {
var date = new Date();
date.setTime(date.getTime()+(86400*30)); \\laikas
var expires = '; expires='+date.toGMTString();
var the_cookie = 'LINK';
document.cookie = the_cookie+expires+'; path=/';
}
</script>
if (!isset($_COOKIE['LINK'])) {
<a onclick='writeCookie()' href='http://sensation-white.too.lt'>SPAUSK</a>";
}
Stai turiu koda, jis turetu veikti tokiu principu, Is vieno ir to pacio ip zmogus gali paspausti tik 1 karta nuoroda. Taciau kazkodel ji neveikia, galiu ivalias kartu spausti ja .... Dar klausimas , o ar galima ja butu sujungti su
php-fusion, kad fiksuotu ne pagal ip paspaudima , o pagal nari, kad kokiam nors list.txt faile arba duomenu bazeje saugotusi nikai kurie paspaude nuoroda.
Redagavo ramon· 2009 Spa. 13 16:10:23