|
| |||||||
| Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum. |
![]() |
| | topic widgets |
| | #1 |
| Join Date: Feb 2006 Location: Berlin Posts: 5 | Hi, I don't know, if anybody use tis small Mod. {image broken and removed} By this way, thanks to all people who develop mods and send tips. Jappi Sorry, that I announce myself only today At first create a new File like "statistic.php", insert following Code: Code: Content visible to registered users only. // Paging 4 $tpl->assign('list_total', count($count)); // End Paging 4 and insert Code below. Code: Content visible to registered users only. For example in my left.tpl: <p id="statistic"> <span class="statistic"> {$categorys} {$subcategorys} {$total_links} {$pending_links} {$today_links} </span> {l}Categorys:{/l} {l}Subcategorys:{/l} {l}Entries{/l} {l}Total:{/l} {l}Pending:{/l} {l}Today:{/l} </p> If you want use this Layout, insert in your main.css: #statistic { margin: 0px; padding: 13px; border: 1px solid #8B008B; font-size: 7pt; line-height: 12px; } .statistic { float: right; font-weight: bold; padding-right: 5px; text-align: right; } Ok, have fun I hope phpLD 3.0 use the same tablefields as 2.0 Jappi Last edited by David; 08-17-2009 at 07:02 PM. |
| |
| | #2 |
| Join Date: Feb 2006 Location: Berlin Posts: 5 | Sorry, that I announce myself only today At first create a new File like "statistic.php", insert following Code: Code: Content visible to registered users only. // Paging 4 $tpl->assign('list_total', count($count)); // End Paging 4 and insert Code below. Code: Content visible to registered users only. For example in my left.tpl: <p id="statistic"> <span class="statistic"> {$categorys} {$subcategorys} {$total_links} {$pending_links} {$today_links} </span> {l}Categorys:{/l} {l}Subcategorys:{/l} {l}Entries{/l} {l}Total:{/l} {l}Pending:{/l} {l}Today:{/l} </p> If you want use this Layout, insert in your main.css: #statistic { margin: 0px; padding: 13px; border: 1px solid #8B008B; font-size: 7pt; line-height: 12px; } .statistic { float: right; font-weight: bold; padding-right: 5px; text-align: right; } Ok, have fun I hope phpLD 3.0 use the same tablefields as 2.0 Jappi |
| |
| | #3 |
| Join Date: May 2006 Posts: 69 | I am using 3.0.4 I could not locate // Paging 4 $tpl->assign('list_total', count($count)); // End Paging 4 anywhere in index.php Am I missing something or is this for a different version? I would like to use this if I can make it work. Thanks! |
| |
| | #4 |
| Join Date: Mar 2006 Location: Germany Posts: 1,064 | i have it working with a little change... instead of building a new php file called statistics.php i put the code for this file directly in index php, right above echo $tpl->fetch('main.tpl', $id); |
| |
| | #5 |
| Join Date: May 2006 Posts: 94 | I cannot find that in 3.04 either __________________ ------------------------- Mrbadgolf Note to mrbadgolf: the links in your sig were removed because they were not working or incomplete. Feel free to re-add them when everything working okay again. |
| |
| | #6 |
| Join Date: Mar 2006 Location: Germany Posts: 1,064 | look at the end of the file //Make output echo $tpl->fetch ('main.tpl', $id); |
| |
| | #7 |
| Join Date: May 2006 Posts: 94 | Im sorry, didnt make myself clear, I cannot locate // Paging 4 $tpl->assign('list_total', count($count)); // End Paging 4 in the index.php file of 3.0.4 __________________ ------------------------- Mrbadgolf Note to mrbadgolf: the links in your sig were removed because they were not working or incomplete. Feel free to re-add them when everything working okay again. |
| |
| | #8 |
| Join Date: Jul 2006 Posts: 13 | Thanks for the MOD. This opens up lots of doors. You can use this to get lots of data and display it on the main pages. Thanks for the ideas. __________________ I also enjoy photography. |
| |
| | #9 |
| Join Date: Jul 2006 Location: down under!!!!!!!!! Posts: 14 | which folder should create that statistic.php file? root? |
| |
| | #10 |
| Join Date: Jul 2006 Location: down under!!!!!!!!! Posts: 14 | thanks.. but still.. i get the server error message.. :( i tried to undo the changes i made.. and uploaded the file back.. but still.. the same error.. hpow can i get back from my directory without those smarty errors? |
| |
| | #11 |
| Join Date: May 2006 Posts: 69 | Is there a way to do this with 3.0.4? |
| |
| | #12 |
| Supporter Join Date: Jul 2006 Posts: 57 | Can someone explain what we have to do in the last phpld version so this mod can work? Thank you |
| |
| | #13 |
| Join Date: May 2006 Location: DHK.BD Posts: 50 | how it works in latest version? __________________ |
| |
| | #14 |
| Join Date: Jul 2006 Posts: 5 | Hello, How do modify the code to show number of links added in the "Last 7 days" rather than "Today"? Thanks in advance! |
| |
| | #15 |
| Join Date: Aug 2006 Posts: 118 | Code: Content visible to registered users only. Does anyone know if this works in 3.06 or has a solution. |
| |
| | #16 |
| Join Date: Aug 2006 Posts: 118 | I can now confirm this works for 3.06, but this Code: Content visible to registered users only. Code: Content visible to registered users only. Code: Content visible to registered users only. |
| |
| | #17 |
| Join Date: Aug 2006 Posts: 37 | I have released a mod for phpLinkDirectory 2.0 and 3.0.5+. that allows you to show statistics on the front of your directory relating to the links and categories in the database. You can see what it looks like at http://www.moondirectory.co.uk. The idea was originally by Jappi at phpLinkDirectory Forums. I have made a few changes in this version.
__________________ PowerDosh.com - Home of phpLD Update Tool |
| |
| | #18 |
| Supporter Join Date: Aug 2006 Location: London Ontario Posts: 66 | Code: Content visible to registered users only. |
| |
| | #19 |
| Join Date: Sep 2006 Location: Düsseldorf (Germany) Posts: 396 | Thanks for this mod. It use it with v2.1! |
| |
| | #20 |
| Join Date: Aug 2005 Location: Nova Scotia, Canada Posts: 143 | The statistics weren't showing up on the details page, so I added the code to details.php as well: require_once 'statistics.php'; right under: require_once 'init.php'; So now the stats show up on the details page as well. Joanne |
| |