images/topics

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   images/topics
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
What am i missing ? When posting an article on main page how do i get the correct image to show up?

Right now the properties of the image is /themes/Halloween/images/topics/
Is the a file I need to edit to show the corresponding pic or to even be able to select it? I wouldve thought there would be a spot under topics to slect the appropriate image.



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Before you can use the topics you need to set them up. In your admin page select topics set up all the ones you want. THe dropdown list will show any topic image in this folder root/images/topics/ the ones in the halloween theme can be uploaded there too just remember the ones in that folder are stock and will show up whenever you are using a theme that doesnt have its own.

Telli




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
Yeah i got it. Thats originally what i was doing but I kept getting the dreaded red X :p Mind if i ask how youre Download , weblinks , and topic images change w each theme? Ive tried messing around with it a bit but havent had much luck as of yet.



Back to top Reply with quote
#4   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
just making sure you saw this :p



Back to top Reply with quote
#5   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Its a function set up in the theme.php the modules/Downloads/index.php and the modules/Web_links/index.php. Thier is alot of tweaking to do it with older versions of nuke. Nuke 6.9 has it built in. But only some theme makers implement it. If your running 6.9 and it isnt working on newer themes then chances are its not implemented into the theme. If you wanted to made sure you have it just check the above files listed for a function like this:


$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}


That one is from the theme.php for the topic images but they are all very similar if you do have this added function then check to make sure that you have a folder in each theme image folder called topics and put the images in thier for that particular theme. Let me know how it works out.

Telli



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
Actually Im running 6.8 I believe. would you suggest upgrading for the added feature? sounds easier to do in 6.9 assuming i dont KISS something up :p



Back to top Reply with quote
#7   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
I looked at your site and it is working fine for the theme up there. So it must be in Nuke 6.8 as well so you just need to edit the theme.php for each theme you want to use. If you want to add more topics to your site you have to add the image into the nukeroot/images/topics/ folder then when you load a theme that uses this it will look into the theme like this [ Register or login to view links on this board. ] and if the theme didnt have that topics folder it would revert to the nukeroot/images/topics/ folder and use the one thier hope that helps.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
Alright Ive got the topics directory set up with the images to be used for each theme. What exactly an im looking for to edit?



Back to top Reply with quote
#9   
dementeddogz
CZ Active Member
dementeddogz has been a member for over 19 year's 19 Year Member
Age: 46
Gender: Male
Fav. Sports Team: Miami
Status: Offline
Joined: Mar 12, 2005
0.02 posts per day
Posts: 163
Points: 21,847
   
just a bump :p



Back to top Reply with quote
#10   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
You want to edit the story function in each theme.php so that it looks in the theme for the image. This is what it should look like for the two story functions:

   
/************************************************************/
/* 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;

$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> $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;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    //Code Changed - just show posted by
    $posted1 = get_author($aid);
   $posted = " $time $timezone";
    //End Code Change
   
    $tmpl_file = "themes/YOUR_THEME/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;
$ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
}
    $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;username=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $tmpl_file = "themes/YOUR_THEME/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}



Where it says YOUR_THEME that needs to be the name of the theme your doing. Some theme have the storys function built right in and they are a little tougher to do but its the same idea.

Then just make a folder in your themes/YOUR_THEME/images/ called topics and put your images in there.

Telli



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum