PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Wed Jan 28, 2004 8:27 am Reply with quote Back to top

Hey there Raven. I downloaded the file in your download section for the user info block when upon uploading it, mine is still the same as the previous one I uploaded, which has no security.

Could you point me to the download to get the one thats like yours please? Thank you.
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Wed Jan 28, 2004 8:40 am Reply with quote Back to top

If you downloaded it from
Only registered users can see links on this board!
Get registered or login to the forums!
it is the same. Did you set the security setting in your config.php to show the code?

Edit: look for this code about line 53 in config.php $gfx_chk = 7; the #7 sets the sec. code to ON everywhere.
View user's profile Send private message Visit poster's website
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Fri Jan 30, 2004 1:52 am Reply with quote Back to top

Nope I dont believe I did that, cause im a noob! Smile Thanks for that, I will download it again with that link and do as you instructed =)
View user's profile Send private message
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Fri Jan 30, 2004 2:00 am Reply with quote Back to top

Okay it already says that is set, just like that ( $gfx_chk = 7; ) ... And the security strip doesn't actually show up.
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Fri Jan 30, 2004 4:51 am Reply with quote Back to top

Hey Girl, Smile

Take a look at this :
Only registered users can see links on this board!
Get registered or login to the forums!


I think you'll find the fix for this problem there. Wink
View user's profile Send private message Visit poster's website
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Fri Jan 30, 2004 8:33 am Reply with quote Back to top

Thanks again Nukeum.

I checked all of those things and none was my prob =x No spaces anywhere extra. Ill reply to that thread and see what happens. Actually no I wont, since this is the version I have I guess im in the right place hehe.

Where exactly do I put the below content? Maybe thats what I fobar'd?


define("_PASSWORDLOST","Lost Password");
define("_BWEL","Welcome");
define("_BTD","Today");
define("_BYD","Yesterday");
define("_BHITS","Hits");
define("_SERDT","Server Date/Time");
define("_BPM","Private Messages");
define("_BUNREAD","Unread");
define("_BREAD","Read");
define("_BMEMP","Membership");
define("_BLATEST","Latest");
define("_BOVER","Overall");
define("_BVISIT","People Online");
define("_BVIS","Visitors");
define("_BMEM","Members");
define("_BTT","Total");
define("_BON","Online Now");
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Fri Jan 30, 2004 8:44 am Reply with quote Back to top

If you are not seeing the box at all, then the chances are your host does NOT have the GD graphics package installed. Copy this code and save it to a file called 'gdchk.php'. Then run it from your browser.
Code:
<?php
// Checks if GD package is installed and reports findings
function my_gd_info() {
      $array = Array(
                      "GD Version" => "",
                      "FreeType Support"=> 0,
                      "FreeType Support" => 0,
                      "FreeType Linkage" => "",
                      "T1Lib Support" => 0,
                      "GIF Read Support" => 0,
                      "GIF Create Support" => 0,
                      "JPG Support" => 0,
                      "PNG Support" => 0,
                      "WBMP Support" => 0,
                      "XBM Support" => 0
      );
      $gif_support = 0;

      ob_start();
      eval("phpinfo();");
      $info = ob_get_contents();
      ob_end_clean();

      foreach(explode("\n", $info) as $line) {
          if(strpos($line, "GD Version")!==false)
              $array["GD Version"] = trim(str_replace("GD Version", "", strip_tags($line)));
          if(strpos($line, "FreeType Support")!==false)
              $array["FreeType Support"] = trim(str_replace("FreeType Support", "", strip_tags($line)));
          if(strpos($line, "FreeType Linkage")!==false)
              $array["FreeType Linkage"] = trim(str_replace("FreeType Linkage", "", strip_tags($line)));
          if(strpos($line, "T1Lib Support")!==false)
              $array["T1Lib Support"] = trim(str_replace("T1Lib Support", "", strip_tags($line)));
          if(strpos($line, "GIF Read Support")!==false)
              $array["GIF Read Support"] = trim(str_replace("GIF Read Support", "", strip_tags($line)));
          if(strpos($line, "GIF Create Support")!==false)
              $array["GIF Create Support"] = trim(str_replace("GIF Create Support", "", strip_tags($line)));
          if(strpos($line, "GIF Support")!==false)
              $gif_support = trim(str_replace("GIF Support", "", strip_tags($line)));
          if(strpos($line, "JPG Support")!==false)
              $array["JPG Support"] = trim(str_replace("JPG Support", "", strip_tags($line)));
          if(strpos($line, "PNG Support")!==false)
              $array["PNG Support"] = trim(str_replace("PNG Support", "", strip_tags($line)));
          if(strpos($line, "WBMP Support")!==false)
              $array["WBMP Support"] = trim(str_replace("WBMP Support", "", strip_tags($line)));
          if(strpos($line, "XBM Support")!==false)
              $array["XBM Support"] = trim(str_replace("XBM Support", "", strip_tags($line)));
      }

      if($gif_support==="enabled") {
          $array["GIF Read Support"]   = 1;
          $array["GIF Create Support"] = 1;
      }

      if($array["FreeType Support"]==="enabled"){
          $array["FreeType Support"] = 1;    }

      if($array["T1Lib Support"]==="enabled")
          $array["T1Lib Support"] = 1;

      if($array["GIF Read Support"]==="enabled"){
          $array["GIF Read Support"] = 1;    }

      if($array["GIF Create Support"]==="enabled")
          $array["GIF Create Support"] = 1;

      if($array["JPG Support"]==="enabled")
          $array["JPG Support"] = 1;

      if($array["PNG Support"]==="enabled")
          $array["PNG Support"] = 1;

      if($array["WBMP Support"]==="enabled")
          $array["WBMP Support"] = 1;

      if($array["XBM Support"]==="enabled")
          $array["XBM Support"] = 1;

      return $array;
}

