Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods
Author Message
zacklk
Regular
Regular



Joined: Mar 06, 2010
Posts: 79

PostPosted: Sat May 15, 2010 11:20 pm Reply with quote

Is there any mod or hack that can show nuke points right under Joined date and Posts count in the forum? thanks.
 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sun May 16, 2010 8:45 am Reply with quote

/modules/Forums/viewtopic.php line 401

Inline find the following
Code:


u.user_allowsmile, p.*,

Insert u.post,
Code:


u.user_allowsmile, u.points, p.*,


Line 852
Code:


        $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : '';

After add
Code:


        $poster_points = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? 'Points' . ': ' . $postrow[$i]['points'] : '0';



Line 1203
Code:


                'POSTER_POSTS' => $poster_posts,

After add
Code:


                'POSTER_POINTS' => $poster_points,


Now you need to edit your theme. If your theme does not have forum templates you will have to edit the ones in the forum module, but lets assume your theme does have templates. I am going to use RavenIce for this example.

In themes/RavenIce/forums/viewtopic_body.tpl fined (line 30)
Code:


postrow.POSTER_POSTS}<br />

After add
Code:


{postrow.POSTER_POINTS}<br />

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
zacklk







PostPosted: Sun May 16, 2010 12:20 pm Reply with quote

Thanks a lot Palbin. it works fine sir Smile
 
zacklk







PostPosted: Sun May 16, 2010 1:38 pm Reply with quote

well i have a problem. i updated the points. i mean like Forum New Post 10 points, Forum Answer Post 5 points etc. bud when someone post anything it dose not seems to update the points. i mean not because of the code you gave me. but from raven nuke it self. do i need to activate it somewhere?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BBtoNuke Mods

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 ©