We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15065
    • 138 Posts

    Hi

    How can I create a new tab in MODx manager section. I mean, I want to create a new tab named ’traffic’ such as site, resources... etc and create its link to some other traffic module.
    How can do this?

    In my above question, I want to link the new tab to some other module and there is any way to open that module within the manager section such as we open other chunks or snippets ?

    thanx
    Jurdy George
      • 16183
      • 1,390 Posts
      Jurdy,

      Have a look at this http://wiki.modxcms.com/index.php/Customizing_the_Manager_Homepage

      and here’s a link to some other post showing customisation of the manager - in case you need it in the future
      http://modxcms.com/forums/index.php/topic,30684.0.html

      cheers/k
        • 15083
        • 697 Posts
        Jurdy,

        It’s much easier to add a module. You can simple tell the users to click on Modules and they can have a separate button for each piece of functionality that u need to provide....

        J
          • 15065
          • 138 Posts
          Hi

          I read wiki posts. But in my installation, there is no modxlight folder (’MODxLight/welcome.html’) in style directory.

          And what does it mean "tell the users to click on Modules and they can have a separate button for each piece of functionality", which is the option to set module as a button.?

          attaching its system info and welcome.static.php.

          can you pls help me with this....

          thanx for the replies

          jurdy george

          WELCOME.STATIC.PHP
          <?php
          if(IN_MANAGER_MODE!="true") die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the MODx Content Manager instead of accessing this file directly.");
          unset($_SESSION['itemname']); // clear this, because it's only set for logging purposes
          
          if(!isset($settings_version) || $settings_version!=$version) {
          	// seems to be a new install - send the user to the configuration page
          ?>
          <script type="text/javascript">document.location.href="index.php?a=17";</script>
          <?php
          	exit;
          }
          
          ?>
          <div class="subTitle" style="margin-bottom:0px">
          	<span class="right"><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/_tx_.gif" width="1" height="5" /><br /><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/home.gif" /> <?php echo $_lang["home"]; ?></span>
          </div>
          
          <!-- welcome -->
          <div class="sectionBody" style="margin-top:0px;">
          <table border="0" cellpadding="5" width="100%">
            <tr>
              <td width="10%" align="right">
          		<img src='media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/misc/logo.png' alt='<?php echo $_lang["logo_slogan"]; ?>' />
          		<br /><br />
          	</td>
          	<td>
          	<span style="font-size:18px;font-weight:bold"><?php echo "$site_name"; ?> </span><br />
          	<?php echo $_lang["welcome_title"]; ?><br /><br />
          <?php if($modx->hasPermission('messages')) { ?>
          		<a href="index.php?a=10"><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/mail_generic.gif" /></a>
          		<span style="color:#909090;font-size:15px;font-weight:bold"> Inbox<?php echo $_SESSION['nrnewmessages']>0 ? " (<span style='color:red'>".$_SESSION['nrnewmessages']."</span>)":""; ?></span><br /><span class="comment"><?php printf($_lang["welcome_messages"], $_SESSION['nrtotalmessages'], "<span style='color:red;'>".$_SESSION['nrnewmessages']."</span>") ?></span>
          <?php } ?>
          	</td>
            </tr>
          </table>
          <div> </div>
          <table border="0" cellpadding="3">
          	<tr>
          <?php 	if($modx->hasPermission('new_user')||$modx->hasPermission('edit_user')) { ?>
          	  <td align="center"><a class="hometblink" href="index.php?a=75"><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/security.gif" width="32" height="32" alt="<?php echo $_lang['user_management_title']; ?>" /><br /><?php echo $_lang['security']; ?></a></td>
          	  <td style="color:silver">|</td>
          <?php 	} ?>
          <?php 	if($modx->hasPermission('new_web_user')||$modx->hasPermission('edit_web_user')) { ?>
          	  <td align="center"><a class="hometblink" href="index.php?a=99"><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/web_users.gif" width="32" height="32" alt="<?php echo $_lang['web_user_management_title']; ?>" /><br /><?php echo $_lang['web_users']; ?></a></td>
          	  <td style="color:silver">|</td>
          <?php 	} ?>
          <?php 	if($modx->hasPermission('new_module') || $modx->hasPermission('edit_module') || $modx->hasPermission('exec_module')) { ?>
          	  <td align="center"><a class="hometblink" href="index.php?a=106"><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/modules.gif" width="32" height="32" alt="<?php echo $_lang['manage_modules']; ?>" /><br /><?php echo $_lang['modules']; ?></a></td>
          	  <td style="color:silver">|</td>
          <?php 	} ?>
          <?php if($modx->hasPermission('new_template') || $modx->hasPermission('edit_template') || $modx->hasPermission('new_snippet') || $modx->hasPermission('edit_snippet') || $modx->hasPermission('new_plugin') || $modx->hasPermission('edit_plugin') || $modx->hasPermission('manage_metatags')) { ?>
          	  <td align="center"><a class="hometblink" href="index.php?a=76"><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/resources.gif" width="32" height="32" alt="<?php echo $_lang['resource_management']; ?>" /><br /><?php echo $_lang['resources']; ?></a></td>
          	  <td style="color:silver" width="50">|</td>
          <?php 	} ?>
          <?php if($modx->hasPermission('bk_manager')) { ?>
          	  <td align="center"><a class="hometblink" href="index.php?a=93"><img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/backup.gif" width="32" height="32" alt="<?php echo $_lang['bk_manager']; ?>" /><br /><?php echo $_lang['backup']; ?></a></td>
          <?php 	} ?>
          	</tr>
          </table>
          </div>
          <div class="sectionBody" style="border:0px; padding:0px;">
          <script type="text/javascript" src="media/script/tabpane.js"></script>
          <div class="tab-pane" id="welcomePane" style="border:0px">
          	<script type="text/javascript">
          		tpPane = new WebFXTabPane(document.getElementById( "welcomePane" ),false);
          	</script>
          
          	<!-- system check -->
          	<?php
          	// do some config checks
          	include_once "config_check.inc.php";
          	if($config_check_results != $_lang['configcheck_ok']) {
          	?>
          	<div class="tab-page" id="tabcheck" style="padding-left:0px; padding-right:0px">
          		<h2 class="tab"><?php echo $_lang["settings_config"] ?></h2>
          		<script type="text/javascript">tpPane.addTabPage( document.getElementById( "tabcheck" ) );</script>
          			<div class="sectionHeader"><?php echo $_lang["configcheck_title"]; ?></div><div class="sectionBody">
          			<img src="media/style/<?php echo $manager_theme ? "$manager_theme/":""; ?>images/icons/event2.gif" />
          			<?php echo $config_check_results;	?>
          			</div>
          	</div>
          	<?php } ?>
          
          	<!-- recent activities -->
          	<div class="tab-page" id="tabAct" style="padding-left:0px; padding-right:0px">
          		<h2 class="tab"><?php echo $_lang["recent_docs"] ?></h2>
          		<script type="text/javascript">tpPane.addTabPage( document.getElementById( "tabAct" ) );</script>
          		<div class="sectionHeader"><?php echo $_lang["activity_title"]; ?></div><div class="sectionBody">
          			<?php echo $_lang["activity_message"]; ?><br /><br /><ul>
          		<?php
          		$sql = "SELECT id, pagetitle, description FROM $dbase.".$table_prefix."site_content WHERE $dbase.".$table_prefix."site_content.deleted=0 AND ($dbase.".$table_prefix."site_content.editedby=".$modx->getLoginUserID()." OR $dbase.".$table_prefix."site_content.createdby=".$modx->getLoginUserID().") ORDER BY editedon DESC LIMIT 10";
          		$rs = mysql_query($sql);
          		$limit = mysql_num_rows($rs);
          		if($limit<1) {
          			echo "\t".$_lang["no_activity_message"];
          		} else {
          			for ($i = 0; $i < $limit; $i++) {
          				$content = mysql_fetch_assoc($rs);
          				if($i==0) {
          					$syncid = $content['id'];
          				}
          		?>
          						<li><span style="width: 40px; text-align:right;"><?php echo $content['id']; ?></span> - <span style="width: 200px;"><a href='index.php?a=3&id=<?php echo $content['id']; ?>'><?php echo $content['pagetitle']; ?></a></span><?php echo $content['description']!='' ? ' - '.$content['description'] : '' ; ?></li>
          		<?php
          			}
          		}
          		?>
          		</ul></div>
          	</div>
          
          	<!-- your info -->
          	<div class="tab-page" id="tabYour" style="padding-left:0px; padding-right:0px">
          		<h2 class="tab"><?php echo $_lang["info"] ?></h2>
          		<script type="text/javascript">tpPane.addTabPage( document.getElementById( "tabYour" ) );</script>
          		<div class="sectionHeader"><?php echo $_lang["yourinfo_title"]; ?></div><div class="sectionBody">
          			<?php echo $_lang["yourinfo_message"]; ?><br /><br />
          			<table border="0" cellspacing="0" cellpadding="0">
          			  <tr>
          				<td width="150"><?php echo $_lang["yourinfo_username"]; ?></td>
          				<td width="20"> </td>
          				<td><b><?php echo $modx->getLoginUserName(); ?></b></td>
          			  </tr>
          			  <tr>
          				<td><?php echo $_lang["yourinfo_role"]; ?></td>
          				<td> </td>
          				<td><b><?php echo $_SESSION['mgrPermissions']['name']; ?></b></td>
          			  </tr>
          			  <tr>
          				<td><?php echo $_lang["yourinfo_previous_login"]; ?></td>
          				<td> </td>
          				<td><b><?php echo strftime('%d-%m-%y %H:%M:%S', $_SESSION['mgrLastlogin']+$server_offset_time); ?></b></td>
          			  </tr>
          			  <tr>
          				<td><?php echo $_lang["yourinfo_total_logins"]; ?></td>
          				<td> </td>
          				<td><b><?php echo $_SESSION['mgrLogincount']+1; ?></b></td>
          			  </tr>
          			</table>
          		</div>
          	</div>
          
          	<!-- online -->
          	<div class="tab-page" id="tabOnline" style="padding-left:0px; padding-right:0px">
          		<h2 class="tab"><?php echo $_lang["online"] ?></h2>
          		<script type="text/javascript">tpPane.addTabPage( document.getElementById( "tabOnline" ) );</script>
          		<div class="sectionHeader"><?php echo $_lang["onlineusers_title"]; ?></div><div class="sectionBody">
          			<?php echo $_lang["onlineusers_message"]; ?><b><?php echo strftime('%H:%M:%S', time()+$server_offset_time); ?></b>):<br /><br />
          			<table border="0" cellpadding="1" cellspacing="1" width="100%" bgcolor="#707070">
          			  <thead>
          			  <tr>
          				<td><b><?php echo $_lang["onlineusers_user"]; ?></b></td>
          				<td><b><?php echo $_lang["onlineusers_userid"]; ?></b></td>
          				<td><b><?php echo $_lang["onlineusers_ipaddress"]; ?></b></td>
          				<td><b><?php echo $_lang["onlineusers_lasthit"]; ?></b></td>
          				<td><b><?php echo $_lang["onlineusers_action"]; ?></b></td>
          			  </tr>
          			  </thead>
          			  <tbody>
          			<?php
          			$timetocheck = (time()-(60*20));//+$server_offset_time;
          
          			include_once "actionlist.inc.php";
          
          			$sql = "SELECT * FROM $dbase.".$table_prefix."active_users WHERE $dbase.".$table_prefix."active_users.lasthit>'$timetocheck' ORDER BY username ASC";
          			$rs = mysql_query($sql);
          			$limit = mysql_num_rows($rs);
          			if($limit<1) {
          				echo "No active users found.<br /><br />";
          			} else {
          				for ($i = 0; $i < $limit; $i++) {
          					$activeusers = mysql_fetch_assoc($rs);
          					$currentaction = getAction($activeusers['action'], $activeusers['id']);
          					$webicon = ($activeusers['internalKey']<0)? "<img  src='images/tree/web.gif' alt='Web user' />":"";
          					echo "<tr bgcolor='#FFFFFF'><td><b>".$activeusers['username']."</b></td><td>$webicon ".abs($activeusers['internalKey'])."</td><td>".$activeusers['ip']."</td><td>".strftime('%H:%M:%S', $activeusers['lasthit']+$server_offset_time)."</td><td>$currentaction</td></tr>";
          				}
          			}
          			?>
          			</tbody>
          			</table>
          		</div>
          	</div>
          
          </div>
          </div>
          
          <script type="text/javascript">
          try {
          	top.menu.Sync(<?php echo $syncid; ?>);
          } catch(oException) {
          	xyy=window.setTimeout("loadagain(<?php echo $syncid; ?>)", 1000);
          }
          </script>
          
          <br />


          System Info:
          Server

          This page shows some general information about the MODx installation.

          MODx version 2.0
          Version codename
          phpInfo() View
          Access permissions enabled
          Server Time 04:09:20
          Local time 04:09:20
          Server Offset 0 hours (server time - offset time should give your local time)



          MY UPLOAD FOLDER IS FULL. SO THAT I PASTED ALL THE MATTER HERE....
            • 16183
            • 1,390 Posts
            Jurdy,

            First thing: why have you pasted your database’s name and database server name here? This is a public forum and you don’t want such info displayed here (I know you haven’t pasted your password but why make a hacker’s job half done?) If I were you I would edit the post and remove that info asap.. The info is not useful with regard to your question.

            Back to your question:

            Does modx version 2.0 mean that you are using modx revolution alpha?

            I don’t think these instructions apply to that version of modx. They apply to version 0.9.6.x. So, if you are using the 0.9.6.x branch, then read on....... (if not, then am sorry, I don’t know how to do this on modx revolution alpha)

            --------------------------------------------------------------------------

            The wiki says "You probably first want to duplicate the theme/style that you like, like /manager/media/style/MODxLight. " It uses the theme MODxLight (which is one of the themes for modx), as an example.

            So, in your case, you will need to carry out these changes in the theme you use. The files for the theme you use are located in /manager/media/style/....

            Remember to duplicate your theme before you make any changes like the wiki prescribes.

            Please follow the steps as described in the wiki (method 2) and we can take it from there.

            ---------------------------------------------------------------------------------------

            cheers/k



              • 15065
              • 138 Posts
              Solved the issue.

              thanks a lot smiley

              thanx

              Jurdy
                • 7231
                • 4,205 Posts
                Quote from: jurdygeorge at Dec 05, 2008, 12:54 PM

                Solved the issue.
                Well, what was it?
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don&#39;t know what it is.
                  Do you, Mr. Jones? - [bob dylan]
                  • 16183
                  • 1,390 Posts
                  Yes, please do tell...it might help the next guy...(that might be me, ha!).... wink

                  glad you worked it out....