Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Themes
Author Message
fistfight
New Member
New Member



Joined: Nov 03, 2008
Posts: 14

PostPosted: Fri Feb 28, 2014 2:36 pm Reply with quote

So for years we've had a site running a modified version of the Mech theme at ufclansite.net. the hosting provider updated to php 5.4 and now a lot of the site is no longer working. We were using PNC but that package looks to be dead now.

I read through the forums and was able to get my site converted to RN but I'd like to see if the theme could be converted or corrected to run on it.

When I move the theme to my local install on my PC from the website I'm getting a parse error and I'm lost on what to look for.

I have the files if anyone can take a look at it with me.


This is the code for theme.php
php Code:
<?php








/************************************************************/



/* Theme Colors Definition */



/************************************************************/







$bgcolor1 = "#474646";



$bgcolor2 = "#474646";



$bgcolor3 = "#474646";



$bgcolor4 = "#474646";



$textcolor1 = "#FF0000";



$textcolor2 = "#FF0000";







/************************************************************/



/* OpenTable Functions */



/* */



/************************************************************/







function OpenTable() {



global $tableStatus;



if ($tableStatus != "open"){



?>



<br>



<table border="0" align=center cellpadding="0" cellspacing="0" width="98%">



<!--DWLayoutTable-->



<tr>



<td width="23" height="23" valign="top"><img src="themes/Mech/images/ttl.jpg" width="23" height="23"></td>



<td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="themes/Mech/images/ttm.jpg">



<!--DWLayoutTable-->



<tr>



<td width="712" height="23" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>



</tr>



</table></td>



<td width="23" valign="top"><img src="themes/Mech/images/ttr.jpg" width="23" height="23"></td>



<td width="1"></td>



</tr>



<tr>



<td height="24" valign="top" background="themes/Mech/images/tl.jpg"><img name="leftside" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>



<td valign="top" bgcolor="#2e2e2e">



<?







$tableStatus = "open";







}



else {}



}







function OpenTable2() {



global $bgcolor1, $bgcolor2;



echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=row1>\n";



echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";



}







function CloseTable() {



global $tableStatus;



if ($tableStatus == "open"){



?>



</td>



<td valign="top" background="themes/Mech/images/tr.jpg"><img name="rightside" src="themes/Mech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>



<td></td>



</tr>



<tr>



<td height="23" valign="top"><img src="themes/Mech/images/tbl.jpg" width="23" height="23"></td>



<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="themes/Mech/images/tbm.jpg">



<!--DWLayoutTable-->



<tr>



<td width="712" height="23" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>



</tr>



<!--DWLayoutTable-->



</table></td>



<td valign="top"><img src="themes/Mech/images/tbr.jpg" width="23" height="23"></td>



<td></td>



</tr>



<tr>



<td height="1"><img src="themes/Mech/images/Hm.jpg" alt="" width="23" height="1"></td>



<td></td>



<td><img src="themes/Mech/images/Hm.jpg" alt="" width="23" height="1"></td>



<td><img src="themes/Mech/images/Hm.jpg" alt="" width="1" height="1"></td>



</tr>



</table>



<?







$tableStatus = "closed";



}



else {}



}







function CloseTable2() {



echo "</td></tr></table></td></tr></table>\n";



}







/************************************************************/



/* FormatStory */



/************************************************************/







function FormatStory($thetext, $notes, $aid, $informant) {



global $anonymous;



if ($notes != "") {



$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";



} else {



$notes = "";



}



if ("$aid" == "$informant") {



echo "<font class=\"content\" color=\"#000000\">$thetext$notes</font>\n";



} else {



if($informant != "") {



$boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";



} else {



$boxstuff = "$anonymous ";



}



$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";



echo "<font class=\"content\" color=\"#000000\">$boxstuff</font>\n";



}



}







/************************************************************/



/* Function themeheader() */



/************************************************************/



