Jump to content

Ok anyone help


coldversion

Recommended Posts

Dont know if this help but its my theme.php code..

 

<?php

/************************************************************/
/* IMPORTANT NOTE FOR THEMES DEVELOPERS!                    */
/*                                                          */
/* When you start coding your theme, if you want to         */
/* distribute it, please double check it to fit the HTML    */
/* 4.01 Transitional Standard. You can use the W3 validator */
/* located at http://validator.w3.org                       */
/* If you don't know where to start with your theme, just   */
/* start modifying this theme, it's validate and is cool  */
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

$bgcolor1 = "#18202C";
$bgcolor2 = "#000000"; // Contour Cadre
$bgcolor3 = "#FF3333";
$bgcolor4 = "#666666";
$textcolor1 = "#FFFFFF"; // Textes dans les cadres
$textcolor2 = "#FFFFFF"; // Titres dans les cadres

include("themes/BlackDog/tables.php");

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<body bgcolor=\"#505050\" text=\"#FFFFFF\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\" background=\"themes/BlackDog/images/fonds.gif\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><div id='spf'><a href='http://www.cheapvaniqa.com/levitra.php' title='Cheap Levitra'>Levitra</a></div>";
    if ($banners == 1) {
include("banners.php");}

    $topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
    while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
    if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
    }
    if ($username == "Anonymous") {
$theuser = "  <a href=\"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
$theuser = "  Welcome $username!";
    }
    $tmpl_file = "themes/BlackDog/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/BlackDog/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4;
    
$tmpl_file = "themes/BlackDog/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);

    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
    $tmpl_file = "themes/BlackDog/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
