Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
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 - Avatar for news comments mod
Avatar for news comments mod

9 Replies / 1755 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Post Your Mods/Hacks

View previous topic :: View next topic


nuken
Reputation: 38.2 Add RepSubtract Rep
Local time: 12:12 AM

usa.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Dec 26, 2008
Last Visit: 09 Feb 2012
Posts: 17
Points: 1214 

Post Avatar for news comments mod Posted: Wed Jan 07, 2009 5:18 pm

I have a simple mod for displaying a posters avatar in the news comments.
This might be useful for you. The code may need to be cleaned up, but it works.

in modules/News/comments.php find

Code:
/* If you are admin you can see the Poster IP address */
            /* with this you can see who is flaming you...*/


after add:

Code:
echo "<br />";

   if (($c_name != $anonymous)&&($c_name !=$anonymousname)) {

       $sql2 = "SELECT user_id,user_avatar FROM ".$prefix."_users WHERE username='$c_name'";

       $result2 = $db->sql_query($sql2);

       $row2 = $db->sql_fetchrow($result2);

      $avatar=$row2['user_avatar'];

      $user_id=intval($row2['user_id']);

      if ($avatar=="") {

echo "  <a href=\"profile-.html$user_id\"><img alt src=\"modules/Forums/images/avatars/noimage.gif\" border =\"0\" width=\"35\" height=\"35\"></a>";

}

else

if (eregi("http://", $avatar)) {

echo"  <a href=\"forums.html&file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"$avatar\" border =\"0\"></a>";

}

else{

echo "  <a href=\"forums.html&file=profile&amp;mode=viewprofile&amp;u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$avatar\" border =\"0\"></a>";

}     
   }     


That's it.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

DoC
Reputation: 90.1 Add RepSubtract Rep
votes: 5
Local time: 6:12 AM
Location: UK
uk.gif



0.24 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Feb 07, 2007
Last Visit: 30 Jun 2011
Posts: 430
Points: 4451 

Post Re: Avatar for news comments mod Posted: Wed Jan 07, 2009 5:31 pm

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

sweet nice one mate ty for your contribution :) put it in a txt file and submit it to the downloads, that way it wont get lost in the forums Wink

Plus you also get cookies :P :P

DoC
 

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

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 1:12 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Avatar for news comments mod Posted: Wed Jan 07, 2009 7:03 pm

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

You should add it to the tutorials section nuke.
 

Phpnuke Downloads | VMaxxRx Male Enhancement  
View user's profileSend private messageVisit poster's website Reply with quote


nuken
Reputation: 38.2 Add RepSubtract Rep
Local time: 12:12 AM

usa.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Dec 26, 2008
Last Visit: 09 Feb 2012
Posts: 17
Points: 1214 

Post Avatar for news comments mod Posted: Wed Jan 07, 2009 10:01 pm

How about I put 3 real easy news mods together on a text file and submit a download for it....

The comments avatar, 2 columns news and news title link .....

I'll get them ready in a few....
 

 
View user's profileSend private messageVisit poster's website Reply with quote

floppy
Reputation: 2087.2 Add RepSubtract Rep
votes: 22
Local time: 1:12 AM
Location: Jackson Mississippi
usa.gif

Site Admin
Site Admin

1.73 posts per day
Medals: 2 (View more...)
Dedication (Amount: 1)
Scripts/Coder
Scripts/Coder
Joined: Nov 14, 2006
Last Visit: 27 Jan 2012
Posts: 3313
Points: 132023 

Post Re: Avatar for news comments mod Posted: Thu Jan 08, 2009 12:11 am

Shop Purchases:
Clan Roster 2.0 · Multi Gaming (Warrior) Evo Theme · COD6 ModernWarfare 2 Teaser Splash Screen · Left for Dead Evo Extreme Version

Thanks for the contribution. You have been awarded 300 points.
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 63.5 Add RepSubtract Rep
votes: 35
Local time: 7:12 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: 10 Feb 2012
Posts: 4462
Points: 181092 

Post Re: Avatar for news comments mod Posted: Thu Jan 08, 2009 8:07 am

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

Yeah thats a great contribution !! im sure many people will thank you..
 

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


davidpenny
Reputation: 478 Add RepSubtract Rep
Local time: 1:12 AM


Rocket Noob
Rocket Noob

0.01 posts per day
Medals: 0

Joined: Aug 02, 2007
Last Visit: 26 Jan 2009
Posts: 24
Points: 15 

Post Avatar for news comments mod Posted: Sun Jan 25, 2009 6:26 pm

Speaking of contribution, I updated My_ClanSiteLite v1.01 so that it works with new versions of Nuke Evo. It's a 7 year old script but now that the compatibilty is restored its still useful. It checks clan base for your clans stats. Maybe I should contribute it - but im not sure if it is in the public domain. The official website of the script has been offline for 5 years...
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 63.5 Add RepSubtract Rep
votes: 35
Local time: 7:12 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: 10 Feb 2012
Posts: 4462
Points: 181092 

Post Re: Avatar for news comments mod Posted: Sun Jan 25, 2009 6:35 pm

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

davidpenny wrote:
Speaking of contribution, I updated My_ClanSiteLite v1.01 so that it works with new versions of Nuke Evo. It's a 7 year old script but now that the compatibilty is restored its still useful. It checks clan base for your clans stats. Maybe I should contribute it - but im not sure if it is in the public domain. The official website of the script has been offline for 5 years...


So it streams your clans info from clan base ? could be interesting... is it secure ?
 

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

Botanicar
Reputation: 477.4 Add RepSubtract Rep
Local time: 7:12 AM

jamaica.gif

Noob
Noob

0.00 posts per day
Medals: 0

Joined: Oct 23, 2007
Last Visit: 07 Feb 2012
Posts: 6
Points: 68 

Post Avatar for news comments mod Posted: Fri Feb 27, 2009 2:46 pm

Can you make this for coppermine gallery comments?

Thanks !
 

 
View user's profileSend private message Reply with quote


Facilitator
Reputation: 500.6 Add RepSubtract Rep
Local time: 11:12 PM
Location: Redmond OR.
usa.gif

Noob
Noob

0.01 posts per day
Medals: 0

Joined: Apr 11, 2007
Last Visit: 31 Dec 2010
Posts: 18
Points: 3961 

Post Avatar for news comments mod Posted: Thu May 14, 2009 5:55 pm

Shop Purchases:
Diablo 3 Ultimate Theme

Cool hack,
I am trying to find all the different blocks and hacks to ad my members avatars to the different areas of the site.
Again BIG THX for this one. Pint
 

Just a thought, my thought… and I will tap it into skin. V<(((><  
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote
Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Post Your Mods/Hacks


 
9 Replies / 1755 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 cannot download files in this forum