if (extension_loaded("gd1")) {
   if (phpversion() >= "4.3.0") {
      $gi = gd_info();
      $gi1 = $gi['GD Version'];
      $gi2 = $gi['FreeType Support'];
      if ($gi2) { $gi2 = "Yes"; } else { $gi2 = "No"; }
      $gi3 = $gi['T1Lib Support'];
      if ($gi3) { $gi3 = "Yes"; } else { $gi3 = "No"; }
      $gi4 = $gi['GIF Read Support'];
      if ($gi4) { $gi4 = "Yes"; } else { $gi4 = "No"; }
      $gi5 = $gi['GIF Create Support'];
      if ($gi5) { $gi5 = "Yes"; } else { $gi5 = "No"; }
      $gi6 = $gi['JPG Support'];
      if ($gi6) { $gi6 = "Yes"; } else { $gi6 = "No"; }
      $gi7 = $gi['PNG Support'];
      if ($gi7) { $gi7 = "Yes"; } else { $gi7 = "No"; }
      $gi8 = $gi['WBMP Support'];
      if ($gi8) { $gi8 = "Yes"; } else { $gi8 = "No"; }
      $gi9 = $gi['XBM Support'];
      if ($gi9) { $gi9 = "Yes"; } else { $gi9 = "No"; }
   } else {
      $gi = my_gd_info();
         $gi1 = $gi['GD Version'];
         $gi2 = $gi['FreeType Support'];
         if ($gi2) { $gi2 = "Yes"; } else { $gi2 = "No"; }
         $gi3 = $gi['T1Lib Support'];
         if ($gi3) { $gi3 = "Yes"; } else { $gi3 = "No"; }
         $gi4 = $gi['GIF Read Support'];
         if ($gi4) { $gi4 = "Yes"; } else { $gi4 = "No"; }
         $gi5 = $gi['GIF Create Support'];
         if ($gi5) { $gi5 = "Yes"; } else { $gi5 = "No"; }
         $gi6 = $gi['JPG Support'];
         if ($gi6) { $gi6 = "Yes"; } else { $gi6 = "No"; }
         $gi7 = $gi['PNG Support'];
         if ($gi7) { $gi7 = "Yes"; } else { $gi7 = "No"; }
         $gi8 = $gi['WBMP Support'];
         if ($gi8) { $gi8 = "Yes"; } else { $gi8 = "No"; }
         $gi9 = $gi['XBM Support'];
         if ($gi9) { $gi9 = "Yes"; } else { $gi9 = "No"; }
   }
?>
   <TABLE cellspacing="1" cellpadding="3" cellspacing="2" border="1">
   <TH colspan="2" style="background-color:#0000dd;color:#ffffff;">GD Library Information</TH>
   <TR bgcolor=white><TD>Type</TD><TD>Value</TD></TR>
   <TR bgcolor=#bbbbff>
   <TD>GD Version</TD><TD><?php echo $gi1; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>FreeType Support</TD><TD><?php echo $gi2; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>T1Lib Support</TD><TD><?php echo $gi3; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>GIF Read Support</TD><TD><?php echo $gi4; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>GIF Create Support</TD><TD><?php echo $gi5; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>JPG Support</TD><TD><?php echo $gi6; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>PNG Support</TD><TD><?php echo $gi7; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>WBMP Support</TD><TD><?php echo $gi8; ?></TD>
   </TR>
   <TR bgcolor=#bbbbff>
   <TD>XBM Support</TD><TD><?php echo $gi9; ?></TD>
   </TR>
   </TABLE><BR>
   <?php
} else {
   ?>
   <TABLE width="50%" cellspacing="1" cellpadding="3" cellspacing="2" border="1">
   <TH colspan="2" style="background-color:#0000dd;color:#ffffff;">GD Library Information</TH>
   <TR bgcolor=#bbbbff>
   <TD align="center">The GD library does not appear to be installed on your server.  If you host this yourself and this is a Window's server, GD is installed but you have probably not activated it in your php.ini file.  To activate it, edit your php.ini file and find this line => extension=php_gd2.dll <=.  If there is a ; in front of it, remove the ; , save the file, and restart your server.  Then rerun this utility.  You should then see the GD library installed.<br /><br />Otherwise contact your Host to get them to install the GD package.</TD>
   </TR>
   </TABLE><BR>
   <?php
}
?>
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Fri Jan 30, 2004 1:01 pm Reply with quote Back to top

