20i hosting

WordPress theme needed

Discussion in 'Wordpress' started by Systreg, Nov 9, 2017.

  1. Systreg

    Systreg Well-Known Member

    Joined:
    Oct 2008
    Posts:
    6,758
    Likes Received:
    123
    Does anyone know of an ad listing type of WordPress theme that allows people to upload PDF's to their listing? I have a Classipress theme which would normally do what I need, but it only allows image uploads on listings, and I need to have the option for people to upload PDF's.

    I know some job board themes allow PDF's so people can upload CV's, but those themes generally don't have options for uploading images, or if they do, they're small thumbnail sizes, so most of those aren't suitable.

    I did find an old topic on the AppThemes forum for changing some php code to allow PDF uploads on ClassiPress, someone gave part of the code that needed changing, and a link to another forum page with full instructions, but that page no longer exists, otherwise I'd have tried that.
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. dee

    dee Active Member Acorn Supporter

    Joined:
    May 2013
    Posts:
    633
    Likes Received:
    65
    If you have a look in the upload page source code it will probably be an array your looking for to add to

    Code:
     // Set the allowed file extensions
          $fileTypes = array('jpg', 'jpeg', 'gif', 'png', 'zip', 'xlsx', 'cad', 'pdf', 'doc', 'docx', 'ppt', 'pptx', 'pps', 'ppsx', 'odt', 'xls', 'xlsx', '.mp3', 'm4a', 'ogg', 'wav', 'mp4', 'm4v', 'mov', 'wmv' ); // Allowed file extensions
    
    Do a search for 'file types' and it may come up
     
  4. Systreg

    Systreg Well-Known Member

    Joined:
    Oct 2008
    Posts:
    6,758
    Likes Received:
    123
    Yes, there was something similar to that mentioned in the old AppThemes forum post I mentioned above, it was part of the instructions, I did add it in to allow PDF's in the code and saved it, but nothing happened. There are other things to change in the code which aren't listed as the forum page with it on, no longer exists, so can't do it, plus it was for a much older version of ClassiPress from 2010/11, so not sure it would have worked on my newer version anyway.
     
  5. dee

    dee Active Member Acorn Supporter

    Joined:
    May 2013
    Posts:
    633
    Likes Received:
    65
  6. Systreg

    Systreg Well-Known Member

    Joined:
    Oct 2008
    Posts:
    6,758
    Likes Received:
    123
    Thanks Dee, had a look and read the page, will give it a try, but that seems to be for standard WordPress rather than a third party WordPress theme, as WordPress already allows PDF uploads as standard.

    I've found an AppThemes developer who made a nicer version of ClassiPress in the AppThemes market place, I've posted a message to him asking if his php can be edited to include PDF uploads, waiting for a reply, if so, I'll buy his theme.