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)

SirSteve 12-25-2001 05:19 AM

What about placing the LOGOUT button where REGISTER would be if they are logged in?

Dockaych 12-25-2001 07:47 AM

[QUOTE]Originally posted by SirSteve
What about placing the LOGOUT button where REGISTER would be if they are logged in?

fonzerelli_79 12-25-2001 11:18 PM

dont know whats wrong

installed the hack word for word and it didnt work

no errors but the register and the user cp did not show

oh well!!

nuno 12-26-2001 12:20 AM

[QUOTE]Originally posted by freddie
I put something in my phpinclude template like this:

if ($bbuserinfo[userid]) { // user is logged in
$pflink = linkto usercp.php
} else {
$pflink = linkto register.php
}

I then put $pflink in the header template in place of the buttons that show user cp/register. Do it this way and you don't have to edit anything when you upgrade.

fonzerelli_79 12-26-2001 01:34 AM

yeah i did that

i think its because i use vbportal

my phpinclude is this

if (!isset($mainfile)){
include("../vbp_includes.php");
}

i think this is where the problem is

Smallville 12-26-2001 06:23 AM

This is really confusing. There are codes flying around the thread and the .txt file at the beginning isn't written that well (no offense).

Could somebody rewrite this (take what's there and specify everything for MAJORLY PHP CHALLENGED people like ME) so it tells what exact file to open, what to change, where to change it? Thank you so much. It's confusing when the txt file is not specific at the end, people post coding in their replies, and then somebody says don't use that, bla bla, AAAHHHH.

Thanks for redoing it if anyone does. I'm really illiterate with PHP and coding, so I need it very specific. The hack sounds very cool though.

SystemLogic 12-26-2001 03:56 PM

Works like a charm, thanks! I've been looking for this one ;)

James Cridland 12-30-2001 01:34 PM

[QUOTE]Originally posted by Smallville
This is really confusing. There are codes flying around the thread and the .txt file at the beginning isn't written that well (no offense).

Could somebody rewrite this (take what's there and specify everything for MAJORLY PHP CHALLENGED people like ME) so it tells what exact file to open, what to change, where to change it? Thank you so much. It's confusing when the txt file is not specific at the end, people post coding in their replies, and then somebody says don't use that, bla bla, AAAHHHH.

Thanks for redoing it if anyone does. I'm really illiterate with PHP and coding, so I need it very specific. The hack sounds very cool though.

James Cridland 12-30-2001 01:39 PM

[QUOTE]Originally posted by Dockaych
Perhaps this could be expanded to allow for a logout button too though? (although the logout isn't usually next to register/user cp)

Martin CX 12-30-2001 07:29 PM

If you download the graphic developers kit from vbulletin.com you'll find a log out-button (almost) ready to use.

Thanks for the hack! I've modified this hack somewhat too - having a text menu for users logged in, and having a user name and password text boxes for those not logged in, making it a breeze to log in - even when you are on some obscure page.


All times are GMT. The time now is 01: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
  • Page Generation 0.00968 seconds
  • Memory Usage 1,732KB
  • 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
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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