• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > eCommerce Factory Suite for Joomla CMS. > Raffle Factory > Explination of users?
Pages: [1]
« previous next »
  Print  
Author Topic: Explination of users?  (Read 1240 times)
lumo
Newbie
*
Posts: 24


View Profile
Explination of users?
« on: March 19, 2010, 01:53:10 pm »

Hi ,
Have read the user ACL Doc for Aution Factory, I assumed it applies to Raffle Factory but here is the problem.

I have no CB or JACL, just vanilla Joomla with Raffle Factory.

All Raffles are "owned " by one admin with administrator rights.

He can add, edit etc raffles no problem, normal regged users can buy tickets no problem.

The appropriate meus are shown /hidden for the 2 different groups.

The problem is when the admin (frontend) wants to close and choose a winner.
On every raffle, doesn't matter if all tickets sold or not, if the raffle is still running or not, he gets the message -

You must choose a winner!

When he clicks on both the "Choose Winner" button at the top (after the alert "Do you really want to?") or "Close to select winners!!" in the ticket tab he gets

You are not authorised to view this resource.

What permissions is he supposed to have to admin his own Raffles?
And why does he get asked to close / choose a winner on every Raffle even though they still have time to run and have tickets available?

And in the administration area of the component,
Firstly what do the toggle icons next to the users mean, there is no explanation that I can find.

Secondly, in the Settings--> General Settings-->User Limits
What is supposed to be configured here?
Again no explanations-....


I have to say I've found a lot more problems in the backend so far, a lot of the tables are coded to display non-existent or meaningless information left over from Auction Factory.

Example the Raffle List table only showed the raffle name and dates, the rest of the columns are from Auction and empty

The Statistics table doesn't show the admin (who owns all the raffles) or show how many tickets various users have bought.. just zeros.

I'm beginning to worry that this component is not going to work?

Lumo....
Logged
lumo
Newbie
*
Posts: 24


View Profile
Re: Explination of users?
« Reply #1 on: March 20, 2010, 03:47:58 pm »

Further update..
The meaningless icons in the Status column of the Admin-> Users need overlib included so you get a mouse-over label.

file admins.bids.html.php around line 30 (after the first php close) paste in

<script language="Javascript" src="/includes/js/overlib_mini.js" type="text/javascript"></script>

You'll then get a mouse-over label..

Further to the access problem above, this label now shows me that my designated Seller is a Seller but still gets told to Choose a Winner on all Raffles and when the button clicked or Close to select winners!! gets a
You are not authorised to view this resource. ....
« Last Edit: March 20, 2010, 07:37:13 pm by lumo » Logged
lumo
Newbie
*
Posts: 24


View Profile
Re: Explination of users?
« Reply #2 on: March 20, 2010, 07:29:43 pm »

More corrections for the Admin Users Details section

File admin.bids.php

from line 373
comment out

/*$query="select count(*) as nr_auctions,max(modified) as last_auction_date from #__bid_auctions where userid=$id";
   $database->setQuery($query);
   $res=$database->loadAssocList();
   $lists['nr_auctions']=$res[0]['nr_auctions'];
   $lists['last_auction_placed']=$res[0]['last_auction_date'];

   $query="select count(*) as nr_bids_won from #__bids where userid=$id and accept=1 ";
   $database->setQuery($query);
   $res=$database->loadAssocList();
   $lists['nr_won_bids']=$res[0]['nr_bids_won'];

   $query="select count(*) as nr_bids, max(modified) as last_date from #__bids where userid=$id ";
   $database->setQuery($query);
   $res=$database->loadAssocList();
   $lists['nr_bids']=$res[0]['nr_bids'];
   $lists['last_bid_placed']=$res[0]['last_date'];*/


and replace with

#Find number of tickets
   $query="select ticket_nr, count(ticket_nr) as ticket_count  from #__bid_tickets where user_id=$id ";
   $database->setQuery($query);
   $res=$database->loadAssocList();
   $lists['nr_auctions']=$res[0]['ticket_count'];
   
   #Find number of winning tickets
