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 s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
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 - Forum avatar on shout out box
Forum avatar on shout out box
Goto page 1, 2  Next

18 Replies / 1387 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Nuke-Evolution

View previous topic :: View next topic


Genuine
Reputation: 67.5 Add RepSubtract Rep
Local time: 10:36 AM


Welcome to Clan-Themes
Welcome to Clan-Themes

0.14 posts per day
Medals: 2 (View more...)
Distinguished Buyer (Amount: 1)

Joined: Jan 30, 2008
Last Visit: 11 Apr 2012
Posts: 215
Points: 36401 

Post Forum avatar on shout out box Posted: Sat Sep 17, 2011 5:09 am

Shop Purchases:
Crysis Theme · CRYSIS X-Theme (Ultimate) for PhpNuke · Lord of The Rings Theme · Clan Roster 2.0 · Diablo 3 Ultimate Theme · Battlefield 2142-X · Modern Warfare 2 Evo · Modern Gamer Evo Multi Theme  · Battlefield: Bad Company 2 Evo Theme · Crysis 2 Evo Theme · Battlefield 3 Evo Theme · Modern Warfare 3 Evo Theme · Star Wars Old Republic Evo Theme · Battlefield 3 Stats Module

so i'm using shout out box 8.5.2 for nuke evo basic and i just wanted to know if it is possible to have the forum avatars in the shout out box i'm sure i remember seeing it in a Shout Box 8.5.2 Forum Hack but it does not seem to be in there now

plus i just want it on my home page not the forum page

any ideas where that mod is mod and how i can add it just to the home page ?
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 11:36 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 26 May 2012
Posts: 3675
Points: 191995 

Post Forum avatar on shout out box Posted: Sun Sep 18, 2011 4:09 pm

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

I dont think the forums avatar on the shoutbox code has ever been released (its rather a chunk of code)

If I recall the shoutbox in the forums area was released

I'm releasing it in my next theme (see preview) as an add-on in the theme that can be turned on / off in the theme_config file
 

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

