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

Arios 10-21-2005 04:16 PM

Sweet this is a cool hack. :cool:

akanevsky 10-21-2005 05:51 PM

Yes, that would be an error in the manual. Fixed.

Lea Verou 10-21-2005 10:27 PM

Installed and working perfectly, but oh man this was really exhausting to install, considering the fact that I had to translate it too and change some templates to fit my forum better...
I'll come back later with some suggestions for improvement, if of course they are welcome :)

Lea Verou 10-21-2005 10:55 PM

So, here are some suggestions:
- In the usercp to show extra info for the favorite stuff. Eg for the threads to display posts, views, last post, like in forumdisplay. For messages it could display how many replies were made after it, in which thread it belongs, the date it was posted etc. For users it could display posts, last visit, online/offline status. :)
-Show something to an item that is already in the favorites list so that the user doesn't try to add it again. If it's a thread, change the title in the item inside thread tools to display "Remove thread from favorites" instead off add. Same thing could be done with posts and users :)

This for now, I'll edit this post (if nobody has replied) or post again if I have more ideas :)

akanevsky 10-22-2005 12:38 AM

Quote:

- In the usercp to show extra info for the favorite stuff. Eg for the threads to display posts, views, last post, like in forumdisplay. For messages it could display how many replies were made after it, in which thread it belongs, the date it was posted etc. For users it could display posts, last visit, online/offline status.
I intentionally removed the extra info from the template. In other words, it is working as designed :)

Quote:

-Show something to an item that is already in the favorites list so that the user doesn't try to add it again. If it's a thread, change the title in the item inside thread tools to display "Remove thread from favorites" instead off add. Same thing could be done with posts and users
I'll see if that is possible without adding extra queries.

Lea Verou 10-22-2005 12:39 AM

Quote:

Originally Posted by Dark Visor
I intentionally removed the extra info from the template. In other words, it is working as designed :)

Oh, and what can I do to include those? Especially some (eg the online/offline status of the user) are really useful, I think :) Is it easy?
Thanks in advance :)

akanevsky 10-22-2005 01:02 AM

Quote:

Is it easy?
No, sorry.

john1744 10-22-2005 04:37 AM

Hi this hack seems almost perfect, any easy way to fix the problem I'm having in the attached images? Some text isn't showing.

akanevsky 10-22-2005 12:08 PM

That is probably a problem with your style? I'm having no problem on my default vBulletin style, although I've seen the problem on custom ones.

srh 10-25-2005 11:26 AM

Thanks for the hack. (this really should be standard in vbulletin) :)

akanevsky 10-25-2005 05:45 PM

Quote:

Originally Posted by srh
(this really should be standard in vbulletin) :)

I completely agree, but the devs don't ;( Maybe we should sign a petition. :)

mfizzel 10-29-2005 10:08 PM

I'm having some issues.

When I try to click to add post to favorites and then it asks for a title it always returns error 'You must specify a title for your favorites entry.' Also, when I goto my userCP where it listed latest reputation received that part is completely blank. I'll go back and check my file edits.

I had this hack for 3.0.x and upgraded to 3.5. Could that be causing m the issues?

*UPDATE

so yea the UserCP is fine that was an error on my part...but whenever I try to add a post to favorites even if there's a title it says that i must specify a title

*UPDATE #2

Checked over every code/template edit, everything seems to be correct....however whenever I try to add a favorite post/thread/user it always returns the same error, that I need to specify a title.

Dark Visor could you help me?

akanevsky 10-29-2005 11:13 PM

Sorry, I cannot reproduce the error on my side. It works fine on my site (not the one I was developing on, but the public one)... So it must be another error of yours ;)

mfizzel 10-29-2005 11:31 PM

Where would the error be, in the templates or file edits?

akanevsky 10-29-2005 11:39 PM

In the vbfavorites.php, and maybe in one of the product elements.
Try completely reinstalling the hack - remove everything of from 3.0 and reinstall the product.

mfizzel 10-29-2005 11:49 PM

I've removed everything and I'll try it again from scratch tommorrow...I'll let you know how it goes.

Thanks for your help :)

Rabbitoh Warren 11-04-2005 09:17 AM

Getting the following error when deleting users. I'm using the latest version.

Quote:

Database error in vBulletin 3.5.1:

Invalid SQL:

DELETE FROM favorites as favorites
WHERE userid = 4449
OR (entry_type = 'user' AND entry_id = 4449);

MySQL Error : You have an error in your SQL syntax near 'as favorites
WHERE userid = 4449
OR (entry_type = 'user' AND entry_id = 4449' at line 2

akanevsky 11-04-2005 09:23 PM

Hack updated. See changelog for details.
To upgrade, upload the product XML with overwrite option turned on.

tranceup 11-05-2005 04:08 PM

Hack updated.

Error user cp

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT *
FROM grosos_favorites
WHERE entry_type = 'user'
AND userid = '1'
ORDER BY favorites.entry_title;

MySQL Error : Tabla desconocida 'favorites' in order clause
Error Number : 1109
Date : Saturday, November 5th 2005 @ 03:06:33 PM
Script : http://www.foro-escorts.com.ar/foros/usercp.php
Referrer : http://www.foro-escorts.com.ar/foros/index.php
IP Address : 200.89.181.86
Username : tranceup
Classname : vb_database

akanevsky 11-05-2005 04:23 PM

Strange... I don't get that error.

Arios 11-06-2005 02:54 AM

Yep I'm getting the same error when trying to delete a user

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:

DELETE FROM favorites as favorites
WHERE userid = 37
OR (entry_type = 'user' AND entry_id = 37);
However it does perform the delete though. I am on vB 3.5.0 gold. Double checked the changes made when installing and all looks good and works like a charm except for that error.

akanevsky 11-06-2005 10:22 AM

Are you using the latest version that has been uploaded yesterday? The error's been fixed in there...

TheFocusElf 11-06-2005 12:11 PM

DV -- Well you seem to feed off of praise, and deservedly so! Excellent mod. I never used your 3.0 version, but this works like a dove.

-installed-

Arios 11-07-2005 02:14 AM

I am now, thanks :up:

Lea Verou 11-09-2005 11:48 PM

I would like to disable the add user functionality and use vbfavorites only for threads & posts, how can I do that?
Thanks a lot. :)

