ramunasz
Narys
Generolas
Pranešimai: 873
Įstojęs: 2007 Bir. 17 22:06:04
Taigi va nusprendžiau naudoti šitą modą ir va dešinės panelės kodas :
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
<!--Hide script from old browsers
function newWindow(newContent)
{
winContent = window.open(newContent, 'nextWin', 'right=0, top=20,width=900,height=420, toolbar=no,scrollbars=yes, resizable=no'); window.close;
}
//Stop hiding script from old browsers -->
</SCRIPT>
<?php
if (!defined("LANGUAGE")) {
// PHPFusion environment
$this_lang = str_replace("/", "", LOCALESET);
if (file_exists(INFUSIONS."member_pages/locale/".$this_lang.".php")) {
include INFUSIONS."member_pages/locale/".$this_lang.".php";
} else {
include INFUSIONS."member_pages/locale/English.php";
}
} else {
// mFusion environment
$this_lang = LANGUAGE;
if (file_exists(INFUSIONS."member_pages/locale/".$this_lang.".php")) {
include INFUSIONS."member_pages/locale/".$this_lang.".php";
} else {
include INFUSIONS."member_pages/locale/English.php";
}
}
if (!iMEMBER) fallback("getwiththeprogram.php");
$read_settingsmppacont = dbquery("SELECT * FROM ".$db_prefix."memberpp_site_settings");
if (dbrows($read_settingsmppacont) != 0) {
$settingsmppacont = dbarray($read_settingsmppacont);
$siteacont = $settingsmppacont['site'];
$albumacont = $settingsmppacont['photoalbum'];
$bloggacont = $settingsmppacont['blogg'];
$gbokacont = $settingsmppacont['gbok'];
$forumacont = $settingsmppacont['forum'];
$friendsacont = $settingsmppacont['friends'];
$linksacont = $settingsmppacont['links'];
$calendaracont = $settingsmppacont['calendar'];
$extinfoacont = $settingsmppacont['extinfo'];
}
$read_panelstate = dbquery("SELECT panel_status,panel_side FROM ".$db_prefix."panels WHERE panel_filename='user_info_panel'");
if (dbrows($read_panelstate) != 0) {
$panelstate = dbarray($read_panelstate);
$side = $panelstate['panel_side'];
}
//admincontrol
openside("VIP navigacija");
$state="4";
if($settings['version'] < "6.01.3") $state="1";
if (iMEMBER && $side ==$state){
echo"<b>".$userdata[user_name]."</b><br>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo"<br><br>";
}
echo "<a href=\"javascript:show_hide(ShowHide02)\">
<img src='".THEME."images/bullet.gif'> [ VIP Meniu ]</span></a>
<div id='ShowHide02'>  ";
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/createspace.php?space">'.$locale['mppscr101'].'</a><br>  ';
if ($siteacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/mysite.php?edit">'.$locale['MPP500'].'</a><br>  ';
}
if ($albumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/albumcreator/photoalbums.php">'.$locale['MPP501'].'</a><br>  ';
}
if ($bloggacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/blog/blogadmin.php">'.$locale['MPP502'].'</a><br>  ';
}
if ($calendaracont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/calendar/calendar.php">'.$locale['MPP506'].'</a><br>  ';
}
if ($forumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/Administration/forums.php">'.$locale['MPP504'].'</a><br>  ';
}
if ($friendsacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/friendcreator/friendcreator.php">'.$locale['MPP264'].'</a><br>  ';
}
if ($linksacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/menucreator/menucreator.php">'.$locale['MPP505'].'</a><br>  ';
}
if ($gbokacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/guestbooks/admin/index.php?site_id='.$userdata['user_id'].'">'.$locale['MPP253'].'</a><br>  ';
}
if ($extinfoacont == "1"){
echo "<img src='".THEME."images/bullet.gif'> <A HREF=\"javascript:newWindow('".INFUSIONS."member_pages/extended_user_database/redirect.php')\">Presentation</a><br>  ";
}
echo '<br>
<img src="'.THEME.'images/bullet.gif"><A HREF="'.INFUSIONS.'member_pages/settings.php?edit"> '.$locale['MPP507'].'</a><br>
<img src="'.THEME.'images/bullet.gif"><a href="'.INFUSIONS.'member_pages/membersites.php"> '.$locale['MPP503'].'</a>';
echo "</div>";
echo "</center>";
//admincontrol
echo "</div><script>show_hide(ShowHide02)</script>";
closeside();
?>
Sukuriu vartotojų grupę pvz blabla ir tada įrašau į šitą failą
if (blabla) {
tada nemato nei paprastas narys šitos pusės panelių niekas, gal žinote ką negerai darau?Redagavo
ramunasz 2008 Rugp. 4 19:08:04
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
blogas kodas, kokia cia nesamone padarei if (blabla) { }
if (checkgroup(.1 )) {}
1 - tai grupės id.Redagavo
ex-it 2008 Rugp. 4 18:08:34
ramunasz
Narys
Generolas
Pranešimai: 873
Įstojęs: 2007 Bir. 17 22:06:04
//admincontrol
openside("VIP navigacija");
$state="4";
if($settings['version'] < "6.01.3") $state="1";
if (iMEMBER && $side ==$state){
echo"<b>".$userdata[user_name]."</b><br>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo"<br><br>";
}
echo "<a href=\"javascript:show_hide(ShowHide02)\">
<img src='".THEME."images/bullet.gif'> [ VIP Meniu ]</span></a>
<div id='ShowHide02'>  ";
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/createspace.php?space">'.$locale['mppscr101'].'</a><br>  ';
if ($siteacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/mysite.php?edit">'.$locale['MPP500'].'</a><br>  ';
}
if ($albumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/albumcreator/photoalbums.php">'.$locale['MPP501'].'</a><br>  ';
}
if ($bloggacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/blog/blogadmin.php">'.$locale['MPP502'].'</a><br>  ';
}
if ($calendaracont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/calendar/calendar.php">'.$locale['MPP506'].'</a><br>  ';
}
if ($forumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/Administration/forums.php">'.$locale['MPP504'].'</a><br>  ';
}
if ($friendsacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/friendcreator/friendcreator.php">'.$locale['MPP264'].'</a><br>  ';
}
if ($linksacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/menucreator/menucreator.php">'.$locale['MPP505'].'</a><br>  ';
}
if ($gbokacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/guestbooks/admin/index.php?site_id='.$userdata['user_id'].'">'.$locale['MPP253'].'</a><br>  ';
}
if ($extinfoacont == "1"){
echo "<img src='".THEME."images/bullet.gif'> <A HREF=\"javascript:newWindow('".INFUSIONS."member_pages/extended_user_database/redirect.php')\">Presentation</a><br>  ";
}
echo '<br>
<img src="'.THEME.'images/bullet.gif"><A HREF="'.INFUSIONS.'member_pages/settings.php?edit"> '.$locale['MPP507'].'</a><br>
<img src="'.THEME.'images/bullet.gif"><a href="'.INFUSIONS.'member_pages/membersites.php"> '.$locale['MPP503'].'</a>';
echo "</div>";
echo "</center>";
//admincontrol
echo "</div><script>show_hide(ShowHide02)</script>";
closeside();
?>
Irasau ne 1, o 3 nes 3 grupe ir neveikiaRedagavo
ramunasz 2008 Rugp. 4 19:08:47
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
Kurias paneles tu nori, kad matytų nariai ir kurias tik ta grupė. Paryškink tekstą.
ramunasz
Narys
Generolas
Pranešimai: 873
Įstojęs: 2007 Bir. 17 22:06:04
Na jau parysikinau
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
//admincontrol
if (checkgroup(.3)) {openside("VIP navigacija");
$state="4";
if($settings['version'] < "6.01.3") $state="1";
if (checkgroup(.3) && $side ==$state){
echo"<b>".$userdata[user_name]."</b><br>";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a>\n";
if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
echo"<br><br>";
}
echo "<a href=\"javascript:show_hide(ShowHide02)\">
<img src='".THEME."images/bullet.gif'> [ VIP Meniu ]</span></a>
<div id='ShowHide02'>  ";
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/createspace.php?space">'.$locale['mppscr101'].'</a><br>  ';
if ($siteacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/mysite.php?edit">'.$locale['MPP500'].'</a><br>  ';
}
if ($albumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/albumcreator/photoalbums.php">'.$locale['MPP501'].'</a><br>  ';
}
if ($bloggacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/blog/blogadmin.php">'.$locale['MPP502'].'</a><br>  ';
}
if ($calendaracont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/calendar/calendar.php">'.$locale['MPP506'].'</a><br>  ';
}
if ($forumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/Administration/forums.php">'.$locale['MPP504'].'</a><br>  ';
}
if ($friendsacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/friendcreator/friendcreator.php">'.$locale['MPP264'].'</a><br>  ';
}
if ($linksacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/menucreator/menucreator.php">'.$locale['MPP505'].'</a><br>  ';
}
if ($gbokacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/guestbooks/admin/index.php?site_id='.$userdata['user_id'].'">'.$locale['MPP253'].'</a><br>  ';
}
if ($extinfoacont == "1"){
echo "<img src='".THEME."images/bullet.gif'> <A HREF=\"javascript:newWindow('".INFUSIONS."member_pages/extended_user_database/redirect.php')\">Presentation</a><br>  ";
}
echo '<br>
<img src="'.THEME.'images/bullet.gif"><A HREF="'.INFUSIONS.'member_pages/settings.php?edit"> '.$locale['MPP507'].'</a><br>
<img src="'.THEME.'images/bullet.gif"><a href="'.INFUSIONS.'member_pages/membersites.php"> '.$locale['MPP503'].'</a>';
echo "</div>";
echo "</center>";
//admincontrol
echo "</div><script>show_hide(ShowHide02)</script>";
closeside();}
?>
Redagavo
ex-it 2008 Rugp. 4 19:08:13
ramunasz
Narys
Generolas
Pranešimai: 873
Įstojęs: 2007 Bir. 17 22:06:04
Nu irasia utavo koda as uzsidejau vip grupe ir nerodo man sitos paneles dabar
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
Tai gal tu neesi toje grupėje...
ramunasz
Narys
Generolas
Pranešimai: 873
Įstojęs: 2007 Bir. 17 22:06:04
Ta prasme juk pats uzsidejau Vip grupes per Vartotoju administracija ir dabar nerodo amn tos paneles
ex-it
Narys
Ekspertas
Pranešimai: 2696
Įstojęs: 2007 Gru. 24 11:12:58
Nežinau, daviau kodus ir viską ko reik. Pamėgink pats ka nors editinti.
ramunasz
Narys
Generolas
Pranešimai: 873
Įstojęs: 2007 Bir. 17 22:06:04
Susitvarkiau, turi but ne if (checkgroup(.3)) {}
o
if (checkgroup("3")) {}
Peršokti į forumą:
Nebeegzistuojančios svetainės
Žaliems
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Jūsų saitai
Dalinuosi, dovanoju!
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!