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)

Hakaslak 10-16-2006 07:02 PM

Quick thing. Any particular reason you used the "+=" operand? I am a newbie so I am guessing, but on my home page, it doubles the value of all my statistics. So instead of 95 posts and 95 threads, the stats say 190 theads and posts. However, when the stat is reporting from a thread in the forums dir, then everything is fine. This is true for the member count stat as well.

Also, I had to change your "+=" operand to "=", and modified your mySQL query in order to get the correct values. Here is what I am using now:

Code:

// get total number of posts
$getstats = $db->query_read('SELECT SUM(replycount) AS sumreply FROM ' . TABLE_PREFIX . 'forum');
while ($forum = $db->fetch_array($getstats))
{
        $totposts = $forum['sumreply'];
}
$totposts = vb_number_format($totposts);

In order to get the SUM() working, I had to seperate the threadcount and postcount queries, but I have it all working and reporting the right values now.

Rated 10-16-2006 10:17 PM

This is the best hack i've ever installed on any vB forum. And trust me ive installed lots ^^

Great work bill!, It took me a while to set it up (major issues with file paths, cookies) but the fixes are in this thread.

And example: http://www.snesclassics.com - up top right.

Thanks again mate!

lsatblu 10-19-2006 10:07 PM

Any idea why this isn't working? I installed it on a test page.

http://talesotaku.com/test.php

Code:

<?php

  chdir('http://talesotaku.com/forums');

  require_once('http://talesotaku.com/forums/global.php'); 

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
</head>

<body>

<?php

  require_once('http://talesotaku.com/login_inc.php');

?> 

</body>
</html>

I have everything on that one page and on my login_inc.php I set the values like I was directed.

N-0p3rz 10-20-2006 09:06 AM

=/ I'm having problems with getting it to show the users info once logged in

Test login page = http://www.hiphopfame.com/test.php
Test login = test
Test password = 1Test1

I changed the Suggested Settings for Path to Save Cookies to / btw. And still this problem =(

I was also getting this error

Quote:

Fatal error: Call to a member function on a non-object in /home/sdot0ne/public_html/hiphopfame/community/login_inc.php on line 150
But I just deleted that little bit of code.

tandalier 10-20-2006 11:24 AM

also can't get it working.
on www.xboxbase.at everything is okay

on the same server there ist a second page, nintendobase, but there I can't get it working:
just see www.nintendobase.at

i'm always getting the message that I'm logged in, but when it get's back to the main-site I'm logged off.

Can anyone help?

Rated 10-24-2006 09:51 AM

Hmm some tips..

Make sure ALL the file paths are absolute.. I.e /home/public_html/website/login_inc.php etc.

If logging into a subdomain.. u need to change the cookie info in vbulletin option to /sitename, not /

pewp 11-08-2006 08:10 PM

now i'm getting this error... anyone got any ideas?

Fatal error: Call to a member function on a non-object in /home/decimato/public_html/login_inc.php on line 150

Rated 11-08-2006 09:52 PM

Whats on line 150?

N-0p3rz 11-13-2006 07:07 AM

Quote:

Originally Posted by N-0p3rz (Post 1100718)
=/ I'm having problems with getting it to show the users info once logged in

Test login page = http://www.hiphopfame.com/test.php
Test login = test
Test password = 1Test1

I changed the Suggested Settings for Path to Save Cookies to / btw. And still this problem =(

I was also getting this error



But I just deleted that little bit of code.

still having this error.

..

the paths are absolute.

My only conclusion is that.. the fact that the domain is an addon domain to my host.. is what's causing the problem..

like the forum can be accessed from http://www.sdotproductions.com/hiphopfame/

Would that be why I'm experiencing what I'm experiencing?

myplacidcasual 11-13-2006 02:07 PM

I'd like it to show that you have unread pms

Shouldn't be hard right bill?


All times are GMT. The time now is 08:24 PM.

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.01473 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (2)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