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)
-   -   Deluxe vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=108026)

pumpiniron 09-28-2006 06:14 AM

Fixed part of it.

pumpiniron 09-28-2006 06:51 AM

Ok so this is my final post for the night... I took care of it and got it working on my site...

Check it out here... www.verticalterrain.com

It's doing something weird though. If I log in on the main page it redirects me but shows me as still not being logged in. If I go to my forum main page and log in it logs me in and then if I go back to the main page on my site it shows me as logged in... What's up with that? Is this a cookies issue?

Billspaintball 09-28-2006 06:52 AM

Quote:

Originally Posted by pumpiniron
If you look at my site though at www.verticalterrain.com it still has the error...

Just had a look now and cant see any error?

pokerie 09-28-2006 10:50 AM

Hi,
After using this fantastic hack for a while now, we've just installed the vbseo product. Everything is fine other than this line in login_inc.php:

PHP Code:

list($width$height$type) = getimagesize($file); 

It is throwing up an 'cannot open stream' type error. Any idea what might have caused this?

pumpiniron 09-28-2006 02:41 PM

Bill,

I fixed all the errors now here is my new problem...

Check it out here... www.verticalterrain.com

It's doing something weird though. If I log in on the main page it redirects me but shows me as still not being logged in. If I go to my forum main page and log in it logs me in and then if I go back to the main page on my site it shows me as logged in... What's up with that? Is this a cookies issue?

Hornstar 10-04-2006 01:21 AM

Quote:

Originally Posted by pumpiniron
Bill,

I fixed all the errors now here is my new problem...

Check it out here... www.verticalterrain.com

It's doing something weird though. If I log in on the main page it redirects me but shows me as still not being logged in. If I go to my forum main page and log in it logs me in and then if I go back to the main page on my site it shows me as logged in... What's up with that? Is this a cookies issue?

clear your cookies, and cache and try again, that also happens to me on vbadvanced cms

Hornstar 10-13-2006 10:45 PM

Quote:

Originally Posted by pokerie
Hi,
After using this fantastic hack for a while now, we've just installed the vbseo product. Everything is fine other than this line in login_inc.php:

PHP Code:

list($width$height$type) = getimagesize($file); 

It is throwing up an 'cannot open stream' type error. Any idea what might have caused this?

I'm running vbseo as well and also get the same error. Anyone have a fix for this yet?

Hornstar 10-13-2006 11:37 PM

I also think there must be an error in part of the code or something because some of the links work but then some will end up giving me

forums//login.php as an example but if i changed login_inc to have my forums as .net/forums then it will work however then the other links will be forumsprivate.php as an example

so i dont know how to fix this problem.

Hakaslak 10-14-2006 06:54 AM

What I use to get total number of members. Works for me. Posting it here because it seems to be something people really want. Dunno why. I script kiddied the code that Billspaintball used to get thread/post counts, and did a quickie Google search for how to count rows. and mashed them up. /shrugs

Demo: beta.awp-tech.com

Code:

// get total number of members
$getstats_user_count = $db->query_read('SELECT COUNT(*) FROM ' .TABLE_PREFIX . 'user');
while ($forum_user_count = $db->fetch_array($getstats_user_count))
{
        $totusers += $forum_user_count['COUNT(*)'];
}
$totusers = vb_number_format($totusers);

I am really NOT good at coding (I know no PHP/mySQL), so use at your own risk. If I made any mistakes, please let me know so I can correct it!

Hakaslak figures usage instructions would be nice::rolleyes:

#
#-----[ OPEN ]------------------------------------------
#
Code:

login_inc.php
#
#-----[ FIND ]------------------------------------------
#
Code:

$totposts = vb_number_format($totposts);
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code:

// get total number of members
$getstats_user_count = $db->query_read('SELECT COUNT(*) FROM ' .TABLE_PREFIX . 'user');
while ($forum_user_count = $db->fetch_array($getstats_user_count))
{
        $totusers += $forum_user_count['COUNT(*)'];
}
$totusers = vb_number_format($totusers);

#
#-----[ FIND ]------------------------------------------
#
Code:

$vbphrase[posts]: $totposts<br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
Code:

$vbphrase[members]: $totusers<br />
All done!

Hakaslak 10-14-2006 09:30 AM

I've been trying to add the newest user for 3 hours. It's 3:30 and I'm giving up to sleep. Does ANYONE have any idea how to display the newest registerd user???

Google is NOT my friend.


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