Homepage van Rob Lensen

  • Reizen
    • Canada Reis 2018
    • Australië Reis 2016
    • Egypte Marsa Shagra 2009
      • Duiken
    • Maleisië 2008
    • Australie reis 2007
  • phpDivinglog
    • WordPress widget for phpDivinglog
    • What’s new in phpDivinglog 2.0
    • phpDivinglog code documentation
    • Export MySQL data from Divinglog
  • Dev (portfolio)
    • Export data from runtrainer.com to gpx
  • About
    • Mijn CV
  • Foto Album
Je bent hier: Home / phpDivinglog / WordPress widget for phpDivinglog

WordPress widget for phpDivinglog

Maybe you noticed the dive overview on the right side of my webpage. I made a wordpress widget for phpDivinglog.

This widget uses the information which is generated in divesummary.php.

Example:

ScreenHunter_3

The widget can be downloaded from: http://rob.lensen.nu/devdoc/phpdivinglogwidget.tar.gz

Install the widget into: wp-content/plugins/widgets and activate it via Plugins

I changed divesummary.tpl to this:


{if isset($no_id)  }
ERROR no user id set!
{else}
Duiklog

{$stats_totaldives} {$DivedateMaxNr}

{$stats_totaltime} {$total_abt} {$stats_totaltime_units}

{$stats_divedatemax} {$LastEntryTime} {$DivedateMax} {if isset($LastDiveID)} {$LastDivePlace} {/if} {if $LastCity != ''} {$LastCity} {/if} {if $LastCountry != ''} {$LastCountry} {/if} [{if isset($multiuser_id)} title="{$dlog_number_title}{$DivedateMaxNr}" style="color: #FFEDD6">{$DivedateMaxNr} {else} title="{$dlog_number_title}{$DivedateMaxNr}" style="color: #FFEDD6">{$DivedateMaxNr} {/if}] {* Get the certification details *} {if isset($count)}

{$cert_brevet} {* Show dive certification titles *} {* Loop through the array *} {section name=cell_data loop=$cells } {$cells[cell_data].brevet} {/section} {/if} {* include file='links_sum.tpl' *} {* include file='app_info.tpl' *} {/if}

You can view the development via: SVN

Geef een reactie Reactie annuleren

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

Recente berichten

  • Banff
  • Golden
  • Revelstroke
  • Kelowna
  • Kamloops

Pagina’s

  • About
    • Mijn CV
  • Dev (portfolio)
  • Duiken
  • Export data from runtrainer.com to gpx
  • Fotoalbum
  • phpDivinglog
    • Export MySQL data from Divinglog
    • phpDivinglog code documentation
    • What’s new in phpDivinglog 2.0
    • WordPress widget for phpDivinglog
  • Privacybeleid
  • Reizen
    • Australië Reis 2016
    • Australie reis 2007
    • Canada Reis 2018
    • Egypte Marsa Shagra 2009
    • Maleisië 2008
    • Noord-Spanje (Bilbao / Baskenland) 2019

Copyright © 2025 · Executive Pro Theme on Genesis Framework · WordPress · Log in