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 02-20-2006 05:35 PM

Quote:

Originally Posted by emin3m
juss wondering every of your plugin is great but you dun use template changes within the xml file
like
PHP Code:

$vbulletin->templatecache['MEMBERINFO']=str_replace('$footer','$mybest
$footer'
,$vbulletin->templatecache['MEMBERINFO']); 

make hook location "parse_template"

:) but not every one want to put it above the footer

emin3m 02-20-2006 07:13 PM

lol then users can change from plugin!
i was juss suggestin to make it all in juss xml

Hornstar 02-20-2006 07:28 PM

Very nice hack, this may make people more interested in making threads now. I'll intall it and let you know if everything goes good.

bashy 02-20-2006 08:00 PM

I am having issues m8...
I cant see the the image /button in the thread tools menu :(
I have upped the image to my styles buttons dir
theres nothing in the menu thats changed and i have done the edit :(

Hornstar 02-20-2006 08:05 PM

im doing the template edits, but for mine it looks like this

Code:

<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
                                </if>
                        </div>
                </if>

Where as yours ended in
</if>
</td>
</tr>


Where should I add this after
Code:

<if condition="$thread['postuserid'] == $bbuserinfo['userid'] && $thread['firstpostid'] != $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>

?

Developer 02-20-2006 08:11 PM

Quote:

Originally Posted by bashy
I am having issues m8...
I cant see the the image /button in the thread tools menu :(
I have upped the image to my styles buttons dir
theres nothing in the menu thats changed and i have done the edit :(

change
Code:

$stylevar[imgdir_button]/best.gif
to the image location

Developer 02-20-2006 08:13 PM

Quote:

Originally Posted by hornstar1337
im doing the template edits, but for mine it looks like this

Code:

<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
                                </if>
                        </div>
                </if>

Where as yours ended in
</if>
</td>
</tr>


Where should I add this after
Code:

<if condition="$thread['postuserid'] == $bbuserinfo['userid'] && $thread['firstpostid'] != $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>

?

add it after the code you get it
Code:

<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
                                </if>
                        </div>
                </if>


bashy 02-20-2006 08:14 PM

Just check my usercp options and the best threads ID box aint there any more either

bashy 02-20-2006 08:16 PM

Something like this?

Quote:

Originally Posted by Developer
change
Code:

$stylevar[imgdir_button]/forums/images/buttons_mns/best.gif
to the image location


Hornstar 02-20-2006 08:28 PM

Quote:

Originally Posted by Developer
add it after the code you get it
Code:

<a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
                                </if>
                        </div>
                </if>



I added it after that, but nothing shows up when I click on "thread tools" for my thread.

Here is what i have




Code:

<!-- thread tools -->
        <div class="smallfont">
                <if condition="!$show['search_engine']">
                        <div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" accesskey="p" rel="nofollow">$vbphrase[show_printable_version]</a></div>
                        <div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid" rel="nofollow">$vbphrase[email_this_page]</a></div>
                </if>
                <if condition="$show['member']">
                        <div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" />
                                <if condition="$show['subscribed']">
                                        <a href="subscription.php?$session[sessionurl]do=removesubscription&amp;t=$threadid">$vbphrase[unsubscribe_from_this_thread]</a>
                                <else />
                                        <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;t=$threadid">$vbphrase[subscribe_to_this_thread]</a>
                                </if>
                        </div>
                </if>

<if condition="$thread['postuserid'] == $bbuserinfo['userid'] && $thread['firstpostid'] != $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>

                <if condition="$show['addpoll']">
                        <div><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" vspace="1" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></div>
                </if>
        </div>
        <!-- / thread tools -->


Can you see anything wrong with this?


All times are GMT. The time now is 09:19 AM.

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.01208 seconds
  • Memory Usage 1,766KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_php_printable
  • (5)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