|
» Online Users: 53 |
| 0 members and 53 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 11:10 PM. |
|
» .::. |
Web Hosting - web hosting, dedicated servers and web design services
|
Online Degree - search for 1000+ online degrees, online colleges & online universities.
|
Tattoo - we are a group of tattoo enthusiasts
|
Gexa Energy - your absolute best choice in electric service
|
|
|
|
|
|
|
|
|
|
|
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.
|
|
|
|
|
About this Page This is a discussion on Topic image on index.php within the Purged Topics forums, part of the NM Staff category; first of all - sorry for may bad english ops:
Now my problem - I have the f1apple-theme - if I write ... |
|
 |
|
 |
|
 |

07-28-2003, 07:28 AM
|
|
Junior Member
|
|
Join Date: May 2003
Location: Berlin
Posts: 5
|
|
|
Topic image on index.php
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&op=userinfo&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&op=userinfo&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;
} |
|

07-28-2003, 01:53 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
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
|

07-28-2003, 02:17 PM
|
|
Junior Member
|
|
Join Date: May 2003
Location: Berlin
Posts: 5
|
|
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:
|

07-28-2003, 02:32 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
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
|

07-28-2003, 03:18 PM
|
|
Junior Member
|
|
Join Date: May 2003
Posts: 3
|
|
|
well, he could have nuke 6.5 installed, that could be the problem.
|

07-28-2003, 03:29 PM
|
|
Moderator
|
|
Join Date: Nov 2002
Location: Belgium
Posts: 957
|
|
|
the fix depends on what is written in his story_home.html
|

07-28-2003, 03:50 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
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
|

07-28-2003, 03:56 PM
|
|
Moderator
|
|
Join Date: Nov 2002
Location: Belgium
Posts: 957
|
|
he isn't missing the $tipath variable
|
Quote:
|
|
global $anonymous, $tipath;
|
READ THE MESSAGES DAMMIT
lol  :wink:
|

07-28-2003, 04:07 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
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....
|

07-28-2003, 04:14 PM
|
|
Moderator
|
|
Join Date: Nov 2002
Location: Belgium
Posts: 957
|
|
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)
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|