akanevsky 11-10-2005 12:05 AM

Why would you want to disable that functionality?
Besides, if you are a coder, you should know how to do those things ;)

Lea Verou 11-10-2005 12:08 AM

Quote:

Originally Posted by Dark Visor
Why would you want to disable that functionality?
Besides, if you are a coder, you should know how to do those things ;)

Yep, but I would have to go through the code so I guess since it's your hack you'd find the answer much faster than me. :) Also, by doing it myself I might miss something. :)
I'm also upgrading my board to 3.5.1 right now so I don't currently have the time to do it... :nervous:
I want to disable the functionality in order to make the users use the buddylist. I'm also considering to add a hack I found to extend the functionality of the buddylist. :)

akanevsky 11-10-2005 12:17 AM

If you just want to hide the functionality, remove the link from memberinfo template, and replace

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post', 'user')))
        {
                print_no_permission();
        }

in vbfavorites.php with

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post')))
        {
                print_no_permission();
        }

If you care about data queries that will still be running, go through XML and look for places that say 'user'. Those refer to the user-type entries... Just edit or delete the associate code blocks, you'll know which it is ;)

And maybe I'll release a version that allows an admin to enable/disable each of the three parts of the hack :)

Lea Verou 11-10-2005 12:19 AM

Quote:

Originally Posted by Dark Visor
If you just want to hide the functionality, remove the link from memberinfo template, and replace

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post', 'user')))
        {
                print_no_permission();
        }

in vbfavorites.php with

Code:

        // check whether an invalid entry type is specified
        if (!in_array($vbulletin->GPC['type'], array('thread', 'post')))
        {
                print_no_permission();
        }

If you care about data queries that will still be running, go through XML and look for places that say 'user'. Those refer to the user-type entries... Just edit or delete the associate code blocks, you'll know which it is ;)

And maybe I'll release a version that allows an admin to enable/disable each of the three parts of the hack :)

Yep, I was talking about the extra queries. Thanks for the info :)
That version would be really nice! :)

john1744 11-10-2005 07:26 AM

Hiya, would the easiest way to unistall this be just to perform the steps backwards?

john1744 11-10-2005 07:28 AM

Actually let me ask this instead, is there a better way to show the "Add post/thread to favorites" link? Cause right now its running onto another line causing a whole nother span to show up which is very annoying.

Strike that, I just changed the phrase and it worked perfectly

akanevsky 11-10-2005 07:57 PM

Hack updated with the new options.
Reinstall the XML, re-upload vbfavorites.php and redo template changes.

-=Sniper=- 11-10-2005 09:49 PM

nice Dark Visor

I'm gona use this as a possible paid feature on my forums.

my suggestions for you to consider :)

limit the amount of fav threads/posts/users per usergroup :) also set which users can have fav threads/posts and users.

great hack, will be installing.

akanevsky 11-10-2005 10:04 PM

Thanks for the suggestions, but they will NOT be implemented.

Lea Verou 11-10-2005 10:08 PM

Ermmm Sniper imho you should find something else for paying users...
I would never pay to have that feature... It's something you should offer to all I think...

-=Sniper=- 11-10-2005 10:14 PM

its just a idea really, I know I can do it myself.

for paying users its hard to give them that something extra :) so normal members can have fav posts, while paid members can have posts and thread. I don't like the fav users idea...oh and if you have suggestions please PM them :) so we don't hijack the thread.

Lea Verou 11-10-2005 10:27 PM

Quote:

Originally Posted by -=Sniper=-
its just a idea really, I know I can do it myself.

for paying users its hard to give them that something extra :) so normal members can have fav posts, while paid members can have posts and thread. I don't like the fav users idea...oh and if you have suggestions please PM them :) so we don't hijack the thread.

I think there is no use in limiting this by any way to paid users.
Features that I think would appeal more to paying users are:
-email@yourdomain.com
-free space (perhaps for their own little homepage, or even in the gallery, it depends on the site)
-blog hosting
-of course the approptiate user title so they can show off
-A list of honoured members so they can show off and brag about it (was brag the spelled correctly? :nervous: )
-access to private forums
-access to more games if you have arcade etc

cbr929rrerion 11-19-2005 02:50 AM

** installed ** very nice

funinthesun 12-01-2005 06:23 PM

This is an interesting little mod. I might install this later. Thanks :)

klaush 12-01-2005 06:25 PM

I like your mods!

Got it!

Thanks!


All times are GMT. The time now is 04:17 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.01628 seconds
  • Memory Usage 1,825KB
  • 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
  • (4)bbcode_code_printable
  • (11)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