vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - e-steki Karma version 2.2 (https://vborg.vbsupport.ru/showthread.php?t=154264)

Alfa1 08-12-2007 11:26 PM

Quote:

Originally Posted by Michelle (Post 1315060)
What about the members that rated from the profile then?

Those ratings likely have to do more with the member in general, than their contributions in one forum.

Lea Verou 08-13-2007 11:09 AM

Quote:

Originally Posted by EnIgMa1234 (Post 1316192)
karmatest.php give a db error

Invalid SQL:

SELECT userrating.voteid as voteid, userrating.userid as userid, userrating.raterid as raterid, userrating.ratername as ratername, userrating.rating as rating, userrating.active as active, userrating.dateline as dateline, userrating.ipaddress as ipaddress
FROM vb_userrating AS userrating
INNER JOIN vb_user AS user ON ( userrating.raterid = user.userid
AND user.karma =1)
WHERE userrating.userid = AND user.karma = 1 AND user.usergroupid NOT
IN (1,3,4) AND ((1186962797-user.lastactivity)/86400<=30)
ORDER BY userrating.rating DESC;

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 user.karma = 1 AND user.usergroupid NOT
IN (1,3,4) AND ((1186962797-user' at line 5
Error Number : 1064

karmatest.php?? Did I include that in the package??
LOL!! :D
Ignore that file, its just a test I was doing to debug sth, I forgot it inside the package.

Lea Verou 08-13-2007 11:14 AM

Quote:

Originally Posted by RTFA (Post 1316170)
I have that hook in my postbit...not anywhere else though. I found the option in the User Control panel.

You don't have the hook at the right place. You have it at the beginning of the template and its supposed to be under:
HTML Code:

<div>
      $vbphrase[posts]: $post[posts]
</div>


Centrix 08-13-2007 11:14 AM

cant you just use the reputation system for this? o.o

Lea Verou 08-13-2007 11:16 AM

Quote:

Originally Posted by Centrix (Post 1316465)
cant you just use the reputation system for this? o.o

The reputation system works in a completely different way, and imho, less fair.

RTFA 08-13-2007 12:28 PM

Quote:

Originally Posted by Michelle (Post 1316464)
You don't have the hook at the right place. You have it at the beginning of the template and its supposed to be under:
HTML Code:

<div>
      $vbphrase[posts]: $post[posts]
</div>



Arrghh! :D:D This is driving me nuts, OK I put it where you said, nothing. I put it before and after, nothing. So I started messing around just because I wanted to see the dang thing work. So I put it in the postbit legacy, LOL!

Oh Yeah, it showed up...and doubled itself after every post. I had about a hundred of them showing up between the posts by the end of the thread. :D

Anyway, I can see everything on this....except I absolutely can not get it to show in the postbit. Want a Temp Admin account?

dellow 08-13-2007 10:07 PM

hello,

it is great hack,

installed in testing forum and there is a quistion:

1- how can i disallow users to edit the option (Participate in the Karma system) in user CP ?

Regards,

Lea Verou 08-14-2007 07:58 AM

Quote:

Originally Posted by RTFA (Post 1316497)
Arrghh! :D:D This is driving me nuts, OK I put it where you said, nothing. I put it before and after, nothing. So I started messing around just because I wanted to see the dang thing work. So I put it in the postbit legacy, LOL!

Oh Yeah, it showed up...and doubled itself after every post. I had about a hundred of them showing up between the posts by the end of the thread. :D

Anyway, I can see everything on this....except I absolutely can not get it to show in the postbit. Want a Temp Admin account?

Try firstly to give me a screenshot of the issue, cause I didn't exactly understand what happened.

Lea Verou 08-14-2007 07:59 AM

Quote:

Originally Posted by dellow (Post 1316901)
hello,

it is great hack,

installed in testing forum and there is a quistion:

1- how can i disallow users to edit the option (Participate in the Karma system) in user CP ?


Regards,

There is a setting for restricted usergroups and restricted userids. Use the one that suits you (depending on whether you want to restrict a whole usergroup or just some users)

dellow 08-14-2007 08:34 AM

thank you Michelle

what i need is to force all members to be (Participate in the Karma system) and there is not option for a user to uncheck the option (Participate in the Karma system) even if his user group allowed to use Karma system.


another thing when i remove some usergroup from (Usergroups that are not permitted to use the Karma system) then return it all members of this usergroup are marked as not Participate in the Karma system so each user need to check the option in his user CP to join the system again.

i think we need in admincp to enter the usergroup id that we want to force them to use the system and a usergroup that optionaly can use the system and the usergroup that not allowed to use the system.


think about it please :)


Regards,


All times are GMT. The time now is 05:01 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.01353 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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