You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 131 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 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
vash4056
Nuke Cadet
Nuke Cadet


Joined: May 29, 2007
Posts: 7


PostPosted: Sat Aug 16, 2008 11:05 pm Reply with quoteBack to top

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&amp;op=userinfo&amp;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&amp;op=userinfo&amp;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.
Find all posts by vash4056View user's profileSend private message
movieman
Captain
Captain


Joined: Feb 29, 2004
Posts: 302

Location: New York

PostPosted: Sun Aug 17, 2008 2:48 am Reply with quoteBack to top

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.

_________________

Find all posts by moviemanView user's profileSend private messageSend e-mailAIM AddressMSN Messenger
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 561


PostPosted: Sun Aug 17, 2008 3:52 am Reply with quoteBack to top

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.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
vash4056
Nuke Cadet
Nuke Cadet


Joined: May 29, 2007
Posts: 7


PostPosted: Sun Aug 17, 2008 9:43 am Reply with quoteBack to top

Thanks for the help I fixed the problem.
Find all posts by vash4056View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.043 Seconds - 241 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::