vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Welcome Panel [Final] (https://vborg.vbsupport.ru/showthread.php?t=33477)

WoodiE 07-06-2002 11:34 PM

clicks on install....works great for me on 2.2.6

Keyser S?ze 07-06-2002 11:42 PM

can anyone make a addon for this like, on holidays it automatically says "Merry Christmas..." that kind of thing, and so admins can set the date for whtever holidays or whatever

trilOByte 07-07-2002 06:12 AM

[QUOTE]Originally posted by Reverend
Thanks ghost.That fixed it.

Has the welcome panel hack been edited since it was first released,to replace "lastpost" with "dateline".

Just wondering.

Robert9 07-11-2002 03:19 AM

Hey I have a question. When I install the welcome panel it leaves off the Private message box that should be under the welcome panel. What is the problem here? I followed all the steps completely.

Schorsch 07-11-2002 03:29 AM

anybody has these two pics in german ? or could make them in german ?

thanks,
Schorsch

trilOByte 07-11-2002 07:00 AM

[QUOTE]Originally posted by Robert9
Hey I have a question. When I install the welcome panel it leaves off the Private message box that should be under the welcome panel. What is the problem here? I followed all the steps completely.

XTR3ME 07-11-2002 09:21 AM

Question how can i remove the forum leaders link ?

djr 07-11-2002 04:30 PM

Trilobyte,

Do you have the two .gif's in .psd format, so I can translate the text and the colors more easily?

- djr

Ian Emu-UK 07-14-2002 09:22 PM

Great hack :D

I have a couple of private forums, and I have fudged around with the PHP to stop it from counting them in the total with some help from a friend (Thanks RCK;)):-

PHP Code:

$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]' and forumid <> '21' and forumid <> '19'");
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post, thread WHERE lastpost > '$bbuserinfo[lastvisit]' and thread.threadid=post.threadid and thread.forumid <> '21' and thread.forumid <> '19'"); 

It works a treat apart from the fact it counts all the posts in a thread instead of just counting the new post.

I would be most grateful if one of you PHP/mySQL gods could help me with this one:)

Hwulex 07-15-2002 02:45 AM

Have installed, thanks for nice hack. Altered the templates pretty heavily, inspired by your own Genome Collective forum design (great work there btw dude).

Fourm should be at http://www.xaprief.com/forum/ soon :)

RCK 07-15-2002 02:00 PM

Use this code in your second SQL request:
Code:

$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post,thread WHERE post.dateline > '$bbuserinfo[lastvisit]' and thread.threadid=post.threadid and thread.forumid <> '21' and thread.forumid <> '19'");

Ian Emu-UK 07-15-2002 06:25 PM

Thanks, that fixed it:D

king sting 07-18-2002 07:39 PM

this hack kicks ass man! thanx alot!

EA Junkie 07-20-2002 03:02 AM

[QUOTE]In the template forumhome_welcometext find:

trilOByte 07-20-2002 04:17 AM

It's in the "Forum Home Page Templates"

Forum Home Page Templates [expand]>>forumhome_welcometext [edit]

veedee 07-21-2002 02:42 PM

Hiya

I'm running 2.2.6 I want to install this but I have about 5 themes/styles.

When I come to upgrade to say 2.2.7 will I have a lot of work to do?

Regards,

veedee

carpman 07-26-2002 12:38 PM

Hello, is it possible to put the welcome panel in the P_themeheader template of VBportal?

I would like to have the welcome panel display in P_themeheader template as will allow users to see information when the visit VBP front page and the forums.

great hack by the way :cool:

Reverend 08-19-2002 03:07 PM

In the top bar of the panel where it says "Welcome" what code do i need to add so that when a member logs in it says
"Welcome Back,(username)".

And for a guest visitor it says "Welcome,Guest"

Hope that makes sense. :ermm:

trilOByte 08-19-2002 03:58 PM

Welcome $username

trilOByte 08-19-2002 04:02 PM

[QUOTE]Originally posted by carpman
Hello, is it possible to put the welcome panel in the P_themeheader template of VBportal?

I would like to have the welcome panel display in P_themeheader template as will allow users to see information when the visit VBP front page and the forums.

great hack by the way :cool:

carpman 08-19-2002 04:16 PM

[QUOTE]Originally posted by trilOByte


You can put whatever you like in the p_themeheader, but much of the code will need to be changed. The avatar part wont work, but there are alternative which work a little differently.

To answer your question, if you just place the welcomepanel code into p_themeheader without any changes, no it wont work.

Reverend 08-19-2002 05:52 PM

[QUOTE]Originally posted by trilOByte
Welcome $username

trilOByte 08-19-2002 07:18 PM

So you want to add the word "back" into the welcome statement, if the user is a member?

