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)
-   -   Forum Home Enhancements - Ramadhaan Sehri/Aftaari Greetings (https://vborg.vbsupport.ru/showthread.php?t=285983)

Kiran-E-Sehar 07-26-2012 10:00 PM

Ramadhaan Sehri/Aftaari Greetings
 
1 Attachment(s)
AssalaaM-o-AlaikuM to all Muslims,

1st of all Happy Ramadhaan to all Muslims and wish you blessed Ramadhaan.

This is Mod is actually based on johncosta71292's Mod https://vborg.vbsupport.ru/showthread.php?t=250300
so credit goes to johncosta71292

What this Mod will do,
On Sehri Time .......... Sehri Mubarak $username
After Sehri ...............Good Morning $username
Afternoon ................Good Afternoon $username
On Aftaari Time .........Sehri Mubarak $username
After Sehri ...............Good Evening $username


and username will show as HTML markup



Lets start,
Go to Admin CP> Styles & Templates> Style Manager> select your template > edit templates > header

Find:
Code:

<li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>

Replace with:

Code:

<li class="welcomelink"><script type="text/javascript" src="clientscript/welcome.js"></script> {vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.musername}, {vb:link member,  {vb:raw bbuserinfo}}}</li>
Now go to Languages and phrases and search for
Code:

Welcome, <a href="{2}">{1}</a>
Replace with:
Code:

, <a href="{2}">{1}</a>
Unzip file and upload to your forum.

And You Have Done

Kiran-E-Sehar 07-27-2012 12:54 AM

Please Mark as Installed, My 1st Effort :)


All times are GMT. The time now is 11:38 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.00943 seconds
  • Memory Usage 1,717KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete