![]() |
How can I create a member panel on my homepage
I've seen a few people asking about this, but I can't work out how to do it.
On my homepage I want to create a panel in the right column, which says one of the following. If member logged in: Welcome, back..... excalty like on the main forums page. If member not logged in: Box with login options etc like on the main forums page. I've been trying to create something using some custom templates in vBulletin and modifying a copy of the index.php file. I can get it to work when my modified php file is in the forums diectory (see here ) but when I insert this PHP file into my homepage (which is a php file too) it doesn't work :( I think it's to do with the paths to the templates, but I can't find where vBulletin stores its templates. I've seen lots of websites using this feature (eg this one), but I think they are using somehing like vbPortal which I don't want to use (rather wait for vb3). |
Install the Welcome Panel hack
|
This looks like it's for use on the main forum page. I want to create something similar to this on my website's homepage ie a non-vB page.
Thanks. Darren. The Book Forum |
damn i got this done...... www.fiendworld.com <--the page is a bit ****ed but the side thing works..... tell me if thats what u want it says UserCP then Welcome back Darren Lewis.. but seen as ur not registered it'll have the login code.... if this is what u want tell me it takes like 3 custom templates and a bit of php code.. or u can use too templates already on ur board..
|
Yes, that's what I want :)
Is there any way that it can not diplay the "welcome back, unregistered" unless you are registered and it would then say "Welcome back username". It would also be great if it could then say, "there have been x number of posts and x threads since your last visit. Click here to enter the forums" Thanks for taking the trouble to try this, I appreciate your help. Darren. |
yes there is.. ima edit it so it says that now
|
1 Attachment(s)
i dont have the code for the "there have been X posts" so i cant add it... lol i deleted it from my forum :)
|
Thank you very much. I don't have time at the moment to set this up, but I'll get some time over the weekend (hopefully!)
Darren. |
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=36756" target="_blank">https://vborg.vbsupport.ru/showt...threadid=36756</a>
|
^^that doesnt have the user panel... u have too add it urself :)
|
I followed your instructions. I created the templates, and put the PHP code into a file. I then inserted this into another PHP webpage using the include function.
It generated this error:- Fatal error: Call to undefined function: gettemplate() in path to PHP file/homelogin.php on line 8 What am I doing wrong? This is the full PHP file I created (called homelogin.php) PHP Code:
|
E,
Am I supposed to be using your code together with the vBHome (Lite) hack? |
where did u put it.. what is line 8?
|
You have to require vB's admin/functions.php in that file (I think) as that is where gettemplate() is defined.
|
I've nearly managed to solve the problem.
Have a look here for the result. Thanks for all the help. I'm slowly starting to understand how powerful PHP (and vB) can be. If I delete my cookie, I get this message Quote:
It must be something to do with the cookie as when I log in the probelm disappears. |
Managed to solve it and get the script working OK now.
|
All times are GMT. The time now is 02:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|