vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Major Additions - Add Islamic Date To Your Forum (https://vborg.vbsupport.ru/showthread.php?t=277862)

tafreeh 01-31-2012 11:00 PM

Add Islamic Date To Your Forum
 
1 Attachment(s)
Hello (Assalam-o-Alykum)

This is a simple template edit that adds Islamic(Hijri) date along with Gregorian date at the bottom of every page of your forum.

Step 1:

Download & Upload the file Hijri_calendar.js to Clientscript folder under your forum root folder.

Step 2:

In your Header template add the following code on top (or anywhere):
Code:

<script type="text/javascript" src="clientscript/hijri_calendar.js"></script>
Save the template.

Step 3:

In your Footer template find:
Code:

<div id="footer_time" class="shade footer_time">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>
and replace it with the following code:
Code:

<div id="footer_time" class="shade footer_time">
            <script type="text/javascript">document.write(writeIslamicDate());</script> <br />
{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>

Click Save and you are done !!


Optional Step:
if Islamic date is showing one day behind then use the following code to replace it with the code you found in Step 3 (in footer template):
Code:

<div id="footer_time" class="shade footer_time">
            <script type="text/javascript">document.write(writeIslamicDate(1));</script> <br />
{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>

Hit save and your are good to go !!

Here is a live DEMO

All Credit Goes to: THIS GUY
Here is the Arabic Translation:

ForceHSS 02-01-2012 04:36 AM

why would I want to even add this sorry not a good idea

tafreeh 02-01-2012 04:37 AM

No one is forcing you to do that my friend :)

blake247 02-01-2012 05:31 AM

Quote:

Originally Posted by ForceHSS (Post 2294857)
why would I want to even add this sorry not a good idea

No need for that kind of comment.

CrossWind 02-01-2012 09:46 AM

Thanks for great idea, I liked :)

freedomright 02-01-2012 02:34 PM

Thanks,, this may be a handy script to have

doctorsexy 02-01-2012 02:58 PM

Thank you...

misericorde 02-03-2012 11:45 AM

Salam Alaykoum

BarakALLAH oufik.

Jazaka Lahu khayran.

Nice Works !!!

Bye

JAFRI 02-06-2012 03:58 AM

thanks, but thi's wrong for pak Hijri date.. check today Rabi-ul-Awal 13 but this show 14

tafreeh 02-08-2012 03:48 AM

This is according to Saudia I believe. Check the optional step in my thread maybe that will helps.


All times are GMT. The time now is 02:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01303 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete