Author |
Message |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Mar 20, 2004 8:55 am |
|
I still bet it's the variable name duplicity - somewhere. The problem is trying to trace all the INCLUDES. Just as a test, try reversing the ORDER they load in. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/452277fe41264f95e30eb.gif)
Joined: Sep 18, 2003
Posts: 960
Location: Missouri
|
Posted:
Sat Mar 20, 2004 10:55 am |
|
I don't know how to do that.
![Embarassed](modules/Forums/images/smiles/icon_redface.gif) |
_________________ Only registered users can see links on this board! Get registered or login! |
|
![ICQ Number ICQ Number](themes/RavenIce/forums/images/lang_english/icon_icq_add.gif) |
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 10:57 am |
|
In your blocks admin adjust the Weight column to reverse the position order. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 11:13 am |
|
I would try to do that but now when I go to my admin page I get this.
Quote: | You can't access this file directly... |
I don't know what I could have done to cause that. The only thing I am working on is this one issue. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 11:45 am |
|
Try this. Use phpmyadmin and edit the nuke_blocks table. Find the coppermine block and set the Active column to 0 (zero). Can you access the admin now? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 11:46 am |
|
I had to go to my databse and turn off the coppermine block.
I bet the user changes I made to that include file did it to me. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 11:46 am |
|
That was cute. We posted together. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 11:47 am |
|
TheosEleos wrote: | I had to go to my databse and turn off the coppermine block.
I bet the user changes I made to that include file did it to me. | Probably. Just restore it. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 11:56 am |
|
I had to restore the coppermine block.
This may not be worth our time. It's not your fault coppermine has poor block programing. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 12:01 pm |
|
I changed the $name to $cpg_name variable in that include file and I can now access the admin page.
I will mess with the blocks weight but if you want to bail on this I understand. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 12:01 pm |
|
Well, it's a conflict between 2 blocks where there is no standard for programming blocks. My info block is simply an enhancement/expansion to the standard userInfo block that comes with nuke. I can't spend anymore time on this right now though. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Mar 20, 2004 12:05 pm |
|
I completely understand. I don't want to either. lol |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 4:50 pm |
|
Guess what? It was the load order. I had to move the block to the right and put it below your block. Is there a way to get the blocks on the right to load before the block on the left in block admin? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 5:01 pm |
|
Raven wrote: | I still bet it's the variable name duplicity - somewhere. The problem is trying to trace all the INCLUDES. Just as a test, try reversing the ORDER they load in. | Well, my post from the 20th was pretty close, eh? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 5:16 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 6:23 pm |
|
Hmmmm. DJM is wrong on at least 2 points right off the bat. His statementCode:A array must be accessed like: $row['username'] NOT $row[username]
| is incorrect. Sloppy coding maybe, but it works either way. And his statementCode:A. The $sql is incorrect should be:Code:
$sql = "SELECT username FROM ".$user_prefix."_users ORDER BY user_id DESC LIMIT 1";
| is totally wrong. This is right from the MySQL site and manual ( http://www.mysql.com/doc/en/SELECT.html )Code:In other words, LIMIT n is equivalent to LIMIT 0,n.
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 8:42 pm |
|
I don't know what to do. I did post a response. I find their support on this issue to be pathetic. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
GanjaUK
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 14, 2004
Posts: 633
Location: England
|
Posted:
Tue Mar 23, 2004 8:55 pm |
|
I have this problem too. I searched high and low, and like you said earlier, all they did is make a new user info block which is really poor. Seems to only happen when I have the blocks in the center which is where I need them.
It really annoyed me because I spent ages customizing the coppermine block only to find it conflicts with the user info block, in the end I just had to give up and not use the coppermine blocks at all. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 9:03 pm |
|
If you make the coppermine block load after the user info block things work just fine.
Here is the site I am working on.
www.phenylshouse.com
I want the CPG block on the left side but if I do that it loads before the user info block and that issue is there.
As you can see I moved the CPG block to the right and now it loads after the user info block and things work. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 9:06 pm |
|
One thing is for sure.
I am not giving up Raven's info block!
I am going to figure out how to get the blocks on the right to load before the blocks on the left, if it can be done. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 23, 2004 9:49 pm |
|
I've never looked into this but my guess would be in the blocks function in mainfile.php. At least I would start there. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
TheosEleos
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 24, 2004 5:29 am |
|
Code:function render_blocks($side, $blockfile, $title, $content, $bid, $url) {
if ($url == "") {
if ($blockfile == "") {
if ($side == "c") {
themecenterbox($title, $content);
} elseif ($side == "d") {
themecenterbox($title, $content);
} else {
themesidebox($title, $content);
}
} else {
if ($side == "c") {
blockfileinc($title, $blockfile, 1);
} elseif ($side == "d") {
blockfileinc($title, $blockfile, 1);
} else {
blockfileinc($title, $blockfile);
}
}
} else {
if ($side == "c" OR $side == "d") {
headlines($bid,1);
} else {
headlines($bid);
}
}
}
function blocks($side) {
global $storynum, $prefix, $multilingual, $currentlang, $db, $admin, $user;
if ($multilingual == 1) {
$querylang = "AND (blanguage='$currentlang' OR blanguage='')";
} else {
$querylang = "";
}
if (strtolower($side[0]) == "r") {
$pos = "r";
} elseif (strtolower($side[0]) == "l") {
$pos = "l";
} elseif (strtolower($side[0]) == "c") {
$pos = "c";
} elseif (strtolower($side[0]) == "d") {
$pos = "d";
}
$side = $pos;
$sql = "SELECT bid, bkey, title, content, url, blockfile, view FROM ".$prefix."_blocks WHERE bposition='$pos' AND active='1' $querylang ORDER BY weight ASC";
$result = $db->sql_query($sql);
while($row = $db->sql_fetchrow($result)) {
$bid = $row[bid];
$title = $row[title];
$content = $row[content];
$url = $row[url];
$blockfile = $row[blockfile];
$view = $row[view];
if ($row[bkey] == admin) {
adminblock();
} elseif ($row[bkey] == userbox) {
userblock();
} elseif ($row[bkey] == "") {
if ($view == 0) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
} elseif ($view == 1 AND is_user($user) || is_admin($admin)) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
} elseif ($view == 2 AND is_admin($admin)) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
} elseif ($view == 3 AND !is_user($user) || is_admin($admin)) {
render_blocks($side, $blockfile, $title, $content, $bid, $url);
}
}
}
}
|
I only found one place that used "L" or "R" and tried switched those but no change. Anything stand out to you? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 24, 2004 5:34 am |
|
Try looking in your theme.php file and specifically at "function themeheader()". The "blocks(left)" call is where/when the left side is built. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
GanjaUK
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 24, 2004 7:29 am |
|
TheosEleos, this was irritating the hell out of me too, so I tried some different things. Anyway, this seems to be the easiest solution all round.
Open your User Info block and find:
Code:$lastuser = $row[username];
|
Change that to
Code:$lastuser = $row['username'];
|
Latest member now shows again. |
Last edited by GanjaUK on Wed Mar 24, 2004 7:40 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Mar 24, 2004 7:31 am |
|
According to DJM that should clear it up. We just had an exchange at NC. I would recommend single tick marks though, not double. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|