Clan Adverts

Sponsors

Latest Product

User Box

Anonymous
54.226.10.234
Nickname:

Password:

Security Code
Security Code
Type Security Code


www.clanthemes.com :: View topic - Center news block on mw3 missing
Center news block on mw3 missing

8 Replies / 2156 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » PhpNuke Theme Edits

View previous topic :: View next topic


thumpn8974
Reputation: 52.1 Add RepSubtract Rep
Local time: 7:18 AM

usa.gif

Tree Hugger
Tree Hugger

0.05 posts per day
Medals: 0

Joined: Oct 08, 2010
Last Visit: 27 Sep 2014
Posts: 71
Points: 19707 

Post Center news block on mw3 missing Posted: Tue Feb 28, 2012 4:57 pm

Shop Purchases:
Call of Duty Black Ops Theme · COD MW3 Video Splash Screen · Modern Warfare 3 Theme · Nuke ShadowGate V3.1 · BF4 Multi Raven

I purchased the MW3 theme for Ravenuke, and I am running vers 2.5. I noticed that unless a person is logged into the site, they can not see the news that I put in the center as the Welcome Area. Before you could see the permanent news block without being logged in. I would like this to be able to be seen so that new members can read about us. Is there a way to make it seen? I checked it under the News active(in home) area and it is set to All Visitors. Is there a way to make it back to visible?
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 65.9 Add RepSubtract Rep
votes: 37
Local time: 7:18 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.40 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 11 Jan 2014
Posts: 4141
Points: 211499 

Post Re: Center news block on mw3 missing Posted: Tue Feb 28, 2012 5:28 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

You have a broken block (error in the footer of your site)

Code:
ERROR - B1 - Unable to open response table!


Start deactivating the blocks one by one until your site loads okay

When you find out which block it is let us know, we might be able to help out
 

 
View user's profileSend private messageSend e-mail Reply with quote

Ped
Reputation: 65.9 Add RepSubtract Rep
votes: 37
Local time: 7:18 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.40 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 11 Jan 2014
Posts: 4141
Points: 211499 

Post Re: Center news block on mw3 missing Posted: Tue Feb 28, 2012 5:30 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

I think its the Member Application Block, so deactivate that in your blocks admin area Embarrased
 

 
View user's profileSend private messageSend e-mail Reply with quote


thumpn8974
Reputation: 52.1 Add RepSubtract Rep
Local time: 7:18 AM

usa.gif

Tree Hugger
Tree Hugger

0.05 posts per day
Medals: 0

Joined: Oct 08, 2010
Last Visit: 27 Sep 2014
Posts: 71
Points: 19707 

Post Center news block on mw3 missing Posted: Tue Feb 28, 2012 7:59 pm

Shop Purchases:
Call of Duty Black Ops Theme · COD MW3 Video Splash Screen · Modern Warfare 3 Theme · Nuke ShadowGate V3.1 · BF4 Multi Raven

Firstly-thank you for your help in finding what was the cause. It is greatly appreciated.

I found the block; it was the "block-M_A_a_Status" which I have listed as "Challenge Status" on my website.

Would you mind taking a look at it and maybe telling me what is wrong with it?
Quote:
<?php
/***************************************************************************
* Member Application
* -------------------
* begin : 17 July, 2006
* copyright : (C) 2006 Tim Leitz DBF Designs
* email : admin@dbfdesigns.net
*
* Id: M_A_a_status : v2.1.4 Tim Leitz
*
* file name : block-M_A_2_1_2_appstatus.php
* run from : site
*
***************************************************************************/
/***************************************************************************
*
* This program is subject to the license agreement in the user manual.
*
***************************************************************************/

if(!defined('NUKE_FILE') && !defined('BLOCK_FILE')) { die(MA_YCATFDERROR."..."); }

get_lang(Member_Application);
global $user, $sitename, $prefix, $user_prefix, $db;
$private = True;
$usename = False;
$usemarquee = 1;
$scrolldirection = "Up";
$content = "";
$cookie = cookiedecode($user);
if ((is_user($user)) && $private)
{
$guid = $cookie[0];
$nu = intval($guid); //get int val of nuke user id
$sql2 = "SELECT * FROM `".$prefix."_MA_mappresp` WHERE userno=".$nu." ORDER BY appnum DESC";
}
elseif ($private == False)
{
$sql2 = "SELECT * FROM `".$prefix."_MA_mappresp` ORDER BY appnum DESC";
}
else
{
$content .= "No apps to show";
}
if( !($result = $db->sql_query($sql2)) )
{
echo "ERROR - B1 - ".MA_UTORTERROR."! <br>";
exit();
}
$content .= "<hr>\n";
$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"200\" ScrollAmount=\"2\" ScrollDelay=\"30\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>";

