Total Number of Stories on the website - drupal

I have this website iloveforwards.com created using drupal.
I would like to have a block on the side that says total Number of forwards: n
the pages are created as stories.
i tried views. no luck. Pls help
-Vivek

You could use the views_groupby module to do this. It's a good module for counting up pretty much anything that you can pull together with a view.
Here's the documentation.

Related

Wordpress & hospital - what is the best way to add departments and their specializations

I work in a hospital and I participate in the creation of our new website.
We have nearly 40 departments, and each has 1 to 10 specialties. For each specialty, we would like to have 3 to 10 pages to describe in detail what the hospital offers our patients.
My question is: what do you think is the best way to create these pages?
Do I have to create simple pages and just take care about the
hierachy between them?
Do I have to go through new content types?
Do I have to go through a module that I have not yet found that allows me to obtain this?
Thank you in advance for the leads you can give me!
Long live the Stackoverflow community! : D
The proper way would be to create custom post type and taxonomies for your goal. You can go with pages too but that have its own restrictions such as having archive,defining own single pages, taxonomy pages etc. If you want to have custom fields its also good practice to keep them for your specific post type otherwise could get messy realy quick. Also create your functions with ability to be edited in future. This will take a bit of time to code it but in future will save you much more time. And add comments!!! in your theme.
To make your Work Easy and Fast use Pre Made Divi Child Theme. You can just Edit it using Drag & Drop Option. Below are Some Example which May Help you
Medical Fusion
Divi Smile
If you don't know how to edit feel free to ask us Tech Gigs

Wordpress: fit for per-region website? Another better CMS?

I'm looking to help a friend who needs a website for his project. I know wordpress a little, but there might be better options.
The needs are:
- have a splash screen prompting for region (like this site)
- have some pages available only for a given region.
- allow the non-it guy to update the contents.
Wordpress is the only one I know as web design isn't my specialty. I'd have gone for a template like Avada, but again, better leads are more than welcome.
Thanks in advance for your inputs!
Ok, the downvote really helped me and certainly will help other users as there's no comment whatsoever explaining why this post is bad. Don't give leads or guidance by the way.
So, whatever. I found a solution to this. The following plugin works like a charm:
https://www.fla-shop.com/products/wp-plugins/world/continents/
A simple purchase gives total control and removes the watermark. The best part regarding my need was the capability to write custom callback code as explained in this article.
https://www.fla-shop.com/blog/adding-custom-javascript-to-the-map/

How to track "popularity" of a WordPress post (views, shares) to present the "hottest" posts in category?

I can code, but don't know much about WordPress internals, so would appreciate any advice or instructions. I am looking for a solution to present the posts on my site in the order of popularity. I am thinking of the following signals:
- number of views
- number of times a download link inside the post was clicked
- number of likes on FB (currently using Monarch plugin)
Please help me to figure out how to get those inputs recorded with WP. When available a no-code solution like plugin will be more preferred unless it has some considerable issues. Examples or tutorials would also be great.
Thank you
You've got a couple of options, first you could use a plugin which would be the easiest way to solve your issue:
https://wordpress.org/plugins/wordpress-popular-posts/
Or you can take a no-plugin approach and do something similar to this:
http://www.wpbeginner.com/wp-tutorials/how-to-track-popular-posts-by-views-in-wordpress-without-a-plugin/
I'm not sure how you'll go finding a solution that will integrate page views with social sharing, that would require popularity being abstracted from page views themselves and another counter being created and incremented via a callback from your social API's.

How do I reduce over 1000 links programatically in a jump menu?

Ok, so maybe my search syntax is wrong here, this could have very well been covered in stackoverflow but i've been unable to find anything after hours of searching. Be warned, I am a novice developer when it comes to this type of stuff and would appreciate any guidance, help or pointers to accomplish the goal. I'm open to suggestions of any type! :)
So, I have a site http://www.animetip.com
On this site we have a popular feature called a "jump menu" which allows a user to quickly navigate directly to the page which contains the anime series they would like to see an episode in. Essentially we have every series on the site (over 1000) broken down in an a-z list. When a user hovers over a letter, the menu will drop down and display all series that begin with that letter. A user can then go to the series they'd like to view and click on it to go directly to the page.
The issue with this is SEO. We are being penalized due to the number of links on the page. What we need to accomplish is the same (or better) functionality while reducing the links loaded in the page. If we could come up with a way to create the menu and have the link itself not be served until its clicked on I believe that would resolve the issue.
What is the best strategy for doing this? I am no expert by any means, but I was thinking that putting all the links in mySQL and then calling the link as its clicked would be ok, but a friend cautioned me that it would cause a performance hit. I have also reviewed material which indicates you can do the same thing using an array to store the links and then call them as they are needed using PHP. I grasp the concept of doing that but could use a stub type example to get me started.
The site is built on Wordpress with a completely custom template / theme.
Someone has commented that the topic wasn't researched. Unfortunately I've spent lots of time researching it, the problem is that I think I'm using the wrong terminology to describe what I need to find. If anyone would care to give me the terminology or a good place to conduct further research (even a few keywords!) I will be MORE than happy to go do that.
Thank you for any help or tips to information I can learn from!
Brett
Try using ajax so that the links are not visible in the actual source code and while clicking the a,b,c links it will call a separate php file and display the output from the db on the fly. I hope this will resolve your issue. Thanks

Drupal comments per fields

I have been looking all over for this, but so far without any luck. Is there a way to have comments per field instead of per node in drupal? If there are no modules available for this, do you think it would be hard to implement?
I thought I could make a "pseudo-content-type" with views that's nothing more than several content types displayed one on top of the other, so you could comment any of them. But then I don't know a way of making the user create all those content types at once.
The built-in comment module is not going to do comments per field on a node. I've been drupaling for almost three years and I don't know of any module that allows comments per field.
It is possible to do, but it would take a custom module and plenty of slick programming to get it to work. As far as difficulty I think an intermediate PHP developer with some knowledge of Drupal should be able to whip this out.
A kind of quick solution would be using panel module; form all your commentable content in nodes ad put them together all into a panel. This is kind a quick and static solution, possibly with views one can make it more custom.

Resources