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)

Saviour 06-14-2009 06:49 PM

post.title

...is not located in the file you're referring to.

cheesegrits 06-14-2009 09:00 PM

Quote:

Originally Posted by Ted S (Post 1824289)
Maybe I'm missing something..... I see the hook locations in the zip file. Is there something else needed to trigger them that you're not seeing?

There's no ./includes/xml/hooks_helpfulanswers.xml, so your hooks don't show up in the available hooks list when creating a plugin.

Like this:

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<hooks>
        <hooktype type="helpfulanswers">
                <hook>helpfulanswers_top_start</hook>               
        </hooktype>
        <hooktype type="helpfulanswers">
                <hook>helpfulanswers_top_query</hook>               
        </hooktype>
        <hooktype type="helpfulanswers">
                <hook>helpfulanswers_top_loop</hook>               
        </hooktype>
        <hooktype type="helpfulanswers">
                <hook>helpfulanswers_top_done</hook>               
        </hooktype>
        <hooktype type="helpfulanswers">
                <hook>helpfulanswers_prerate</hook>               
        </hooktype>
        <hooktype type="helpfulanswers">
                <hook>helpfulanswers_dorate</hook>               
        </hooktype>
        <hooktype type="helpfulanswers">
                <hook>helpfulanswers_show_ajax</hook>               
        </hooktype>
</hooks>

-- hugh

Saviour 06-15-2009 12:02 AM

Quote:

Originally Posted by Saviour (Post 1829714)
post.title

...is not located in the file you're referring to.


My bad...was looking at the wrong file...found it. Made the change...and that's okay. Problem is the data in the two columns I referred to are still not centered. The table headers are...but the data in the column is not.

Ted S 06-15-2009 03:23 AM

You can edit the templates controlling the layout to align it as you see fit.

Ted S 06-15-2009 03:24 AM

Quote:

Originally Posted by cheesegrits (Post 1829788)
There's no ./includes/xml/hooks_helpfulanswers.xml, so your hooks don't show up in the available hooks list when creating a plugin.

Like this:

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>
<hooks>
    <hooktype type="helpfulanswers">
        <hook>helpfulanswers_top_start</hook>       
    </hooktype>
    <hooktype type="helpfulanswers">
        <hook>helpfulanswers_top_query</hook>       
    </hooktype>
    <hooktype type="helpfulanswers">
        <hook>helpfulanswers_top_loop</hook>       
    </hooktype>
    <hooktype type="helpfulanswers">
        <hook>helpfulanswers_top_done</hook>       
    </hooktype>
    <hooktype type="helpfulanswers">
        <hook>helpfulanswers_prerate</hook>       
    </hooktype>
    <hooktype type="helpfulanswers">
        <hook>helpfulanswers_dorate</hook>       
    </hooktype>
    <hooktype type="helpfulanswers">
        <hook>helpfulanswers_show_ajax</hook>       
    </hooktype>
</hooks>

-- hugh

Ooooh.... Great pointer. I'll see that this gets updated this week.

Simon Lloyd 06-15-2009 06:51 AM

Quote:

Originally Posted by NLP-er (Post 1829472)
Hi, what I need to do to have some link in nav bar to most rated posts?

in your navbar template you can use the following:
find
PHP Code:

<if condition="$show['member']">
            <
td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
        </if> 

and underneath add
PHP Code:

<if condition="$show['member']">
            <
td class="vbmenu_control"><a href="http://www.yoursite.com/forum/helpfulanswers.php">Helpful Answers</a></td>
        </if> 

Hope that helps!

NLP-er 06-15-2009 07:58 AM

Quote:

Originally Posted by Ted S (Post 1829536)
edit the navbar template and add the link

To what address?...

Simon Lloyd 06-15-2009 10:38 AM

NLP-er i have guven you what you need!, just replace yoursite.com with your actual site and if you do not have a forum folder or the helpful answers software is not in a forum folder then omit the forum/

cheesegrits 06-15-2009 03:45 PM

Quote:

Originally Posted by Ted S (Post 1829909)
Ooooh.... Great pointer. I'll see that this gets updated this week.

Thanks.

FYI, I just wrote a "Helpful Answers for vbCredits" mod, first cut of it is here:

http://www.vbcredits.com/forum/showt...7117#post17117

It's something I needed for myself, but I saw somebody else had requested it, so I posted it. I'm not that wild about supporting it in the long run, though. Once it is debugged and any additional features added, would you be interested in taking it over?

-- hugh

Ted S 06-15-2009 03:58 PM

Quote:

Originally Posted by NLP-er (Post 1829954)
To what address?...

helpfulanswers.php


All times are GMT. The time now is 06:07 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.05265 seconds
  • Memory Usage 1,759KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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