$row = $db->sql_fetchrow($result);
$ctr = 0;
if ($row)
{
while (($row) && ($ctr < 20))
{
$capp = $row['appnum'];
$fnum = $row['formno'];
$sql3 = "SELECT * FROM `".$prefix."_MA_mapcfg` WHERE formno = $fnum";
if( !($result3 = $db->sql_query($sql3)) )
{
echo "ERROR - B2 - ".MA_UATOCTERROR."! <br>";
exit();
}
$row3 = $db->sql_fetchrow($result3);
$content .= "<b>";
$content .= $row3['formtitle']."<BR>";
$content .= "#".$row['appnum'];
$unum = $row['userno'];
if (($usename) && ($row['userno'] > 1))
{
$sql4 = "SELECT * FROM `".$user_prefix."_users` WHERE user_id = $unum";
if( !($result4 = $db->sql_query($sql4)) )
{
echo "ERROR - B3 - ".MA_UTFYURERROR."! <br>";
exit();
}
$row4 = $db->sql_fetchrow($result4);
$content .= "<BR>".$row4['username'];
}
$content .= "<br>";
switch ($row['appstatus'])
{
case 0 : $content .= MA_RECIEVED;
break;

case 1 : $content .= MA_DECLINED;
break;

case 2 : $content .= MA_ACCEPTED;
break;
}
$content .= "<br />\n";
$content .= "<br />\n";
$ctr++;
while (($row) && ($row['appnum'] == $capp))
{
$row = $db->sql_fetchrow($result);
}
}
}

$content .= "</Marquee><br>";

?>
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Ped
Reputation: 65.9 Add RepSubtract Rep
votes: 37
Local time: 7:18 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.40 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 11 Jan 2014
Posts: 4141
Points: 211499 

Post Re: Center news block on mw3 missing Posted: Tue Feb 28, 2012 8:26 pm

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Could be one of anything

Just try this

Remove the line of code

if(!defined('NUKE_FILE') && !defined('BLOCK_FILE')) { die(MA_YCATFDERROR."..."); }

save and re activate

Or from looking though the code the error is more than likely related to the module not being set up right yet for applications

Code:
$row = $db->sql_fetchrow($result);
$ctr = 0;
if ($row)
{
while (($row) && ($ctr < 20))
{
$capp = $row['appnum'];
$fnum = $row['formno'];
$sql3 = "SELECT * FROM `".$prefix."_MA_mapcfg` WHERE formno = $fnum";
if( !($result3 = $db->sql_query($sql3)) )
{
echo "ERROR - B2 - ".MA_UATOCTERROR."! <br>";
exit();



That is the function, and its calling the fnum from the nuke_MA_mapcfg table in your database, so its probably the module

I would set up a test member application from the module and then activate the block, see if it resolves it
 

 
View user's profileSend private messageSend e-mail Reply with quote

actnreactgaming
Reputation: 199.8 Add RepSubtract Rep
votes: 2
Local time: 7:18 AM

blank.gif

We Are The Pilgrims Master
We Are The Pilgrims Master

0.48 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 09, 2011
Last Visit: 30 Jul 2014
Posts: 549
Points: 28827 

Post Re: Center news block on mw3 missing Posted: Tue Feb 28, 2012 9:17 pm

Shop Purchases:
Modern Gamer Multi Theme

Ped, the block file always needs to start with:
Code:

if(!defined("BLOCK_FILE")){
Header('Location: ../index.php');
die();
}


so rather than if(!defined('NUKE_FILE') blah blah blah
try using the snippet above save and reactivate see if that resolves
 

 
View user's profileSend private message Reply with quote


Ped
Reputation: 65.9 Add RepSubtract Rep
votes: 37
Local time: 7:18 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.40 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 11 Jan 2014
Posts: 4141
Points: 211499 

Post Re: Center news block on mw3 missing Posted: Wed Feb 29, 2012 7:09 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

actnreactgaming wrote:
Ped, the block file always needs to start with:
Code:

if(!defined("BLOCK_FILE")){
Header('Location: ../index.php');
die();
}



Actually it doesn't, all that code does is stop someone accessing the file directly from the browser and it also defines who can see it, so for a quick test we can take it out.

In a basic block that you want everyone too see you can leave it out
 

 
View user's profileSend private messageSend e-mail Reply with quote

actnreactgaming
Reputation: 199.8 Add RepSubtract Rep
votes: 2
Local time: 7:18 AM

blank.gif

We Are The Pilgrims Master
We Are The Pilgrims Master

0.48 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)

Joined: Nov 09, 2011
Last Visit: 30 Jul 2014
Posts: 549
Points: 28827 

Post Re: Center news block on mw3 missing Posted: Wed Feb 29, 2012 7:34 pm

Shop Purchases:
Modern Gamer Multi Theme

hmmm... I thought it was neccessary...
Well, you learn every day now don't we ;)
 

 
View user's profileSend private message Reply with quote

thumpn8974
Reputation: 52.1 Add RepSubtract Rep
Local time: 7:18 AM

usa.gif

Tree Hugger
Tree Hugger

0.05 posts per day
Medals: 0

Joined: Oct 08, 2010
Last Visit: 27 Sep 2014
Posts: 71
Points: 19707 

Post Center news block on mw3 missing Posted: Sat Mar 03, 2012 6:25 pm

Shop Purchases:
Call of Duty Black Ops Theme · COD MW3 Video Splash Screen · Modern Warfare 3 Theme · Nuke ShadowGate V3.1 · BF4 Multi Raven

That didn't fix it, but if you like I can set up a link to so you can download the module I have and maybe you can see what is wrong with it.

This is a link you can download it from: Member Application-2.1.4

There isn't much you can do with it, I don't think, but the module is working on my site, but the blocks aren't.

By the way, should I start a new post with this, even though this is reason it was messing up my site?
 

 
View user's profileSend private messageVisit poster's website Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index PhpNuke Theme Edits

Quick Reply
 
8 Replies / 2156 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum