vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=100992)

ausnrl 01-30-2006 06:51 AM

So you will be able to solve these problems
Doesnt log me out when i hit logout
When delete cookies it logs me in on forums but doesnt say welcome back nrlleague.
CSS Form Change
When you narrow down to the Simple version?

JaseyJas 01-31-2006 03:27 AM

umm i keep getting
Quote:

Fatal error: Cannot redeclare class vbulletinhook in /forums/includes/class_hook.php on line 29

ausnrl 01-31-2006 04:59 AM

Billspaintball whats going to be different about the other one you are going to release. if i got you my php document would you fix it up for me?

Billspaintball 01-31-2006 11:06 AM

Quote:

Originally Posted by ausnrl
Billspaintball whats going to be different about the other one you are going to release.

Just rewritten so its neater, only one line to change instead of 4, and better instructions.
(Then there is the more complex version I use that displays the logged in users Avatar, and any unread PM's, whict I will tidy up and release one day)


Your logout problem is probably because you have whitespace (just a plain ole space)either before or in the includes.

Here, try this.

Save this code in a file called test.php an upload it to your server.
Remember to edit the 3 paths here so they match your site.

PHP Code:

<?php
chdir
('/path/to/your/forums');
require_once(
'/path/to/your/forums/global.php');
?>

    <html>
    <body>
    This is a heading<br />
    This is some more stuff <br />
    And another line<br />
    You get the idea<br />
    Just place stuff as you normally would with HTML<br />
    I use CSS to style and position on my site fwiw<br />
    <br />
    How about we put the login box right under here?<br />
    <br />
    <?php
require_once('/path/to/your/login_inc.php');
    
?>
    </body>
    </html>

remember, you need to edit the paths in your login_inc.php and upload it as well.

Billspaintball 01-31-2006 11:08 AM

Quote:

Originally Posted by JaseyJas
umm i keep getting

You have some other mods installed?

Realm of Horror Comics 01-31-2006 12:27 PM

Hey

I've installed this but right now the login box is right at the top of my page (see www.realmofhorrorcomics.com) How do I put the login box where I want it on the page?

Thanks!

Billspaintball 01-31-2006 06:42 PM

Quote:

Originally Posted by Realm of Horror Comics
Hey

I've installed this but right now the login box is right at the top of my page (see www.realmofhorrorcomics.com) How do I put the login box where I want it on the page?

Thanks!

This sample page should show you how.
https://vborg.vbsupport.ru/showpost....2&postcount=44

Realm of Horror Comics 01-31-2006 11:28 PM

Quote:

Originally Posted by Billspaintball
This sample page should show you how.
https://vborg.vbsupport.ru/showpost....2&postcount=44

Oooh, I see.

Thanks a lot! Great hack by the way, just what I was looking for. Thanks.

Clicked install btw. :)

Realm of Horror Comics 01-31-2006 11:56 PM

Just one other question, how do I edit the text:


Welcome Back, Username here !

... when a user is logged in?





Thanks! :)

Billspaintball 02-01-2006 12:11 AM

Quote:

Originally Posted by Realm of Horror Comics
Just one other question, how do I edit the text:

Welcome Back, Username here !

... when a user is logged in?
Thanks! :)

In the file login_inc.php, look up the top for this (around line 5)
PHP Code:

// Display welcome back message
echo "Welcome Back, <b>";
echo 
$vbulletin->userinfo['username'];
echo 
" !</b><br>"

You can change the text, fonts, styling etc.

:)


All times are GMT. The time now is 04: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.01250 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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