» Log in
User Name:

Password:

Not a member yet?
Register Now!
» 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
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

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 ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 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&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
  #2 (permalink)  
Old 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 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
__________________
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
  #7 (permalink)  
Old 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 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:
__________________
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
  #9 (permalink)  
Old 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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 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)
__________________
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


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


All times are GMT -5. The time now is 10:36 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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