- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 58 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Need help finding topic image problem [ ]
Author
Message
vash4056
Nuke Cadet
Joined: May 29, 2007
Posts: 5
Posted:
Sat Aug 16, 2008 11:05 pm
I just created a theme using a pretty old theme and I have everything working except my topic images. Im pretty sure the problem is in my theme.php file but im not sure where it is. Im using version 7.9 of nuke and here is my current theme.php
Code:
/************************************************************/
/* 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/ddo2/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/ddo2/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
any help would be greatly appreciated.
movieman
Lieutenant
Joined: Feb 29, 2004
Posts: 297
Location: New York
Posted:
Sun Aug 17, 2008 2:48 am
I am going to take a stab at it, did your topic images work fine before you changed your theme?, if not then you probably are not naming your images correctly. they have to be named.... image.jpg, image.gif, image_.jpg, image.png....not image 1.jpg ect. no spaces.
the theme php looks fine.
_________________http://www.powhost.com
spottedhog
Captain
Joined: Apr 30, 2004
Posts: 566
Posted:
Sun Aug 17, 2008 3:52 am
Please post the story_page.html file code. If you closely look at the code you copy/pasted, it does not display any of these variables:
$topicname, $topicimage, $topictext, or $tipath
The problem must be in the story_page.html file somewhere.
_________________SMF-Nuke admin
SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
vash4056
Nuke Cadet
Joined: May 29, 2007
Posts: 5
Posted:
Sun Aug 17, 2008 9:43 am
Thanks for the help I fixed the problem.
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