![]() |
Execellent *clicks installed*
|
Any answer in the hack working with vbportal?
|
[QUOTE]Originally posted by Arathorn
Tested on vb 2.2.1 with vbportals 3. |
After buying vBulletin last december, I seriously got suprised that this wasn't 'default' in vB (especially because we are up at version 2.2.2 by now).
As a guest, I was wondering why some buttons appeared on the menu, since some have been set to 'disabled' for guests through the admin control panel. As a registerd user, I was wondering why buttons like login or register were showing up on the menu, when I was logged in. As a admin/supermod, I was wondering why I kind of missed a link to the admin/mod section. I really hope freddie does implement this all (or partially *g*) into version 3. I would really appriciate this (and I think more members will do). >>brainstorm>> Maybe it is nice to have this as an option in the admin control panel > Forum options. Show link on frontpage to the admin [x] and/or moderator [ ] back-end ? Show link on menu to 'register' [ ] and/or 'login' [x] or something near that. |
I don't get the Register/CP buttons on vbPortal's home page, either. Did you have any luck resolving this? I put the code into vpbincludes.php as suggested.
Thanks [QUOTE]Originally posted by Erwin The hack works for vBPortal 3 on the Forum home page, but not for the vBPortal Main Home page (following the vBPortal instructions above). Which is a big hassle. I'll see if there's a way around it. |
There is a small bug in the installation instructions:
In phpinclude part, the code: -- cut -- //Make control panel appear if user is logged in, otherwise offer them the chance of registration if ($bbuserinfo['userid']<"1") { //they're a guest $register_or_controlpanel = "<a href=\"register.php?s=$session[sessionhash]&action=signup\"><img src=\"{imagesfolder}/top_register.gif\" alt=\"Registration is free!\" border=\"0\"></a>"; } else { //they're registered $register_or_controlpanel = "<a href=\"usercp.php?s=$session[sessionhash]\"><img src=\"{imagesfolder}/top_profile.gif\" alt=\"Here you can view your subscribed threads, work with private messages and edit your profile and preferences\" border=\"0\"></a>"; } -- cut -- does not parse session variable so I suggest taking it outside like that: -- cut -- //Make control panel appear if user is logged in, otherwise offer them the chance of registration if ($bbuserinfo['userid']<1) { //they're a guest $register_or_controlpanel = '<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>'; } else { //they're registered $register_or_controlpanel = '<a href="usercp.php?s='.$session[sessionhash].'"><img src="{imagesfolder}/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>'; } -- cut -- BTW nice idea and good hack... :) Regards, Logician |
Thanks for that. I'll update the hack.
|
thanx! was easy enough..
|
I followed the direction on the txt file for VB2.2.5 but didn't work. I also have vbportal version 3.0 installed. What other changes would I need to make? Thank you.
|
[QUOTE]Originally posted by Carthriller
I followed the direction on the txt file for VB2.2.5 but didn't work. I also have vbportal version 3.0 installed. What other changes would I need to make? Thank you. |
The problem is that nothing shows the place where I put $register_or_controlpanel variable.
|
Well, I'm just about to upgrade from v2.2.1 to v2.2.6 so I'll find out if there are any differences...!
|
All times are GMT. The time now is 01:15 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:
|