Log in

View Full Version : Welcome Panel


trilOByte
11-25-2001, 10:00 PM
Well, I'm not sure where to put this, it's really a template edit, but includes a couple of hacks already posted on the "full releses" section. I put this together as a walkthrough for an admin friend, and thought someone might find it useful.

Like I said, it's a combination of 2 previously relesed hacks (both credited fully). One by Firefly (avatar hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=32560)) and one by MrLister (since your last visit (https://vborg.vbsupport.ru/showthread.php?s=&threadid=31957)). It combines both of these hacks into a welcome panel at the top of the BB, just like the one here and on a few other sites. I'm pretty much a newbie to vB hacking, and struggled to put this together myself (couldn't find any instructions/hacks etc), but I think I've done an OK job. Maybe this will save a few headaches to others like myself ;)

Anyway, here's a few images to illustrate the hack/edit (or whatever it is :D)

A guests view of your forum homepage...

http://www.synobyte.com/images/unreg.gif

...and what they see when they have registered....

http://www.synobyte.com/images/gotavatar.gif

You can see a working verion of this hack here:

The Genome Collective (http://www.thegenomecollective.com)

Thanks to Firefly and MrLister for providing the PHP hacks in this err, whatever :)

(BTW, if this is in the wrong forum, please (mods) feel free to move it)

here it is:

[EDIT] Updated 28-11-01 to correct a display issue, table border on the right now displays properly.

nafae
11-26-2001, 09:50 AM
melikes...ill install it l8r :cool:

LuBi
11-26-2001, 10:30 AM
[QUOTE]Originally posted by nafae
melikes...ill install it l8r :cool:

fonzerelli_79
11-26-2001, 03:10 PM
great hack trilobyte

i wasnt too keen on the actual welcome panel as i thought the actual forum was too far down

instead of the welcome panel i just edited my forumhome template

underneath

<td><smallfont>
Registered Members: <b>$numbermembers</b><br>
Total Threads: <b>$totalthreads</b> | Total Posts: <b>$totalposts</b><br>
Welcome to our newest member, <a href="member.php?s=$session[sessionhash]&action=getinfo&userid=$newuserid"><b>$newusername</b></a>
</smallfont></td>

i put

<td align="center"><smallfont>
$avatarimage<br>Your chosen Avatar.
</smallfont></td>

I have attached an example.

Cheers

Goldfinger
11-26-2001, 07:41 PM
I like it im gonna install it on my board :D.

fonzerelli_79
11-26-2001, 07:42 PM
i do love the avatars

class

nafae
11-26-2001, 08:00 PM
im installing it, but it seems i have encountered something i dont get. It sayes it can be placed anywhere in forumhome_xxx template. Well i am in the "forumhome" tree, and I dont see forumhome_xxx there or anywhere else. If he means xxx as in "any of them" it doesnt matter in WHAT forumhome i put it in? sorry just wanted to clear that up ;)

snyx
11-27-2001, 02:09 AM
I didnt like it when the users avatar was in that table man, cuz then the ON/OFF image of the PM's gets all messed up, and doesnt aling with the forums ON/OFF.

I made mine from scrap, and hacks throw together. The "User News Scroller" is just that, it scrolls some important user news, and threads, and tips. Hot links, sorta explains its self. It looks basically the same when logged out, but with an "GUEST" image as the avatar, no scroller, or hot links. PM is gone, and it just says a little "HEY JOIN NOW" thing, and im working in the login thing tonight (whoa, a whole 2 mins there)

I attached a shot of it when your loggedin.

Myles.

nafae
11-27-2001, 02:33 AM
synx call me :stupid: but i dont understand... hehe :D

snyx
11-27-2001, 02:36 AM
what man, im just showing off my work :D

nafae
11-27-2001, 02:45 AM
da darling da... :D

trilOByte
11-27-2001, 07:17 AM
[QUOTE]Originally posted by nafae
im installing it, but it seems i have encountered something i dont get. It sayes it can be placed anywhere in forumhome_xxx template. Well i am in the "forumhome" tree, and I dont see forumhome_xxx there or anywhere else. If he means xxx as in "any of them" it doesnt matter in WHAT forumhome i put it in? sorry just wanted to clear that up ;)

trilOByte
11-27-2001, 07:23 AM
[QUOTE]Originally posted by snyx
I didnt like it when the users avatar was in that table man, cuz then the ON/OFF image of the PM's gets all messed up, and doesnt aling with the forums ON/OFF.

Myles.

trilOByte
11-27-2001, 07:31 AM
Oh yeah, if there are no glitches with this (anyone), maybe a mod could move it into a none "beta" area. ;)

nafae
11-27-2001, 06:09 PM
i hvnt found glitch, i love it... i have gotten like 6 comments "i like that thing at the top of the forums" hehehe

Horizon
11-27-2001, 11:15 PM
I put a screen shot up, I dont know too much PHP, but I am missing a line on the right side...ideas?

I put a half circle around it....

Also how do I move all the stuff under my forums instead of at the top.

DarkReaper
11-28-2001, 01:12 AM
Working great for me, but I heavily modified it:

http://www.unrealtournament.org/forums/index.php

One problem though: The # of posts and threads always seems to be the same....

Bitmap
11-28-2001, 04:18 AM
[QUOTE]Originally posted by Horizon
I put a screen shot up, I dont know too much PHP, but I am missing a line on the right side...ideas?

I put a half circle around it....

Horizon
11-28-2001, 10:53 AM
Well I dont want to change it up at all...just want that line there :D

trilOByte
11-28-2001, 01:24 PM
Ooops, I never noticed that, but bitmap is right, it's an html error, all you need to do is remove the colspan=4 from after the $avatarimage... so


<td bgcolor="#1C5780" align="center" valign="top" width="100">$avatarimage</td>
<td bgcolor="#13486D" colspan="4">


becomes..


<td bgcolor="#1C5780" align="center" valign="top" width="100">$avatarimage</td>
<td bgcolor="#13486D">


If you just remove that, nothing else will change but the line will appear properly.

I'll update the download ;)

trilOByte
11-28-2001, 01:31 PM
OK, I've updated the download :)

Horizon
11-28-2001, 01:32 PM
What Template is this in?

Ok ANswered my question FORUMHOME template.

:D

Horizon
11-28-2001, 02:04 PM
Hey Trilobyte, I have an idea....right above the welcome panel we have

Members: 20, Threads: 105, Posts: 430
Welcome to our newest member .....

Can you incorporate this into the panel also?

trilOByte
11-28-2001, 02:33 PM
Sure, it's all in the forumhome template. The code you refer to, is located in the.....

<!-- text -->
xxx[bunch of code]xxx
<!-- /text -->

part of the template, just move it into whichever part of the

<!-- welcomepanel -->
xxx[bunch of code]xxx
<!-- /welcomepanel -->

you want it to be in.

In answer to your other question about having the welcomepanel at the bottom, yes just move all the....

<!-- welcomepanel -->
xxx[bunch of code]xxx
<!-- /welcomepanel -->

code so it is underneath the..

<!-- /main -->

part of the template. It's dead easy :)

Horizon
11-28-2001, 03:34 PM
Yea thanks a million, I dont know if I want the welcome panel at the bottom the more I Think about it.....

Have any ideas where to put the lines of


Members: 20, Threads: 105, Posts: 430
Welcome to our newest member

I am at a lost to put it somewhere, I Think though that it looks too plain though at the top......

trilOByte
11-28-2001, 10:10 PM
well it's up to you. I didn't include it in the welcomepanel, because it isn't directly pertinent to the viewers personal info, like all the other stuff in the welcomepanel.

I suppose you could put it under the login/logoff links, but it would look wierd to a guest user. I'm happy with it where it is.

Lesane
11-30-2001, 04:37 PM
Very nice, loox good. Thanks

Lesane
11-30-2001, 04:48 PM
[QUOTE]Originally posted by DarkReaper
One problem though: The # of posts and threads always seems to be the same....

DarkReaper
11-30-2001, 06:21 PM
That works, thanks :)

Dark Blaze
12-03-2001, 03:59 PM
Great hack, congrats trilOByte :)

Dez_U
12-03-2001, 08:59 PM
This is a great hack, thanks to all BUT

I have a wee problem :( can someone look here) www.scottalk.com/forum and tell me where I have went wrong :(

The avatar appears at the top left as well as in the box :(

please helps, thanks

VolsReport
12-06-2001, 09:04 PM
This Hack Is Great...Good Job Guys...But i dont like where da PM box is so what do i do to put the PM box back to it's regular spot? Anybody can help?

Lesane
12-07-2001, 07:47 AM
Put $pminfo after $forumbits

VolsReport
12-08-2001, 12:39 AM
[QUOTE]Originally posted by Lesane
Put $pminfo after $forumbits

FWC
12-08-2001, 12:41 AM
forumhome

VolsReport
12-08-2001, 02:08 AM
Ight thanxx...

VolsReport
12-08-2001, 02:20 AM
When i added this hack, the stats dissapear...U know where it says NEWEST MEMBER:,THREADS:, and POSTS...Can somebody help me and tell me how to add them back? I really need it...Thanx again...

trilOByte
12-08-2001, 03:06 AM
They don't dissapear if you followed the hack properly. The stats are contained within the..

<!-- text -->
some code.......
<!-- /text -->

part of the forumhome template. Review the hack and make sure you followed it properly. Look at the images in the first post of this thread, your stats should appear there.

VolsReport
12-08-2001, 04:03 AM
Yo thanxx man...I got it now...Looks perfect...Great hack...

exodus
12-08-2001, 10:40 PM
this is a real sweet hack

i have it on my board. was real easy to install. :)

LuBi
12-12-2001, 06:30 AM
If I install this hack, will quests who post see that avatar in their post? Also member who do not have an avatar selected will they see that no avatar avatar? If not how can I edit my forum to do so?

Meta
12-12-2001, 08:11 AM
Works well ... good hack.

Thank you, trilOByte!

trilOByte
12-12-2001, 10:12 AM
Originally posted by LuBi
If I install this hack, will quests who post see that avatar in their post?

They will see the guestavatar.gif

Also member who do not have an avatar selected will they see that no avatar avatar? If not how can I edit my forum to do so?

If a registered user does not have an avatar selected, they will see the noavatar.gif. You can change noavatar.gif and guestavatar.gif to anything you like.

:)

trilOByte
12-12-2001, 10:14 AM
[QUOTE]Originally posted by Meta
Works well ... good hack.

Thank you, trilOByte!

Meta
12-12-2001, 11:49 AM
(Well ... thanks for all of them! And you.)

LuBi
12-12-2001, 03:00 PM
Well thanks for the answer but I was meaning when they post. How can I make it so when a guest posts on my board where an avatar usually is that quest avatar will apear. Same for members with no avatars selceted. I'm sure since vB doesn't include and avatar of it's own for guests amd no avatar selected I will have to code something.. Thanks

Dalius
12-15-2001, 02:39 AM
Extremely Well Done, Good Work FireGoat, trilo, and Mr

!!11

Dalius
12-15-2001, 03:18 AM
I followed the instructions fully, but I'm missing the Private Message Bar

Whats the exact code to put it in?

URL (http://phorums.phorums.net)

trilOByte
12-16-2001, 04:51 AM
I don't understand, if you've inserted all the content of

<-- !welcomepanel -->

into your postbit template, you should have a pm bar.

Alternatively, just put ...

$pminfo

where ever in the postbit template you want the pm bar to appear - remember to edit out other instances otherwise you will have multiple pm bars.

Dalius
12-16-2001, 02:57 PM
I've already done that
I'll try re-putting the welcome panel code their

Dalius
12-16-2001, 05:00 PM
Still no
I've sent you a PM with more info

tru
12-18-2001, 01:28 AM
Is there an easy way to mod this so no avatar shows up at all?

I don't want users using avatars (only contrubuting members; even then it's one I choose {goldstar}).

Any idea?

-c

Radon3k
12-18-2001, 03:45 AM
Works like a charm, thanks much sir, this is great! :)

trilOByte
12-18-2001, 04:35 AM
[QUOTE]Originally posted by tru
Is there an easy way to mod this so no avatar shows up at all?

I don't want users using avatars (only contrubuting members; even then it's one I choose {goldstar}).

Any idea?

-c

Bitmap
12-18-2001, 08:00 AM
why is nobody moving this hack in the released hack forum? i think it's not in beta anymore :)

tru
12-19-2001, 04:40 AM
[QUOTE]Originally posted by trilOByte
you're looking for - just a panel at the top with login info and such?

cturcich
12-19-2001, 04:44 AM
wrong thread!

Hooper
12-20-2001, 11:13 PM
I like this. You have a nice site TrilObyte. Thank you.

Graphic-Forums
12-23-2001, 02:58 PM
Does this work the same in 2.2.1?

For the first edit of index.php this is the closest permissions code I could find:
$permissions['canview'];
$usergroupdef['canpostnew']

What is a good php searcher?

trilOByte
12-23-2001, 07:09 PM
[QUOTE]Originally posted by Graphic-Forums
Does this work the same in 2.2.1?

For the first edit of index.php this is the closest permissions code I could find:
$permissions['canview'];
$usergroupdef['canpostnew']

What is a good php searcher?

trilOByte
12-23-2001, 07:10 PM
[QUOTE]Originally posted by Hooper
I like this. You have a nice site TrilObyte. Thank you.

Radon3k
12-23-2001, 07:27 PM
I think it's his avatar to make it look like he's got stars...Nice trick though :D

Graphic-Forums
12-24-2001, 04:39 PM
Trilo, is that what i post it after the code I posted in my last message, I can't find anything else..

Graphic-Forums
12-24-2001, 08:38 PM
Got it working, had to download a program to view php's with notepad wasnt cutting it.

trilOByte
12-24-2001, 09:34 PM
[QUOTE]Originally posted by Graphic-Forums
Got it working, had to download a program to view php's with notepad wasnt cutting it.

Graphic-Forums
12-24-2001, 10:16 PM
Yeah it works great..

wanna see what i did with it?

www.graphic-forums.com/index.php?styleid=5

trilOByte
12-24-2001, 10:36 PM
did you upload the guestavatar and noavatar gifs?

http://www.graphic-forums.com/images/avatars/guestavatar.gif doesn't appear to exist on your server - otherwise it looks fine ;)

trilOByte
12-24-2001, 11:09 PM
Please note - I've posted this hack in the full releases forum, as it would appear to be relatively problem free.

You can find it here:

Welcome Panel Hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=33477)

Please address any further questions in that thread, thanks.