Hans Uwe Petersen Posted March 29, 2022 Report Share Posted March 29, 2022 I use the Klostermann way to integrate my WordPress and tng installation. I know how to show the Surname Cloud anywhere within tng with this code snippet: <div> <?php include($cms['tngpath'] . "surname_cloud.class.php"); $nc = new surname_cloud(); $nc->display(100); ?> </div> I would like to add the Surname Cloud to the WordPress page, which is my entrance-page for tng. Have a look at the attached screenprint. Any hint to modify the above include-statement so I have the correct call from the WordPress page would be helpful. Thanks. Quote Link to comment Share on other sites More sharing options...
fluffy82 Posted March 29, 2022 Report Share Posted March 29, 2022 I use the widget that's available here. It works wonderfully well on my homepage Quote Link to comment Share on other sites More sharing options...
Hans Uwe Petersen Posted March 29, 2022 Author Report Share Posted March 29, 2022 Thank you for your answer. Your link to the widget is not working. "The page can’t be found. It looks like nothing was found at this location." Quote Link to comment Share on other sites More sharing options...
stores Posted March 29, 2022 Report Share Posted March 29, 2022 Yep, link does not work. Quote Link to comment Share on other sites More sharing options...
Hans Uwe Petersen Posted March 29, 2022 Author Report Share Posted March 29, 2022 It is not a question regarding the browser. Even when you right-click on the link to save the content, you'll get to empty zip files. Quote Link to comment Share on other sites More sharing options...
fluffy82 Posted March 29, 2022 Report Share Posted March 29, 2022 1 hour ago, Hans Uwe Petersen said: Thank you for your answer. Your link to the widget is not working. "The page can’t be found. It looks like nothing was found at this location." Oh, I didn't realize that. I've been using it for years and never had to re-download it. I think the website was made by @HeatherFeuer, maybe she can provide the zip files again? Quote Link to comment Share on other sites More sharing options...
mahesh Posted March 30, 2022 Report Share Posted March 30, 2022 I use a modified surnames-top-10 file in my home page (Top 10 Surnames for TNG written by Walter Schulze 2004). It's not a widget or shortcode. Happy to share. http://www.upavadi.net/ Quote Link to comment Share on other sites More sharing options...
Hans Uwe Petersen Posted March 30, 2022 Author Report Share Posted March 30, 2022 Thanks for this input. But your solution is not, what I'm looking for. Your surnames-top-10 list is placed on the index.php page, which belongs to the tng-installation. My intention is to show the surnames-top-x list on a page belonging to WordPress. But by looking at the source code of your index.php page I got an idea to make a table in the same way. Quote Link to comment Share on other sites More sharing options...
mahesh Posted March 30, 2022 Report Share Posted March 30, 2022 13 minutes ago, Hans Uwe Petersen said: Your surnames-top-10 list is placed on the index.php page, which belongs to the tng-installation. Actually, it is in the Worpress Welcome page with TNG data imported.. I use a PHP file as a template in a Wordpress page. Anyway, I am glad it has inspired you. Quote Link to comment Share on other sites More sharing options...
Hans Uwe Petersen Posted March 30, 2022 Author Report Share Posted March 30, 2022 Hi again. I have now added a table with the 15 most uses surnames on my WordPress page. Thanks again for your input. But I would like to have a look at your PHP-files, which is used as a template in the WordPress page. Would that be possible? Quote Link to comment Share on other sites More sharing options...
mahesh Posted March 30, 2022 Report Share Posted March 30, 2022 29 minutes ago, Hans Uwe Petersen said: Hi again. But I would like to have a look at your PHP-files, which is used as a template in the WordPress page. Would that be possible? Hi Hanse, Surname block looks good. I create a template file in the current theme. Then include various PHP add-ons in the template file. I attach modified top 10 surname file. Did you a want see the the actual template file? surnames-top10B.php Quote Link to comment Share on other sites More sharing options...
Hans Uwe Petersen Posted March 30, 2022 Author Report Share Posted March 30, 2022 Hi Mahesh Thank you so much for the file. I will give it a try. Quote Link to comment Share on other sites More sharing options...
HeatherFeuer Posted June 24, 2022 Report Share Posted June 24, 2022 I have updated the widgets AND updated the page. You can now download both my plugins here: https://uniquelyyourshosting.net/tng-wordpress-plugins/. I have also made sure the profile box works correctly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.