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)

tirol07 11-17-2007 03:20 PM

Hi,

have a question,

How can I Disable to show this php-Page for non registered users?
PHP Code:

<?php



include("./config.php");
include(
"./header.php");
include(
"./lang/$language.php");

$rand1 =rand(0,9);
$rand2 =rand(0,9);
$rand3 =rand(0,9);
$rand4 =rand(0,9);
$rand5 =rand(0,9);
$rand6 =rand(0,9);
$secrandcode $rand1$rand2$rand3$rand4$rand5$rand6;

$bans=file("./secure/bans.mfh");
foreach(
$bans as $line)
{
  if (
$line==$_SERVER['REMOTE_ADDR']){
?>
<center><table style='margin-top:20px;width:790px;height:400px;'><tr><td style='border:1px #AAAAAA solid;height:100%;background-color:#DFEFFF;padding:20px;text-align:left;' valign=top><?
    echo "$lang[younallow]";
?></center></td></tr></table><p style="margin:3px;text-align:center"><?
    include("./footer.php");
    die();
  }
}

if(isset($_GET['file'])) {
  $filecrc = $_GET['file'];
} else {
?>

<?
?>
<center><table style='margin-top:20px;width:790px;height:400px;'><tr><td style='border:1px #AAAAAA solid;height:100%;background-color:#DFEFFF;padding:20px;text-align:left;' valign=top><?
  echo "$lang[inlink] <br />";
?></center></td></tr></table><p style="margin:3px;text-align:center"><?
  include("./footer.php");
  die();
}

$foundfile=0;
if (file_exists("./files/".$filecrc.".mfh")) {
    $fh1=fopen("./files/".$filecrc.".mfh",r);
    $foundfile= explode('|', fgets($fh1));
    fclose($fh1);
}
{
  $thisline = explode('|', $line);
  if ($thisline[0]==$filecrc){
    $foundfile=$thisline;
  }
}

if(isset($_GET['del'])) {

$deleted=0;
$filecrc = $_GET['file'];
$filecrctxt = $filecrc . ".mfh";
$passcode = $_GET['del'];
if (file_exists("./files/".$filecrctxt)) {
    $fh2=fopen ("./files/".$filecrctxt,r);
    $thisline= explode('|', fgets($fh2));
    if($thisline[2] == $passcode){
$deleted=1;
fclose($fh2);
        unlink("./files/".$filecrctxt);
    }

}

if($deleted==1){
unlink("./storage/".$_GET['file']);
?>
<center><table style='margin-top:0px;width:790px;height:400px;'><tr><td style='border:1px #AAAAAA solid;height:100%;background-color:#DFEFFF;padding:20px;text-align:left;' valign=top><?
echo "<center><b>$lang[ufwd]</b></center><br />";
?><center><img src="images/silindi.png" border="0" /></center> <META HTTP-EQUIV="Refresh"
      CONTENT="10; URL=index.php"> <p><?

echo "<center><b>$lang[uwbr] </center></b><br />";
} else {
?><center><img src="images/load.gif" border="0" /><center><table style='margin-top:0px;width:790px;height:400px;'><tr><td style='border:1px #AAAAAA solid;height:100%;background-color:#DFEFFF;padding:20px;text-align:left;' valign=top><?
echo "<center><b>$lang[indlink2] </b></center><br />";
?> <META HTTP-EQUIV="Refresh"
      CONTENT="10; URL=index.php"> <p><?

echo "<center><b>$lang[uwbr] </center></b><br />";
}
?><center><img src="images/load.gif" border="0" /></center></td></tr></table><p style="margin:3px;text-align:center"><?
include("./footer.php");
die();

}

if($foundfile==0) {
?> <center><table style='margin-top:0px;width:790px;height:400px;'><tr><td style='border:1px #AAAAAA solid;height:100%;background-color:#DFEFFF;padding:20px;text-align:left;' valign=top><?
  echo "<center><b>$lang[inlink]</center></b><br />";
?> <META HTTP-EQUIV="Refresh"
      CONTENT="10; URL=index.php"> <p><?

echo "<center><b>$lang[uwbr]</center></b><br />";
  ?></center></td></tr></table><p style="margin:3px;text-align:center"><?
include("./footer.php");
  die();
}

if(isset($foundfile[7]) && $foundfile[7]!=md5("") && (!isset($_POST['pass']) || $foundfile[7] != md5($_POST['pass']))){
?>  <center><table style='margin-top:0px;width:790px;height:400px;'><tr><td style='border:1px #AAAAAA solid;height:100%;background-color:#DFEFFF;padding:20px;text-align:left;' valign=top>
 <p><?
echo "<form action=\"download.php?file=".$foundfile[0]."\" method=\"post\"><center><b>$lang[pw2] : </center></b><p><center><input type=\"password\" name=\"pass\"><p><center><input value=\"Devam\" type=\"submit\" /></form>";
?><p><center><? echo $lang[petc];?></center><?
?><p><p><br /><img src="images/kilit.png" border="0" /></center></td></tr></table><p style="margin:3px;text-align:center"><?
include("./footer.php");
die();
}
?>
<center>
<table style="margin-top:0px;width:790px;height:400px;"><tr><td style="border:1px #AAAAAA solid;height:100%;background-color:#DFEFFF;padding:20px;text-align:left;" valign=top>



 <center><img src="img/pic_download.gif" border=0 width=24 height=24> <font size=5><b><? echo $lang[dl_a_file];?></b> <img src="img/pic_download_1.gif" border=0 width=24 height=24></font><br>
<?

$filesize = filesize("./storage/".$foundfile[0]);
$filesize = $filesize / 1048576;

$userip=$_SERVER['REMOTE_ADDR'];
$time=time();

///////////////////////////////////////////TIMER////////////////////////////////////
if($filesize > $nodolimit) {
if(file_exists("./downloader/".$userip.".mfh"))
{

$downloaders = fopen("./downloader/".$userip.".mfh","r+");
flock($downloaders,2);

while (!feof($downloaders)) {
  $user[] = chop(fgets($downloaders,65536));
}

fseek($downloaders,0,SEEK_SET);
ftruncate($downloaders,0);

$youcantdownload = 0;
foreach ($user as $line) {
list($savedip,$savedtime) = explode('|',$line);
 if ($savedip == $userip) {
    if ($time < $savedtime + ($downloadtimelimit*60)) {
      $youcantdownload = 1;
      $downtimer = $time - $savedtime ;
      $counter = $downloadtimelimit*60 - $downtimer;
    }
  }

  if ($time < $savedtime + ($downloadtimelimit*60)) {
    fputs($downloaders,"$savedip|$savedtime\n");
  }
}


if($youcantdownload==1) {

echo "<h1><center>Download Time Limit</center></h1>";
        ?><script type="text/javascript">

var running = false
var endTime = null
var timerID = null
var totalMinutes = <?php echo $counter;?>;

function startTimer() {
    running = true
    now = new Date()
    now = now.getTime()
    endTime = now + (1000 * totalMinutes);
    showCountDown()
}

function showCountDown() {
    var now = new Date()
    now = now.getTime()
    if (endTime - now <= 0) {
       clearTimeout(timerID)
       window.location.reload()

    } else {
        var delta = new Date(endTime - now)
        var theMin = delta.getMinutes()
        var theSec = delta.getSeconds()
        var theTime = theMin
        theTime += ((theSec < 10) ? ":0" : ":") + theSec
        document.getElementById('SessionTimeCount').innerHTML = 'Please wait ( <font color="#FF0000">' + theTime + '</font> ) Minutes for Download'
        if (running) {
            timerID = setTimeout("showCountDown()",1000)
        }
    }
}

window.onload=startTimer
</script>


<center><span id="SessionTimeCount"></span></center><br />
 <?

        include("./bottomads.php");
?><td><tr><table><?
       include("./footer.php");
      die();

}

}
}
///////////////////////////////////////////TIMER///////////////////////



$fsize = 0;
$fsizetxt = "";
  if ($filesize < 1)
  {
     $fsize = round($filesize*1024,0);
     $fsizetxt = "".$fsize." KB";
    $check1 = "KB";
  }
  else
    {
     $fsize = round($filesize,2);
     $fsizetxt = "".$fsize." MB";
$check1 = "MB";
  }

?>
<p>
<?
$quantity= $foundfile[5] * $fsizetxt;
$d=$descriptionoption;
switch ($d)
{
case false:
 $test="";
  break;
case true:
  $test= "$lang[fd6]";
  break;
default:
  echo ""; }
$f=$foundfile[6];
if ($f=="")
  $test2= "None";
else
  $test2= "$foundfile[6]";
$e=$descriptionoption;
switch ($e)
{
case false:
 $test4="";
  break;
case true:
  $test4= "$test2";
  break;
default:
  echo ""; }

echo '<center>';
echo '<table  border="0" cellpadding="0" cellspacing="0" width="">';
echo '<tr>';
echo '<td width="16"><img src="img/top_lef.gif" width="16" height="16"></td>';
echo '<td height="16" background="img/top_mid.gif"><img src="img/top_mid.gif" width="16" height="16"></td>';
echo '<td width="24"><img src="img/top_rig.gif" width="24" height="16"></td>';
echo '</tr>';
echo '<tr>';
echo '<td width="16" background="img/cen_lef.gif"><img src="img/cen_lef.gif" width="16" height="11"></td>';
echo '<td align="center" valign="middle" bgcolor="#DFEFFF">';

echo "<img src=\"img/warning.gif\" border=0 width=12 height=12> <a href='report.php?file=$foundfile[0]' style=color:#FF0000>".$lang[rtf]."</a><br><br>";

echo "<table cellspacing=1 cellpadding=2 border=0 bgcolor=#C0C0C0>";
echo "<tr><td align=left bgcolor=#F4F4F4 background=\"img/button03.gif\">".$lang[fn6].":</td><td bgcolor=#EEF4FB background=\"img/button03.gif\"><font color=#000080>".$foundfile[1] ."</td></tr>";
echo "<tr><td align=left bgcolor=#F4F4F4 background=\"img/button03.gif\">".$lang[fbu].":</td><td bgcolor=#EEF4FB background=\"img/button03.gif\"><font color=#000080>".$quantity ." ". $check1."</td></tr>";
echo "<tr><td align=left bgcolor=#F4F4F4 background=\"img/button03.gif\">".$lang[dl_ip].":</td><td bgcolor=#EEF4FB background=\"img/button03.gif\"><font color=#000080>".$foundfile[3]."</td></tr>";
echo "<tr><td align=left bgcolor=#F4F4F4 background=\"img/button03.gif\">".$lang[dl_filesize].":</td><td bgcolor=#EEF4FB background=\"img/button03.gif\"><font color=#000080>". $fsizetxt."</td></tr>";
echo "<tr><td align=left bgcolor=#F4F4F4 background=\"img/button03.gif\">".$lang[dl_file_dl].":</td><td bgcolor=#EEF4FB background=\"img/button03.gif\"><font color=#000080>". $foundfile[5]." ".$lang[dl_file_dl1]."</td></tr>";
echo "<tr><td align=left bgcolor=#F4F4F4 background=\"img/button03.gif\">".$lang[dl_last_dl].": </td><td bgcolor=#EEF4FB background=\"img/button03.gif\"><font color=#000080>".date('Y-m-d G:i', $foundfile[4])."</td></tr>\n";

if(isset($foundfile[6])){ echo "<tr><td align=left bgcolor=#F4F4F4 background=\"img/button03.gif\">$test</td><td bgcolor=#EEF4FB background=\"img/button03.gif\"><font color=#000080>$test4</td></tr>"; }
$randcounter = rand(100,999);
echo "</td></tr></table>";

?>
       </td>
      <td width="24" background="img/cen_rig.gif"><img src="img/cen_rig.gif" width="24" height="11"></td>
    </tr>
    <tr>
      <td width="16" height="16"><img src="img/bot_lef.gif" width="16" height="16"></td>
      <td height="16" background="img/bot_mid.gif"><img src="img/bot_mid.gif" width="16" height="16"></td>
      <td width="24" height="16"><img src="img/bot_rig.gif" width="24" height="16"></td>
    </tr>
  </table>
  <?

$randcounter = rand(100,999);
?>
   <form id="form">
  <script>
function refreshh() {
window.location='<?php echo $scripturl "download.php?file=" .$foundfile[0]; ?>';
}

function checksubmit()
{
if (document.getElementById("form").scode.value == <?php echo $secrandcode?> )
{
window.location='<?php echo $scripturl"download2.php?a=" $filecrc "&b=" md5($foundfile[2].$_SERVER['REMOTE_ADDR']) ?>';
window.setTimeout("refreshh()", 3000);
return false;
}
else
{
alert("Hata:\n G?venlik kodunu yanlis girdiniz!\n Dosyayi indirebilmeniz icin Kodu Dogru girmelisiniz!");
window.location='<?php echo $scripturl "download.php?file=" .$foundfile[0]; ?>';
}

}
</script>
<br>
<table cellspacing=2 cellpadding=2 border=0 height=16 width="250"><tr><td align=center background="img/captcha-a.png"><font color="#C0C0C0" size="5"><b><font face=times new roman><?php echo $secrandcode;?></td><td> G?venlik Kodu: <font size=1><strong><input type="text" name="scode" size="4" /></tr></table>
</form>
<p><div id="dl" align="center">

<?php

if($downloadtimer == 0) {
echo 
"<input type=submit value=\"".$lang[dl_file_now]."\" onClick=window.location=\"".$scripturl"download2.php?a=" $filecrc "&b=" md5($foundfile[2].$_SERVER['REMOTE_ADDR'])."\">";
} else { 
?>
<? echo $lang[nenjava];?>

<?php ?>
</div>
<script language="Javascript">
x<?php echo $randcounter?>=<?php echo $downloadtimer?>;
function countdown()
{
 if ((0 <= 100) || (0 > 0))
 {
  x<?php echo $randcounter?>--;
  if(x<?php echo $randcounter?> == 0)
  {
document.getElementById("dl").innerHTML = '<input type="submit" value="<? echo $lang[dl_file_now];?>" onClick="checksubmit()" onClick="window.location=\'<?php echo $scripturl "download2.php?a=" $filecrc "&b=" md5($foundfile[2].$_SERVER['REMOTE_ADDR']) ?>\'">';
  }
  if(x<?php echo $randcounter?> > 0)
  {
 document.getElementById("dl").innerHTML = '<? echo $lang[dl_ticket];?><br><? echo $lang[dl_file_now1];?> <font color=#FF0000><b> '+x<?php echo $randcounter?>+'</b></font> <? echo $lang[dl_file_now2];?>...';
   setTimeout('countdown()',1000);
  }
 }
}
countdown();
</script><p>
<?php
include("./bottomads.php");
?>
 </td></tr></table></center>
<?php
include("./footer.php");
?>
<?
        $foo = '';

        if (!empty($_GET))
        {
                $foo .= '?';
                foreach ($_GET as $key => $val)
               {
                          $foo .= $key . '=' . $val;
               }
        }
$zufall = rand(10000000,99999999);
$ip=$_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($ip);
$datum = date("d.m.Y",time());
$uhrzeit = date("H:i",time());
$link = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"] . $foo;
$filename =  $foundfile[1];
$refferer = $_SERVER["HTTP_REFERER"];


$newfile = "./dl/".$zufall.".db";
$f=fopen($newfile, "w");
fwrite ($f,$ip."|".$host."|".$datum."|".$uhrzeit."|".$link."|".$filename."|".$refferer);
fclose($f);
chmod($newfile,0777);

?>

This is a download script, and I want disable it for non-registered user!
If they want enter to this page, A window will appear with a message "You must logged in or register to enter this Page"!:confused:

Thank you!

Triky 11-21-2007 09:13 PM

Quote:

Originally Posted by adonfun (Post 1365818)
ETA: never mind, don't think this is the issue:
chdir('webcity');
require_once('webcity/global.php');

should be something in the format of:

chdir('/home/webc/public_html/webcity');
require_once('/home/webc/public_html/webcity/global.php');

Thank you, adonfun. I will try with this when I will have some free time! :)
Quote:

I had this problem before. After moving the code to the very top of any codeblock should solve it.
What you mean with this? I haven't understand..

robinhood1995 01-13-2008 05:46 AM

Awesome hack... :D

djbaxter 01-13-2008 02:59 PM

Quote:

Location: A Kanuk in Ohio
You spelled "Canuck" wrong, hoser... :eek: :D

robinhood1995 01-13-2008 05:40 PM

:D Crap never noticed! :eek:

aspen0 02-06-2008 03:20 PM

Got a wee problem, on pages I am using this with I get this at the very bottom.

Quote:

Fatal error: Call to a member function unlock_tables() on a non-object in /home/wsp/public_html/forums/includes/functions.php on line 4998
It works fine otherwise, but obviously can't have an error in the footer on every page view.

captain-busa 02-08-2008 06:25 PM

We are in the process of moving to this forum and I am setting up this hack.... The script works fine with one small exception in that my custom page is located in /forums and the images that are supposed to load are in the /forum/pics dir. if i move all of the images to the forum dir then the whole page shows up fine.. Im sure this has something to do with the path but not sure what I should do, any advice?

HKothari 02-18-2008 06:43 PM

Hi, I used this hack, and I'm having a lot of trouble, I set it up, just like the instructions said to, my code for including the global.php was:
PHP Code:

<?php    
$curdir 
getcwd();
chdir('/usr/local/pem/vhosts/133519/webspace/httpdocs/forums/');
require_once(
'/usr/local/pem/vhosts/133519/webspace/httpdocs/forums/global.php');
chdir($curdir);
?>

The first problem is that when you go to the page, you get this error:
Code:

Unable to add cookies, header already sent.
File: /usr/local/pem/vhosts/133519/webspace/httpdocs/forums/includes/class_core.php
Line: 1591

but then if you go to the forum, and click a link or are sent to the page by a link it is fine. Unless you are not logged in if you aren't logged in, you also get the error message above.

If you are logged in, the page loads, except for some notices at the top which are:

Code:

Notice:  Undefined index:  HTTPS in /usr/local/pem/vhosts/133519/webspace/httpdocs/forums/includes/class_core.php on line 1591

Notice:  Undefined index:  HTTPS in /usr/local/pem/vhosts/133519/webspace/httpdocs/forums/includes/class_core.php on line 1591

Is there a way to fix this? Thanks.

Cajun 02-20-2008 12:09 AM

Anyone know if this mod works with vb 3.7

Doctor Who 02-20-2008 12:54 PM

I just installed it, and it seems to be working fine for me currently...

MaSs ZeRo 03-10-2008 11:32 AM

Hey,

The script seems to be working just fine, although I am having a problem with it. Apperantly a session string is needed in the URL and if you remove that, you're not logged in anymore. Problem is, whenever someone clicks an internal link on my site, the session string has to go, since the links lead to index.php?example=example and I can't change that into anything else, since my site wouldn't function properly anymore if I did. Is there any solution to this?

Thanks.

Kalina 03-30-2008 07:05 AM

I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.

I am using this add-on to put a login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out.

I made a test page and it works, so it's not a subdomain issue. http://blogfeeds.webtalkforums.com/test.php

I've tried placing the following code at the top of wp-blog-header.php but it causes the blog to not work, it simply displays a "not found" error:
Code:

$curdir = getcwd ();
chdir('/home/myname/public_html');
require_once('/home/myname/public_html/global.php');
chdir ($curdir);

It appears to clash with the code already in wp-blog-header.php, here's the code in it's entirety.

Code:

<?php
$curdir = getcwd ();
chdir('/home/myname/public_html');
require_once('/home/myname/public_html/global.php');
chdir ($curdir);
if (! isset($wp_did_header)):
if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {
        if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false) $path = '';
        else $path = 'wp-admin/';
        require_once( dirname(__FILE__) . '/wp-includes/classes.php');
        require_once( dirname(__FILE__) . '/wp-includes/functions.php');
        require_once( dirname(__FILE__) . '/wp-includes/plugin.php');
        wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can <a href='{$path}setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.", "WordPress &rsaquo; Error");
}

$wp_did_header = true;

require_once( dirname(__FILE__) . '/wp-config.php');

wp();
gzip_compression();

require_once(ABSPATH . WPINC . '/template-loader.php');

endif;
?>


SVTCobraLTD 03-30-2008 12:51 PM

So does anyone successfully have this running on 3.6.8? Seems like a lot of people are having problems with this.

SVT

Triky 04-04-2008 11:36 AM

I would like to use this, but it has a lot of problems.

maitaijim 04-11-2008 09:38 PM

Quote:

Originally Posted by Kalina (Post 1478148)
I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.

I am using this add-on to put a login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out.

I made a test page and it works, so it's not a subdomain issue. http://blogfeeds.webtalkforums.com/test.php

I've tried placing the following code at the top of wp-blog-header.php but it causes the blog to not work, it simply displays a "not found" error:

It appears to clash with the code already in wp-blog-header.php, here's the code in it's entirety.

I would love to know how you solved this.
Thanks,
Jim

lawina 04-14-2008 08:43 PM

Anyone knows if its possible to show a POLL outside the forum using this mod ?

Medina 04-24-2008 07:04 AM

Is it working with vb 3.6.8?

Billspaintball 04-27-2008 06:04 AM

Quote:

