Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 89
7 members and 82 guests
asrapxl, bearmchdressesr, danansceclasqe6, gratoiduat5kmes, lnkmastes, watcy5gerp, whasst3xniisabs
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Topic image on index.php
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: May 2003
Location: Berlin
Topic image on index.php - 07-28-2003, 07:28 AM

first of all - sorry for may bad english ops:

Now my problem - I have the f1apple-theme - if I write a new article (for example the topic is the PHP-Nuke-Topic) the topic image isn`t shown on the index.php but in the review the image is shown - so what I have to do ?

Here the importent part of may theme.php:

Code:
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    if ($notes != "") {
	$notes = "

"._NOTE." $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;uname=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
	$content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
    $tmpl_file = "themes/fiapple/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 = "

"._NOTE." $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;uname=$informant\">$informant</a> ";
	} else {
	    $content = "$anonymous ";
	}
	$content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    $tmpl_file = "themes/fiapple/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-28-2003, 01:53 PM

Code:
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext)
change that to this

Code:
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext, $tipath)
see if that works.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 5
Join Date: May 2003
Location: Berlin
07-28-2003, 02:17 PM

After I changed - I get following error:

Code:
Warning: Missing argument 13 for themeindex() in /home/www/web77/html/new/html/themes/fiapple/theme.php on line 114
Line 114 is the line wich I changed - an the topicimage is not now on the index..... :cry:
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-28-2003, 02:32 PM

OK..Is this the fiapple theme pack for Nuke6.0?
Did you download it from this site?

OUR version works properly. I do know that.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: May 2003
07-28-2003, 03:18 PM

well, he could have nuke 6.5 installed, that could be the problem.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-28-2003, 03:29 PM

the fix depends on what is written in his story_home.html


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-28-2003, 03:50 PM

Quote:
Originally Posted by Mighty_Y
the fix depends on what is written in his story_home.html
Right-o
Does he have this?
Code:
img src="$tipath$topicimage"
or this?
Code:
img src="/images/topics/$topicimage"
if he has the first one in his story_home.html then the problem is likely he is missing the $tipath variable from the global statement in the theme.php

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-28-2003, 03:56 PM

he isn't missing the $tipath variable
Quote:
global $anonymous, $tipath;
READ THE MESSAGES DAMMIT
lol :wink:


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
07-28-2003, 04:07 PM

Quote:
READ THE MESSAGES DAMMIT
THAT'S IT!!!!..I officially need a vacation fro this stuff... 8O :roll:

man I am really spent and strung out....
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
07-28-2003, 04:14 PM

I was just kidding, hope you aren't mad now :? , but I also think you should go one vacation, let me and IACOJ take care of this place and you can take Coldblooded on a vacation (also don't forget wife and kids, if you have any ).
You do a wonderfull job all year round and when it is vacation you don't even go out?? I'm spending whole days with friends (just doing nothing lol)


Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

« I love you ! | - »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with index.php! boltz Nuke 7.x - General 1 07-18-2005 11:37 PM
PHP generated image help, setting bg image? Zathu_Koon Open topics 1 07-24-2003 12:10 PM
theme/index.php msimonds Theme packs 4 05-21-2003 09:28 PM
How do I change topic image and make logo fit right? xvertirx Purged Topics 1 01-09-2003 05:02 PM
Problems with index.php HELP ME! darkdan Purged Topics 7 01-01-2003 09:28 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31