Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] Timeline
 Site Map
 Write a Review
 Image Repo
 WhoIs
 Twitch ID Finder
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Total Donators
Total:
$0.00
Goal:
$30.00
Difference:
$30.00
DFG
DFG DFG DFG

 
Theme Management
 
DFG
DFG
DFG DFG DFG

 
Whos Been
 
DFG
 coRpSE
 2 hours ago
 Lonestar
 4 hours ago
 fire
 9 hours ago
 PatPgtips
 1 day ago
 bairdboy
 2 days ago
 2xTaz
 2 days ago
 EmeraldDragon
 3 days ago
 Megaboost
 3 days ago
 Bulldog1
 3 days ago
 jibril
 4 days ago
DFG
DFG DFG DFG

 
Survey
 
DFG What is your favorite game to play ATM?

WarThunder
World of Tanks
H1Z1
MechWarrior Online
ARK
WarFace
SWTOR
BattleField serier
COD Series
Diablo
Armored Warfare



Results
Polls

Votes 1527
Comments: 0
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [2622] bots stopped!
HeadShotDomain
DFG
DFG DFG DFG

     
DFG
 
Forum Index Members Search Usergroups
Ranks Staff Statistics Forum FAQ
Board Rules Edit your profile Login, Check Messages Log in
 

Removing A Main Menu Section
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post Forum Index Nuke Blocks / Modules Support
View previous topic View next topic
PostPosted: Mon Sep 11, 2017 8:09 pm Reply with quote
MAGNET
Hiyah CoRpSe Dude!

I forgot how to remove/disable the section right under the last menu item.

There's a section that show Modules Invisible, Invisible Modules and Inactive Modules showing within the Main Menu.  Is there anyway to remove all of that information?  I couldn't find it anywhere in the Sommaire menu admin panel

Thanks for your help   grübel

Blabbing Noob

Groups Blabbing Noob
Posts 64
Joined Dec 01, 2014
Status Offline
Gender Female
View user's profile Send MAGNET a private message Visit user's website Find all posts by MAGNET

PostPosted: Mon Sep 11, 2017 8:29 pm Reply with quote
coRpSE
That is only show to those that are logged in as Admin, nobody else. So if you're afraid of others seeing it, well, if they are not admin, they wont/can't.

As for removing it, well if you really want it gone, then you need to edit the file:

block-Sommaire.php

Find: (Around line 808):

PHP:  [ Select all ]

    if ($som_groupmenu == 99 && $is_admin==1) { // si on est à la catégorie 99, on affiche tous les modules installés/activés/visibles qui n'ont pas été affichés dans les catégories.
 
       $content.="<tr><td>";
 
       for ($z=0;$z<count($module);$z++) {
 
           $customtitle2 str_replace ("_"," "$module[$z]);
 
           if (!empty($customtitle[$z])) {
 
               $customtitle2 $customtitle[$z];
 
           }
 
           if ($module[$z] != $main_module) {
 
                if (($is_admin===AND $view[$z] == 2) OR $view[$z] != 2) {

 
                   $incategories=0;
 
                   for ($i=0;$i<count($totalcategorymodules);$i++) {
 
                       if ($module[$z]==$totalcategorymodules[$i]) {
 
                           $incategories=1;
 
                       }
 
                   }
 
                   if ($incategories==0) {
 
                       $flagmenu $flagmenu+1;
 
                       if ($flagmenu==1) {
 
                           $content .="<hr><div align=\"center\">"._SOMMAIREADMINVIEWALLMODULES."</div>"  // si il y a des modules affichés en rubrique 99, on affiche avant une ligne horizontale
 
       $content.="<form action=\"modules.php\" method=\"get\" name=\"sommaireformlistboxvisibles\">"
 
                       ."<select width=\"100%\" name=\"somlistboxvisibles\" onchange=\"sommaire_envoielistbox(this.options[this.selectedIndex].value)\">"
 
                       ."<option value=\"select\">"._SOMSELECTALINK."";
 
                       }
 
                           $content .= "<option value=\"modules.php?name=$module[$z]\">$customtitle2</option>
"
;
 
                   }
 
               }
 
           }
 
       }//end for groupmenu=99
 
       $content.="</select></form>";
 
       $content.="</td></tr>";
 
   }//end if groupmenu=99 

 

Replace with:

PHP:  [ Select all ]

   /* if ($som_groupmenu == 99 && $is_admin==1) { // si on est à la catégorie 99, on affiche tous les modules installés/activés/visibles qui n'ont pas été affichés dans les catégories.
        $content.="<tr><td>";
        for ($z=0;$z<count($module);$z++) {
            $customtitle2 = str_replace ("_"," ", $module[$z]);
            if (!empty($customtitle[$z])) {
                $customtitle2 = $customtitle[$z];
            }
            if ($module[$z] != $main_module) {
                 if (($is_admin===1 AND $view[$z] == 2) OR $view[$z] != 2) {

                    $incategories=0;
                    for ($i=0;$i<count($totalcategorymodules);$i++) {
                        if ($module[$z]==$totalcategorymodules[$i]) {
                            $incategories=1;
                        }
                    }
                    if ($incategories==0) {
                        $flagmenu = $flagmenu+1;
                        if ($flagmenu==1) {
                            $content .="<hr><div align=\"center\">"._SOMMAIREADMINVIEWALLMODULES."</div>";   // si il y a des modules affichés en rubrique 99, on affiche avant une ligne horizontale
        $content.="<form action=\"modules.php\" method=\"get\" name=\"sommaireformlistboxvisibles\">"
                        ."<select width=\"100%\" name=\"somlistboxvisibles\" onchange=\"sommaire_envoielistbox(this.options[this.selectedIndex].value)\">"
                        ."<option value=\"select\">"._SOMSELECTALINK."";
                        }
                            $content .= "<option value=\"modules.php?name=$module[$z]\">$customtitle2</option>
";
                    }
                }
            }
        }//end for groupmenu=99
        $content.="</select></form>";
        $content.="</td></tr>";
    }//end if groupmenu=99 */ 

 

