WordPress.org

Ready to get started?Download WordPress

Forums

WP Resume
Coding causes terrible display (9 posts)

  1. bamajr
    Member
    Posted 3 years ago #

    Resume Options > Contact Information = data set in this area is all over the screen and doesn't display even remotely the same in all browsers

    Resume Options > Resume Order - I created 5 Sections for my resume. However, only the first data set can be moved around. None of the other data sets can be moved.

    Positions listed with no data/content stack on top of themselves.

    Very little consistency between various web browsers.

  2. Ben Balter
    Member
    Plugin Author

    Posted 3 years ago #

    What browser/version are you using? I just verified, and all looked right in Chrome, Firefox, Safari, and IE.

    Also, would it be possible to send/attach a screen shot?

    Sorry to hear you're having trouble, but greatly appreciate the feedback.

  3. Richard Vencu
    Member
    Posted 3 years ago #

    I have the same problem, only first 3 sections can be moved around, the following ones cannot be moved.

    How to send the screenshot?

  4. Richard Vencu
    Member
    Posted 3 years ago #

    the culprit here is one too many </ul> tags in this section of code, it gets messed with ifs and so on. Still trying to figure them out:

    <?php foreach ( wp_resume_get_sections(false) as $section ) { ?>
    				<li class="section" id="<?php echo $section->term_id; ?>">
    <?php 				echo $section->name; ?>
    					<ul class="organizations">
    <?php				$current_org='';
    					$posts = wp_resume_query( $section->slug );
    					if ( $posts->have_posts() ) : while ( $posts->have_posts() ) : $posts->the_post();
    						$organization = wp_resume_get_org( get_the_ID() );
    						if ($organization && $organization->term_id != $current_org) {
    							if ($current_org != '') {
    ?>
    									</li>
    								</ul>
    <?php 						}
    							$current_org = $organization->term_id;
    ?>
    							<li class="organization" id="<?php echo $organization->term_id; ?>">
    								<?php echo $organization->name; ?>
    								<ul class="positions">
    <?php						}  ?>
    								<li class="position" id="<?php the_ID(); ?>">
    									<?php echo the_title(); ?> <?php if ($date = wp_resume_format_date( get_the_ID() ) ) echo "($date)"; ?>
    								</li>
    <?php 				endwhile; ?>
    								</ul>
    <?php				endif;	 ?>
    					</ul>
    				</li>
    				<?php } ?>

    At some

  5. Richard Vencu
    Member
    Posted 3 years ago #

    well, I found no other solution but to count the open ul and li and avoid closing them when the count is zero. It is working for me now:

    foreach ( wp_resume_get_sections(false) as $section ) { ?>
    	<li class="section" id="<?php echo $section->term_id; ?>">
    <?php 				$li=$li+1;
    		echo $section->name; ?>
    		<ul class="organizations">
    <?php				$ul=$ul+1;
    		$current_org='';
    		$posts = wp_resume_query( $section->slug );
    		if ( $posts->have_posts() ) : while ( $posts->have_posts() ) : $posts->the_post();
    			$organization = wp_resume_get_org( get_the_ID() );
    			if ($organization && $organization->term_id != $current_org) {
    				if ($current_org != '') {
    ?>
    					</li><?php $li=$li-1; ?>
    					</ul><?php $ul=$ul-1; ?>
    <?php 						}
    				$current_org = $organization->term_id;
    ?>
    				<li class="organization" id="<?php echo $organization->term_id; ?>">
    					<?php $li=$li+1;
    					echo $organization->name; ?>
    					<ul class="positions">
    <?php							$ul=$ul+1;
    				}  ?>
    					<li class="position" id="<?php the_ID(); ?>">
    						<?php $li=$li+1; echo the_title(); ?> <?php if ($date = wp_resume_format_date( get_the_ID() ) ) echo "($date)"; ?>
    					</li><?php $li=$li-1; ?>
    
    <?php 				endwhile; ?>
    		</ul><?php $ul=$ul-1; ?>
    <?php				endif;	 ?>
    		<?php if ( $ul>0 ) {echo '</ul>'; $ul=$ul-1;} ?>
    	<?php if ( $li>0 ) {echo '</li>'; $li=$li-1;} ?>
    	<?php } ?>
  6. Richard Vencu
    Member
    Posted 3 years ago #

    forgot to mention: those lines must be replaced inside wp_resume.php file

  7. Ben Balter
    Member
    Plugin Author

    Posted 3 years ago #

    Rvencu, thanks for taking the time to dig into all that. You are indeed correct that is the problem, and you are not alone in the frustration -- my apologies.

    Please try this version which incorporates the corrected ul/li code and let me know if it works? If so, I will push it into the repository.

    Thanks,
    - Ben

  8. Richard Vencu
    Member
    Posted 3 years ago #

    No, it is not working either with my set of data. I tried to debug the logic but it becomes very complicated because the number of combinations between sections, organisations and positions is so big that it is very hard to discover the issue.

    I would say counting is not an elegant solution but it is safe and fast.

  9. Richard Vencu
    Member
    Posted 3 years ago #

    if it helps, see here the corrected html source (without the extra /ul tag). try to see where is the fault, this dataset is triggering it for sure:

    <ul id="sections">
    				<li class="section" id="200">
    Experiență					<ul class="organizations">
    							<li class="organization" id="206">
    								Dentfix Pro								<ul class="positions">
    								<li class="position" id="2012">
    									Acționar și medic stomatolog specialist în chirurgie dento-alveolară (<span class="dtstart">2007</span> – <span class="dtend">present</span>)								</li>								
    
    								</li>								</ul>							<li class="organization" id="207">
    								Clinica Cranio-Maxilo-Facială II								<ul class="positions">
    								<li class="position" id="2014">
    									Medic stomatolog rezident chirurgie dento-alveolară (<span class="dtstart">2004</span> – <span class="dtend">2007</span>)								</li>								
    
    								</li>								</ul>							<li class="organization" id="208">
    								Serviciul de Urgențe Stomatologice (1)								<ul class="positions">
    								<li class="position" id="2051">
    									Medic rezident (<span class="dtstart">2004</span> – <span class="dtend">2007</span>)								</li>								
    
    								</li>								</ul>							<li class="organization" id="209">
    								CMI. DR. Fulea Alexandrina Maria								<ul class="positions">
    								<li class="position" id="2105">
    									Medic stagiar 								</li>								
    
    								</li>								</ul>							<li class="organization" id="210">
    								Serviciul de Urgențe Stomatologice (2)								<ul class="positions">
    								<li class="position" id="2103">
    									Medic stagiar (<span class="dtstart">2003</span> – <span class="dtend">2004</span>)								</li>
    					</ul>					</ul>				</li>								<li class="section" id="199">
    Educație					<ul class="organizations">
    							<li class="organization" id="207">
    								Clinica Cranio-Maxilo-Facială II								<ul class="positions">
    								<li class="position" id="2107">
    									Medic rezident (<span class="dtstart">2004</span> – <span class="dtend">2007</span>)								</li>								
    
    								</li>								</ul>							<li class="organization" id="211">
    								Universitatea de Medicină și Farmacie „Iuliu Hațieganu”								<ul class="positions">
    								<li class="position" id="2101">
    									Student Facultatea de Stomatologie 								</li>								
    
    								</li>								</ul>							<li class="organization" id="212">
    								Colegiul Național „Gh. Lazar”								<ul class="positions">
    								<li class="position" id="2099">
    									Liceu Profil Matematică-Fizică 								</li>
    					</ul>					</ul>				</li>								<li class="section" id="201">
    Cursuri perfecționare post-universitare					<ul class="organizations">
    								<li class="position" id="2198">
    									Restaurări protetice realizate în cabinetul stomatologic 								</li>
    								<li class="position" id="2192">
    									Managementul durerii în zona oro-facială 								</li>
    								<li class="position" id="2186">
    									Reconstrucțiile osoase. Estetică 								</li>
    								<li class="position" id="2182">
    									Formation et Perfectionnement en parodontologie et implantologie 								</li>
    								<li class="position" id="2184">
    									Inovațiile în tratamentul implantar 								</li>
    								<li class="position" id="2178">
    									Rașini compozite directe – up to date 								</li>
    								<li class="position" id="2039">
    									„Endodonţia non-chirurgicală şi chirurgicală: noi standarde terapeutice” Prof. dr. Arnaldo Castellucci – București 								</li>
    								<li class="position" id="2049">
    									Radiografia dentară convențională – Principii, tehnici, actualități (<span class="dtstart">27.02.2010</span> – <span class="dtend">27.02.2010</span>)								</li>
    								<li class="position" id="2035">
    									„Competență în Estetica Dentară” Ivoclar – Budapesta 								</li>
    								<li class="position" id="2041">
    									Geometria șlefuirii bonturilor 								</li>
    								<li class="position" id="2045">
    									Metode tehnologice inovatorii în protetica dentară 								</li>
    								<li class="position" id="2196">
    									Implantology. Theoretical and Practical Fast Training (Milano) (<span class="dtstart">23.05.2008</span> – <span class="dtend">24.05.2008</span>)								</li>
    								<li class="position" id="2204">
    									Zilele Universității de Medicină și Farmacie „Iuliu Hațieganu” 								</li>
    								<li class="position" id="2194">
    									Pre-prosthetic surgery. Implantology 								</li>
    					</ul>									</li>								<li class="section" id="202">
    Congrese naționale și internaționale					<ul class="organizations">
    								<li class="position" id="2180">
    									Al XVI-lea congres româno-francez de stomatologie 								</li>
    								<li class="position" id="2037">
    									Al XV-lea congres româno-francez – „Estetic și Funcțional în Medicina Dentară Modernă” Sibiu 								</li>
    								<li class="position" id="2202">
    									Al XIV-lea congres româno-francez de stomatologie (<span class="dtstart">09.10.2008</span> – <span class="dtend">11.10.2008</span>)								</li>
    								<li class="position" id="2188">
    									Al X-lea congres româno-francez de stomatologie 								</li>
    								<li class="position" id="2190">
    									Al IX-lea congres româno-francez de stomatologie 								</li>
    								<li class="position" id="2200">
    									A șasea reuniune stiințifică româno-franceză (<span class="dtstart">08.10.1998</span> – <span class="dtend">10.10.1998</span>)								</li>
    					</ul>									</li>								<li class="section" id="204">
    Organizații profesionale					<ul class="organizations">
    								<li class="position" id="2025">
    									Colegiul Medicilor Dentiști București (<span class="dtstart">2007</span> – <span class="dtend">present</span>)								</li>
    								<li class="position" id="2033">
    									Asociația Medicilor Stomatologi cu Practică Privată din România (<span class="dtstart">2005</span> – <span class="dtend">prezent</span>)								</li>
    								<li class="position" id="2030">
    									Asociația Odonto-Stomatologică Română-Franceză Sibiu (<span class="dtstart">2001</span> – <span class="dtend">prezent</span>)								</li>
    					</ul>									</li>								<li class="section" id="213">
    Agendă					<ul class="organizations">
    								<li class="position" id="2129">
    									Programare online la Dr. Adina Fulea 								</li>
    					</ul>									</li>								<li class="section" id="203">
    Diplome					<ul class="organizations">
    								<li class="position" id="2673">
    									Diplome educație 								</li>
    					</ul>									</li>							</ul>

    the code is quite in disorder but you should be able to arrange it in your editor

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags