|
| |||||||
| Mod Requests Have a suggestion for a mod? Post it here. You may not always receive an answer, but phpLD devs and mod developers do regularly visit this forum. If you MUST get something done, you may need to opt for paid help. |
![]() |
| | topic widgets |
| | #1 |
| Supporter Join Date: Aug 2005 Location: Brooklyn, USA Posts: 104 | Show total number of links and categories in the footer. |
| |
| | #2 |
| Administrator phpLD Administrator Supporter Join Date: Jan 2005 Posts: 12,325 | I think this could be done using the code we have in admin: Code: Content visible to registered users only. Code: Content visible to registered users only. |
| |
| | #3 |
| Join Date: Jul 2005 Posts: 46 | David,I placed both codes into main.tpl (one after another) and I got this: Fatal error: Smarty error: [in main.tpl line 81]: syntax error: unrecognized tag: $tables['link']['name'] (Smarty_Compiler.class.php, line 436) in libs/smarty/Smarty.class.php on line 1088 I replaced my server info with *********. If I put only the second code then I get only text displayed. $stats variable display nothing. |
| |
| | #4 |
| Join Date: Jun 2005 Posts: 350 | Hi Mike77, what David posted is almost right. Here's what you should do: Open index.php Find: Code: Content visible to registered users only. Code: Content visible to registered users only. Add this whereever you want: Code: Content visible to registered users only. York Kie __________________ Greatest fear in a coder\'s world: A minute bug with correct syntax. Math Captcha - Database Backup Tool - PHP Background Image |
| |
| | #5 |
| Join Date: Jul 2005 Posts: 46 | Thank you David and yktan,it is working now! Why do we need to insert this at that exact place? How did you know this? I really like to tweak with my website but this just looks so complicated (by this I mean inserting thigns at exactly correct location). |
| |
| | #6 |
| Join Date: Jun 2005 Posts: 350 | Hi Mike77, it is not necessary to insert the code at the exact place in the php file but it does have to be after the templating engine is initialised. So the easiest way is for me to tell you a place where it will definitely work. PHP Link Directory is developed using PHP and Smarty Templates, so if you are interested, you can learn both of them and you will understand even more ![]() Regards, York Kie __________________ Greatest fear in a coder\'s world: A minute bug with correct syntax. Math Captcha - Database Backup Tool - PHP Background Image |
| |
| | #7 |
| Supporter Join Date: Aug 2005 Location: Brooklyn, USA Posts: 104 | Code: Content visible to registered users only. |
| |
| | #8 |
| Join Date: Jul 2005 Posts: 243 | I have also implemented this and it is actually very nice. Thanks. |
| |
| | #9 |
| Join Date: Aug 2005 Posts: 18 | Is there a possibility to show the total nummer (count) of all hits of the links in de directory? |
| |
| | #10 |
| Join Date: Jun 2005 Posts: 350 | Hi superlinks, you sure can. You will need something like the following in index.php Code: Content visible to registered users only. Code: Content visible to registered users only. __________________ Greatest fear in a coder\'s world: A minute bug with correct syntax. Math Captcha - Database Backup Tool - PHP Background Image |
| |
| | #11 |
| Join Date: Aug 2005 Posts: 18 | thanx, that's it! |
| |
| | #12 |
| Join Date: Aug 2005 Posts: 260 | This is really nifty! Thanks, David and yktan.... Now, anyone have any idea how I would go about making the numbers change depending on the page accessed? In other words, the main index shows, say, Active Links 128 and Categories 56; then I click on the first category, go to that page, and I'd like to see the numbers refer to specifically THAT category: Active Links 12 and SubCategories 3.... something like that.... |
| |
| | #13 |
| Join Date: Sep 2005 Location: Russia Posts: 55 | Code: Content visible to registered users only. |
| |
| | #14 |
| Join Date: Sep 2005 Location: Russia Posts: 55 | Sorry... It's work... Big Thanks... |
| |
| | #15 |
| Supporter Moderator Join Date: Feb 2006 Location: Germany - Berlin Posts: 2,414 | where I find: Code: Content visible to registered users only. With me there is not that! :( __________________ Deutscher Support seit 2005 (Deutschland,Österreich,Schweiz) UDL Intermedia Group www.UDL-Intermedia.com Meine phpLD4 Projekte: www.Anbieterverzeichnis.info www.RSS-Bookmark-Service.com www.Schlaglochmelder.de |
| |
| | #16 |
| Join Date: Mar 2006 Location: Germany Posts: 1,064 | open index.php in windows text editor, and try the search funktion of your editor. in most editors you have a search/replace funktion. but after changing this line dont forget to save it as a .php file |
| |
| | #17 |
| Supporter Moderator Join Date: Feb 2006 Location: Germany - Berlin Posts: 2,414 | Code: Content visible to registered users only. __________________ Deutscher Support seit 2005 (Deutschland,Österreich,Schweiz) UDL Intermedia Group www.UDL-Intermedia.com Meine phpLD4 Projekte: www.Anbieterverzeichnis.info www.RSS-Bookmark-Service.com www.Schlaglochmelder.de |
| |
| | #18 |
| Supporter Join Date: Mar 2006 Location: East Coast Posts: 77 | Code: Content visible to registered users only. Look near the bottom of the page and replace my red comment with the code |
| |
| | #19 |
| Supporter Join Date: Feb 2006 Location: As far from you as humanly possible! Posts: 2,860 | Code: Content visible to registered users only. hit CTRL+F to bring up fid in whatever editor you're using. type in: $tpl->fetch('main.tpl', $id); and ok to search. it's near the bottom of the index.php file. |
| |
| | #20 |
| Join Date: Apr 2006 Posts: 134 | How do you show how much pending links there are? Like Links, Catergories, Pending |
| |