Originally Posted by HKothari (Post 1446132)
Hi, I used this hack, and I'm having a lot of trouble, I set it up, just like the instructions said to, my code for including the global.php was:
PHP Code:

<?php    
$curdir 
getcwd();
chdir('/usr/local/pem/vhosts/133519/webspace/httpdocs/forums/');
require_once(
'/usr/local/pem/vhosts/133519/webspace/httpdocs/forums/global.php');
chdir($curdir);
?>

The first problem is that when you go to the page, you get this error:
Code:

Unable to add cookies, header already sent.
Is there a way to fix this? Thanks.

That would be because you have whitespace or something before the code.
It MUST be the first thing on the page.
Even a single space will cause this error.
See item one in the troubleshooting guide.


Quote:

Originally Posted by Cajun (Post 1447001)
Anyone know if this mod works with vb 3.7

It did when I tested it on beta 1.
There is s dedicated version for 3.7 in the 3.7 mods section.

Quote:

Originally Posted by Kalina (Post 1478148)
I just finished reading this whole thread but don't see a solution to my problem, so I'll describe it.

I am using this add-on to put a login form on a Wordpress powered page. I can't get it to show properly when a person is logged in, it just shows the form and treats me as if I am still logged out.

This mod code and a couple of others such as vB External and Wordpress have conflicts.
Perhaps they user the same variable names or something similar.
As I don't use word press I have not been able to check on a cause or solution.

Quote:

Originally Posted by SVTCobraLTD (Post 1478276)
So does anyone successfully have this running on 3.6.8? Seems like a lot of people are having problems with this.

SVT

It should run on 3.6.8 (it still works with 3.7) but I haven't tested it.

Medina 04-28-2008 09:49 AM

Can you also let member who`re logged in, posting on a non vb page?

DocOf Dan 06-02-2008 02:00 PM

I had a version of this working succesfully on my site. However, I recently had to move hosting company and now I'm having some problems with this mod. Even when I'm logged in at the forum, the page on my site doesn't recognise that, and treats me as being unregistered/not logged in.

I haven't changed the code in any way so I presume I need to tweak it (the code) or the vbulletin settings to get it to work with whatever settings on this new server (could it be a problem related to the move from PHP4 to PHP5?), but I don't know where to begin!

mhmd1983 07-31-2008 10:45 PM

what if the pages i need to use is on another server !! is there anyway to use it !!

SVTCobraLTD 01-21-2009 10:51 PM

Getting the following error

Code:

Warning: require_once(/path/to/your/login_inc2.php) [function.require-once]: failed to open stream: No such file or directory in /home/svtcobra/public_html/indexNEW.php on line 133

Fatal error: require_once() [function.require]: Failed opening required '/path/to/your/login_inc2.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/svtcobra/public_html/indexNEW.php on line 133


infernow 04-11-2009 11:15 AM

<?php
If ($vbulletin->userinfo['userid']!=0)
{
echo "Your logged in so we can display this";
} else {
echo "Your not logged in so we display this";
}
?>

How would you go about displaying an html page in there?? if there logged in.

wolfstream 04-23-2009 08:12 PM

Quote:

Originally Posted by infernow (Post 1788827)
<?php
If ($vbulletin->userinfo['userid']!=0)
{
echo "Your logged in so we can display this";
} else {
echo "Your not logged in so we display this";
}
?>

How would you go about displaying an html page in there?? if there logged in.

Change that to:
Code:

<?php
If ($vbulletin->userinfo['userid']!=0)
    {   
?>

insert logged in html  code here
<?php
    } else {
?>
insert not logged in html code here
<?php
    }
?>


Hajo 10-13-2009 12:28 AM

Does the addon works with vB 3.8.x?

Billspaintball 11-13-2009 09:16 AM

Quote:

Originally Posted by Hajo (Post 1898891)
Does the addon works with vB 3.8.x?

Not sure about this version, but try the vB3.7 releaseif you want to use it with vB 3.8, it should work

Also, initial testing shows that the vB3.7 release works with vB4.0 beta 3

SVTCobraLTD 03-07-2011 02:25 AM

I am using it on vb 3.8.7 and notice no issues.

piotrc 05-09-2011 09:54 AM

Anyone using on vb 4.1 ?

ShiNicHi23 01-25-2013 04:40 PM

anyone use this on vb 4.2?


All times are GMT. The time now is 01:37 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.01702 seconds
  • Memory Usage 1,915KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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