Noto
Reputation: 1072.7 Add RepSubtract Rep
votes: 13
Local time: 11:36 AM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.60 posts per day
Medals: 3 (View more...)
Site Supporter (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 26 May 2012
Posts: 1118
Points: 73959 

Post Re: Forum avatar on shout out box Posted: Sun Sep 18, 2011 6:05 pm

I just took the findAvatar function from the module and mashed it into the block adding a new column to accommodate it.
 

Tactical Combat Evolved - Sig Showcase  
View user's profileSend private messageVisit poster's website Reply with quote


Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 11:36 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 26 May 2012
Posts: 3675
Points: 191995 

Post Re: Forum avatar on shout out box Posted: Sun Sep 18, 2011 7:23 pm

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

hmm why didn't I think of that Confused

Im presuming it is in mainfile.php

findAvatar();
 

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

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 5:36 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 26 May 2012
Posts: 2331
Points: 136116 

Post Re: Forum avatar on shout out box Posted: Sun Sep 18, 2011 7:48 pm

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

Ped wrote:

If I recall the shoutbox in the forums area was released


You mean this one?
http://www.clanthemes.com/downloaddetails-67-1283-shout-box-852-forum-hack.html

I released that a while ago, but I was not sure who the original coder was. I know killigan has a similar one released.
 

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

Noto
Reputation: 1072.7 Add RepSubtract Rep
votes: 13
Local time: 11:36 AM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.60 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 26 May 2012
Posts: 1118
Points: 73959 

Post Re: Forum avatar on shout out box Posted: Mon Sep 19, 2011 12:01 am

Ped wrote:
hmm why didn't I think of that Confused

Im presuming it is in mainfile.php

findAvatar();


Im sure its in the module of the shoutbox. its been so long since i done it i could be wrong.
 

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


Genuine
Reputation: 67.5 Add RepSubtract Rep
Local time: 10:36 AM


Welcome to Clan-Themes
Welcome to Clan-Themes

0.14 posts per day
Medals: 2 (View more...)
Site Supporter (Amount: 1)

Joined: Jan 30, 2008
Last Visit: 11 Apr 2012
Posts: 215
Points: 36401 

Post Forum avatar on shout out box Posted: Mon Sep 19, 2011 4:51 pm

Shop Purchases:
Crysis Theme · CRYSIS X-Theme (Ultimate) for PhpNuke · Lord of The Rings Theme · Clan Roster 2.0 · Diablo 3 Ultimate Theme · Battlefield 2142-X · Modern Warfare 2 Evo · Modern Gamer Evo Multi Theme  · Battlefield: Bad Company 2 Evo Theme · Crysis 2 Evo Theme · Battlefield 3 Evo Theme · Modern Warfare 3 Evo Theme · Star Wars Old Republic Evo Theme · Battlefield 3 Stats Module

i take it this is the avater fuction code

Code:
function findAvatar($row_avatar) {
   global $db, $prefix;
   // Find avatar path
   // modules/Forums/images/avatars/gallery
   $sql = "SELECT * FROM ".$prefix."_bbconfig WHERE config_name='avatar_gallery_path'";
   $result = $db->sql_query($sql);
   $avatar_gallery_path = $db->sql_fetchrow($result);
   // modules/Forums/images/avatars
   $sql = "SELECT * FROM ".$prefix."_bbconfig WHERE config_name='avatar_path'";
   $result = $db->sql_query($sql);
   $avatar_path = $db->sql_fetchrow($result);
   if (eregi('http://',$row_avatar) == TRUE) {
      // offsite avatars
      $AvatarFound = "<img src=\"$row_avatar\" alt=\"\" /></td>";
   } else {
      $agp = "$avatar_gallery_path[config_value]/$row_avatar";
      $ap = "$avatar_path[config_value]/$row_avatar";
      if (file_exists($agp) == TRUE) {
         $AvatarFound = "<img src=\"$avatar_gallery_path[config_value]/$row_avatar\" alt=\"\" /></td>";
      } elseif (file_exists($ap) == TRUE) {
         $AvatarFound = "<img src=\"$avatar_path[config_value]/$row_avatar\" alt=\"\" /></td>";
      } else {
         $AvatarFound = "<img src=\"$avatar_path[config_value]/blank.gif\" alt=\"\" /></td>";
      }
   }
   return $AvatarFound;


so how would i add that to the shout out block ?
 

 
View user's profileSend private message Reply with quote

Noto
Reputation: 1072.7 Add RepSubtract Rep
votes: 13
Local time: 11:36 AM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.60 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 26 May 2012
Posts: 1118
Points: 73959 

Post Forum avatar on shout out box Posted: Mon Sep 19, 2011 6:15 pm

OPEN shout.php

find:
Code:
?>


add before:
Code:
function findAvatarmod($row_avatar) {
   global $db, $prefix;
   // Find avatar path
   // modules/Forums/images/avatars/gallery
   $sql = "SELECT * FROM ".$prefix."_bbconfig WHERE config_name='avatar_gallery_path'";
   $result = $db->sql_query($sql);
   $avatar_gallery_path = $db->sql_fetchrow($result);
   // modules/Forums/images/avatars
   $sql = "SELECT * FROM ".$prefix."_bbconfig WHERE config_name='avatar_path'";
   $result = $db->sql_query($sql);
   $avatar_path = $db->sql_fetchrow($result);
   if (eregi('http://',$row_avatar) == TRUE) {
      // offsite avatars
      $AvatarFound = "<img width=\"30\" height=\"30\" src=\"$row_avatar\" alt=\"\" />";
   } else {
      $agp = "$avatar_gallery_path[config_value]/$row_avatar";
      $ap = "$avatar_path[config_value]/$row_avatar";
      if (file_exists($agp) == TRUE) {
         $AvatarFound = "<img width=\"30\" height=\"30\" src=\"$avatar_gallery_path[config_value]/$row_avatar\" alt=\"\" />";
      } elseif (file_exists($ap) == TRUE) {
         $AvatarFound = "<img width=\"30\" height=\"30\" src=\"$avatar_path[config_value]/$row_avatar\" alt=\"\" />";
      } else {
         $AvatarFound = "<img width=\"30\" height=\"30\" src=\"$avatar_path[config_value]/blank.gif\" alt=\"\" />";
      }
   }
   return $AvatarFound;
}


find:
Code:
if ($rowN && ($row['name'] != "Anonymous")) {

add before:
Code:
         $row_avatar = $rowN['user_avatar'];
         $av_found = findAvatarmod($row_avatar);


find:
Code:
$tempContent[$i] .= "<strong><a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$row[name]\">" . UsernameColor($row['name']) . "</a>:</strong> $ShoutComment";


replace with:
Code:
$tempContent[$i] .= "$av_found <strong><a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$row[name]\">" . UsernameColor($row['name']) . "</a>:</strong> $ShoutComment";


find:
Code:
$tempContent[$i] .= "<strong>".$row['name'].":</strong> $ShoutComment";


replace with:
Code:
$tempContent[$i] .= "$av_found <strong>".$row['name'].":</strong> $ShoutComment";


There u go all done.

You can touch it up with some style to aligin it all nice and what not, im sure your can do that yourself.

Dont forget to hit my rep button. I'll make this a sticky.

Last edited by Noto on Tue Sep 20, 2011 1:16 am; edited 1 time in total
 

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

Genuine
Reputation: 67.5 Add RepSubtract Rep
Local time: 10:36 AM


Welcome to Clan-Themes
Welcome to Clan-Themes

0.14 posts per day
Medals: 2 (View more...)
Site Supporter (Amount: 1)

Joined: Jan 30, 2008
Last Visit: 11 Apr 2012
Posts: 215
Points: 36401 

View user's profileSend private message Reply with quote


Genuine
Reputation: 67.5 Add RepSubtract Rep
Local time: 10:36 AM


Welcome to Clan-Themes
Welcome to Clan-Themes

0.14 posts per day
Medals: 2 (View more...)
Distinguished Buyer (Amount: 1)

Joined: Jan 30, 2008
Last Visit: 11 Apr 2012
Posts: 215
Points: 36401 

Post Re: Forum avatar on shout out box Posted: Tue Sep 20, 2011 12:57 am

Shop Purchases:
Crysis Theme · CRYSIS X-Theme (Ultimate) for PhpNuke · Lord of The Rings Theme · Clan Roster 2.0 · Diablo 3 Ultimate Theme · Battlefield 2142-X · Modern Warfare 2 Evo · Modern Gamer Evo Multi Theme  · Battlefield: Bad Company 2 Evo Theme · Crysis 2 Evo Theme · Battlefield 3 Evo Theme · Modern Warfare 3 Evo Theme · Star Wars Old Republic Evo Theme · Battlefield 3 Stats Module

just found an error with this mod

when you click on shout out history on the block i get this error

Fatal error: Cannot redeclare findavatar() (previously declared in /home/sixsixsi/public_html/modules/Shout_Box/index.php:705) in /home/sixsixsi/public_html/blocks/block-Shout_Box.php on line 742

also Shout_Box.php only goes to line 714
 

 
View user's profileSend private message Reply with quote

Noto
Reputation: 1072.7 Add RepSubtract Rep
votes: 13
Local time: 11:36 AM
Location: Sunny UK !
uk.gif

Site Admin
Site Admin

0.60 posts per day
Medals: 3 (View more...)
Dedication (Amount: 1)
Theme Guru
Theme Guru
Joined: May 03, 2007
Last Visit: 26 May 2012
Posts: 1118
Points: 73959 

Post Re: Forum avatar on shout out box Posted: Tue Sep 20, 2011 1:13 am

rename the function
Code:
function findAvatarmod

dont forget to change it here to
Code:
$av_found = findAvatarmod($row_avatar);


ill update the instructions above.
 

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

DreAdeDcoRpSE
Reputation: 2572.3 Add RepSubtract Rep
votes: 28
Local time: 5:36 AM
Location: Back of your Mind
usa.gif

Site Admin
Site Admin

1.36 posts per day
Medals: 3 (View more...)
Super Dedicated User (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 26 May 2012
Posts: 2331
Points: 136116 

Post Re: Forum avatar on shout out box Posted: Wed Sep 21, 2011 1:33 am

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

Noto, shouldn't the first part of the code be AFTER the

Code:
<?php


rather at the end of the script?
 

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

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Nuke-Evolution


 
18 Replies / 1387 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