[0.7.3] Simple Sell from browse addon

Discussion in 'Mod Archive' started by andre88uk, May 8, 2009.

  1. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    Well hello everyone i stumbled accross this software yesterday and have been fiddling .

    The coding seems good but some user functoinailty was not how i wanted it so i have here released my FIRST (of many) FREE addon.

    Basically when a user clicks a category on the left there is normally a list of sub-cats and items for sale .. or if there is not item for sale a message comes up saying no items found.

    What if a person then thinks ahh i can sell something here... they have to click sell at the top then select the cat (if they can remeber it by this point) then fil the form in.

    My simple mod loses some of these clicks and in effect may lead to more people selling on the site.
    Its only small so mods are list below in whic file too :D

    Enjoy.

    Sell.php:
    find:
    PHP:
    $ERR "ERR_";
    ;
    after add:
    PHP:
    if(isset($_GET['cat']) && $_GET['cat'] != ''){ 
        
    $_SESSION['SELL_sellcat'] = $_GET['cat'];
    }
    templates/default/browsecats.html
    find
    PHP:
    {L_198}
    after add
    PHP:
    <br>
                <
    a href='sell.php?cat={ID}'>{L_198_l}</a>
    languages/EN/messages.inc.php
    add
    PHP:
    $MSG['198_l'] = "Sell An item in this category";
    Tada.. done .. :D

    Any comments feel free to reply/message me
     
    Last edited: May 8, 2009
  2. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    oh cool idea its probably better if you use isset as well as of using not equal

    PHP:
    if(isset($_GET['cat']) && $_GET['cat'] != ''){
     
  3. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    but if $_GET['cat']!= '' then it is set.. lol i rarely use isset for any of my coding and i got a social networking site lol..
     
  4. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    i know its just that if anyone has strict error messages then it throw an error if it isnt set ...well a notice. Theres probably no point tbh i just like hassling people :p
     
  5. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,621
    Likes Received:
    165
    Mmm, takes me to category selection block with no category selected.
     
  6. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    you could try changing
    PHP:
    if (!isset($_SESSION['SELL_sellcat']) || !is_numeric($_SESSION['SELL_sellcat'])) {
    to
    PHP:
    if ((!isset($_SESSION['SELL_sellcat']) || !is_numeric($_SESSION['SELL_sellcat'])) && !isset($_GET['cat'])) {
    idk but that should stop you being forwarded the the select category page.
     
  7. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,621
    Likes Received:
    165
    Thanks Renlok.

    Does take you to the sell form but blank category.

    Getting there! ;)
     
  8. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    i dunno why that isnt working... when i try it on my script ...

    www.auction.serencomms.com try it with any of them once u registered of course... lol
     
  9. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,621
    Likes Received:
    165
    Thanks, I'll have to come back to this one sometime. Figured it would be an easy one and don't have time right now to trouble shoot. Liked the idea though.
     
  10. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    Well look on my site it works... thats the only edits i made... mind u mine is set to the 0.7.4 release (well thats what i downloaded)
     
  11. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,621
    Likes Received:
    165
    Thanks, I believe you but wont do me any good to take a look since it's something with my files or edits.

    I'll get to it but just not enough value added for me to divert my attention right now. Gotta make some $$!
     
  12. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    Yeh make $$ by getting people to use ur site... the more they are encouraged to sell the more people use it... the more there is for sale. the more people visit the more they buy....
     
  13. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,621
    Likes Received:
    165
    I get you but site not ready for prime time yet! I will post no site before it's time!

    There is a life outside WeBid that I simply can't avoid. Juggle faster.
     
  14. hoopster

    hoopster New Member

    Joined:
    May 24, 2009
    Messages:
    1
    Likes Received:
    0

    This didn't work for me for some reason. I mean that it displays the message but there is not link or anything to sell a new item.
     
  15. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    Hmm whats a link to your site ? i will see if i can find out why quickly .. it worked fine on mine :S
     
  16. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    This mod is also working fine with 0.8.1.
     
  17. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    i just done this as is .. and it worked fine on 0.8.2 EXACTLY as posted...
     
  18. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,621
    Likes Received:
    165
    Finally back to this. I'll beat your too it...works in the upcoming 0.8.3 too.

    Renlok has noted that 0.8.3 is planned to be the current Repository version which I'm using.

    Simple and effective, thanks for thinking of it.
     
  19. andre88uk

    andre88uk Member

    Joined:
    May 8, 2009
    Messages:
    143
    Likes Received:
    3
    i dont get this repository stuff and when the new version comes out i will be cautious about upgrades i've made a fair few changes to the layout and will be gutted to overwrite them all... Also i need to speak to ren. i know it will be a pain in the A**E but i wondered if he could post more detailed notes on the revisions when he makes them lol.. Bug fix doesnt let me know if i need to use it or not :p
     
  20. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,621
    Likes Received:
    165
    Been there, done that. Recently had to back down to proper 0.8.2 because edit_date.php was causing errors in r.191 at least for me.

    0.8.2 fixed it and I also had to use that old version in the latest Repository (soon to be 0.8.3). I let Renlok know about this and had also posted in Bugs but not enough testing to lock it down as confirmed.

    With the one file exception noted above, and since it was noted to be the upcoming 0.8.3 and I have some other commitments coming up, I did take the plunge and thought I would let you know that it was working to save you a test step. :)

    Your mileage may vary!
     

Share This Page