Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 MyBB Hacks Mood System
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #7
RE: MyBB Hacks Mood System
(11-22-2010 11:16 AM)ZiNgA BuRgA Wrote:  Thanks for the guide RateU!
Biggrin Thanks, Yumi.

(11-22-2010 10:32 AM)Skiilz Wrote:  I modified the code to show a message if no mood selected:

Yeah. We can use image for no mood too.

(11-22-2010 11:25 AM)leefish Wrote:  I don't have the Template Conditionals - just the Php in templates....

I'm using PHP In Template too, Lee. We can change the part of the code that Yumi said.
Example for postbit:

HTML Code
<if $post['fid4'] then>
	<div>
		Mood: <img src="images/mybbhacksmood/<?=str_replace(' ', '', $post['fid4'])?>.png" alt="{$post['fid4']}" title="{$post['fid4']}" />
	</div>
</if>


We can change it to:

HTML Code
<if $post['fid4'] then>
	<div>
		Mood: <img src="images/mybbhacksmood/<?php echo str_replace(' ', '', $post['fid4']); ?>.png" alt="{$post['fid4']}" title="{$post['fid4']}" />
	</div>
</if>

Like Yumi said, don't forget the semicolon there.


11-23-2010 04:58 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
MyBB Hacks Mood System - RateU - 11-22-2010, 09:53 AM
RE: MyBB Hacks Mood System - Skiilz - 11-22-2010, 10:32 AM
RE: MyBB Hacks Mood System - ZiNgA BuRgA - 11-22-2010, 11:16 AM
RE: MyBB Hacks Mood System - leefish - 11-22-2010, 11:25 AM
RE: MyBB Hacks Mood System - ZiNgA BuRgA - 11-22-2010, 11:33 AM
RE: MyBB Hacks Mood System - leefish - 11-22-2010, 12:06 PM
RE: MyBB Hacks Mood System - RateU - 11-23-2010 04:58 AM
RE: MyBB Hacks Mood System - Skiilz - 12-01-2010, 03:27 AM
RE: MyBB Hacks Mood System - RateU - 12-01-2010, 03:55 AM
RE: MyBB Hacks Mood System - Skiilz - 12-01-2010, 05:06 AM
RE: MyBB Hacks Mood System - RateU - 12-01-2010, 06:16 AM
RE: MyBB Hacks Mood System - Skiilz - 12-01-2010, 07:49 AM
RE: MyBB Hacks Mood System - RateU - 12-01-2010, 08:00 AM
RE: MyBB Hacks Mood System - Skiilz - 12-01-2010, 08:22 AM
RE: MyBB Hacks Mood System - ZiNgA BuRgA - 12-01-2010, 10:28 AM
RE: MyBB Hacks Mood System - Skiilz - 12-01-2010, 09:26 PM
RE: MyBB Hacks Mood System - RateU - 12-02-2010, 04:01 AM
RE: MyBB Hacks Mood System - Skiilz - 12-02-2010, 06:59 AM
RE: MyBB Hacks Mood System - RateU - 12-03-2010, 06:07 AM
RE: MyBB Hacks Mood System - Skiilz - 12-03-2010, 07:46 AM

 Standard Tools
Forum Jump: