Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
AskAlice
Hangin' Around


Joined: Jul 07, 2004
Posts: 26
Location: Austria VIA Texas

PostPosted: Wed Jul 07, 2004 6:34 am Reply with quote

The Site Info block is great.

Is possible the change the code(for a php challenged person) not to show the Online Now or latest member on the Logged out version?
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Wed Jul 07, 2004 6:48 am Reply with quote

You would need to "surround" the code that builds that display string with this kind of logic.
Code:
if (is_user($user) OR is_admin($admin)) {

    //  logic to build the display string
}

Too generic or can you figure that out? BTW, are you 10 feet tall Laughing ?
 
View user's profile Send private message
AskAlice
PostPosted: Wed Jul 07, 2004 7:04 am Reply with quote

WOW What A quick reply! Very Happy Thank You

Quote:
Too generic or can you figure that out?


I must say I am lost, but I usually figure it out.

I have been doing the Nuke thing for a bit over a month and I am like a kid in a candy store... Want it all, even though I don't know whats in it.

Quote:
BTW, are you 10 feet tall


I haven't taken my pill... yet.
 
Raven
PostPosted: Wed Jul 07, 2004 7:07 am Reply with quote

If you need more help just post back. Keep your head.
 
AskAlice
PostPosted: Wed Jul 07, 2004 7:08 am Reply with quote

Thanks I am off to figure it out.
 
digibeet
Regular
Regular


Joined: Jul 08, 2004
Posts: 96
Location: Amsterdam, the Netherlands

PostPosted: Sun Jul 18, 2004 7:05 am Reply with quote

Hi Raven,

I want to remove the Hidden and Waiting out of the block, I have lookt at it Cool and removed the lines 279 and 284 because I thought that where the lines but it gives me an error.

The Lines are:

$content .= "<img src=\"images/blocks/ur-member.gif\" height=\"14\" width=\"17\"> ".$waitLink.": <b>$waiting</b><br />\n";

$content .= "<img src=\"images/blocks/ur-hiddenmember.gif\" height=\"14\" width=\"17\"> "."Hidden".": <b>$hiddenTotal</b><br />\n";

Are that the correct lines?

Thanks,

Fred Mr. Green

_________________
"Grasp the subject, the words will follow."
Cato the Elder (234 BC - 149 BC)
Roman orator & politician. 
View user's profile Send private message Visit poster's website
Raven
PostPosted: Sun Jul 18, 2004 9:06 am Reply with quote

Should be. Just back up and try it Wink
 
deca
New Member
New Member


Joined: Mar 16, 2004
Posts: 23

PostPosted: Tue Jul 27, 2004 11:21 pm Reply with quote

how do i hide some of the IP numbers, i dotn want to give out a full IP to maybe the wrong person
 
View user's profile Send private message
Raven
PostPosted: Wed Jul 28, 2004 4:48 am Reply with quote

These settings at the top of the script control who sees what
Code:
$showGuests              = FALSE; //Allow/notAllow displaying of guest ip's partial or otherwise.

$showGuestsAdmin         = FALSE;  //Allow/notAllow displaying of guest ip's partial or otherwise to Admins.
Set one or the other (or both) to TRUE and see which one you want.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©