Adding more info to viewtopic

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Adding more info to viewtopic
kingy
CZ Super Newbie
kingy has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 12, 2004
0.00 posts per day
Posts: 33
Points: 3,286
   
Can some please help me, I want to add postrow.INTERESTS to viewtopic, but not 100% sure how to do it.

Any help appreciated.



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,475
   
Im pretty sure that is allready coded into the viewtopic.php and the includes/page_header.php so just add this


{postrow.POSTER_INTERESTS}


Right under the

{postrow.POSTER_JOINED}<br />


in the themes/YOUR_THEME/viewtopic_body.tpl should work just fine. If not post back and we will see if it is coded in or you have to add it.



_________________
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: Adding more info to viewtopic
kingy
CZ Super Newbie
kingy has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 12, 2004
0.00 posts per day
Posts: 33
Points: 3,286
   
hmm didnt work.

Im using the phpib2 theme.

What should I be looking for in the page_header?



Back to top Reply with quote
#4   
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,475
   
There might not be anything for that in the includes/page_header.php

open your modules/Forums/viewtopic.php and find this line

$sql = "SELECT u.username, u.user_id,.......


Make sure that u.user_interests is there. If not add it.(make sure to check the commas)


Find next:

$poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . $postrow[$i]['user_regdate'] : '';


and after add this:

$poster_interests = ( $postrow[$i]['user_interests'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Interests'] . ': ' . ($postrow[$i]['user_interests']) : '';


Next find

'POSTER_JOINED' => $poster_joined,


And after add this:

'POSTER_INTERESTS' => $poster_interests,


Let me know how it works out for you.



_________________
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
#5   re: Adding more info to viewtopic
kingy
CZ Super Newbie
kingy has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: May 12, 2004
0.00 posts per day
Posts: 33
Points: 3,286
   
yep, that worked, thanks a lot much appreciated.

One more quick thing, where do I put the bold tags to make Interests: and Joined: in bold?



Back to top Reply with quote
#6   
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,475
   
Just place them before the {postrow. } in the theme file.




_________________
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