Mover of the moment:

Now online:

None

1stMovers on Twitter

Forum: Server freeze when using Autotweet http://bit.ly/bXOQrg
Forum: article not posting to facebook http://bit.ly/ab06G4
Forum: SEF Advance? http://bit.ly/arQnDs

Please read this before you post

I'm Ulli, the developer of 1stMover extensions. Most 1stMover extensions are free of charges or fees and this is the forum site where you can get free support for these extensions. The word "free" is important and it means too, that I'm doing these free things in my free time and sometime I'm not able to answer all the questions posted here. I would like to ask for your patience.

If you want to help me (writing manuals, answering the posts here) then this will be very appreciated.

Before posting new post, please read the documentation and the previous forum posts as answering the same questions takes a lot of time which is missing for developing and for answering not yet answered posts.

Thank you very much for your understanding, Ulli

 

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 12
TOPIC: Problem with Random User
#31
Problem with Random User 11 Months, 1 Week ago Karma: 1
Hi. I'm having a bit of an issue with your Random User module. I've set the Excluded users field to include both Administrator and admin ("Administrator, admin"), but that account still shows up randomly. How can I exclude this account from showing up?

Also, it seems as though it's pulling the avatar image from the thumbnail that gets displayed in the Users List. Is there any way to get it to pull the avatar image that's displayed on the user's profile instead since it's bigger?

Also, is there any way to make this module display random users who meet particular criteria? For example, I'm working on a boating site where users select whether their boat is Motor or Sail. I'd like to have two random user boxes, one for Motor and one for Sail. Is this possible?
dosboy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/08/25 07:05 By dosboy.
The topic has been locked.
 
#32
Aw: Problem with Random User 11 Months, 1 Week ago Karma: 12
Hi dosboy,

thanks for your post.

Excluded users: You have set the ID of the users, not the user name in the field. Example: "16, 62, 64". You can find the id in the user management of community builder or joomla. Normally the admin account has the id 62, so you have to enter "62" in the excluded user field.

Avatar image: I use the standard community builder function to get the avatr image. This function returns the thumbnail image and I think this is a good think because the full image is bigger and needs more time to load. For the next version of CB Random User I will have a look on this (If it is possible, I will make this configurable).

Particular criteria: This is an interesting idea. Also this is not easy and much work! I have marked this for the next version.

At the moment i work on some other extensions (and of course this project is my hobby and i have not much time for that). So I can't tell any date for the next release at the moment. (Sorry!)


best regards
Ulli
ustorck
Administrator
Posts: 796
graph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#33
Aw: Problem with Random User 11 Months, 1 Week ago Karma: 1
Thanks for your quick response. I'll test out the excluded users as soon as I get a chance.


Avatar image: I use the standard community builder function to get the avatr image. This function returns the thumbnail image and I think this is a good think because the full image is bigger and needs more time to load. For the next version of CB Random User I will have a look on this (If it is possible, I will make this configurable).


Any chance you could point me in the direction of which file I'd need to edit to pull the full image (and perhaps where in the API documentation I should look)? I'm new to Joomla!, PHP and CB, but I'm a seasoned programmer and not afraid to get my hands dirty.


Particular criteria: This is an interesting idea. Also this is not easy and much work! I have marked this for the next version.


That would be great. If you're taking feature requests, the other one that I'd like to make is setting a duration on the selected user. For example, on the boating site I mentioned, I'd like to have a "Featured Boat" display on the front page. However I'd like that boat to be randomized on a daily basis, rather than on a per-pageload basis. So basically everyone that hit my front page within a 24 hour period would see the same random profile, but after that it would select a new one to display for 24 hours, and so on.


At the moment i work on some other extensions (and of course this project is my hobby and i have not much time for that). So I can't tell any date for the next release at the moment. (Sorry!)


I completely understand and greatly appreciate your quick response to my issue. Any assistance you can give on the image point would be very helpful as well. Thanks for a great module
dosboy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#34
Aw: Problem with Random User 11 Months, 1 Week ago Karma: 12
Ok, here is a quick workaround to show the original image. If you use this workaround, this is for your own risk and this is not officially supported by me...

1. Go to file helper.php in directory "/modules/mod_cbrandomuser" and open this file in an editor. (Also you can edit the file locally and upload later.)

2. Go to line 52 and remove or comment out "$avatar_image_url = $cbUser->avatarFilePath();"

3. Insert at this position the following code:
Code:


$avatar = $cbUser->_cbuser->avatar;
if (strlen($avatar) > 0) {
   $avatar_image_url  = JURI::base() . 'images/comprofiler/' . $avatar;
}
else {
   $avatar_image_url  = JURI::base() . 'components/com_comprofiler/images/english/tnnophoto.jpg';
}




I hope this will work for you!
ustorck
Administrator
Posts: 796
graph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#36
Aw: Problem with Random User 11 Months, 1 Week ago Karma: 12
Hi,

i have now integrated two of your suggestions (time interval for random user, image type) in the new version 1.3.

See the download section for the new version.

best regards
Ulli
ustorck
Administrator
Posts: 796
graph
User Offline Click here to see the profile of this user
The topic has been locked.
 
#37
Aw: Problem with Random User 11 Months, 1 Week ago Karma: 1
Thanks! The update works great.

Any idea on the timeframe for selecting the user based on field criteria? I really need this functionality for the site I'm working on.

Also, one more request since I have this dialog open ... In the random user display, I'd like to be able to select additional fields to display along with the picture and name. This is nice-to-have.

Thanks again for the update. Greatly appreciated.
dosboy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The topic has been locked.
 
Go to topPage: 12
Moderators: ustorck
toolbar powered by www.mit3xxx.de