Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

www.clan-themes.co.uk :: View topic - Only visible for

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Only visible for

9 Replies / 543 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » Blocks

View previous topic :: View next topic


cupoftea
Reputation: 13.6
Local time: 4:41 AM
Location: Behind My Computer
belgium.gif

Status: Offline
0.30 posts per day
Medals: 0

Joined: Apr 30, 2008
Last Visit: 01 Dec 2008
Posts: 64
Points: 597 

Post Only visible for Posted: Wed Aug 13, 2008 5:44 pm   

How do I create a block that is only visible for Firefox Users
and how do I create a block that is visible for anyone that doesn't use Firefox?
 

Grtz, CupOfTea --- My Nuke Version: 8.0 ---  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

DreAdeDcoRpSE
Reputation: 738.8
votes: 5
Local time: 10:41 PM
Location: Back of your Mind
usa.gif

Status: Offline
1.14 posts per day
Medals: 2 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 02 Dec 2008
Posts: 496
Points: 11365 

View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger Reply with quote

CMillo92
Reputation: 470.6
Local time: 10:41 PM


Status: Offline
0.01 posts per day
Medals: 0

Joined: Jul 30, 2007
Last Visit: 28 Nov 2008
Posts: 4
Points: 1266 

View user's profileSend private message Reply with quote


Bayler
Reputation: 751.4
votes: 9
Local time: 10:41 PM

usa.gif

Status: Offline
0.70 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 02 Dec 2008
Posts: 276
Points: 6725 

Post Only visible for Posted: Thu Aug 14, 2008 5:48 am   

not only is it possible, its often done in the stats pages of Nuke:

Remember Boys and Girls..'Google' is your friend:

Code:

<?php
echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";

$browser = get_browser(null, true);
print_r($browser);
?>


that script will display a users/visitors browser information....

if you want to make something that displays only IF a determined Browser is being used...then youll need to create an { IF } statement as well as the command for what you want displayed.

for the rest of you that answered...im sure everyone appreciates your help..but answering INCORRECTLY tends to make this community look bad..word of advice..if your not 'Sure' then dont answer the question.
 

You will not recieve help from me if i have to go digging for your CMS information and version, If i have to take the time to play 21 questions, then you can take the time to google! No Copyright, no support either!  
View user's profileSend private messageMSN Messenger Reply with quote

cupoftea
Reputation: 13.6
Local time: 4:41 AM
Location: Behind My Computer
belgium.gif

Status: Offline
0.30 posts per day
Medals: 0

Joined: Apr 30, 2008
Last Visit: 01 Dec 2008
Posts: 64
Points: 597 

Post Only visible for Posted: Thu Aug 14, 2008 4:36 pm   

I was quite sure myself it was possible, but since I know nothing of php, can you make a small preview like this:
Code:
(php-code)
<p>this content is visible for firefox users only</p>
<p>this content is visible for anyone that doesn't use firefox </p>
 

 
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

GenTuga
Reputation: 474
Local time: 3:41 AM

uk.gif

Status: Offline
0.02 posts per day
Medals: 0

Joined: May 15, 2007
Last Visit: 25 Oct 2008
Posts: 14
Points: 321 

Post Re: Only visible for Posted: Thu Aug 14, 2008 5:40 pm   

Shop Purchases:
Americas Army PhpNuke Theme

DreAdeDcoRpSE wrote:
I have never heard of anything for that, not sure if possiable.


Lolll Me To
 

 
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote


DreAdeDcoRpSE
Reputation: 738.8
votes: 5
Local time: 10:41 PM
Location: Back of your Mind
usa.gif

Status: Offline
1.14 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 02 Dec 2008
Posts: 496
Points: 11365 

Post Re: Only visible for Posted: Thu Aug 14, 2008 7:00 pm   

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke · Clan Roster 2.0

GenTuga wrote:
DreAdeDcoRpSE wrote:
I have never heard of anything for that, not sure if possiable.


Lolll Me To


Learn something new everyday. The only reason I wasn't sure if it was possiable is how some of these internet browsers are always changing. Mozilla, aka Firefox for an example.

As for a response to Bayler, I appreciate you pointing out my mistake and correcting me, as I said, I learned something new, but sometimes biting your tongue on some things may be a cherished event for we are all corrected and mistaken time to time, even you. Honest mistakes happen and do not need the publicity as so you sought out. Pointing out mistakes and correcting them are one of the points of a site like this, but for "making the community look bad", my thinking is that responses that are disrespectful and degrading long with the attitude, professionalism, and the inconsideration of it's helpers and community is what makes a community look bad, not honest mistakes.
 

 
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger Reply with quote

Bayler
Reputation: 751.4
votes: 9
Local time: 10:41 PM

usa.gif

Status: Offline
0.70 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 01, 2007
Last Visit: 02 Dec 2008
Posts: 276
Points: 6725 

Post Only visible for Posted: Fri Aug 15, 2008 1:18 am   

cupoftea,

No, 'I' can/will not make a demo for you. you will need to:

1) Either Hire a Developer to build for you.

2) Requestion someone to build the block for you.

3) Use 'google.com' to learn how to do it yourself.

As for biting peoples heads off...this is what i do, and im well known for it. 'Commenting' on a topic that you have know knowledge of is the definition of stupidity. If you are unsure of yourself, please dont contribute your lack of understanding on to others. To ANYONE and that includes both of you that are using Nuke Websites currently, you should be well aware of the capabilities of your own stats pages that are pre-built to your Forums which offer features such as 'Browser tracking'...this being the case, you should KNOW that the feature can easily be transported to a block.

Again. im begging everyone, if you do NOT know the answer to a question for sure, then what need is there to click the 'Reply' button.
Jesus Christ himself stated "Its better to be thought of as a fool then to open thy mouth and remove all doubt".
 

 
View user's profileSend private messageMSN Messenger Reply with quote

Bluud
Reputation: 4.3
Local time: 9:41 PM
Location: Oklahoma
blank.gif

Status: Offline
0.28 posts per day
Medals: 0

Joined: Aug 04, 2008
Last Visit: 28 Aug 2008
Posts: 33
Points: 629 

Post Only visible for Posted: Fri Aug 15, 2008 8:13 pm   

I have to say i agree. Either you are going to have to peruse the internet looking for someone to just hand you the answer or do what anyone with the need to learn fr future use would do: go to websites (or get books) that teach you coding. More particularly in variables and defining statements. What you are looking for is code that will check the browser and identify its version and then check it against what the code is allowing to display the said content. At any rate, http://htmlgoodies.com has some good starter material. There are many others out there you can google.

I know you're thinking "why not just give me the answer?" Well, quite simply, for your own personal enrichment and for the fact that since nuke is 99% PHP, you're going to have to dip your toes in eventually if you are serious about your site.
 

 
View user's profileSend private messageYahoo Messenger Reply with quote


cupoftea
Reputation: 13.6
Local time: 4:41 AM
Location: Behind My Computer
belgium.gif

Status: Offline
0.30 posts per day
Medals: 0

Joined: Apr 30, 2008
Last Visit: 01 Dec 2008
Posts: 64
Points: 597 

View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » Blocks


 
9 Replies / 543 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 can download files in this forum