vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   My Best Threads (https://vborg.vbsupport.ru/showthread.php?t=108208)

MarsNIIT 04-09-2006 05:10 PM

Quote:

Originally Posted by Developer
Support Given For Who Clicked Install {ONLY}

Clicked Install :P

akanevsky 04-09-2006 05:13 PM

What's the difference between this and my vBFavorites?

Allan 04-09-2006 05:26 PM

Quote:

Originally Posted by Psionic Vision
What's the difference between this and my vBFavorites?

Easy install of course ;)

No templates modifications.

Nj?rd Eriksson 04-15-2006 08:05 AM

Quote:

Originally Posted by Nathan2006
Found just 1 problem :(

When a member views another members profile when looking at the Best Threads list at the bottom all the threads the user chose don't show up for other members to see.

That's a member choosing best threads and the admin not being able to view anything:confused:

I did all the template edits and the table is there but no info in it for other threads :(

Thank you for any help :)

Yes, one can only see the threads in one's own profile but not the threads in other members' profiles.

Replace 3 in hook location member_start with:

PHP Code:

$mybestthread1 $vbulletin->GPC['userid'];
$mybestthread2 mysql_query("SELECT * FROM " TABLE_PREFIX "user WHERE userid = $mybestthread1");
while (
$row mysql_fetch_assoc($mybestthread2)) {    
    
$mybestthreads $row['oneof'];
}
if (
$mybestthreads == NULL) {
    
$mybestthreads "0";



Developer 04-15-2006 12:51 PM

Update Is Coming Soon !!

Developer 04-15-2006 04:11 PM

1.2.4 On 15. Apr 2006 Fix a slight bug

Developer 04-15-2006 04:12 PM

Quote:

Originally Posted by Psionic Vision
What's the difference between this and my vBFavorites?

Completelty different this hack give users a feature to select thier best thread

Nathan2006 04-15-2006 06:25 PM

Hi,

I have removed all the previous code from the other install and installed the new product but I'm getting this error?

Quote:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/forum/public_html/includes/adminfunctions_template.php(3537) : eval()'d code on line 344

This happens when I add this code:

Quote:

<if condition="$thread['postuserid'] == $bbuserinfo['userid']">
<tr>
<td class="vbmenu_option"><if condition="in_array($thread['threadid'], $mybestthread)">
<a href="showthread.php?$session[sessionurl]do=removemybest&amp;t=$threadid">$vbphrase[mybest_remove]</a>
<else />
<a href="showthread.php?$session[sessionurl]do=addmybest&amp;t=$threadid">$vbphrase[mybest_add]</a>
</if>
Thank you for any help :)

Developer 04-15-2006 06:54 PM

fixed. :)
edit the template again

Nathan2006 04-15-2006 07:12 PM

Quote:

Originally Posted by Developer
fixed. :)
edit the template again

Hi thank you for your reply,

The only problem is that this code:

PHP Code:

<if condition="$thread['postuserid'] == $bbuserinfo['userid']">
    <
tr>
        <
td class="vbmenu_option">    <if condition="in_array($thread['threadid'], $mybestthread)"><a href="showthread.php?$session[sessionurl]do=removemybest&amp;t=$threadid">$vbphrase[mybest_remove]</a><else /><a href="showthread.php?$session[sessionurl]do=addmybest&amp;t=$threadid">$vbphrase[mybest_add]</a></if></td>
    </
tr>
</if> 

Does not seem to show the image as in the old code?

PHP Code:

<if condition="$thread['postuserid'] == $bbuserinfo['userid']">
<
tr>
<
td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/best.gif" />
<if 
condition="in_array($thread['threadid'], $mybestthread)">
<
a href="showthread.php?$session[sessionurl]do=removemybest&amp;t=$threadid">$vbphrase[mybest_remove]</a>
<else />
<
a href="showthread.php?$session[sessionurl]do=addmybest&amp;t=$threadid">$vbphrase[mybest_add]</a>
</if>
</
td>
</
tr>
</if> 

Or is it me just being stupid?:D

Im not getting an image in the showthread


All times are GMT. The time now is 01:08 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.01204 seconds
  • Memory Usage 1,761KB
  • 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
  • (3)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
  • (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