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)

Developer 04-15-2006 07:21 PM

Quote:

Originally Posted by Nathan2006
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

yup, no image but u can use one with this code
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>


Nathan2006 04-15-2006 09:38 PM

Hi,

I had a few problems with it so I just used the code for the upgrade and now when trying to view a members profile I'm receiving the following error.

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT thread.threadid,
thread.title AS tht,
thread.postusername,
thread.replycount,
thread.lastposter,
thread.lastpost,
thread.dateline,
user.userid AS lastposterid2,
thread.views,
thread.attach,
forum.title AS fot,
forum.forumid AS fir
FROM thread AS thread
LEFT JOIN forum AS forum ON (thread.forumid = forum.forumid)
LEFT JOIN user AS user ON (thread.lastposter = user.username)
WHERE thread.threadid IN ()
AND thread.postuserid = 3
order by thread.threadid Desc
LIMIT 0, 99;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND thread.postuserid = 3
order by thread.threadi
Error Number : 1064
Thank you for any help :)

Developer 04-17-2006 03:25 AM

1.2.6 On 17. Apr 2006 Fix A minor bug & add alternate alt & no threads error

Nathan2006 04-17-2006 03:34 AM

Quote:

Originally Posted by Developer
1.2.6 On 17. Apr 2006 Fix A minor bug & add alternate alt & no threads error

Thank you Developer

this is working great now :cool:

Is there anyway to add a closed thread to "Best Threads" as they don't have an option?

Thanks again :)

Developer 04-17-2006 03:37 AM

Quote:

Originally Posted by Nathan2006
Thank you Developer

this is working great now :cool:

Is there anyway to add a closed thread to "Best Threads" as they don't have an option?

Thanks again :)

you could do this by changing the edit in template showthread

Nathan2006 04-17-2006 03:48 AM

Quote:

Originally Posted by Developer
you could do this by changing the edit in template showthread

Thanks

oops I found 1 more problem

When admin adds threads from the staff section members can see them threads,

Not sure if its happening to you too?

Thanks for your help :)

Ins 04-17-2006 11:03 AM

Very nice! *installed* ;)

Developer 04-17-2006 12:53 PM

Quote:

Originally Posted by Nathan2006
Thanks

oops I found 1 more problem

When admin adds threads from the staff section members can see them threads,

Not sure if its happening to you too?

Thanks for your help :)

i'll fetch forum permission in next release :)
[high]*BTW:You make my hacks better[/high]

Nathan2006 04-18-2006 10:06 AM

Quote:

Originally Posted by Developer
i'll fetch forum permission in next release :)
[high]*BTW:You make my hacks better[/high]

Thanks:)

I'm getting the same problem as this member

If you sign in as a normal member you cannot add any best threads at all.

I even made a test member account to an admin and that does not appear for that either. I even tried a moderator account too but still no luck :(

It only seems to work for admins lol

Thanks for any help :)

Quote:

Originally Posted by Pcparts
Thanks for this hack.

I installed it, works for me (as admin) but not for normal registered users. They dont get to see the menu in the dropdown?

any idea what it could be?


jeddah_eyes 04-18-2006 01:10 PM

thanks u develper u r the best i said before .


All times are GMT. The time now is 02:52 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.01318 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)bbcode_php_printable
  • (8)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