Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Members pages
Parašė ramunasz· 2008 Rugp. 4 18:08:50
#1
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
Parašė ex-it· 2008 Rugp. 4 18:08:47
#2
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
Parašė ramunasz· 2008 Rugp. 4 19:08:58
#3
//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 neveikia
Redagavo ramunasz· 2008 Rugp. 4 19:08:47
Parašė ex-it· 2008 Rugp. 4 19:08:41
#4
Kurias paneles tu nori, kad matytų nariai ir kurias tik ta grupė. Paryškink tekstą.
Parašė ramunasz· 2008 Rugp. 4 19:08:13
#5
Na jau parysikinau :]
Parašė ex-it· 2008 Rugp. 4 19:08:59
#6
//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
Parašė ramunasz· 2008 Rugp. 4 19:08:21
#7
Nu irasia utavo koda as uzsidejau vip grupe ir nerodo man sitos paneles dabar
Parašė ex-it· 2008 Rugp. 4 19:08:33
#8
Tai gal tu neesi toje grupėje...
Parašė ramunasz· 2008 Rugp. 4 19:08:56
#9
Ta prasme juk pats uzsidejau Vip grupes per Vartotoju administracija ir dabar nerodo amn tos paneles
Parašė ex-it· 2008 Rugp. 4 19:08:26
#10
Nežinau, daviau kodus ir viską ko reik. Pamėgink pats ka nors editinti.
Parašė ramunasz· 2008 Rugp. 4 20:08:02
#11
Susitvarkiau, turi but ne
if (checkgroup(.3)) {}
o
if (checkgroup("3")) {}