Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter dlvonde

    (@dlvonde)

    thanks for the replies everyone I’ll keep looking. Setting up shop without an order limit is just not feasible as every order costs us money and there are some out there who are trying to completely replicate our video library which is not the intended purpose of the “store”.

    The current setup is using a platform called XCart Gold but the guy who built it spend 100+ hours customizing it to make the ordering system charge 1 penny per item then apply a 1 penny discount per item at checkout..etc. I was hoping there was a newer platform that was easier to configure with the required settings.

    Forum: Hacks
    In reply to: Attempting Easy Uploader Hack
    Thread Starter dlvonde

    (@dlvonde)

    if anyone’s reading this..I did figure out how to give BOTH admins AND editors access to the easy upload plugin.

    in the wp-easy-uploader.php file, do a find replace:
    find: manage_options
    replace: edit_others_posts

    you could use other keywords to give even more people access to the uploader, it’s up to you.

    theres 3 places it will replace and now the option will pop up/become functional when you log on as an editor.

    Forum: Hacks
    In reply to: Attempting Easy Uploader Hack
    Thread Starter dlvonde

    (@dlvonde)

    well I ended up just gutting out the other radio buttons so manual path was the only one there, therefore the selected one :).

    Then I added some inline instructions like “Step 1: do this, Step 2:..etc.”

    Finally right below the manual uploads textbox I added the paths to copy/paste based on what type of file you are uploading

    not the most elegant solution, but it works and keeps me from having to give out my ftp account info.

    Thread Starter dlvonde

    (@dlvonde)

    What would be even better is if when I upload a file, it checks the last 3 characters and automatically fills in the manual text box with the correct path.

    The coolest solution would be to change the radio buttons to ppt, audio, pdf, but The first solution would be MUCH easier to tack on to the existing code with minor modifications (if only I knew what they were!)

    Thread Starter dlvonde

    (@dlvonde)

    Ok in addition to the code above I found the addRadio function that will probably assist in determining what to do. It’s all greek to me. I’ve coded in c++, java, etc. but i’m having a problem getting my head around this stuff.

    https://pastebin.com/duLpq4Qq

    Thread Starter dlvonde

    (@dlvonde)

    ok…let’s try this..from pastebin:

    https://pastebin.com/CqYZm02Y

    lines 18 and 19 are the ones I modified here. I tried “\n”, “.PHP_EOL.” and many combinations in between.

    For automatically selecting the manual path radio button I’m not sure what to do. Line 3 is where it creates the button and the only thing different between it and the other radio buttons is the ” , false” towards the end of the add radio button function. I took it away and put it in the same place in the manual path radio button add but it still kept the uploads button selected.

    Thread Starter dlvonde

    (@dlvonde)

    well now I’m back to square one. I had a clumsy workaround where I’d just paste all the code in a “dummy” post with instructions on how to make a new post and change some of the text in the tags, but this depended on other users being able to upload to my site via ftp. Apparently dreamhost won’t allow me to give ftp access to others within my domain sub-directories so they HAVE to upload from within WordPress…so now I’m back where I started. I need to see if I can do something like this:

    1) in the new post/edit post window have new buttons such as, Upload PPT, Upload PDF (Upload audio is already there.)
    2) When PPT’s are uploaded they should automatically go in one folder, PDF’s in another, Audio files in another.
    3) After uploading the files, each file type should be wrapped in a different html tag. For instance, powerpoint files will be float:right, point to the PPT path, and also have an img source of pptIcon.jpg. etc.

    Any help? My only other option is to give several people my admin login info for the ftp site which could be very dangerous!

    Thread Starter dlvonde

    (@dlvonde)

    Alright, I think I found the solution to part 1 by using the custom upload dir plugin. I’m comfortable settling with setting upload path by category (wp-content/uploads/%category&

    Now, I’d like to automatically wrap the powerpoint path in an html tag that sets it to float:right, gives the path to the image icon..etc.

    Currently I’m using the csv importer and excel functions to automate the file wrapping part..but I’d like it to be one neatly packaged solution from the post editor.

    Thread Starter dlvonde

    (@dlvonde)

    ok..let me break this down

    Step 1) When uploading a file from my computer, how would I make a function that says “if file is .ppt, upload here, if it’s .pdf, upload here, if it’s .mp3, upload here”

    2) Then how do I make sure the .ppt and .pdf file gets wrapped in my custom html tag to point to the right paths,use the right style..etc.?

    Thread Starter dlvonde

    (@dlvonde)

    alchymyth,

    thanks for putting up with me..I’ve looked at that codex page many times and thanks to “selective viewing” or something of that nature I always missed the array part of the argument! doh!

    Thanks for the other code as well. I’ll slow down and copy/paste a little more in the future.

    Thread Starter dlvonde

    (@dlvonde)

    ok here’s what I’ve done so far:

    Created a Sermons 2011, Sermons 2010, Sermons 2009..etc. categories. Made these categories menu items so sermons 2011 currently is the parent menu renamed to “sermons” and the others display as sub-menu’s.

    I’ll do the same for articles, bulletins, etc.

    When I click on the sermon category I have an if statement at the top of category.php that sees if the category is sermon, article, etc. and for now just types out “this is a sermon”, “this is an article”, etc. I will pretty it up with css, pictures, links, whatever later.

    I don’t care anymore about making the posts look different..I’m more concerned with keeping it simple :).

    So back to 2 outstanding questions:
    1) Can I write an if statement such as:
    if category name contains sermon then xyz
    I tried using an is_child() function I found online. I stuck it in my functions.php and used it in my if statement in category.php but it didn’t work right.

    2) Can anyone recommend a good plugin for bulk importing of 100’s of posts via csv file. I’m also going to upload a bunch of powerpoint and pdf files and would like to be able to enter the html link tag in the .csv files post content column.

    Thread Starter dlvonde

    (@dlvonde)

    thanks esmi.. I think my new approach will be
    Create 2 main categories (sermons and Publications..this is for a church website)
    Then create multiple sub-categories for each year (ie Sermons_2011, Sermons_2010, etc.) and make sure when I’m loading in my “retro” data I assign it to the correct category.

    Then edit the category.php file to say “if iscategory(sermons_2011, sermons_2010…etc.) Then display this static block with info, links, etc., End the if and then have it continue the loop. This sounds much less difficult than the others….is it possible to have wildcards in the argument?..like if iscategory(sermons*) ? Just trying to think of a way to not have to go back and edit the php file annually..no biggie though.

    OK..so now..I’ve got several hundred posts of bulletins, articles, and sermons with pdf and ppt attachments I need to load up on the page, is there a trusty plugin that will allow me to put all this in a csv file (including the html link tags for the file download)?

    Thread Starter dlvonde

    (@dlvonde)

    ok this is ridiculous! let’s step back and see if there’s a simpler way of doing things.

    I have 2 categories, I want 1 category to show on one page and one category show on another. This can be done quite simply in wordpress but only if it’s a posts only page, not if I want to display some static information at the top. I want to display static information at the top, then call all posts of that category.

    Additionally, I’d like to only show posts from the current year on that page with other links or subpages to prior years for that category.

    I have to believe there is a simpler way of getting the data out than creating new custom templates for each category/year combination page.

    If there’s really no condensed way to tell wordpress to give me what I want out of the posts then I suppose I’ll make a bunch of sub-categories under my categories for the year, which is redundant but at least the functionality is built in.

    Thread Starter dlvonde

    (@dlvonde)

    well I took the category.php template and decided to try to use it, but it doesn’t contain the loop, but rather calls this:

    <?php
        /* Run the loop for the category page to output the posts.
         * If you want to overload this in a child theme then include a file
         * called loop-category.php and that will be used instead.
         */
        get_template_part('loop', 'category');
    ?>

    so now i’m off to find the get_template_part function and see if I need to copy it, hack up the query, and then call it from here instead. This seems so complicated just to get back a different set of posts.

    again I’m using the graphene theme so if anyone has any pointers I’m all ears.

    Thread Starter dlvonde

    (@dlvonde)

    well apparently you only get to edit your post a few times and then the edit link goes away making you create another post. I tried to create a custom php page and pointed one of my pages to the template, but it either displayed nothing but black and white or looked exactly the same as the “default page” template.

    It looks like the template page to copy depends heavily on the theme being used as there is a loop.php file that seems to contain all the loop info and the other files that show posts seem to just be pointing back to it somehow.

    I’m using the graphene theme..do I need to specifically go looking for help modifying this theme? Surely it isn’t this difficult to pull back posts based on 2 simple criteria?

Viewing 15 replies - 1 through 15 (of 21 total)