Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    Technical Support    Question and Answer  ›  Whereis button
Users Browsing Forum
No Members and 10 Guests

Whereis button  This thread currently has 270 views. Print
1 Pages 1 Recommend Thread
Gregg
November 5, 2007, 10:33am Report to Moderator Report to Moderator

Northern Counties MCC do it on wheels
Posts: 39
Gender: Male
Posts Per Day: 0.04
Reputation: 50.00%
Reputation Score: +3 / -3
Time Online: 65 days 4 hours 12 minutes
I know that the whereis button can be set  for access only to admins, but is there any way of making the function totally invisible to guests. I notice in my error logs that guests will insist on trying the function.


Logged Offline
Site Site Private Message Private message
Justin
November 6, 2007, 8:48pm Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,075
Gender: Male
Posts Per Day: 6.52
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 27 minutes
Location: Tallassee, AL
Age: 22
It's probably bots.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 3
Gregg
November 7, 2007, 7:12pm Report to Moderator Report to Moderator

Northern Counties MCC do it on wheels
Posts: 39
Gender: Male
Posts Per Day: 0.04
Reputation: 50.00%
Reputation Score: +3 / -3
Time Online: 65 days 4 hours 12 minutes
But is there anyway the button can be made invisible to all except admins


Logged Offline
Site Site Private Message Private message Reply: 2 - 3
Ryan
November 8, 2007, 5:24pm Report to Moderator Report to Moderator

Inactive Support Team
Posts: 1,799
Gender: Male
Posts Per Day: 1.13
Reputation: 85.00%
Reputation Score: +85 / -15
Time Online: 11 days 8 hours 2 minutes
Location: Ontario
Age: 29
In BoardIndex.pl find the following line:

     
Code
if($members{'Administrator',$username}) { $hiddenusers = "; $hidec $boardindex[57]"; }


Below that is the following code block:

Code
	$ebout .= <<"EOT";
<table cellpadding="0" cellspacing="1" class="border" width="100%">
 <tr>
  <td style="padding: 5px" class="titlebg center"><strong>$boardindex[76]</strong></td>
 </tr><tr>
  <td style="padding: 5px" class="catbg"><span style="float: left;"><a href="$surl\lv-stats/a-whereis/">$allcnt $boardindex[77]</a><span class="smalltext"> ($memcnt $boardindex[56]; $botc $boardindex[91]; $gcnt $boardindex[59]$hiddenusers)</span></span><span class="smalltext" style="float: right">$boardindex[87] $activeuserslog $gtxt{'2'}.</span></td>
 </tr><tr>
  <td class="$colorclass[0]">
   <table cellpadding="9" cellspacing="1" width="100%">
    <tr>
     <td class="win3 center" style="width: 23px"><img src="$images/computer.png" alt="" /></td>
     <td>$memberson<hr />$colorcodes
      <div style="padding: 2px" class="smalltext">$boardindex[61] <strong>$maxlogged[0]</strong> $boardindex[62] <strong>$maxtime</strong>.</div>
     </td>
    </tr>
   </table>
  </td>
 </tr>
EOT


Replace that code block with the following:

Code
$ebout .= <<"EOT";
<table cellpadding="0" cellspacing="1" class="border" width="100%">
 <tr>
  <td style="padding: 5px" class="titlebg center"><strong>$boardindex[76]</strong></td>
 </tr><tr>
  <td style="padding: 5px" class="catbg">
EOT

if($members{'Administrator',$username}) { 
$ebout .= <<"EOT";
<div style="float: left;"><a href="$surl\lv-stats/a-whereis/">$allcnt $boardindex[77]</a><span class="smalltext"> ($memcnt $boardindex[56]; $botc $boardindex[91]; $gcnt $boardindex[59]$hiddenusers)</span></div><div class="smalltext" style="float: right">$boardindex[87] $activeuserslog $gtxt{'2'}.</div>
EOT
 }
else {
$ebout .= <<"EOT";
<div style="float: left;">$allcnt $boardindex[77]<span class="smalltext"> ($memcnt $boardindex[56]; $botc $boardindex[91]; $gcnt $boardindex[59]$hiddenusers)</span></div>
EOT
}
$ebout .= <<"EOT";
&nbsp;</td>
 </tr><tr>
  <td class="$colorclass[0]">
   <table cellpadding="9" cellspacing="1" width="100%">
    <tr>
     <td class="win3 center" style="width: 23px"><img src="$images/computer.png" alt="" /></td>
     <td>$memberson<hr />$colorcodes
      <div style="padding: 2px" class="smalltext">$boardindex[61] <strong>$maxlogged[0]</strong> $boardindex[62] <strong>$maxtime</strong>.</div>
     </td>
    </tr>
   </table>
  </td>
 </tr>
EOT





Read about Canada's Holocaust "Hidden from History" - http://www.ryanpaul.ca/canadas-holocaust/
Logged Offline
Site Site Private Message Private message YIM YIM Reply: 3 - 3
1 Pages 1 Recommend Thread
Print

E-Blah Community    Technical Support    Question and Answer  ›  Whereis button