1
3lr0n
quality resized avatars and top users
  • 2010/6/19 22:30

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Hi,

I have a 2 questions:

1. Have xoops any way to resize images with php. I mean, I plan to use the top users block of the system module, but the avatar resized setting the width and height look really poor in quality. So I thought if xoops can dinamically resize the avatars to show them with a certain width and height.

2. The top users show only the forum posts. How can I set this to count the sent news and other colaborations?

Ta in advance.
3lr0n
Spanish Overclocking Community xoops based site : www.overclocking.es

2
3lr0n
Re: quality resized avatars and top users
  • 2010/6/20 10:45

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


Point one solved..

using this amazing code

http://shiftingpixel.com/2008/03/03/smart-image-resizer/
Spanish Overclocking Community xoops based site : www.overclocking.es

3
red_Slider
Re: quality resized avatars and top users

Hey!
Did You tried this solution:
http://www.babylonbyxoops.net/modules/simplecontent/article.php?article_id=30

and results on forum on site:http://smartklub.pl

(used for that module profile 1.68)

4
3lr0n
Re: quality resized avatars and top users
  • 2010/6/20 12:14

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


This solution is good, but with the script is enough for my needs and is croosmodule usable.

The second point.. Iam going to try to swap the way the system calculate all the messages in forums and comments sent by users and bypass this data with the one present in mypoints module. So the new data will be the users points.

With this i can set any points for any message or contribution, for example 5 points for every piece of news, 100 points fors every comment.. etc..

I will check the code to find where the messages send is calculated, but if someone can help me would be great.

Regards
3lr0n
Spanish Overclocking Community xoops based site : www.overclocking.es

5
3lr0n
Re: quality resized avatars and top users
  • 2010/6/20 21:04

  • 3lr0n

  • Not too shy to talk

  • Posts: 167

  • Since: 2004/3/13


After looking for it I cant find where the post/comments variable is set in the code.

I mean, cant find where is the code that check how many forum post and how many comments does a user have.

Im planning to replace it with a code to check the points of a certain user in mypoints module.

Any help?

thks
Spanish Overclocking Community xoops based site : www.overclocking.es

6
ghia
Re: quality resized avatars and top users
  • 2010/6/20 23:56

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You have to issue a SQL command for every item of interest.
In many cases the user id is linked with the article, post or comment. Look out for the name of this field in the table where the items are stored and count them.
Eg forum posts by user with some_id:
select count(*) from xoops_bb_posts where uid some_id

Login

Who's Online

182 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits