Go Back   NuHIT - SEO, Wiki, Forums > NuRatings Forums > NuRatings - Installation and Support
Closed Thread
 
Thread Tools
 
#1
Old 01-21-2007, 12:23 AM
 
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

NuRatings Template Modifications


When installing NuRatings in your forums you need to determine what features you want enabled.

The following is a list of NuRatings Components that you need to add to enable specific features.

To Enable User Ratings, add:
* User Ratings to MEMBERINFO

To Enable Post Ratings, add:
* Post Filter to SHOWTHREAD
* Post Rating Control to postbit or postbit_legacy

To Enable Thread Ratings, add:
* Thread Filter to FORUMDISPLAY
* Thread Rating Control to threadbit
* Thread Rating Control to navbar

To Show Top Threads in the Forum Home, add:
* Thread Top Threads to FORUMHOME

To Show Top Users in the Forum Home, add:
* Thread Top Users to FORUMHOME

Instructions and Component Codes for each one of these are included in the following posts.

Last edited by ElfMage : 01-23-2007 at 02:48 PM.

#2
Old 01-21-2007, 12:25 AM
 
Adding NuRatings to the User Profile Page

Template Name: MEMBERINFO

Component Code: $userinfo[nr_user_rating_bit]
Example:

PHP Code:
    <if condition="$show['currentlocation']">
        <
div>$userinfo[action$userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]&nbsp;</div>
    </if>

    
$userinfo[nr_user_rating_bit]
</
td

Last edited by ElfMage : 02-25-2007 at 02:55 PM. Reason: Change in component code.
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

#3
Old 01-21-2007, 12:26 AM
 
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

Adding NuRatings' Post Filter to the top of the View Thread Page


Template Name: SHOWTHREAD

Component Code: $stylevar[nr_post_threshold_selector]

Where to add:
Insert component code before the following line:
PHP Code:
<td class="vbmenu_control" id="threadtools" nowrap="nowrap"
Example:
PHP Code:
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
        </if>
        &
nbsp;
        </
div>
    </
td>

$stylevar[nr_post_threshold_selector]

    <
td class="vbmenu_control" id="threadtools" nowrap="nowrap">
        <
a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"accesskey="3"</if>>$vbphrase[thread_tools]</a>
        <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("threadtools"); </script></if>
    </td> 

Last edited by ElfMage : 03-20-2007 at 09:32 AM.

#4
Old 01-21-2007, 12:27 AM
 
Adding NuRatings' Post Ratings to each post in each post shown in the View Thread Pag

Template Name: postbit_legacy (or postbit)

Component Code: $post[nu_ratings_postbit]


Where to add:
Insert component code before the following line:
PHP Code:
    <!-- controls --> 
Example:

PHP Code:
<if condition="$show['moderated']">
<
td class="alt2" align="$stylevar[right]" style="border-left: 0px; border-top: 0px">
<else />
<
td class="alt1" align="$stylevar[right]" style="border-left: 0px; border-top: 0px">
</if>

$post[nu_ratings_postbit]

    <!-- 
controls -->
    <if 
condition="$post['editlink']"

Last edited by ElfMage : 03-20-2007 at 09:33 AM.
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

#5
Old 01-21-2007, 12:28 AM
 
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

Adding NuRatings' Thread Rating Filter to the View Forum Page


Template Name: FORUMDISPLAY

Component Code: $stylevar[nr_thread_threshold_selector]

Where to add:
Insert component code before the following line:
PHP Code:
    <td class="vbmenu_control" id="forumtools" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a> <script type="text/javascript"vbmenu_register("forumtools"); </script></td> 
Example:
PHP Code:
<td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span></td>

$stylevar[nr_thread_threshold_selector]

    <
td class="vbmenu_control" id="forumtools" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a> <script type="text/javascript"vbmenu_register("forumtools"); </script></td> 

Last edited by ElfMage : 03-20-2007 at 09:34 AM.

#6
Old 01-21-2007, 12:33 AM
 
Template Name: threadbit

Code: $thread[nu_ratings_threadbit]

Where to add:
Insert component code after the following line:
PHP Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]"

Example:
PHP Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">

$thread[nu_ratings_threadbit]

$thread[title_editable]
<
div

Last edited by ElfMage : 03-20-2007 at 09:34 AM.
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

#7
Old 01-21-2007, 12:35 AM
 
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  
Template Name: navbar

Component Code: $thread[nu_ratings_threadbit]


Where to add:
Insert component code after the following line:
PHP Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
        </if> 
Example:
PHP Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
        </if>

$thread[nu_ratings_threadbit]

        </
td

Last edited by ElfMage : 03-20-2007 at 09:35 AM.

#8
Old 01-23-2007, 02:53 PM
 
Adding Top Threads to Forum Home

Template Name: FORUMHOME

Component Code: $nr_top_threads

Where to add:
Insert component code after the following line:
PHP Code:
<!-- main --> 

Example:
PHP Code:
<!-- main -->

$nr_top_threads

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<
thead

Last edited by ElfMage : 03-20-2007 at 09:36 AM.
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

#9
Old 01-23-2007, 02:53 PM
 
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

Adding Top Users to Forum Home


Template Name: FORUMHOME

Component Code: $nr_top_users

Where to add:
Insert component code after the following line:
PHP Code:
<!-- main --> 

Example:
PHP Code:
<!-- main -->

$nr_top_users

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<
thead

Last edited by ElfMage : 03-20-2007 at 09:36 AM.

#10
Old 02-24-2007, 02:02 AM
 
Adding post expander to postbit template

Template Name: postbit or postbit_legacy

Component Code: $post[nu_ratings_postbit_expander]

AND

style="$post[nu_ratings_postbit_display]"


Where to add:

Find this:
PHP Code:
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"
And replace it for:

PHP Code:
$post[nu_ratings_postbit_expander]
<
table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="$post[nu_ratings_postbit_display]"

(Notice the addition to the end of the table tag).

Example:
PHP Code:
$post[nu_ratings_postbit_expander]
<
table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="$post[nu_ratings_postbit_display]"

Last edited by ElfMage : 03-20-2007 at 09:37 AM.
ElfMage
nuHIT Team
 
ElfMage's Avatar
 
Join Date: Aug 2006
Posts: 3,603
ElfMage is offline  

Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump