vb.org Archive

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

RobAC 01-23-2007 10:12 PM

I like the user authentication system that PhotoPost and ReviewPost utilize from Techimo.

I don't care about showing avatars and have no desire to do so. I just want the same functionality as PhotoPost has.

Does this hack do the same thing?

Billspaintball 01-25-2007 03:19 AM

Quote:

Originally Posted by RobAC (Post 1166036)
Does this hack do the same thing?

Sorry, Im not familiar whith how they work.

Jasen Hicks 01-27-2007 04:59 AM

Mine isnt working :(

Code:

<?

$curdir = getcwd ();

chdir("htdocs/vb");

require_once("htdocs/vb/global.php");

chdir ($curdir);

?>
<html>
<head>
<title>TRS Compatability Charts</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p><font size="+2" face="Verdana, Arial, Helvetica, sans-serif">TRS Compatability Chart
  </font></p>
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">This information
  has been gathered from a number of resources including books, websites, and
  personal experiences. This in no way can account for the exact creature that
  you are purchasing and should be used as a reference only. Tidewater Reefers
  Society, its members, and users are not liable for this information. We try
  to ensure all the information is accurate and up to date, however, we make no
claims that it is 100% correct.</font></p>

<?
  require_once("login_inc.php");
?>
<?

If ($vbulletin->userinfo['userid']!=0)
    {   
    echo "<a href=\"compatabilityResults.php\"><font face=\"Verdana, Arial, Helvetica, sans-serif\">View
      Compatability Chart</font></a><br>";
    }
       
        else {
    echo "<p><font size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">You are required to be logged on prior to viewing the chart. Please login now using your Forum Username and Password:</font></p>";
 
    }
?>
<p><br>
  <br>
  <!-- &lt;&lt;MODERATOR/ADMIN ONLY&gt;&gt;<br>
  <a href="compatabilityInput.php">Add a New Creature</a></font></p>
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">&lt;&lt;MODS/ADMIN
  and ALL OTHERS&gt;&gt;<br>
 
  </font>
  -->

  <!-- Export Entire Compatability Chart to CSV</font></p> -->
</p>
<p>&nbsp;</p>
</body>
</html>


Jasen Hicks 01-27-2007 05:03 AM

OK, even with non-moron-2AM code it still doesnt work:

Code:

<?

$curdir = getcwd ();

chdir('/htdocs/vb');
require_once('/htdocs/vb/global.php');

chdir ($curdir);

?>
<html>
<head>
<title>TRS Compatability Charts</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p><font size="+2" face="Verdana, Arial, Helvetica, sans-serif">TRS Compatability Chart
  </font></p>
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">This information
  has been gathered from a number of resources including books, websites, and
  personal experiences. This in no way can account for the exact creature that
  you are purchasing and should be used as a reference only. Tidewater Reefers
  Society, its members, and users are not liable for this information. We try
  to ensure all the information is accurate and up to date, however, we make no
claims that it is 100% correct.</font></p>

<?
  require_once('login_inc.php');

 if($vbulletin->userinfo['userid']!=0)
    {   
    echo "<a href=\"compatabilityResults.php\"><font face=\"Verdana, Arial, Helvetica, sans-serif\">View Compatability Chart</font></a><br>";
    }
       
        else {
    echo "<p><font size=\"-1\" face=\"Verdana, Arial, Helvetica, sans-serif\">You are required to be logged on prior to viewing the chart. Please login now using your Forum Username and Password:</font></p>";
 
    }
?>
<p><br>
  <br>
  <!-- &lt;&lt;MODERATOR/ADMIN ONLY&gt;&gt;<br>
  <a href="compatabilityInput.php">Add a New Creature</a></font></p>
<p><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">&lt;&lt;MODS/ADMIN
  and ALL OTHERS&gt;&gt;<br>
 
  </font>
  -->

  <!-- Export Entire Compatability Chart to CSV</font></p> -->
</p>
<p>&nbsp;</p>
</body>
</html>


Billspaintball 01-30-2007 01:44 AM

What exactly is it doing or not doing?
Any error messages?
A little more info please.

Edit:
Your path statement up the top is wrong.
I suspect that your path statement may not be correct.
Do the 2nd step of the troubleshooting guide (post 2) and see what you get.

Jasen Hicks 01-30-2007 11:16 PM

Thanks, looking back i realized that 2AM coding is a bad idea ;) I feel ashamed now.

idwf 02-09-2007 11:31 PM

I've just come back to using my vb and i was wondering if this still works, if not..can someone link me? thanks

Billspaintball 02-11-2007 09:08 PM

Quote:

Originally Posted by idwf (Post 1178797)
I've just come back to using my vb and i was wondering if this still works, if not..can someone link me? thanks

Yes, still working with all versions of 3.6.x to date.

Mysticales 02-18-2007 02:28 AM

Quote:

Originally Posted by Billspaintball (Post 1131318)
Yes there is a conflict between this and vB external.
We tried to track it down with an earlier release of this but with no luck.

A workaround others have used is use vBexternal for the front page and this hack on the rest to provide access control.

Here you go, took me a hour to solve. ^^
https://vborg.vbsupport.ru/showpost....&postcount=399

Mastar 02-20-2007 02:23 AM

How to get this to work wid vbseo?
Code:

Unable to add cookies, header already sent.
File: /home/XXXXX/public_html/index.php
Line: 1
 

 



Search Engine Optimization by vBSEO 3



All times are GMT. The time now is 03:34 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.01399 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
  • (3)bbcode_code_printable
  • (3)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