Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


kiwipearls

431 posts

Ultimate Geek


#15685 3-Sep-2007 14:36
Send private message

Looking for PHP/SQL savvy students who want to have references or additions to their portfolios...


I need help on the following...


I don't know if I am posting in the right place or not..So my apologies if I am in the wrong place.


I have installed PHPbbAuctions Standalone [url]http://www.phpbb-auction.com/[/url] on my website, but there are a few hacks I want to make to it to make it much more beneficial for my webuser needs.


The site I am using is a fan site, set up by me, so it is all free.  I make no money off the website [url]http://runeauctions.isgreat.org[/url].


I want to add a hack to the phpauction that additionally instead of creating a new auction offer, members can create a new virtual classified add instead.


My site is for a game called Runescape, allowing people to auction their items or multiple items.  The new offer at the moment works best for auctions that are singular items and not multiple quantities.


So how I foresee this to work is:


For instance a member has 100 attack potions they want to sell, they would therefore click on a link in the auction_room.php taking them to a classified_offer.php (instead of clicking on the already existing offer button, which takes them to auction_offer.php)


The price field would be price per item, ie 200 and it would then have a total for the whole auction 100 super att pots @ 200 each = 20,0000.


Then when members who want to buy Attack potions see the classified it then opens classified_offer_view.php (different to the auction one of auction_offfer_view.php)


On this page they would see the Quantity available (if other sales had been made) would be able to enter a quantity of how many they would like to buy (or buy now for all of them) and the script will update the sale price and display:  "You want to buy x amount of 'item' @ $ each - A total of $TOTAL"

Once they press ok to make the purchase, the script then updates the quantity left, until a 0 balance is reached, at which point the classified is then unlisted, but still available for the member to re list again if they have more of the same item available for sale.

This Virtual Classified hack would need to update in the auction_store.php and auction_myauctions.php.

I honestly don't know what is involved, I am not good at scirpting, and if it as simple as it seems in my description .

I'm thinking if there is anyone out there that wants to do this hack, to a hack to further their php portfolio.  I will give full credits on my site to anyone that can assist me.  Unfortunately I am just a stay at home mum doing this to make my enjoyment of runescape and the ingame merchanting involved much more easier.






"In the real world as in dreams, nothing is quite what it seems" - The Book of Counted Sorrows





Senility Guild

 


Create new topic
NokiaRocks
364 posts

Ultimate Geek

Trusted

  #85104 3-Sep-2007 16:23
Send private message

You could try something like

$total = $quantity * $price;
echo "You want to buy $quantity amount of $item @ $price each - A total of $total";
$amountleft = $amountofitem - $quanitiy;

if($amountleft == '0')
{
//Move database field to an unlisted table
}
else
{
//update quanitity in listed field
}

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.