vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - [AJAX] Helpful Answers - Post Rating System (plus many sub-features) (https://vborg.vbsupport.ru/showthread.php?t=204117)

Ted S 03-03-2009 05:41 PM

Awesome. Let me know how the import goes!

maidos 03-03-2009 08:06 PM

sorry about, posts that has been voted by other member while i who hasnt voted yet will see 2 idendic icons

http://img240.imageshack.us/img240/6078/966920937.jpg

Ted S 03-03-2009 09:37 PM

Sounds like your template modifications aren't working right. You need to keep the original structure intact using the conditions to check if someone can rate the thread.

Post your template and I'll take a look.

maidos 03-04-2009 06:16 AM

1 Attachment(s)
hmi tried to keep the original structure while using the sample codes youprovided and adding my ownimage path, dont know where i went wrong

heres template helpful_answers
PHP Code:

            <if condition="$show['helpfulanswer']">        
            <
div id="helpfulanswers_box_$post[postid]">        
                <
br /><hr size="1" style="color:$stylevar[tborder_bgcolor]/>                    
                <if 
condition="$vboptions[helpans_neg]">
                            
    <if 
condition="$post['totalrank']">
 <
img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Good" /> $post[goodrank
 <
img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Bad" /> $post[badrank
</if>    

                    <if 
condition="$show['rate_helpfulanswer']">
                        <
strong>$vbphrase[helpfulanswer_didyoufind]
                        
$post[goodrank] <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1" <if condition="$vboptions[disable_ajax] != 2"onclick="return helpfulanswers_rate($post[postid], 1);" </if> rel="nofollow">  <img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Yes" /></a> |
        
$post[badrank]                <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=0" <if condition="$vboptions[disable_ajax] != 2"onclick="return helpfulanswers_rate($post[postid], 0);" </if> rel="nofollow"><img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Yes" /></a>
                    </if>
                    
                <else />
                
                    <if 
condition="$post['totalrank']">
                        <
phrase 1="$post[goodrank]">$vbphrase[helpfulanswer_x_found]</phrase>
                    </if>
                
                    <if 
condition="$show['rate_helpfulanswer']">
                        <
strong>$vbphrase[helpfulanswer_didyoufind] <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1">$vbphrase[helpfulanswer_yesidid]</a></strong>
                    </if>
                    
                </if>
                
                <if 
condition="$show['helpfulvoted']"><strong>$vbphrase[helpfulanswer_thanks]</strong></if>
                
            </
div>            
            </if> 


Not sure what my forum is using postbit or postbit_legacy anyway heres template

Ted S 03-04-2009 03:00 PM

Code:

<if condition="$show['helpfulanswer']">       
            <div id="helpfulanswers_box_$post[postid]">       
                <br /><hr size="1" style="color:$stylevar[tborder_bgcolor]" />                   
                <if condition="$vboptions[helpans_neg]">
                           
    <if condition="$post['totalrank']">
 <img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Good" /> $post[goodrank]
 <img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Bad" /> $post[badrank]
</if>   

                    <if condition="$show['rate_helpfulanswer']">
                        <strong>$vbphrase[helpfulanswer_didyoufind]
                        <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1" <if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate($post[postid], 1);" </if> rel="nofollow"> <img src="images/buttons/ha_thumbsup.gif" width="20" height="20" border="0" alt="Yes" /></a> |
                                        <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=0" <if condition="$vboptions[disable_ajax] != 2"> onclick="return helpfulanswers_rate($post[postid], 0);" </if> rel="nofollow"><img src="images/buttons/ha_thumbsdn.gif" width="20" height="20" border="0" alt="Yes" /></a>
                    </if>
                   
                <else />
               
                    <if condition="$post['totalrank']">
                        <phrase 1="$post[goodrank]">$vbphrase[helpfulanswer_x_found]</phrase>
                    </if>
               
                    <if condition="$show['rate_helpfulanswer']">
                        <strong>$vbphrase[helpfulanswer_didyoufind] <a href="./helpfulanswers.php?do=rate&postid=$post[postid]&rank=1">$vbphrase[helpfulanswer_yesidid]</a></strong>
                    </if>
                   
                </if>
               
                <if condition="$show['helpfulvoted']"><strong>$vbphrase[helpfulanswer_thanks]</strong></if>
               
            </div>           
            </if>

Use this version instead.

Kaelon 03-07-2009 07:11 PM

Ted,

Thank you for the great add-on. I have a question: I imported the product during installation, but my browser has basically stalled for the past few minutes at the "Importing Product, Please Wait..." dialogue, and my load has now shot up through the roof. How can I tell/test when this is done?

Did anything essential not get installed? How can I error-check? My community has around 1.4 million posts and several hundred forums. Thanks!

Kaelon 03-07-2009 10:53 PM

Update: After a scary 7 minutes, everything was safely installed. :)

Ted S 03-08-2009 05:15 AM

With a board that size it just took a few minutes to add the mysql fields. No errors should mean it's all good.

Ted S 03-09-2009 12:10 AM

Working on version 1.6 for release this week which will enhance the top answers page and a few other things. If you have any feature requests or suggestions for other ideas please chime in...

kersti 03-09-2009 06:14 AM

Not working - can't seem to get the options to show up in the posts so uninstalling


All times are GMT. The time now is 12:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02316 seconds
  • Memory Usage 1,782KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete