m3rk0rd

+Clients
  • Content count

    481
  • Joined

  • Last visited


1 Follower



About m3rk0rd

  • Rank
    Advanced Member

m3rk0rd's Activity

  1. m3rk0rd added a post in a topic: reusable search block   

    I created a custom block to create a search form for use with my custom databases.  When I embed the block in my category and listing templates, it works fine.  When I embed it in my display template, it does not.  Can anybody suggest a code tweak that would get it to work in my display templates?
    Here is the code:
    <div class='general_box'> <h3>Search</h3> <form method='post' action='{$this->_database_url}'> <input type='hidden' name='do' value='search' /> <input type='text' name='search_value' class='input_text' /> <input type='submit' value='Search' class='input_submit' /> </form> </div> <br /> And here is a link to a database on my live site, where you can see the problem for yourself:
    http://ornithologyexchange.org/jobs/
    Thanks!
  2. m3rk0rd added a post in a topic: Adding images to the RSS feed   

    Did you get any help on this?  I'm interested too.
  3. m3rk0rd added a post in a topic: Filter IP.Content database by first letter of title field   

    Did you just do a one-time SQL query, or do you re-run it manually every so often to catch new/edited records?  I created a task that re-runs a bit of SQL code every few hours to solve a different problem, but it would work for this.  The only downside is that if a user submits a record expecting it to show up right away, they will be confused and disappointed when it doesn't.
  4. m3rk0rd added a post in a topic: Database Custom Search box or block?   

    I created a custom html block with the following code:
    <div class='general_box'>   <h3>Search</h3>   <form method='post' action='{$this->_database_url}'>     <input type='hidden' name='do' value='search' />     <input type='text' name='search_value' class='input_text' />     <input type='submit' value='Search' class='input_submit' />   </form> </div> <br /> I embed it in database category and listing templates.  I'm not sure how to get it to work if you just want to embed it in a page, not a database template.
     
    Also, it returns results using the listing template rather than the default search results page.
  5. m3rk0rd added a post in a topic: How to display an uploaded picture in the listing template ?   

    First, edit your database field options and uncheck the option to display the field in the listing template.  If you have that checked, it will just display the text like you have it.  Then, insert a new line of code before or after the foreach loop with your img code.
  6. m3rk0rd added a post in a topic: Display Information from 2 or more databases   

    Thanks, this is useful.  Hopefully 4.0 will have an elegant solution for this (I've heard there will be templates for child records) but in the meanwhile this will help.
  7. m3rk0rd added a post in a topic: Filter IP.Content database by first letter of title field   

    Did you find a good solution?  My need is similar.  I have a db with a date field, and my users want to filter by year.  
     
    I thought of trying to create a new field for year and then have it be automatically populated with the year using a hook.  I couldn't get it to work though.  If I remember right, its because the hook works when saving a new record, but not when editing an existing record (i.e. a bug). Also, the hook runs whenever a record in any database is saved/edited, so if you wanted to do this kind of thing in multiple databases, you'd have to cram all the code into one php file.  
     
    Bummer because there are many uses for automatically creating a new field when a record is created/edited.  opentype's suggesting is one, also you could have a "sort title" field different from your "title" field, like in iTunes.
  8. m3rk0rd added a comment on a blog entry: 4.0 - Profiles   

    8) It's nice to move the user's content to the profile page, but it still LOOKS like the same search engine-type results.  In order to see the user's content you have to click each category on the left one at a time. I'd like to see a combined results page.  If that's not possible, what about putting a little icon next to each content type with the number of items of that type the user has submitted.  That way, you wouldn't waste your time clicking on categories of content that don't have any results.
  9. m3rk0rd added a comment on a blog entry: 4.0: Quick Translating   

    Fantastic!  
    It would be great if there was a button to allow you to revert a string back to its original non-translated version.
    How easy will it be to give individual members permission to translate for us?  
    Will we be able to limit their permission to a particular language?
  10. m3rk0rd added a comment on a blog entry: 4.0 - IP.Downloads Version Control   

    If you don't upload new screenshots, will it keep the old ones?  If you do upload new screenshots, will it let you keep or replace the old ones?  Or is it possible to have different sets of screenshots for different versions?
  11. m3rk0rd added a post in a topic: What code do I add to a block to only have it visible to certain groups?   

     
    yes, ID numbers for the membership groups
       
    That's just the name of a hypothetical block.  You don't have to put blocks in there.  You could do this:
    <if test="IPSMember::isInGroup($this->memberData, array('4', '5', '6') )"> <p>Only users x, y, and z can see this.</p> <else /> <p>Users not x, y, and z can see this.</p> </if> Also, I didn't think you needed to close the else tag like Draffi did, but maybe that works too.  The way I coded it above also works.
  12. m3rk0rd added a post in a topic: Looking for a programmer/tech person in Australia to perform paid work on my forum   

    Try posting here:  http://community.invisionpower.com/resources/projects
  13. m3rk0rd added a post in a topic: Those familiar with ip content databases, please assist me   

    You might also try posting questions directly related to IP.Content in that support forum:  http://community.invisionpower.com/forum/428-ipcontent/
  14. m3rk0rd added a post in a topic: Those familiar with ip content databases, please assist me   

     
    I woudn't know how to do this with a single "code", like a password. But you could do something like the following:
    Create an account for each student and send them their username and password. Or let them create their own accounts. Create a custom IP.Content database where each record represented one student and his/her results.  The first field would be a member type-ahead field, the other fields would contain any other information for that student including their results. Create a page and embed the database. Populate the database with the exam results Send students a link to the page.  They can see their results. For admins/moderators you would want them to be able to see all the records when they view the page, but for students you would want them to see only their own record.  There is no option you can just select when designing your database to give this kind of permission, but you can get the same effect by editing the default database listing and display templates to include some if-else statements. You would need at least some basic knowledge of html coding, and some time to learn how to access and use member data, and maybe even a little bit of PHP.  People in these forums could likely help you along the way.  Another option is to submit a project request:  http://community.invisionpower.com/resources/projects
  15. m3rk0rd added a post in a topic: one record for one user... avoid to add another record to same user   

    I don't think there is a way to keep a user from submitting more than one record.  I too would find this feature useful. I've just hidden the button, but as you say its not hard to figure out how to add another record.