Find:

PHP:  [ Select all ]

if ($is_admin===1) {

 
   $key=count($module); // $key va permettre de se positionner dans $module[] pour rajouter des modules à la fin

 
   $content .= "<br /><center><strong>"._INVISIBLEMODULES."</strong><br />";
 
   $content .= "<span class=\"tiny\">"._ACTIVEBUTNOTSEE."</span></center>";
 
   if (!($a == AND $dummy != 1)) {
 
       $content.="<form action=\"modules.php\" method=\"get\" name=\"sommaireformlistboxinvisibles\">"
 
                       ."<select name=\"somlistboxinvisibles\" onchange=\"sommaire_envoielistbox(this.options[this.selectedIndex].value)\">"
 
                       ."<option value=\"select\">"._SOMSELECTALINK."";
 
       $sql "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='1' AND inmenu='0' AND `title` NOT LIKE '~l~%' ORDER BY title ASC";
 
       $result $db->sql_query($sql);
 
       while ($row $db->sql_fetchrow($result)) {
 
           $module[$key]=$row['title'];
 
           $key++;
 
           $mn_title $row['title'];
 
           $custom_title $row['custom_title'];
 
           $mn_title2 str_replace("_"" "$mn_title);
 
           if (!empty($custom_title)) {
 
               $mn_title2 $custom_title;
 
           }
 
           if (!empty($mn_title2)) {
 
               $content .= "<option value=\"modules.php?name=".$mn_title."\">".$mn_title2."";
 
               $dummy 1;
 
           } else {
 
               $a 1;
 
           }
 
       }
 
       $content.= "</select></form>
"
;
 
   }
 
   else {
 
       $content .= "<br /><strong><big>·</big></strong> <i>"._NONE."</i><br />
"
;
 
   }

 
   $content .= "<br /><center><strong>"._NOACTIVEMODULES."</strong><br />";
 
   $content .= "<span class=\"tiny\">"._FORADMINTESTS."</span></center>";
 
   if (!($a == AND $dummy != 1)) {
 
       $content.="<form action=\"modules.php\" method=\"get\" name=\"sommaireformlistboxinactifs\">"
 
               ."<select name=\"somlistboxinactifs\" onchange=\"sommaire_envoielistbox(this.options[this.selectedIndex].value)\">"
 
               ."<option value=\"select\">"._SOMSELECTALINK."";
/*****[BEGIN]******************************************
 [ Base:    Caching System                     v3.0.0 ]
 ******************************************************/
if (!($row4 $cache->load('sommaire_row4''block'))) {
/*****[END]********************************************
 [ Base:    Caching System                     v3.0.0 ]
 ******************************************************/
 
       $sql "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='0' AND `title` NOT LIKE '~l~%' ORDER BY title ASC";
 
       $result $db->sql_query($sql);
 
       while ($row $db->sql_fetchrow($result)) {
 
           $row4[] = $row;
 
       }
/*****[BEGIN]******************************************
 [ Base:    Caching System                     v3.0.0 ]
 ******************************************************/
$cache->save('sommaire_row4''block'$row4);
}
/*****[END]********************************************
 [ Base:    Caching System                     v3.0.0 ]
 ******************************************************/
 
       if (is_array($row4)) {
 
       foreach($row4 as $row) {
 
           $module[$key]=$row['title'];
 
           $key++;
 
           $mn_title $row['title'];
 
           $custom_title $row['custom_title'];
 
           $mn_title2 str_replace("_"" "$mn_title);
 
           if (!empty($custom_title)) {
 
           $mn_title2 $custom_title;
 
           }
 
           if (!empty($mn_title2)) {
 
               $content .= "<option value=\"modules.php?name=".$mn_title."\">".$mn_title2."";
 
           $dummy 1;
 
           } else {
 
               $a 1;
 
               }
 
       }
 
       }
 
       $content.= "</select></form>
"
;
 
   }
 
   else {
 
           $content .= "<br /><strong><big>·</big></strong> <i>"._NONE."</i><br />
"
;
 
   }

/*****[BEGIN]******************************************
 [ Base:    Module Simplifications             v1.0.0 ]
 ******************************************************/
 
   update_modules();
/*****[END]********************************************
 [ Base:    Module Simplifications             v1.0.0 ]
 ******************************************************/
}//end if admin 

 
And delete, or cancel it all out using with // or going through and putting in /* and */. To the canceling out requires you to use a program like dreamweaver/sublime text, and maybe notepad++ to know if there are any errors. This also require a little thought, but that's only if you want to save the code for later.


Expand

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2451
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 9.3hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

PostPosted: Tue Sep 12, 2017 9:09 am Reply with quote
MAGNET
I was in the wrong place.  Thanks a bunch for your help.


 

Blabbing Noob

Groups Blabbing Noob
Posts 64
Joined Dec 01, 2014
Status Offline
Gender Female
View user's profile Send MAGNET a private message Visit user's website Find all posts by MAGNET

 
PostPosted: Tue Sep 12, 2017 2:46 pm Reply with quote
coRpSE
n/p


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2451
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 9.3hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

Display posts from previous:
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post All times are UTC - 7 Hours [DST enabled]
Page 1 of 1


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2019 phpBB Group
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme