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'>&nbsp;&nbsp";


echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/createspace.php?space">'.$locale['mppscr101'].'</a><br>&nbsp;&nbsp';

if ($siteacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/mysite.php?edit">'.$locale['MPP500'].'</a><br>&nbsp;&nbsp';
}
if ($albumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/albumcreator/photoalbums.php">'.$locale['MPP501'].'</a><br>&nbsp;&nbsp';
}

if ($bloggacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/blog/blogadmin.php">'.$locale['MPP502'].'</a><br>&nbsp;&nbsp';
}
if ($calendaracont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/calendar/calendar.php">'.$locale['MPP506'].'</a><br>&nbsp;&nbsp';
}
if ($forumacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/Administration/forums.php">'.$locale['MPP504'].'</a><br>&nbsp;&nbsp';

}
if ($friendsacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/friendcreator/friendcreator.php">'.$locale['MPP264'].'</a><br>&nbsp;&nbsp';
}
if ($linksacont == "1"){
echo '<img src="'.THEME.'images/bullet.gif"> <a href="'.INFUSIONS.'member_pages/menucreator/menucreator.php">'.$locale['MPP505'].'</a><br>&nbsp;&nbsp';
}

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>&nbsp;&nbsp';
}

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>&nbsp;&nbsp";
}
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