$query="select count(ticket_nr) as winner_count  from #__bid_tickets where user_id=$id AND winner =1 ";
   $database->setQuery($query);
   $res=$database->loadAssocList();
   $lists['nr_won_bids']=$res[0]['winner_count'];

   #Find last date for user
$query="select boughtdate  from #__bid_tickets where user_id=$id ORDER BY boughtdate DESC LIMIT 1  ";
   $database->setQuery($query);
   $res=$database->loadAssocList();
   $lists['boughtdate']=$res[0]['boughtdate'];

and in admin.bids.html.php replace line 245

<!--<td><?php if($lists['last_bid_placed']) echo $lists['last_bid_placed']; else echo '-';?></td>-->

with

 <td><?php if($lists['boughtdate']) echo $lists['boughtdate']; else echo '-';?></td>
Logged
lumo
Newbie
*
Posts: 24


View Profile
Re: Explination of users?
« Reply #3 on: March 21, 2010, 12:30:53 am »

Would appear the logic is wrong for "Choose a Winner" message showing on every raffle

file t_auctiondetails.tpl  line 58

{if $auction->is_my_auction && $auction->close_offer!=1 && !$auction->winner_id && !empty($bid_list)}

show "Choose a Winner" message

shouldn't it be

{if $auction->is_my_auction && $auction->close_offer==1 && !$auction->winner_id && !empty($bid_list)}

??
Logged
Factory Staff 02
The Factory Staff
Hero Member
*
Posts: 1912



View Profile
Re: Explination of users?
« Reply #4 on: March 22, 2010, 03:08:34 pm »

Hi,

For the choose winner task not authorised message you probably use Raffle ACL enabled and the get_winner task is missing from bids.acl.php
You can add the task in the above file in the var $_taskmapping array:
Just add a 'get_winner'=>'seller' at the end of the array so you will have:
             'buytickets'=>'all',
             'get_winner'=>'seller'
(instead of now 'buytickets'=>'all')

The Choose a Winner message is actually a message of winner selection option not inquiring:
So a better message is "You can start the selection of the  winner!".
This message is a deprecated version message that will be corrected right away allong with the ACL missing task issue .

Cheers,
Sorin
Logged

The Factory's Development Team member.
lumo
Newbie
*
Posts: 24


View Profile
Re: Explination of users?
« Reply #5 on: March 22, 2010, 09:57:00 pm »

Thanks Sorin,
Access problem solved with the addition.
The problem with  Choose a Winner message is not so much the message but that it appears on every Raffle owned by the user even if it's still running and has tickets still available.
The  change - (as below)

{if $auction->is_my_auction && $auction->close_offer==1 && !$auction->winner_id && !empty($bid_list)}

solved this, the message now appears when the Raffle is closed.

What then I see is 3 buttons

Extend Raffle
Republish
Cancel Raffle

How do I choose a winner now, can it only be done from the backend?

Cheers
Logged
Factory Staff 02
The Factory Staff
Hero Member
*
Posts: 1912



View Profile
Re: Explination of users?
« Reply #6 on: March 23, 2010, 09:38:42 am »

Hi again,

That's should have been the ideea of the message:
to notice an user that he can start winner selection:

These conditions must be applied for this
$auction->is_my_auction - I am the auctioneer
$auction->close_offer!= 1 - if it a raffle is closed then either is won either is expired or banned and no winner can be selected in this case
!$auction->winner_id - there is not a winner selected
 && !empty($bid_list) - there ARE tickets bought ( i can't start selecting a winner from 0 users)

For winner selections you have an option for automatic choosing of the winner by clicking the button you where having issues with ACL.
That leads to the winning selection process in stages. The cron must be enabled so this functionality can have effect.

Sorin
Logged

The Factory's Development Team member.
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script