Author |
Message |
Girl
Hangin' Around

Joined: Jan 28, 2004
Posts: 27
|
Posted:
Wed Jan 28, 2004 8:27 am |
|
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. |
|
|
|
 |
Nukeum66
Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA
|
Posted:
Wed Jan 28, 2004 8:40 am |
|
If you downloaded it from Only registered users can see links on this board! Get registered or login! 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. |
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
|
 |
Girl

|
Posted:
Fri Jan 30, 2004 1:52 am |
|
Nope I dont believe I did that, cause im a noob! Thanks for that, I will download it again with that link and do as you instructed =) |
|
|
|
 |
Girl

|
Posted:
Fri Jan 30, 2004 2:00 am |
|
Okay it already says that is set, just like that ( $gfx_chk = 7; ) ... And the security strip doesn't actually show up. |
|
|
|
 |
Nukeum66

|
Posted:
Fri Jan 30, 2004 4:51 am |
|
Hey Girl,
Take a look at this : Only registered users can see links on this board! Get registered or login!
I think you'll find the fix for this problem there.  |
|
|
|
 |
Girl

|
Posted:
Fri Jan 30, 2004 8:33 am |
|
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"); |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Jan 30, 2004 8:44 am |
|
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
}
?>
|
|
|
|
|
 |
Nukeum66

|
Posted:
Fri Jan 30, 2004 1:01 pm |
|
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? |
|
|
|
 |
Girl

|
Posted:
Fri Jan 30, 2004 2:11 pm |
|
www.clanv.com 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. |
|
|
|
 |
Nukeum66

|
Posted:
Fri Jan 30, 2004 3:57 pm |
|
That really don't look like Raven's version of site info block. |
|
|
|
 |
Girl

|
Posted:
Sat Jan 31, 2004 8:11 pm |
|
lol, i downloaded and uploaded the file you linked, thats what i got. |
|
|
|
 |
Girl

|
Posted:
Sat Jan 31, 2004 8:20 pm |
|
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); |
|
|
|
|
 |
Nukeum66

|
Posted:
Sat Jan 31, 2004 9:44 pm |
|
Ok let start over
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... |
|
|
|
 |
Nukeum66

|
Posted:
Sat Jan 31, 2004 9:50 pm |
|
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 . |
|
|
|
 |
Raven

|
Posted:
Sat Jan 31, 2004 9:58 pm |
|
That's a bizarre way that FB wrote that code. Technically it works but syntactilly it should be more likeCode:$result = sql_query("SELECT sum(hits) FROM ".$prefix."_stats_year", $dbi);
|
But, either way, that is not causing her error. |
|
|
|
 |
Nukeum66

|
Posted:
Sat Jan 31, 2004 10:06 pm |
|
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. |
|
|
|
 |
Nukeum66

|
Posted:
Sun Feb 01, 2004 2:47 pm |
|
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 |
|
|
|
 |
Girl

|
Posted:
Mon Feb 02, 2004 9:24 am |
|
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! |
|
|
|
 |
|