function themeheader() {



global $user, $cookie, $sitekey, $prefix, $name, $db;







cookiedecode($user);



mt_srand ((double)microtime()*1000000);



$maxran = 1000000;



$random_num = mt_rand(0, $maxran);



$datekey = date("F j");



$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));



$code = substr($rcode, 2, 6);



$username = $cookie[1];



if ($username == "") {



$username = "Anonymous";



}







if ($username == "Anonymous") {



$theuser = "<form action=\"account.html\" method=\"post\">;



</form>



<p>\n"; } else { $theuser = "<img src=\"themes/Mech/images/spacer.gif\" border=0 width=4 height=1><font class=copyright>Welcome



$username</font><a href=\"account-logout.html\"></a></TD>\n";



}







$sql = "SELECT msg1, msg2, msg3, link1, link2, link3, link4, link5, link1url, link2url, link3url, link4url, link5url, searchbox, flash FROM ".$prefix."_themecp";



$result = $db->sql_query($sql);



$row = $db->sql_fetchrow($result);



$msg1 = $row[msg1];



$msg2 = $row[msg2];



$msg3 = $row[msg3];



$link1 = $row[link1];



$link2 = $row[link2];



$link3 = $row[link3];



$link4 = $row[link4];



$link5 = $row[link5];



$link1url = $row[link1url];



$link2url = $row[link2url];



$link3url = $row[link3url];



$link4url = $row[link4url];



$link5url = $row[link5url];



$searchbox = $row[searchbox];



$flash = $row[flash];



$public_msg = public_message();



echo "$public_msg";







if ($searchbox == 1) {



$search1 ="<form action=\"modules.php?op=modload&name=Search&file=index\" method=\"post\"><input type=\"text\" name=\"query\" value=\"type search here\" onFocus=\"if(this.value=='type search here')this.value='';\" value style=\"width:120;height:18;\" class=1>&nbsp;<input type=\"image\" class=\"noborder\" value=\"search\" src=\"themes/Mech/images/search.gif\" border=\"0\" alt=\"submit search\"></TD></form>\n";



} else {



$search1 ="&nbsp;</td>\n";



}















echo "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";







$tmpl_file = "themes/Mech/header.html";



$thefile = implode("", file($tmpl_file));



$thefile = addslashes($thefile);



$thefile = "\$r_file=\"".$thefile."\";";



eval($thefile);



print $r_file;











//LEFT SIDE BACKGROUND



echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"



."<tr valign=\"top\">\n"



."<td width=\"31\" valign=\"top\" background=\"themes/Mech/images/leftB.jpg\"><img src=\"themes/Mech/images/leftB.jpg\" width=\"31\" height=\"200\" border=\"0\"></td>\n"



."<td width=\"165\" valign=\"top\">\n";



if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List') OR ($name=='Shopping_Cart') OR ($name=='Your_Account')) {



} else {



blocks(left);



}



echo "</td>\n"



."<td width=\"0\" valign=\"top\" background=\"themes/Mech/images/spacer2.gif\"><img src=\"themes/Mech/images/spacer2.gif\" width=\"0\" height=\"1\" border=\"0\"></td>\n"



."<td width=\"100%\">\n";



}







/************************************************************/



/* Function themefooter() */



/************************************************************/







$foot1 = "test";



$foot2 = "test";



$foot3 = "test";



$foot4 = "test";



function themefooter() {



global $index, $banners, $prefix, $db, $total_time, $start_time, $foot1, $foot2, $foot3, $foot4;



$footer_message = $foot1. "<br>" . $foot2 . "<br>" . $foot3 . "<br>" . $foot4;



$showsub = "<FORM action=modules.php?op=modload&amp;name=Newsletter&amp;file=index&amp;func=action method=post><font class=copyright>&nbsp;<b>Email</b><br>&nbsp;<INPUT maxLength=100 size=20 class=\"sub\" name=new_email value=\"Your Email\" onFocus=\"if(this.value=='Your Email')this.value='';\" value style=\"width:150;height:18;FONT-SIZE: 9px;\"><BR><BR>&nbsp;<SELECT name=new_sub><OPTION value=sub selected>Subscribe<OPTION value=unsub>Unsubscribe</OPTION></SELECT><BR><BR>&nbsp;<SELECT name=new_type><OPTION value=0 selected>Text<OPTION value=1>HTML</OPTION></SELECT><br><br>&nbsp;<INPUT type=image class=\"liteoption1\" value=Submit src=\"themes/MStudioV2/images/submit.gif\" border=\"0\"></font></FORM>";







$maxshow = 10; // Number of downloads to dispaly in the block.



$a = 1;



$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow");



while(list($lid, $title, $hits) = sql_fetch_row($result)) {



$title2 = ereg_replace("_", " ", "$title");



$show .= "&nbsp;&nbsp;&nbsp;$a: <a href=\"modules.php?name=Web_Links&amp;l_op=viewlinkdetails&amp;lid=$lid&amp;ttitle=$title\">$title2</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font class=\"content\">$hits<font class=\"copyright\"> times<br>";



$showlinks = " <A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" width=\"140\" height=\"97\" scrollamount= \"2\" scrolldelay= \"30\" onmouseover='this.stop()' onmouseout='this.start()'>$show";











$a++;



}







global $prefix, $db;







$a = 1;



$sql = "SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY hits DESC LIMIT 0,10";



$result = $db->sql_query($sql);



while ($row = $db->sql_fetchrow($result)) {



$title2 = ereg_replace("_", " ", $row[title]);



// $content .= "<strong><big>&middot;</big></strong>&nbsp;$a: <a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\">$title2</a><br>";



$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\"><img src=\"themes/Mech/images/spacer.gif\" border=0></a> $a: <a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\">$title2</a></span><br>";



$showdl = " <font class=copyright>&nbsp;</b><br>&nbsp;<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" width=\"122\" height=\"91\" scrollamount= \"2\" scrolldelay= \"30\" onmouseover='this.stop()' onmouseout='this.start()'>$content";







$a++;



}



if ($banners == 1) {



$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));



/* Get a random banner if exist any. */



/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */







if ($numrows>1) {



$numrows = $numrows-1;



mt_srand((double)microtime()*1000000);



$bannum = mt_rand(0, $numrows);



} else {



$bannum = 0;



}



$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";



$result = $db->sql_query($sql);



$row = $db->sql_fetchrow($result);



$bid = $row[bid];



$imageurl = $row[imageurl];



$clickurl = $row[clickurl];



$alttext = $row[alttext];







if (!is_admin($admin)) {



$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");



}



if($numrows>0) {



$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";



$result2 = $db->sql_query($sql2);



$row2 = $db->sql_fetchrow($result2);



$cid = $row2[cid];



$imptotal = $row2[imptotal];



$impmade = $row2[impmade];



$clicks = $row2[clicks];



$date = $row2[date];







/* Check if this impression is the last one and print the banner */







if (($imptotal <= $impmade) AND ($imptotal != 0)) {



$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");



$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";



$result3 = $db->sql_query($sql3);



$row3 = $db->sql_fetchrow($result3);



$c_name = $row3[name];



$c_contact = $row3[contact];



$c_email = $row3[email];



if ($c_email != "") {



$from = "$sitename <$adminmail>";



$to = "$c_contact <$c_email>";



$message = ""._HELLO." $c_contact:\n\n";



$message .= ""._THISISAUTOMATED."\n\n";



$message .= ""._THERESULTS."\n\n";



$message .= ""._TOTALIMPRESSIONS." $imptotal\n";



$message .= ""._CLICKSRECEIVED." $clicks\n";



$message .= ""._IMAGEURL." $imageurl\n";



$message .= ""._CLICKURL." $clickurl\n";



$message .= ""._ALTERNATETEXT." $alttext\n\n";



$message .= ""._HOPEYOULIKED."\n\n";



$message .= ""._THANKSUPPORT."\n\n";



$message .= "- $sitename "._TEAM."\n";



$message .= "$nukeurl";



$subject = "$sitename: "._BANNERSFINNISHED."";



mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());



}



}



$showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";



}



}











if ($index == 1) {



echo"</td>"



. " <td width=\"170\" valign=\"top\">"



."";











blocks(right);







}



echo"</td>"



. " <td width=\"31\" valign=\"top\" background=\"themes/Mech/images/rightB.jpg\"><img src=\"themes/Mech/images/rightB.jpg\" width=\"31\" height=\"30\"></td>"



. " </tr>"



. "</table>"



."";











include("themes/Mech/footer.php");







}







/************************************************************/



/* 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;







$ThemeSel = get_theme();



if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {



$t_image = "themes/$ThemeSel/images/topics/$topicimage";



} else {



$t_image = "$tipath$topicimage";



}



if ($notes != "") {



$notes = "<br><br><b>"._NOTE."</b> $notes\n";



} else {



$notes = "";



}



if ("$aid" == "$informant") {



$content = "$thetext$notes\n";



} else {



if($informant != "") {



$content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";



} else {



$content = "$anonymous ";



}



$content .= ""._WRITES." \"$thetext\"$notes\n";



}



//Code Changed - just show posted by



$posted1 = get_author($aid);



$posted = " $time $timezone";



//End Code Change







$tmpl_file = "themes/Mech/story_home.html";



$thefile = implode("", file($tmpl_file));



$thefile = addslashes($thefile);



$thefile = "\$r_file=\"".$thefile."\";";



eval($thefile);



print $r_file;



}







/************************************************************/



/* Function themeindex() */



/************************************************************/







function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {



global $admin, $sid, $tipath;



$ThemeSel = get_theme();



if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {



$t_image = "themes/$ThemeSel/images/topics/$topicimage";



} else {



$t_image = "$tipath$topicimage";



}



$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&amp;op=userinfo&amp;username=$informant\">$informant</a> ";



} else {



$content = "$anonymous ";



}



$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";



}



$tmpl_file = "themes/Mech/story_page.htm";



$thefile = implode("", file($tmpl_file));



$thefile = addslashes($thefile);



$thefile = "\$r_file=\"".$thefile."\";";



eval($thefile);



print $r_file;



}







/************************************************************/



/* Function themesidebox() */



/************************************************************/







function themesidebox($title, $content) {



$tmpl_file = "themes/Mech/blocks.html";



$thefile = implode("", file($tmpl_file));



$thefile = addslashes($thefile);



$thefile = "\$r_file=\"".$thefile."\";";



eval($thefile);



print $r_file;



}







?>




and this is for tables.php

php Code:
<?php




/************************************************************/

/* OpenTable Functions */

/* */

/* Define the tables look&feel for you whole site. For this */

/* we have two options: OpenTable and OpenTable2 functions. */

/* Then we have CloseTable and CloseTable2 function to */

/* properly close our tables. The difference is that */

/* OpenTable has a 100% width and OpenTable2 has a width */

/* according with the table content */

/************************************************************/



function OpenTable()

{global $tableStatus;

if ($tableStatus != "open")

?>

<br>

<table border="0" align=center cellpadding="0" cellspacing="0" width="98%">

<!--DWLayoutTable-->

<tr>

<td width="23" height="23" valign="top"><img src="../tables/ttl.jpg" width="23" height="23"></td>

<td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../tables/ttm.jpg">

<!--DWLayoutTable-->

<tr>

<td width="712" height="23" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>

</tr>

</table></td>

<td width="23" valign="top"><img src="../tables/ttr.jpg" width="23" height="23"></td>

<td width="1"></td>

</tr>

<tr>

<td height="24" valign="top" background="../tables/tl.jpg"><img name="leftside" src="http://gamejunkies.us/phpnuke/1stAD/spacer.gif" width="1" height="1" border="0" alt=""></td>

<td valign="top" bgcolor="#232425">

<?



$tableStatus = "open";



}

else {}

}



function OpenTable2() {

global $bgcolor1, $bgcolor2;

echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=row1>\n";

echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";

}



function CloseTable() {

global $tableStatus;

if ($tableStatus == "open"){

?>

</td>

<td valign="top" background="../tables/tr.jpg"><img name="rightside" src="http://gamejunkies.us/phpnuke/1stAD/spacer.gif" width="1" height="1" border="0" alt=""></td>

<td></td>

</tr>

<tr>

<td height="23" valign="top"><img src="../tables/tbl.jpg" width="23" height="23"></td>

<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="../tables/tbm.jpg">

<!--DWLayoutTable-->

<tr>

<td width="712" height="23" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>

</tr>

<!--DWLayoutTable-->

</table></td>

<td valign="top"><img src="../tables/tbr.jpg" width="23" height="23"></td>

<td></td>

</tr>

<tr>

<td height="1"><img src="http://gamejunkies.us/phpnuke/1stAD/Hm.jpg" alt="" width="23" height="1"></td>

<td></td>

<td><img src="http://gamejunkies.us/phpnuke/1stAD/Hm.jpg" alt="" width="23" height="1"></td>

<td><img src="../Pack-zoneCopper6.5/themes/zoneCopper/themes/ECL/blocks/Hm.jpg" alt="" width="1" height="1"></td>

</tr>

</table>



Any help is appreciated.
 
View user's profile Send private message
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Fri Feb 28, 2014 2:51 pm Reply with quote

Image

this one?

_________________
Github: RavenNuke  
View user's profile Send private message
fistfight







PostPosted: Fri Feb 28, 2014 3:16 pm Reply with quote

Yes. All I've done with it is modified colors and added logos to the forums

This is it now.



UFSITE.jpg
 Description:
 Filesize:  58.43 KB
 Viewed:  58769 Time(s)

UFSITE.jpg


 
neralex







PostPosted: Sat Mar 01, 2014 5:48 am Reply with quote

Try this one: [ Only registered users can see links on this board! Get registered or login! ]

I have modified your theme.php, as foreseen in RN. I don't know for what do you need the variable $tableStatus but i have leave in the code as provided.


empty form in themeheader:

In the function themeheader you have a empty form if $username == 'Anonymous'. Why is it empty? It has no function, which code was here inside?


newsletter subscription:

In the function themefooter you have a form for the newsletter subscriptions but i don't know if its work correctly in RN, because there is another Newsletter module installed. Maybe montego can write more to it.


sending email with every pageload:

In the function themefooter you have some codelines to display the banners with sending a email to the banner client with every pageload. Its not recommended to do this here and i don't know if its working correctly in RN. But i have the code optimized for RN and uncommended. Here i have added the RN based way to display your banners.

Some parts was copied from stock themes of the RN download package. It could be you are getting again some errors but i can't tested without the rest of the themes files. So let me if you are getting an error.


Last edited by neralex on Tue Mar 04, 2014 3:25 am; edited 1 time in total 
fistfight







PostPosted: Mon Mar 03, 2014 10:40 am Reply with quote

WOW. Thank you! That was awesome of you to do this for me.

The only thing that I'm noticing is that the right side of the page is missing the image that runs down the side.

If you look at this image it shows the theme on RN

But WOW thank you again for doing this.

(UPDATE)


It looks like it has to do with banners. The file that its not displaying is rightb.jpg.

I've commented out the old way of the banners being displayed and opted for your way since it isnt sending the email out. I didnt even realize that was happening.

Also

Here is a link to the full theme if you wanted to see how it looks installed on RN.

http://ufclansite.net/download/Mech.rar



rightside missing.png
 Description:
 Filesize:  57.78 KB
 Viewed:  58708 Time(s)

rightside missing.png




Last edited by fistfight on Tue Mar 04, 2014 10:15 am; edited 1 time in total 
neralex







PostPosted: Tue Mar 04, 2014 3:24 am Reply with quote

Ok, i will try a look inside the theme files today.
 
fistfight







PostPosted: Tue Mar 04, 2014 10:14 am Reply with quote

Thank you. I played around with it yesterday trying to figure out why that side was not working correct. I added some right blocks and even those look off on that side.


I'm sure its all related though.
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Mar 04, 2014 12:11 pm Reply with quote

Just visited your site and it looks fine to me on the homepage but you do have to wait a while for everything to load.
 
View user's profile Send private message Send e-mail
fistfight







PostPosted: Tue Mar 04, 2014 12:32 pm Reply with quote

Thats the old site running PNC 4.5. I have the RN site on my local PC under XAMMP and as soon as I get everything migrated over to RN I'm going to remove that and replace it with my local copy.

The Hosting provider updated the server to PHP 5.4 and Im not able to get into the admin page anymore and a lot of other issues like the captcha images no longer work.


I have the site converted to RN on my PC and its working well. I'm just doing some tweaking and trying to get the theme to work before I upload it.
 
neralex







PostPosted: Tue Mar 04, 2014 2:35 pm Reply with quote

I have re-modified the theme.php and updated my gist on github.

Download the changed gist, unpack the tar.gz archive and you will find the theme.php in a unpacked folder.

download: [ Only registered users can see links on this board! Get registered or login! ]
code-view: [ Only registered users can see links on this board! Get registered or login! ]

With the new theme.php you must create a new css-file with the name nukeNAV.css in the styles-folder of your theme. I have added the RN navigation in your theme. Please use this code for this file (this code was taken from the RickTido theme):

css Code:
table#nukeNAV{width:740px;margin-left:auto;margin-right:auto;}

table#nukeNAV td{padding-bottom:0;margin:0;}
table#nukeNAV tr{padding-bottom:0;margin:0;}
.nukeNAV a{border:0;font-size: 10px;}
.nukeNAV a,.nukeNAV a:visited{color:#fff;}
.nukeNAV li:hover,.nukeNAV li.sfHover,.nukeNAV a:focus,.nukeNAV a:hover{background:#131313;color:#CC0001;outline:0;}
.nukeNAV a, .nukeNAV a:visited{color:#FF0000;}
.nukeNAV a:hover{color:#999999;}
.nukeNAV a:active{color:#cccccc;}
.nukeNAV li{background:none;}
.nukeNAV li li, .nukeNAV li li li, .nukeNAVmod li li li{background:#1c1c1c;}
.sf-sub-indicator{background:url(../../../includes/jquery/css/images/arrows-ffffff.png) no-repeat -10px -100px;}
.nukeNAVmod{font-size:12px;}
.nukeNAVmod,.nukeNAVmod li{width:156px;}
.nukeNAVmod a, .nukeNAVmod a:visited{color:#FF0000;}
.nukeNAVmod a:hover{color:#999999;}
.nukeNAVmod a:active{color:#cccccc;}
.nukeNAVmod li:hover,.nukeNAVmod li.sfHover,.nukeNAVmod a:focus,.nukeNAVmod a:hover{background:#131313; color:#999999;outline:0;}
.nukeNAVmod li:hover ul,.nukeNAVmod li.sfHover ul{z-index:99;left:156px;top:0;}
.nukeNAVmod li{background:none;}
.nukeNAVmod li li, .nukeNAVmod li li li{background:#1c1c1c;}
.nukeNAVmod li li,.nukeNAVmod li li li{padding:2;margin:0;}
.nukeNAV-center.nukeNAVmod,.nukeNAV-center.nukeNAVmod ul{width:100%;}
.nukeNAV-center.nukeNAVmod li.li-first,.nukeNAV-center.nukeNAVmod li.li-next,.nukeNAV-center.nukeNAVmod li ul li:first-child{border-top:thin dashed #bfbfbf;}
.nukeNAV-center.nukeNAVmod li{float:left;width:250px;margin-left:0;padding-left:2%;border-right:thin dashed #f3f3f3;border-left:thin dashed #f3f3f3;}
.nukeNAV-center.nukeNAVmod li:hover {border-left:thin dashed #bfbfbf;border-right:thin dashed #bfbfbf;}
.nukeNAV-center.nukeNAVmod li.li-even {margin-left:0;padding-left:11px}
.nukeNAV-center.nukeNAVmod li ul{width:14em;}
.nukeNAV-center.nukeNAVmod li ul li{width:100%;float:none;margin-left:0;}
/* open the hover menu on the correct side for right/left blocks */
.sidebarr .nukeNAVmod li:hover ul,.sidebarr .nukeNAVmod li.sfHover ul{left:-14.5em;top:0;} /* right column */
.sidebar .nukeNAVmod li:hover ul,.sidebar .nukeNAVmod li.sfHover ul{left:100%;top:0;} /* left column */


If you don't want use this navi in the header, uncomment this line in function themeheader:

php Code:
echo $nav;


But for the block navigation you will need the nukeNAV.css, so is it important to create this file in the styles folder of your theme. Feel free to adjust the classes.

Please note: After the replacement of the theme.php the following files of your theme are not more needed, because i have the code of all these files added in the theme.php:

blocks.html
footer.php
header.html
story_home.html
story_page.htm
tables.php

Wink
 
neralex







PostPosted: Tue Mar 04, 2014 3:03 pm Reply with quote

I have added a class to center the middle content:

find in function OpenTable();

php Code:
	   , '<table cellpadding="0" cellspacing="0" style="width:98%; border:0">' , PHP_EOL


change it to:

php Code:
	   , '<table cellpadding="0" cellspacing="0" style="width:98%; border:0" class="centered">' , PHP_EOL


... my gist was updated!
 
fistfight







PostPosted: Tue Mar 04, 2014 5:19 pm Reply with quote

Wow! Again thanks for helping so thoroughly.

I didn't expect you to do so much towards getting the theme working.

It looks great on the site I have running with XAMPP on my PC. I hope to move the converted RN install over to my hosted site later this week.

I need to look for a few modules and blocks to use and do some additional testing.

Image

Thanks again neralex.

Do you have a paypal so I can contribute to your beer fund?

Smile
 
neralex







PostPosted: Tue Mar 04, 2014 9:52 pm Reply with quote

Glad if you like it. Smile

Fore sure, i have a paypal account. Follow the button on my soe.media page on the right side.
 
pandorasshadow
New Member
New Member



Joined: Dec 11, 2014
Posts: 2

PostPosted: Wed Dec 17, 2014 7:27 am Reply with quote

neralex, can you help me with my diablo them to make it work on the new RN? [ Only registered users can see links on this board! Get registered or login! ]
please and thank you. i can send you the full theme if you need it...
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6433

PostPosted: Wed Dec 17, 2014 8:24 am Reply with quote

pandorasshadow, it would help everyone if you made a single request, rather than posting in multiple forums and sending PMs. It would also help to understand what efforts you've made so far, and what problems / errors you're seeing. If you want someone to do the work for you, you can post in the For Hire forum or we could move your posts there.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
neralex







PostPosted: Wed Dec 17, 2014 9:18 am Reply with quote

I was just wondering who got also a PM. Wink

pandorasshadow, I tried a short look on the theme and i would suggest you to use another much more moderner theme.

There are a lot of errors inside and it will costs more than 5 hours to clean it all. At the end you will still have a old theme on a very old web standard with ugly flash objects. Far away from mobile friendly.

Try a look on this diablo theme. Its not free but it comes with a fair price and a lot of extras:
[ Only registered users can see links on this board! Get registered or login! ]

Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Themes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©