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)

Paul_Hollibone 07-09-2006 11:35 PM

Hey Guys.

I have an issue regarding this hack.

It is actually working fine, and it was on my old server aswell.

However, since I moved across to a new server, this error has been appearing on all the pages I have that chdir script on. The error is as follows.

Fatal error: Call to a member function unlock_tables() on a non-object in /home/thrillhi/public_html/forums/includes/functions.php on line 4419

And it is appearing just at the bottom of my page's.

A link to it can be found here: www.thrillhistory.com

Thanks guys for your assistance.

Paul_Hollibone 07-12-2006 01:09 AM

Hey Guys, is anyone able to help an Aussie?

Billspaintball 07-12-2006 03:35 AM

I think it may be the MySQL/PHP config on your new server but Im not sure.

TheJackal56 07-13-2006 03:21 AM

Just wanted to say this works great!

I do have a couple of questions:

1. The login never times out, you have to actually click logout.
Is there a way to set a timeout?

2. On both Login and Logout can the VB menus that display(logout you have to actually click out of) can the code actually hide these menu's.

Thanks,

Bob

Billspaintball 07-13-2006 03:39 AM

Quote:

Originally Posted by TheJackal56
1. The login never times out, you have to actually click logout.
Is there a way to set a timeout?

It should have the same timeout as your site.
Do you have a session expire time set in your Admin CP?
Quote:

2. On both Login and Logout can the VB menus that display(logout you have to actually click out of) can the code actually hide these menu's.
Im not 100% sure what you mean here?
Can you give me a little more detail please.

TheJackal56 07-13-2006 05:23 AM

Session timeout is set in the admincp

I have attached to screen shots.

Both screens stay up until you click continue or hit the back button.

Billspaintball 07-14-2006 04:47 AM

Quote:

Originally Posted by TheJackal56
Session timeout is set in the admincp


I have attached to screen shots.

Both screens stay up until you click continue or hit the back button.

Thats weird.
I havent come accross this before.

In the "Cookies and HTTP Header Options" section of the Admon CP what happens if you turn the "Remove Redirection Message Pages" setting off?

Aotw 07-16-2006 09:53 AM

I have installed the login to our page and it works, but now i need to modify the design a bit. I have added a css file to the login_inc.php but i need to add some linke behaviour with css class. Here is one of the lines i need to modify, i have tried some but no sccess, only getting errors then i do it.

PHP Code:

echo"<a href=\"".$forumpath."search.php?$session[sessionurl]do=getnew\">$vbphrase[new_posts]</a>: $newposts<br />";} 

I alos having a problem with our cutenews installation on the same page, wich started direct after i added the login addon. Been trying to get some support at their site but no luck, maybe someone here could help?

Getting following error.
Quote:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/kreativi/public_html/portal/news/inc/functions.inc.php on line 43

SKNY 07-17-2006 01:06 AM

For the CSS.. heres what I did.

The page I included the login_inc.php already had a CSS Style Sheet applied to it so I just used the class...


Anyway part of my style sheet.

PHP Code:

<style>

.
orange{
    
color:#FF9300;
    
text-decoration:none;
}

.
orange2{
    
color:#FF9300;
}

.
orange_9{
    
color:#FF9300;
    
text-decoration:none;
    
font-size:9px;
}
<
style

Now all I did was add the class to the line of code I needed to apply a style to..


PHP Code:

echo "<br><a href=\"".$forumpath."search.php?$session[sessionurl]do=getnew\" class=\"orange\">New Posts</a>: $newposts<br />"

The above is the same code as yours below, however I didn't want to use the vB Phrase so I entered my own text.. other than that its the same as yours.

notice this part...

PHP Code:

class=\"orange\"> 

thats how you enter the class, and when you include the script onto your page the part with the class should have been styled..

As for the CuteNews thingy Im not sure.. I'll need to see the file functions.inc.php and the rest of your code.

Anyway hope I was of some help

- SKNY

Aotw 07-17-2006 09:41 AM

That helped alot SKNY, needed an example how to write the class in the php code, THX. :cool:


All times are GMT. The time now is 01:03 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.01365 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_php_printable
  • (4)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