Story module alterations

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Story module alterations
moosus
CZ Newbie
moosus has been a member for over 19 year's 19 Year Member
australia.gif
Occupation: WebDesigner
Age: 52
Gender: Male
Status: Offline
Joined: Nov 25, 2004
0.00 posts per day
Posts: 3
Points: 166
   
G'day guys / girls

I'm hoping somebody can point me in the right direction. I am trying to add an image function to my stories module. It will be a fairly basic alteration in that I will have the image online already and just want to store the image location along with the article. then when the story is viewed read the image back as
<img src="$ass_image" alt="Front Cover"  border="0">


So I am going through the story.php in \admin\modules and I can sort of understand some of it but what is throwing me is the following line
themepreview($subject, $hometext, $bodytext, $notes);

This line appears to be associated with the display of the actual story to screen (usuall within an echo call)
I can't find any reference to "themepreview" in this file is it getting this as a function from another file?
Any help would be appreciated
Cheers
moosus


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
   

themepreview($subject, $hometext, $bodytext, $notes);


Is a function if you adding an image you will need to add into that aswell so it gets carried from function to function.


themepreview($subject, $hometext, $bodytext, $notes, $ass_image);


Make sure you add into all places or you will get a missing argument error.



_________________
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   re: Story module alterations
moosus
CZ Newbie
moosus has been a member for over 19 year's 19 Year Member
australia.gif
Occupation: WebDesigner
Age: 52
Gender: Male
Status: Offline
Joined: Nov 25, 2004
0.00 posts per day
Posts: 3
Points: 166
   
Thanks for the reply,
I took the weekend off so I will continue to play with it this week.

I'll get back to you when I have played a little more

Cheers
moosus



Back to top Reply with quote
#4   re: Story module alterations
moosus
CZ Newbie
moosus has been a member for over 19 year's 19 Year Member
australia.gif
Occupation: WebDesigner
Age: 52
Gender: Male
Status: Offline
Joined: Nov 25, 2004
0.00 posts per day
Posts: 3
Points: 166
   
Hope you don't mind me asking more question 'cause I'm a bit baffelled. icon_eek.gif

Can you explain how the nuke can use the following code in forms so it appears without the punctuation:
echo "<br><br><b>"._STORYTEXT."</b><br>"
       ."<textarea wrap=\"virtual\" cols=\"50\" rows=\"7\" name=\"hometext\">$hometext</textarea><br><br>"


You see where it has ._STORYTEXT. it places in the text (in the form) "Story Text" ... HOW?


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