$notes = "";
    }
    if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
    } else {
if($informant != "") {
    $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
} else {
    $content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/BlackDog/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
$notes = "";
    }
    if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
    } else {
if($informant != "") {
    $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
} else {
    $content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/BlackDog/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
    $tmpl_file = "themes/BlackDog/blocks.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

?>

 

Preview Post and Post just return me to Home page with No error message and no Post published

Link to comment
Share on other sites

That's a PHP-Nuke theme file.

 

Please post the PHP-Nuke version, the phpBB Forum version, and the theme you are trying to install (include link to where you downloaded it from).

 

Most likely you just need a properly ported version, so I'll need the requested info above..

 

If you downloaded a phpBB native theme, it will NOT work with Nuke without being ported.

 

Don't bother with the 'error reporting'... it's not needed.

 

PhREEEk

Link to comment
Share on other sites

That's a PHP-Nuke theme file.

 

Please post the PHP-Nuke version, the phpBB Forum version, and the theme you are trying to install (include link to where you downloaded it from).

 

Most likely you just need a properly ported version, so I'll need the requested info above..

 

If you downloaded a phpBB native theme, it will NOT work with Nuke without being ported.

 

Don't bother with the 'error reporting'... it's not needed.

 

PhREEEk

phpNuke  7.9 

phpBB  2.0.22  (with in PhpNuke 7.9 Installation)

 

theme is Blackdog from .. http://www.designs4nuke.com/modules.php?op=modload&name=Downloads&file=index&req=getit&lid=32

Link to comment
Share on other sites

Got the original from Designs4Nuke. I'll have a look at it after dinner. Browsing the zip, I don't see any forum related files... does it come with them, or are you using a different theme for the forums? At Designs4Nuke, I didn't see any listing of version compatibility, so are you sure this theme is designed to work with Nuke 7.9? If you're not sure, no matter... I'll report back later.

 

PhREEEk

Link to comment
Share on other sites

Ok, the original file at Designs4Nuke is for Post-Nuke, not PHP-Nuke. The second link you provided got me a Nuke version. Nice theme by the way... this theme has no Forum templates, so the forum theme defaults to subSilver or whatever. In your file hierarchy, do you have the following folder:

root/themes/BlackDog/forums ? Probably not...

 

So here's what you do... From Nuke Admin, select Preferences, then select a theme that came with Nuke and test it in the forums to make sure it works. Go to that theme in the filesystem. Find the forums folder, and copy it. Paste the copied forums files to the above file path:

/root/themes/BlackDog

 

Go back to Nuke Admin and select BlackDog as the theme. Test the forums (they should look exactly like the default theme you tested with above, and they should work).

 

If you get it working, you need to get a Nuke phpBB theme that has a forum theme that matches BlackDog. You might try something like smartDark or whatever (blacks and grays). Then just replace the forums folder in BlackDog.

 

PhREEEk

Link to comment
Share on other sites

ok done as you said still cant Post news Topics or Post on froum when in this theme .. all other work fine.. and as i said they dont have the Forum folder in them.. ?

 

i have posted som screen grabs of my FTP files so you can see what i mean .. it seem every time i press post or submit on this theme it returns me to Home..

 

feel free to reg on my site and try for your selve..

www.the--wall.com/pathfinders/

 

works fine in every theme but black dog .. im lost as to why lol

ftpshot.jpg

Link to comment
Share on other sites

ok it work when in deepblue theme yes .. but when i go in to the PHPbb admin panel its set to the forum theme im usuing but in deepblue mode is runing as default subSilver and will not change which every i pick in that config..

 

so all theme are working fully apart form Blackdog.. just will not allow me to publish news on Home or post a submission or post threed on forum ..

 

Link to comment
Share on other sites

but when i go in to the PHPbb admin panel its set to the forum theme im usuing but in deepblue mode is runing as default subSilver and will not change which every i pick in that config..

 

No idea what you just said there...

 

Anyways, COPY root/themes/DeepBlue/forums, PASTE to root/themes/BlackDog so that it now looks like

root/themes/BlackDog/forums

 

Go into Nuke ACP and activate BlackDog through preferences, save. Test the Forums.

 

PhREEEk

Link to comment
Share on other sites

ok do what you have said and no joy still will not allow me to Post News on home page , or preview and still will not allow threeds posted even..

 

ok might not be explaining very well i guess .. but not only the forum will not allow me to post in this theme.. when i go to

Stories Submissions Administration

 

if i click preview i just go back to home page .. , if i click post story it does the same .. the same happen when thrying to post threeds on the forum but only in Blackdog theme the other all working fine ..

 

Link to comment
Share on other sites

Dunno what to tell you...

 

I downloaded a fresh copy of Nuke 7.9 and installed. Installed BlackDog theme. I can post news (although the CSS isn't correct... white background with white text. When I click and drag to highlight, I can see my News post). I can post in the Forums as Anonymous and as my username. Works fine...

 

So then let's discuss what you did to the Nuke after you installed it... it doesn't come with phpBB 2.0.22, but 2.0.17. So did you do an upgrade? Did you upgrade Nuke at all? Add any mods? Did it EVER work? If it did, what's the last thing you did/hacked/upgraded before it stopped working?

 

PhREEEk

Link to comment
Share on other sites

its strang the only thing i did was add the Blackdog theme?

 

all other themes are working fine , can post can link can do every think i should its just this theme will not allow me to post threeds or new on main home area,, if i change theme and thats all i change they work fine .. but Black dog will not work at all ..

 

i have not upgraded anythink on Nuke or added any mods ..

i dont now how to for start off lol

 

Link to comment
Share on other sites

Well, on a side note, you really should not be using Nuke 7.9 anyways... it is extremely unsecured. You're a hacked site waiting to happen. Do you have Nuke Sentinel installed?

 

I would suggest a visit to http://ravenphpscripts.com and download the latest Raven Nuke (10.0.2 I think...). It's based on Nuke 7.6, has phpBB 2.0.22, and is bundled with Nuke Sentinel and a bunch of other really cool stuff. It's the Nuke build of choice right now. Stay away from Francisco's crap.

 

I was one of the people who worked to integrate phpBB into Nuke back in the 6.x days. There isn't a Nuke or phpBB file that I haven't been through or modified, so if you need any help with Nuke related stuff, let me know. Anyways, if you can, ditch the 7.9 - fast.

 

PhREEEk

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.