vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Welcome Panel (https://vborg.vbsupport.ru/showthread.php?t=32702)

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) and one by MrLister (since your last visit). 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

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

Code:

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

becomes..

Code:

<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. :)


All times are GMT. The time now is 03:51 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.01884 seconds
  • Memory Usage 1,808KB
  • 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
  • (2)bbcode_code_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
  • (40)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