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)

Mellymonster 06-10-2009 04:09 AM

Oh it would be cool if this added the forums for favorites, that is what my members are asking for :D however this is cool, I'm debating on installing it or not...

markblair 06-10-2009 05:58 AM

Very cool mod. Installed :)

TheInsaneManiac 06-11-2009 12:46 PM

You are aware you have spelled favorite wrong a few times yes?

Infopro 06-11-2009 02:43 PM

Quote:

Originally Posted by Psionic Vision (Post 1823053)
Since you are running vBulletin 3.8.x, the best solution for you is:

Find a plugin whose title is 'vBFavorites: Initialize', it is located under 'global_start'. You do that using the plugin manager. Find the following code:

Code:

$find_string = compile_template('<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>');
Replace it with the following code:

Code:

$find_string = '$template_hook[navbar_buttons_left]';
I think it should work for you unless your style does not have the template hook.

Worked perfect to fix link, thanks.

akanevsky 06-11-2009 06:29 PM

Quote:

Originally Posted by TheInsaneManiac (Post 1827594)
You are aware you have spelled favorite wrong a few times yes?

No, I am not. Please show me where. :)

JacquiiDesigns 06-16-2009 12:59 AM

Great update! Thanks

Jacquii.

ShackMaster 06-27-2009 12:48 PM

oops.... Not working on my forum... www.hometheatershack.com/forums vB 3.8.3

Had to uninstall... destroyed my forum with database errors...

Database Errors:
Quote:

Database error in vBulletin 3.8.3:

Invalid SQL:

SELECT *
FROM favorites
WHERE userid = '1'
AND entry_type = 'thread'
ORDER BY dateline DESC;

MySQL Error : Unknown column 'entry_type' in 'where clause'
Error Number : 1054
Request Date : Saturday, June 27th 2009 @ 09:46:49 AM
Error Date : Saturday, June 27th 2009 @ 09:46:49 AM
Script : http://www.hometheatershack.com/foru...splay.php?f=31
Referrer : http://www.hometheatershack.com/foru...on-device.html
IP Address : 99.195.159.204
Username : Sonnie
Classname : vB_Database_MySQLi
MySQL Version : 5.0.67-community

ShackMaster 06-27-2009 12:55 PM

Yup... got about 100 of these within just the few minutes I had it installed:

Quote:

Database error in vBulletin 3.8.3:

Invalid SQL:

SELECT *
FROM favorites
WHERE userid = '38972'
AND entry_type = 'thread'
ORDER BY dateline DESC;

MySQL Error : Table 'homethea_forums.favorites' doesn't exist
Error Number : 1146
Request Date : Saturday, June 27th 2009 @ 09:50:20 AM
Error Date : Saturday, June 27th 2009 @ 09:50:20 AM
Script : http://www.hometheatershack.com/foru...r=captainronmn
Referrer : http://www.hometheatershack.com/
IP Address : 76.113.190.226
Username : captainronmn
Classname : vB_Database_MySQLi
MySQL Version :

akanevsky 06-27-2009 01:36 PM

Do you have another favorites hack installed?

ShackMaster 06-27-2009 02:11 PM

Nope... not any at all... this was my first.

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

Merjawy 06-30-2009 10:53 AM

Thanks

if you can stop it from adding same entry over and over, it'll be great

if you click to add from the post, it will say its already been added, however, from the top menu it won't say that.. it just keeps on adding the same thread

Installed .. I like it .. Thanks

praveen1980 06-30-2009 12:40 PM

I'm just getting a blank page on submitting the favorite...i have a custom theme.
please let me know how can i fix this. (can i pm u the site url?)

ITDarasgah 06-30-2009 09:23 PM

Install....thanks

akanevsky 07-01-2009 08:54 PM

Please vote for this hack in July 2009 MOTM.
https://vborg.vbsupport.ru/showthread.php?t=217548

JacquiiDesigns 07-01-2009 10:49 PM

Voted! Thanks again for the share and good luck :)

Jacquii.

guvner 07-02-2009 08:35 PM

Quote:

Originally Posted by Psionic Vision (Post 1839785)
The stuff that's in vbfavorites_postbit template.

Thanks - that did it!

jGas 07-02-2009 10:47 PM

hi, why should i use vbfavorites instead of "subscribe to this thread"?
i can't understand the difference between them...
thanks

TaMpE 07-03-2009 11:12 PM

What do I do if I don't see "Favorites" in the NavBar?

Loki12 07-04-2009 05:39 PM

Very nice mod!

Too bad there is no more place on my navbar :(

WxP 07-06-2009 06:56 PM

you do not have permission to access this page. This could be due to one of several reasons:

akanevsky 07-06-2009 08:19 PM

Quote:

Originally Posted by WxP (Post 1843999)
you do not have permission to access this page. This could be due to one of several reasons:

Allow usergroups to use this mod?

nectons 07-10-2009 01:50 AM

Why you are saying it is for 3.8.x if it is not working on 3.8.3? Please correct it. It is NOT working on Vbulletin 3.8.3 with just installing the product. It needs templates edit and it gives randomly database errors.

uninstalled... sorry.

blogthea 07-27-2009 02:15 PM

It's working fine on VB 3.8.3 (did some template edits cause of my custom menu but no db errors), thank you for this mod

Julie 07-28-2009 10:14 AM

Mine worked right out of the box on 3.8.3. :) Still hoping for usergroup permissions, but I can wait :)

Thanks for a great mod!

blogthea 07-28-2009 10:22 AM

I am trying to build a query to add a thread as favorite to all my users, (Forum rules thread for example). I would be grateful if someone could help me at this

IntellectToday 07-30-2009 11:51 PM

I am receiving a permissions error - yet I don't see anywhere to change usergroup permission settings for this mod. Help? :)

chick 07-31-2009 11:59 AM

Quote:

Originally Posted by IntellectToday (Post 1858804)
I am receiving a permissions error - yet I don't see anywhere to change usergroup permission settings for this mod. Help? :)

same here and no nav showing, using 3.8.3

yotsume 08-01-2009 09:35 AM

I will have to check this out...

Mograd Ensan 08-01-2009 04:02 PM

Nice ,,

chick 08-02-2009 02:01 PM

I have it working on one 3.8.3 site but not another ..... so it must be in conflict with another mod that I have one one site and not the other which I will track down.


All times are GMT. The time now is 01:02 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.01579 seconds
  • Memory Usage 1,819KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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