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)
-   -   End-User Options - vBFavorites (https://vborg.vbsupport.ru/showthread.php?t=215197)

akanevsky 06-27-2009 03:22 PM

Try installing it again.

ShackMaster 06-27-2009 03:53 PM

I have reinstalled and at least there are no database errors thus far.

I am seeing Add To Favorite Threads in Thread Tools and Add To Favorite Posts at the top right of each posted message, but there is no drop down menu in the navbar. I do have a very customized navbar, so that may be the issue. Can you give me the code for the navbar?

I think that is all I am missing.

deadlySniper 06-27-2009 03:57 PM

Awesome!! Thanks!

guvner 06-29-2009 04:14 AM

Thanks for this mod - very cool! :up:

Quote:

Originally Posted by ShackMaster (Post 1838461)
Add To Favorite Posts at the top right of each posted message

Add thread and add user are there and so is the drop down box in the navbar.

The "add post to favorites" is all that's missing for me, due to modded postbit template.

Any chance of seeing the code to add this manually please?

Mike :)

ShackMaster 06-29-2009 12:59 PM

Yeah... I would still like to see the manual coding for the navbar dropdown menu as well.

akanevsky 06-29-2009 02:08 PM

The manual instructions are:

TEMPLATE: navbar

FIND:
Code:

<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
ADD UNDERNEATH:
Code:

<td class="vbmenu_control" id="vbfavorites"><a href="usercp.php$session[sessionurl_q]">$vbphrase[vbfavorites_favorites]</a> <script type="text/javascript"> vbmenu_register("vbfavorites"); </script> </td>

guvner 06-29-2009 06:24 PM

Quote:

Originally Posted by Psionic Vision (Post 1839587)
The manual instructions are:

TEMPLATE: navbar <snip>

Thanks, but as mentioned just above, I'm also looking for the postbit edits if possible?

It shows up in my stock postbit, but not in my postbit_legacy - I've looked through the plugin code but I'm no coder and can't figure it out. :o

Perhaps I'm missing a hook in my legacy template - could you tell me which one is used please? - or let me know which string/link I could use for " - Add Post To Favorites " to appear next to the checkbox for inline mod as it does in my legacy template?

Also - once I've figured this out, I need to make the text stand out a little more as it's little too faint and not easily seen - which CSS tag does "- Add Post To Favorites' use (smallfont maybe?) and in which template would I change that?

Many thanks,
Mike :)

akanevsky 06-29-2009 07:27 PM

Quote:

Originally Posted by guvner (Post 1839764)
Thanks, but as mentioned just above, I'm also looking for the postbit edits if possible?

It shows up in my stock postbit, but not in my postbit_legacy - I've looked through the plugin code but I'm no coder and can't figure it out. :o

Perhaps I'm missing a hook in my legacy template - could you tell me which one is used please? - or let me know which string/link I could use for "- Add Post To Favorites " to appear next to the checkbox for inline mod as it does in my legacy template?

Thanks,
Mike :)

The stuff that's in vbfavorites_postbit template.

Trek 06-29-2009 08:50 PM

1 Attachment(s)
I made some changes to the postbit, using images instead of text. The original text is now used in the image ALT tag and I have images that are slightly different depending on if it's an add or a remove of the favorite.

The original images were free on the web and I modified them to suit my own website, so change them as you require.

Edit Template: vbfavorites_postbit

Delete everything in it, replace it with:

Code:

<if condition="$show['member']"> -
    <if condition="$show['vbfavorites_post_in_favorites']">
        <a href="vbfavorites.php?$session[sessionurl]do=delete&amp;entry_type=post&amp;entry_id=$post[postid]"><phrase 1="$vbphrase[post]"><img class="inlineimg" src="$stylevar[imgdir_misc]/favorite_post_remove.png" alt="$vbphrase[vbfavorites_remove_x_from_favorites]" /></phrase></a>
    <else />
        <a href="vbfavorites.php?$session[sessionurl]do=add&amp;entry_type=post&amp;entry_id=$post[postid]"><phrase 1="$vbphrase[post]"><img class="inlineimg" src="$stylevar[imgdir_misc]/favorite_post_add.png" alt="$vbphrase[vbfavorites_add_x_to_favorites]" /></phrase></a>
    </if>
</if>

Place the attached images in your images\misc folder.

JointRolla420 06-30-2009 01:23 AM

cool... but no point to it


All times are GMT. The time now is 12:01 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.01813 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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