Format table / Remove certain times
-
I would like to remove Asr and Isha from the vertial table and rename the Zuhr & Maghrib to Zohrain and Maghribain respectively. How would I go about making that change?
https://wordpress.org/plugins/daily-prayer-time-for-mosques/
-
Assalamualaikum,
Are you available on hangout or some other social platform where I can quickly show you on video chat?
Jazakallah.
Yes, i can do hangouts, whenever you have time. I tried adjusting “TimetablePrinter.php” and one other file to change the tables displayed on the widget, but that didn’t do anything.
what is your gmail address? I can do it now.
Actually, you cannot remove any column. For this you will need make adjustment to database creation and import as well. As db adapter expects those values.
Hope that make sense.
For Zuhr and Maghrib, you can change the settings in language section.
Salaams
I’ve been able to upload all the timings. I was trying to zero out the 2 timings I don’t need but I guess that didn’t work, lol.
So now I was thinking maybe just make the font invisible so they don’t show? Taking out the Asr and Isha would be perfect. Here’s the test of the widget:
http://wp.sijny.org/test-prayer-timings/I see.
You will need to modify the DailyTimetablePrinter.php
As you are using the vertical table, look for the ‘tr’ tag where the data get fed.
Simply take the heading off for Asr and isha and don’t feed the data for asr and Isha from the variable called ‘row’
Hope that helps. Let me know please.
I don’t think each field is specified which i can take out the feed from the DailyTimetablePrinter.php file.
Would you be able send me the modified files? The mosque doesn’t have much budget but I’m willing send you some donation.
I was also trying to get the colors to match the widget we currently have showing on the main page: http://wp.sijny.orgSubhanallah brother,
I am so ashamed that you offered me donation.I did it to please Allah swt, as long as you are benefited by my little effort, I can only hope for forgiveness from the Almighty.
I will see what you need to do to hide Asr and Isha and will send you the code soon inshaAllah,
In the meantime, may I ask you to write a review for the plugin, I will really appreciate it.
Jazakallah khair bro.
if ($prayerName == 'Asr' || $prayerName == 'Isha') { continue; }Add the above between line 272 and 273 on DailyTimetablePrinter.php
I hope you will take your time to write a review about your experience with the plugin.
I’m sorry brother, didn’t mean to offend you in any way. I just meant that for people in the developing community time is of the essens so I did not want to take advantage of your time.
We are trying to go live with that site and that’s one of the last items left before they’d give me permission. I have the timings in with 00:00 as time for Asr and Isha. I thought i’d make the font invisible (same as background) but wasn’t accomplish that either.
Please let me now if I can assist in any way.
I was not offended akhi.
Please try the above and let me know if it worked.
Have you tried yet?
Oh this is lovely. i was able to do what you suggested and got exactly the view i wanted. I will try to adjust the colors to match the site. Thank you so much for your prompt and expert help.
I am so glad that you are happy.
Please remember me and my family in your dua.
The topic ‘Format table / Remove certain times’ is closed to new replies.