To answer your question about the content of the languages.txt file. You need to add those lines to your Nuke/languages directory in the language file(s) that you use for your site. That has nothing to do with the security image not showing.

Does the security code(image) show anywhere on your site?
View user's profile Send private message Visit poster's website
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Fri Jan 30, 2004 2:11 pm Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!
is the site, dont mind the theme, were working on a total custom one.

The security box shows up on the page it refers you to if you enter your user/pw into the "site info" box.
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Fri Jan 30, 2004 3:57 pm Reply with quote Back to top

That really don't look like Raven's version of site info block.
View user's profile Send private message Visit poster's website
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Sat Jan 31, 2004 8:11 pm Reply with quote Back to top

lol, i downloaded and uploaded the file you linked, thats what i got.
View user's profile Send private message
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Sat Jan 31, 2004 8:20 pm Reply with quote Back to top

I added a new block and called it site info 2 to test, and i got this error

Quote:

Warning: Unexpected character in input: ' in /home/virtual/site43/fst/var/www/html/blocks/block-Site_Info.php on line 310

Warning: Unexpected character in input: ' in /home/virtual/site43/fst/var/www/html/blocks/block-Site_Info.php on line 310

Warning: Unexpected character in input: ' in /home/virtual/site43/fst/var/www/html/blocks/block-Site_Info.php on line 310

Warning: Unexpected character in input: ' in /home/virtual/site43/fst/var/www/html/blocks/block-Site_Info.php on line 310

Parse error: parse error, unexpected T_VARIABLE in /home/virtual/site43/fst/var/www/html/blocks/block-Site_Info.php on line 310




Line 310 is this

Quote:

$result = sql_query("SELECT sum(hits) FROM $prefix"._stats_year."", $dbi);
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Jan 31, 2004 9:44 pm Reply with quote Back to top

Ok let start over Laughing

first you had the site info block to begin with?
then you wanted to add the security code to it, so you downloaded a new one and placed it on your server in the blocks directory renaming it to site info2 ...... Right ?

If this is correct did you delete or overwrite the first one ?

try renaming the newest block to Site_Info and rename the old one to Site_Info2 or just get rid of the old one all together...
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Jan 31, 2004 9:50 pm Reply with quote Back to top

Raven, I downloaded the block again and checked it the code in the DL is like this

Code:
$result = sql_query("SELECT sum(hits) FROM $prefix"._stats_year."", $dbi);


But the block worked fine Security code and all when I reinstalled it .
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sat Jan 31, 2004 9:58 pm Reply with quote Back to top

That's a bizarre way that FB wrote that code. Technically it works but syntactilly it should be more like
Code:
$result = sql_query("SELECT sum(hits) FROM ".$prefix."_stats_year", $dbi);

But, either way, that is not causing her error.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Jan 31, 2004 10:06 pm Reply with quote Back to top

Girl is trying (I think) to run two of these blocks. I try it myself just testing and I received error line 61 but not 310.
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sun Feb 01, 2004 2:47 pm Reply with quote Back to top

Did you?

go to admin panel > blocks

deactivate User_Info block then scroll down to (Add a New Block)

Using the drop-down menu (Filename:) select SITE INFO block

then click CREATE BLOCK
View user's profile Send private message Visit poster's website
Girl
Hangin' Around


Joined: Jan 28, 2004
Posts: 27

PostPosted: Mon Feb 02, 2004 9:24 am Reply with quote Back to top

Just to close the subject...

Nuke IM'd me and after I deleted the old files and uploaded the new site info block files I downloaded here for a its 100th time it worked.

Im not sure why or what. But I had deactivated my previous site info block, and then made a new block with the new file and it would error every time.

For anyone else who may have this happen, when It finally showed without a problem, here is exactly what I had done, which I did a few times b4 and didnt work? Weird.

1. ) Deleted all old "site info" blocks from the blocks folder in my directory.

2. ) Unziped the file Nuke linked in this thread, and uploaded the block-Site_Info.php to the block folder.

3. ) Disabled my old Site Info block

4. ) Made a new block and pointed it to Site_Info in the drop down list of items to choose from.

5. ) Wala.

HOOORAY AND THANKS NUKEUM FOR ALL HIS CONTINUED EFFORTS TO HELP ME!
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum