[Add-on] Welcome Mod 2.0.0 (Beta)

Misc MOD Downloads for phpBB3 -- Any MOD that does not fit into any other category
Forum rules
Image Please feel free to download any MOD's here, support for each MOD is located it's own thread.

To post your own MOD, please first read the MOD Guidelines

Re: [DEV]Welcome Mod

Postby stitch626 » 22 Jul 2007, 14:13

Version 0.1.2 Just released!

Fixes and improvements:

Re-wrote template code for both subsilver2 and prosilver for much cleaner viewing of welcome message.

New code places welcome message in a new table just below the links table. Thanks to Lefty74 for the idea and testing ths out. (Cleaned up extra white space caused by previous version.)

Fixed bug with username dissapearing from welcome list when visiting other pages.

Removed Username variable from index.php and placed into includes/functions.php in order to display usrname on all pages.

Added new welcome message for early morning visitors
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7


Re: [DEV]Welcome Mod

Postby jdh » 22 Jul 2007, 14:44

wow stitch! :shock: I am absolutely impressed. :thumbsup: Keep up the great new ideas and features! :yahoo: they are wonderful!
Iron helmets will not save
Even heroes from the grave.
Good men's blood will drain away
while the wicked win the day.
User avatar
jdh    
STG Support Team
STG Support Team
 
Posts: 1508
Joined: 05 May 2007, 08:04
Location: Wisconsin
Gender: Male
phpBB Knowledge: 7

Re: [DEV]Welcome Mod

Postby zachpl » 22 Jul 2007, 15:37

I added it on my own site.
Sniper_E wrote:I speak French.... wee wee
zachpl
Beta Tester
Beta Tester
 
Posts: 195
Joined: 13 Apr 2007, 14:57
Favorite Team: Gaints
Gender: Male

Re: [DEV]Welcome Mod

Postby stitch626 » 31 Jul 2007, 18:10

New Version 0.1.3 just released today!

New version fixes welcome message displaying bug in subsilver2. There was a problem with viewing in Firefox. Now welcome message will display properly in both IE and Firefox.

Also removed extra surplus code that is not needed in language file.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [DEV]Welcome Mod

Postby jdh » 17 Oct 2007, 14:55

Hey Mike!

How've you been? Haven't seen you round recently.

Just wanted to point out that something broke when I updated to RC7. It appears that {U_WELCOME_NAME} isn't working anymore. I think this is the code that it uses in includes/functions.php. Anyone able to point me in the correct direction on how to fix this?

Code: Select all
// Welcome Mod
// Let's welcome the member in style with color!
$welcome_colour = ($user->data['user_colour']) ? $welcome_colour = ' style="color:#' . $user->data['user_colour'] . '"' : $welcome_colour = '';

if ( $user->data['user_id'] != 1 )
{
$welcome_name = '<strong><a' . $welcome_colour . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&amp;u=' . $user->data['user_id']) . '">' . $user->data['username'] . '</a></strong>';
}
else
{
$welcome_name = '<strong><a href="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register') . '" title="Click to Register">' . $user->lang['GUEST'] . '</a></strong>';
}
// Welcome Mod   


Thanks!
~JD

Edit: Ouch...I feel like an idiot. I was missing the last 'U_WELCOME_NAME' => $welcome_name, part. ;) Sorry for the trouble.
Iron helmets will not save
Even heroes from the grave.
Good men's blood will drain away
while the wicked win the day.
User avatar
jdh    
STG Support Team
STG Support Team
 
Posts: 1508
Joined: 05 May 2007, 08:04
Location: Wisconsin
Gender: Male
phpBB Knowledge: 7

Re: [DEV]Welcome Mod

Postby stitch626 » 17 Oct 2007, 17:31

Hey JD,
I've been here :cool: Just posted last night. Anyway I'm glad you got it sorted. I know the mod is compatible with RC6 but I don't know about RC7 because I haven't updated yet. All I know is after I updated from RC5 to RC6 I had to upload a fresh Functions.php and reinstall all my mods that affected that file including the Welcome Mod.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [DEV]Welcome Mod

Postby jdh » 17 Oct 2007, 19:47

that is exactly what happened to me. I must have missed that part. ;)

You were on that trip! I remember now. Welcome back. :)
Iron helmets will not save
Even heroes from the grave.
Good men's blood will drain away
while the wicked win the day.
User avatar
jdh    
STG Support Team
STG Support Team
 
Posts: 1508
Joined: 05 May 2007, 08:04
Location: Wisconsin
Gender: Male
phpBB Knowledge: 7

Re: [DEV]Welcome Mod

Postby Ladysarajane » 08 Nov 2007, 18:58

I've finally upgraded my welcome mod and it is great, but I am having trouble with prosilver and prosilver based templates.

When I copy and paste into the index body, my Welcome Mod looks like this:
forum.JPG


How can I seperate the Date and Last visit lines to look as clean as subsilver2? I am running RC7.
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

Re: [DEV]Welcome Mod

Postby stitch626 » 08 Nov 2007, 21:15

Hi 'sarajane,

This is how it is supposed to be according to the mod. If you are not happy with it just let me know how you would like it and I can try and help you with it.
User avatar
stitch626    
STG Moderator Leader
STG Moderator Leader
 
Posts: 3185
Joined: 08 Feb 2007, 20:47
Location: Michigan
Favorite Team: Detroit Red Wings
Gender: Male
phpBB Knowledge: 7

Re: [DEV]Welcome Mod

Postby Ladysarajane » 09 Nov 2007, 00:40

Hey Stitch626 :wave:

I'd like it to look more like the subsilver2....with the last visit being under the current date.

My life had been so busy, I really did not have a chance to upgrade my mods till now and with RC7 I wasn't sure if you intended to have prosilver look like that.
I'd appreciate help with it. Prosilver templates confuse me still! :banghead: :lol:


Oops Stitch626, I almost forgot.
For the subsilver2 template, when you are looking at the guest at the top it has Hello twice in the greeting.
You have this as the edit
Code: Select all
<div id="datebar">
<table class="tablebg" width="100%" cellspacing="1">
<tr>
<td class="row1" width="100%"><span class="gensmall">
<strong>
<div style="float:right;">
<!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}</strong><!-- ELSE --></strong>{CURRENT_TIME}<!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN --><br />{CURRENT_TIME}<!-- ENDIF --></span></div>    
<span class="gensmall">
<!-- IF not S_USER_LOGGED_IN --><strong>{L_WELCOME_HELLO} {L_WELCOME_GUEST},</strong><!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN --><strong>{L_WELCOME_WELBACK}</strong> {U_WELCOME_NAME},<!-- ENDIF --></span>
<strong>
<script type="text/javascript">
today = new Date()
if(today.getMinutes() < 10){
pad = "0"}
else 
pad = "";
if((today.getHours() >=0) && (today.getHours() <=3)) document.write("{L_TIME_MIDNIGHT}");
if((today.getHours() >=4) && (today.getHours() <=6)) document.write("{L_TIME_EARLY}");
if((today.getHours() >=7) && (today.getHours() <=11)) document.write("{L_TIME_MORNING}");
if((today.getHours() >=12) && (today.getHours() <=17)) document.write("{L_TIME_AFTERNOON}");
if((today.getHours() >=18) && (today.getHours() <=24)) document.write("{L_TIME_EVENING}");
</script></strong>
<!-- IF not S_USER_LOGGED_IN --><strong>{L_WELCOME_MESSAGE}</strong><!-- ENDIF --></span>
</tr>
</table>
</div>
</div>



I took out the {L_WELCOME_HELLO} on the line that says:
Code: Select all
<!-- IF not S_USER_LOGGED_IN --><strong>{L_WELCOME_HELLO} {L_WELCOME_GUEST},</strong><!-- ENDIF -->


And it looks much better for guests now. I don't know if you want to implement that in the xml file or not.
Warning: Stay away from Deck 15 if you don't have security clearance level 6 or above! Unauthorized access is prohibited.
Image
User avatar
Ladysarajane
STG Moderator
STG Moderator
 
Posts: 1962
Joined: 21 Mar 2007, 23:35
Favorite Team: Bengals
Gender: Female
phpBB Knowledge: 5

PreviousNext

Return to Miscellaneous MODs, Hacks and Downloads

Who is online

Users browsing this forum: Discovery Bot, Google Adsense [Bot] and 7 guests