coldversion Posted November 18, 2007 Share Posted November 18, 2007 Hi All need some help when i use one of my PHP themes i can Post / Preview New or post on my forum ..what would be stopping this its only on one theme all the others work fine ? Need help as this is the theme i want to use on the site .. and im stuck Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/ Share on other sites More sharing options...
coldversion Posted November 18, 2007 Author Share Posted November 18, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394035 Share on other sites More sharing options...
darkfreaks Posted November 18, 2007 Share Posted November 18, 2007 try putting error reporting on error_reporting(E_ALL); Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394051 Share on other sites More sharing options...
coldversion Posted November 18, 2007 Author Share Posted November 18, 2007 sorry new to this .. where do i put that ? Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394067 Share on other sites More sharing options...
darkfreaks Posted November 18, 2007 Share Posted November 18, 2007 put it at the top of the code. it should error if anything is wrong. Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394086 Share on other sites More sharing options...
PHP_PhREEEk Posted November 18, 2007 Share Posted November 18, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394088 Share on other sites More sharing options...
coldversion Posted November 19, 2007 Author Share Posted November 19, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394671 Share on other sites More sharing options...
coldversion Posted November 19, 2007 Author Share Posted November 19, 2007 ok that theme download dont work .. the theme i uses is at the link in zip format .. http://www.the--wall.com/pathfinders/blackdog.zip Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394680 Share on other sites More sharing options...
PHP_PhREEEk Posted November 19, 2007 Share Posted November 19, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394789 Share on other sites More sharing options...
PHP_PhREEEk Posted November 20, 2007 Share Posted November 20, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-394805 Share on other sites More sharing options...
coldversion Posted November 20, 2007 Author Share Posted November 20, 2007 OK Ill give that a go but all the other theme that do work dont have a forum folder either ? Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395339 Share on other sites More sharing options...
coldversion Posted November 20, 2007 Author Share Posted November 20, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395396 Share on other sites More sharing options...
PHP_PhREEEk Posted November 20, 2007 Share Posted November 20, 2007 Look at root/themes/DeepBlue - do you see a forums folder? That is a default subSilver forum theme. Please change your default Nuke theme (through Nuke ACP) to DeepBlue, save the setting, then load the forums and try to post. Post back the results... PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395397 Share on other sites More sharing options...
PHP_PhREEEk Posted November 20, 2007 Share Posted November 20, 2007 per your FTP screenshot... Forums folder needs to be all lower-case (forums) PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395400 Share on other sites More sharing options...
coldversion Posted November 20, 2007 Author Share Posted November 20, 2007 per your FTP screenshot... Forums folder needs to be all lower-case (forums) PhREEEk changed it to forums still not joy Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395418 Share on other sites More sharing options...
coldversion Posted November 20, 2007 Author Share Posted November 20, 2007 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 .. Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395421 Share on other sites More sharing options...
PHP_PhREEEk Posted November 20, 2007 Share Posted November 20, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395433 Share on other sites More sharing options...
coldversion Posted November 20, 2007 Author Share Posted November 20, 2007 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 .. Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395440 Share on other sites More sharing options...
PHP_PhREEEk Posted November 20, 2007 Share Posted November 20, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-395474 Share on other sites More sharing options...
coldversion Posted November 21, 2007 Author Share Posted November 21, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-396340 Share on other sites More sharing options...
PHP_PhREEEk Posted November 22, 2007 Share Posted November 22, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-396458 Share on other sites More sharing options...
coldversion Posted November 23, 2007 Author Share Posted November 23, 2007 i will look at that depends if my host supports the software as NUKE is a preinstall poackage form them .. and if i can get blackdog to work with it also :-) Quote Link to comment https://forums.phpfreaks.com/topic/77849-ok-anyone-help/#findComment-397819 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.