So instead of ...

Welcome user1234
Welcome

You want...

Welcome back user1234
Welcome guest

Yes, it's possible, I think you need to create a new $var though, some code hacking and a couple of new template options, one for each option. Seems like a lot of trouble for a simple syntax preference. It would need to be something along the lines of a new $welcometext and new $unregwelcomemessage, so two new templates at least.

Though there might be an easier option, I honestly dont know.

Reverend 08-19-2002 08:11 PM

Yeah i think i'll just add

"Welcome Back username" (for logged in members)

And just leave it as

"Welcome" (for guests.)

Seems a lot simpler.

Thanks trilOByte. ;)

trilOByte 08-19-2002 08:40 PM

OK, I think this works.....

Open forum/index.php (make a backup copy) and find....

PHP Code:

forumhome_pmloggedin,forumhome_welcometext

Replace that with....

PHP Code:

forumhome_pmloggedin,forumhome_welcometext,forumhome_newwelcometext,forumhome_newunregmessage


Find...

PHP Code:

// if user is know, then welcome
if ($bbuserinfo['userid']!=0) {
  
$username=$bbuserinfo['username']; 

Immediately above that add....

PHP Code:

// New Welcometext Addition.
if ($bbuserinfo['userid']!=0) {
  
$username=$bbuserinfo['username'];
  eval(
"\$newwelcometext = \"".gettemplate('forumhome_newwelcometext')."\";");
} else {
  
$welcometext "";


Find...

PHP Code:

$unregwelcomemessage='';
if (
$bbuserinfo['userid']==0) {
  eval(
"\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");


Below that add...

PHP Code:

// New Unregelcometext Addition.
$newunregwelcomemessage='';
if (
$bbuserinfo['userid']==0) {
  eval(
"\$newunregwelcomemessage = \"".gettemplate('forumhome_newunregmessage')."\";");


Clse and save index.php

Open your templates and add a new template called...

forumhome_newunregmessage

Inside that put....

Code:

<b>Guest</b>
Add another template caqlled...

forumhome_newwelcometext

Inside that put....

Code:

back, <b>$username</b>
Then go to the forumhome template, locate the "WelcomePanel"

Find where it says Welcome and replace it with...

Code:

Welcome $newwelcometext $newunregwelcomemessage
That should do it.

I must say, it's a lot of trouble for a simple syntax modification.

Reverend 08-19-2002 09:23 PM

Yep that works perfect.Thanks.

I know it seems like a lot of trouble for a simple modification,but i think it gives members or guests a more welcoming and personal greeting.
I actually saw it on a welcome panel hack for another bulletin board software.

trilOByte 08-19-2002 11:37 PM

[QUOTE]Originally posted by Reverend

I actually saw it on a welcome panel hack for another bulletin board software.

michealo 08-23-2002 07:47 PM

great hack, works like a charm!

Tony DiMera 08-24-2002 01:42 AM

Great hack. BTW is thereanywayto have this appear on my homepage and link it to my vb as well

carpman 08-24-2002 07:13 AM

[QUOTE]Originally posted by Tony DiMera
Great hack. BTW is thereanywayto have this appear on my homepage and link it to my vb as well

Tony DiMera 08-24-2002 08:49 PM

Hopefully trilOByte can tell us how.

NTLDR 08-24-2002 09:13 PM

[QUOTE]Originally posted by carpman
i would love to have it work in vbportal :)

Tony DiMera 08-24-2002 09:59 PM

How could I put it on my Non vB homepage

NTLDR 08-24-2002 10:07 PM

[QUOTE]Originally posted by Tony DiMera
How could I put it on my Non vB homepage

Tony DiMera 08-24-2002 11:53 PM

php is what I use

carpman 08-25-2002 09:17 AM

[QUOTE]Originally posted by NTLDR


All you need to do is add the PHP code to the PHP file for your home page and add the HTML to the hompage's template.

grace819 08-26-2002 08:44 AM

I tried following the instructions here but I still can't find a way to install the hack since I don't know how to access/open the index.php file. :( Can anyone tell me how to do this? Thanks again for your time.

Tony DiMera 08-26-2002 07:51 PM

*bump*

trilOByte 08-26-2002 08:50 PM

[QUOTE]Originally posted by grace819
I tried following the instructions here but I still can't find a way to install the hack since I don't know how to access/open the index.php file. :( Can anyone tell me how to do this? Thanks again for your time.

trilOByte 08-26-2002 08:52 PM

[QUOTE]Originally posted by Tony DiMera
How could I put it on my Non vB homepage


All times are GMT. The time now is 05:50 PM.

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.01652 seconds
  • Memory Usage 1,826KB
  • 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
  • (7)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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