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)
-   -   Get rid of "register" option if you have registered (https://vborg.vbsupport.ru/showthread.php?t=33051)

kc5uyw 02-02-2002 07:33 PM

Execellent *clicks installed*

haas 02-03-2002 06:49 AM

Any answer in the hack working with vbportal?

X-Fan 02-03-2002 07:57 AM

[QUOTE]Originally posted by Arathorn
Tested on vb 2.2.1 with vbportals 3.

Floris 02-03-2002 01:47 PM

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.

Stretchr 02-27-2002 11:19 PM

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.

Logician 05-13-2002 09:28 PM

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

James Cridland 05-14-2002 09:06 PM

Thanks for that. I'll update the hack.

hoops 05-16-2002 09:37 AM

thanx! was easy enough..

Carthriller 06-05-2002 01:39 AM

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.

James Cridland 06-05-2002 05:35 PM

[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.

Carthriller 06-07-2002 04:43 AM

The problem is that nothing shows the place where I put $register_or_controlpanel variable.

James Cridland 06-08-2002 03:53 PM

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
  • Page Generation 0.01143 seconds
  • Memory Usage 1,737KB
  • 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
  • (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
  • (12)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