Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.220
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ?This sh...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriousl...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Php block needed
Php block needed
Goto page 1, 2  Next

14 Replies / 1324 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Nuke Platinum 7.6.b.5

View previous topic :: View next topic


Lenooox
Reputation: 2.1 Add RepSubtract Rep
Local time: 1:11 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Nov 04, 2009
Last Visit: 12 Mar 2010
Posts: 15
Points: 557 

Post Php block needed Posted: Sat Feb 20, 2010 9:23 pm

hey i have a question!

I want a php nuke side block which shows the current users who are online in our irc channel. it is possible?
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 2:11 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: Php block needed Posted: Sat Feb 20, 2010 11:27 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Well do you have some HTML code that will do this if so yes, the code can be put into a nuke block

paste the code in here and ill have a look
 

 
View user's profileSend private messageSend e-mail Reply with quote

Lenooox
Reputation: 2.1 Add RepSubtract Rep
Local time: 1:11 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Nov 04, 2009
Last Visit: 12 Mar 2010
Posts: 15
Points: 557 

Post Php block needed Posted: Sun Feb 21, 2010 10:10 am

Thus, this module does not exist, but anyone can make one maybe
 

 
View user's profileSend private message Reply with quote


Snype
Reputation: 305.5 Add RepSubtract Rep
votes: 8
Local time: 1:11 AM
Location: lincolshire
uk.gif



0.60 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 06 Nov 2011
Posts: 812
Points: 60742 

Post Php block needed Posted: Sun Feb 21, 2010 11:09 am

Shop Purchases:
Call of Duty 4 SAS Theme

The only way one can be made is if you have the code so we can make one? Who do you use for your IRC?
 

WebSite > http://www.phpnukeblog.info Xfire > DDsnype MSN > ritchietaylor@live.co.uk Email > admin@phpnukeblog.info  
View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

Lenooox
Reputation: 2.1 Add RepSubtract Rep
Local time: 1:11 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Nov 04, 2009
Last Visit: 12 Mar 2010
Posts: 15
Points: 557 

Post Php block needed Posted: Sun Feb 21, 2010 11:53 am

i understand , which code needed? or what?
I don't have that HTML code therefore I wrote my problem to you :) can you tell me how can I create that code?

Last edited by Lenooox on Sun Feb 21, 2010 12:05 pm; edited 1 time in total
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 2:11 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: Php block needed Posted: Sun Feb 21, 2010 12:05 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

What ever you want to display...
 

 
View user's profileSend private messageSend e-mail Reply with quote


Lenooox
Reputation: 2.1 Add RepSubtract Rep
Local time: 1:11 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Nov 04, 2009
Last Visit: 12 Mar 2010
Posts: 15
Points: 557 

Post Php block needed Posted: Sun Feb 21, 2010 12:07 pm

Well I want to display those names whose on our irc channel'
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 63.4 Add RepSubtract Rep
votes: 35
Local time: 2:11 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

2.33 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 09 Feb 2012
Posts: 4461
Points: 181063 

Post Re: Php block needed Posted: Sun Feb 21, 2010 12:11 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Well go Google the code and find it or see if you can find it, ive never used IRC and dont intent to use IRC ever, so you need to go find some HTML or PHP code and then we can stick it in a block for you.
 

 
View user's profileSend private messageSend e-mail Reply with quote

Snype
Reputation: 305.5 Add RepSubtract Rep
votes: 8
Local time: 1:11 AM
Location: lincolshire
uk.gif



0.60 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 06 Nov 2011
Posts: 812
Points: 60742 

Post Php block needed Posted: Sun Feb 21, 2010 12:38 pm

Shop Purchases:
Call of Duty 4 SAS Theme

If you use Mirc for your IRC then there is a block here on CT for it other than that you could try changing the code to work with your IRC
http://www.clanthemes.com/downloads-cat31.html
 

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


Lenooox
Reputation: 2.1 Add RepSubtract Rep
Local time: 1:11 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Nov 04, 2009
Last Visit: 12 Mar 2010
Posts: 15
Points: 557 

Post Php block needed Posted: Sun Feb 21, 2010 12:47 pm

oki im found an php Online user counter
Introduction
See how many ppl are on your site


Code:
<?php
// ######################################
//               Toni Zen
//                  (c)
//                2.o.o.8
// ######################################
 
// Database connection and selection
mysql_connect("localhost", "root", "") or die("Cannot connect");
mysql_select_db("mydatabase") or die("Cannot select database");
 
// Query for the visitors IP address
$ipQuery = mysql_query("SELECT * FROM user_online WHERE ipaddress = '" . $_SERVER['REMOTE_ADDR'] . "' LIMIT 1");
 
// Have they visited before?
if(mysql_num_rows($ipQuery) == 1)
{
   // They have visited before
   // Update last active time
   mysql_query("UPDATE user_online SET lastactive = " . time() . " WHERE ipaddress = '" . $_SERVER['REMOTE_ADDR'] . "' LIMIT 1");
}
else
{
   // They have not visited before
   // Insert new row
   mysql_query("INSERT INTO `user_online` VALUES ('" . $_SERVER['REMOTE_ADDR'] . "', " . time() . ")") or die(mysql_error());
}
 
// Delete any old records (where lastactive < NOW - 5 Mins)
mysql_query("DELETE FROM user_online WHERE lastactive < " . (time() - 300)) or die(mysql_error());
 
// Query all views
$allViewQuery = mysql_query("SELECT * FROM user_online");
 
// Get the row count
$onlineCount = mysql_num_rows($allViewQuery);
 
echo "There is currently " . $onlineCount . " user(s) online";
?>

 

 
View user's profileSend private message Reply with quote

Snype
Reputation: 305.5 Add RepSubtract Rep
votes: 8
Local time: 1:11 AM
Location: lincolshire
uk.gif



0.60 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: May 20, 2008
Last Visit: 06 Nov 2011
Posts: 812
Points: 60742 

Post Php block needed Posted: Sun Feb 21, 2010 1:07 pm

Shop Purchases:
Call of Duty 4 SAS Theme

That dont display the users on your IRC that displays users on your site
 

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

Lenooox
Reputation: 2.1 Add RepSubtract Rep
Local time: 1:11 AM


Noob
Noob

0.02 posts per day
Medals: 0

Joined: Nov 04, 2009
Last Visit: 12 Mar 2010
Posts: 15
Points: 557 

Post Php block needed Posted: Sun Feb 21, 2010 1:12 pm

doh , i checked much site , but im not found only this , strange...
 

 
View user's profileSend private message Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Nuke Platinum 7.6.b.5


 
14 Replies / 1324 Views
Page 1 of 2
All times are GMT
Goto page 1, 2  Next
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 cannot download files in this forum