Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Forum: Hacks
    In reply to: Plugin or HAck it out?
    Thread Starter JusHerb

    (@jusherb)

    Hey bcworkz,

    I understand that you do not have interest in my project but just wondering if you might know if there is a way to pull this off. I have a custom field that holds a dollar amount (Ex: 10.00). I can pull the dollar amount from a custom field with a variable that contains the amount (Ex: $myAmount = 10.00), is there a way through php to multiply the dollar amount held in this variable with a number entered in a “text” input field? (Ex: $myAmount = 10.00 $textField = 8.0 , $myAmount * $textField = $fieldTotal_1) I would like to add the product of field one with the product of two more fields that are also multiplied in the same way (Ex: $fieldTotal_1 + $fieldTotal_2 + $fieldTotal_3 = $overall_Total). I want to have all of these fields added together to produce a total (Ex: $overall_Total). I would like to echo these totals out on another page. Is something like this possible?

    Forum: Hacks
    In reply to: Plugin or HAck it out?
    Thread Starter JusHerb

    (@jusherb)

    Man the fun has already begun! Thanks for the support in this learning process. If I had only kept to what I originally set out to do years ago which is learning the in’s and out’s of php I would have been set. But I have to kind of brush up where I left off in my learning process of php while I try my hand at this system. Since we last spoke I have found a plugin that gets me half way there. I found a plugin call WP Timesheets which allows a user to post time entries. My only hold up with this is that it lacks alot of the functionality I need. However I have gotten a kick out of the coding process and have shocked myself at some of the things that I have been able to pull off thus far. I have updated the main structure to display User, Date, Job Title, Hourly Wage, Time In, Time Out, Hours, Total. The User grabs the display name, Job Title actually grabs the “User Role,” which I have custom roles for each job title, Hourly Wage I was able to pull this off with the Advance Custom Fields plugin. Once I created the field which was user_wage I was able to call it to the list with the Advance Custom Fields API. The “Time In” and “Time Out” fields I hate because it seems as though it only stands for one day. Meaning the entry would only be for one day of work. I’m kind of confused of how I’m going to carry on from here in terms of the time but like you said I’m just looking to get the bare bones in place then tweak from there. My challenge now is getting the “Hourly wage” to multiply by the “Hours” field I tried using a mathematical Operator for this and it did not work I guess because I’m asking the variables to pull the user_wage and not a real number. If you would like to see screenshots or if you can skype, facetime, teamviewr with me I do not mind and that would be awesome.

    Forum: Hacks
    In reply to: Plugin or HAck it out?
    Thread Starter JusHerb

    (@jusherb)

    Hey bcworkz, The solution you offered is right up my alley of thinking. I have no idea of where to start with the process. I do have programming knowledge and I am willing to learn. I will look into child themes but I never worked with a child theme before. I was thinking of approaching this by customizing a invoice plugin that already exist. Is this a recommended way to start? I think I may need the normal post type as well because I post stories on the front end of the site. If you can give me another push in the right direction I would definitely appreciate it.

    Here is a link to my gallery: https://crockerandfoster.com/?page_id=75

    At least yours in working I’m still stuck on the loading icon. Any thoughts?

    Thread Starter JusHerb

    (@jusherb)

    WHAT!?

    Anyways….

    Here my solution to my problem if there is anybody searching for the same solution

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    <?php query_posts('posts_per_page=3&cat=6&paged='.$paged); ?> 
    
      <div id="content">
    
    <?php if (have_posts()) : ?>
    
    	<?php while (have_posts()) : the_post(); ?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    			<p class="post-date">
    				<span class="date-day"><?php the_time('j') ?></span>
    				<span class="date-month"><?php the_time('M') ?></span>
    			</p>
    			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
    			<div class="entry">
    				<?php the_excerpt(); ?>
    
         </div>
           <p class="metadata">Posted by <?php the_author() ?>.<?php edit_post_link('Edit', ' | ', ''); ?></p>
    		</div>
    
      <?php endwhile; endif; ?>
    
    	<?php global $wp_query;
    
    $big = 999999999; // need an unlikely integer
    
    echo paginate_links( array(
    	'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
    	'format' => '?paged=%#%',
    	'current' => max( 1, get_query_var('paged') ),
    	'total' => $wp_query->max_num_pages
    ) );
    ?>

    This will give you a list of post for an category on your site with working page Navigation

    Thread Starter JusHerb

    (@jusherb)

    Check out this page https://gods-image.com/news-2

    [No bumping. This is a volunteer-staffed forum – not online chat. If it’s that urgent, consider hiring someone.]

    Thread Starter JusHerb

    (@jusherb)

    At this point I have no real preference on what code is on the page. I’m just trying to accomplish my goal of having my post show as they are but just 4 to a page in that category of “News” but with Page Navigation (Prev 1 2 3 4 Next)… So to answer your question I dont care how i get there as long as i figure it out… What do you suggest?

    Thread Starter JusHerb

    (@jusherb)

    Right, Thats my problem I have no clue on how to use WP_Query() to produce what I need. 4 post per page coming from the category with navigation…. Didnt think it would ruff me up this bad… Any suggestions on how I can accomplish this? I am clueless at this point. Its there in the code but I have no clue on what to do to get started and finish it

    Thread Starter JusHerb

    (@jusherb)

    @esmi somehow I need to tie both queries into one… I know it may sound kind of crazy. But I am new to php. It will more than likely end up being the second query which displays page Navigation. See the issue is I tweaked this custom query sometime back and here recently I needed to add navigation because of how the page is built. I need to be able to call 4 post per page. I need to some how pull from the first query to finish the second query. Basically I just need the navigation to work with the post category. Make sense?

    Has there been any changes to this as of today? Is it possible to have a calendar display in the admin dashboard?

    Hey Mike, You had a reply for Simple Local Avatar Plugin… Man I’m stuck on this user-photo plugin can’t seem to get the profile picture I uploaded to display in the user list section and the admin bar. I see where you said the author does not support any longer. If I use the plugin you suggested will it support this right away or will I need to create special functions and stuff?

    Hey Hope, has there been any progress with Integration with Buddypress profiles? How do you use this plugin on your site? Maybe you can share some helpful info.

Viewing 13 replies - 1 through 13 (of 13 total)