REGISTER or LOGIN to have the annoying ads removed.
Post Reply 
 
Thread Rating:
  • 18 Votes - 4.11 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Awards 1.3
Apr 12, 2009, 02:06 AM (This post was last modified: Apr 12, 2009 02:21 AM by Trinit.)
Post: #351
RE: My Awards 1.2
(Apr 09, 2009 12:56 AM)labrocca Wrote:  Have you checked in Firefox and Opera? Just curious because maybe I will make the change to the package.

Yes in Opera Works fine.. i use it also in Firefox only in IE doesn't work.
Ps. I test it also on my ps3 and it works Wink
I have this:
Code:
    $awards = "<span style=\"white-space:normal; width: 100%;\">";

    while($results = $db->fetch_array($query))
    {
        $awards .= "<a href=\"myawards.php?awid=".$results['awid']."\"><img src=\"uploads/awards/".$results['awimg']."\" border=\"0\" alt=\"".$results['awname']."\" /></a>";

    }

    $awards .= "</span>";


I must replace it with this?

Code:
    $awards = "<span style=\"white-space:normal; width: 100%;\">";

    while($results = $db->fetch_array($query))
    {
        $awards .= "<img src=\"uploads/awards/".$results['awimg']."\" title=\"".$results['awname']."\" alt=\"".$results['awname']."\" />";

    }

    $awards .= "</span>";

I did it but it doesn't work

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Support Forums
This ad removed for subscribers.
Apr 12, 2009, 03:30 PM
Post: #352
RE: My Awards 1.2
How to give default image (all member with zero awards) to define this variable
Code:
<!-- AWARDS -->
on postbit_author_user template Smile

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 12, 2009, 04:54 PM
Post: #353
RE: My Awards 1.2
Trinit - What you changed won't effect display. Try changing the span's to div's.

FBI - The functions for postbit display will need a change.

Code:
    }

return $post;

Change to this:


Code:
    }else{

    $awards = "<span style=\"white-space:normal; width: 100%;\"><img src=\"path/to/default.gif\" alt=\"\"></span>";
    $post['user_details'] = str_replace("<!-- AWARDS -->", $awards, $post['user_details']);
           }

return $post;
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 12, 2009, 07:11 PM (This post was last modified: Apr 12, 2009 07:15 PM by Rob1991.)
Post: #354
RE: My Awards 1.2
(Apr 12, 2009 04:54 PM)labrocca Wrote:  
Code:
    }else{

    $awards = "<span style=\"white-space:normal; width: 100%;\"><img src=\"path/to/default.gif\" alt=\"\"></span>";
    $post['user_details'] = str_replace("<!-- AWARDS -->", $awards, $post['user_details']);
           }

return $post;

I was just about to ask for this :o Thank you Big Grin

However i made mine display text
'This user has no awards'

Code:
}else{

    $awards = "<span style=\"white-space:normal; width: 100%;\"><center>This user has no awards</center></span>";
    $post['user_details'] = str_replace("<!-- AWARDS -->", $awards, $post['user_details']);
           }

return $post;

}

I am really pleased with my post bit now Big Grin

   

[Image: mysig.php?name=cgamer]

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 12, 2009, 07:45 PM
Post: #355
RE: My Awards 1.2
DId you make sure it validates what you have changed? Just curious but it does look nice.
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 12, 2009, 08:00 PM
Post: #356
RE: My Awards 1.2
(Apr 12, 2009 07:45 PM)labrocca Wrote:  DId you make sure it validates what you have changed? Just curious but it does look nice.

Erm, sorry you have lost me there,

Do you mean, did i make sure it gives people the 'ELSE' if they dont have any awards?

If so, yes it does Big Grin

[Image: mysig.php?name=cgamer]

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Support Forums
This ad removed for subscribers.
Apr 12, 2009, 09:16 PM
Post: #357
RE: My Awards 1.2
Thanks Labrocca for Quick Response, implementing... done!
And Rob, you have nice Post_Bit_Author template. I will implement your idea Smile

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 13, 2009, 01:57 AM
Post: #358
RE: My Awards 1.2
Thanx! Now works perfectly!

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 13, 2009, 03:57 AM
Post: #359
RE: My Awards 1.2
(Apr 12, 2009 09:16 PM)FBI Wrote:  Thanks Labrocca for Quick Response, implementing... done!
And Rob, you have nice Post_Bit_Author template. I will implement your idea Smile

Glad you like it Big Grin

[Image: mysig.php?name=cgamer]

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Apr 13, 2009, 10:45 AM
Post: #360
RE: My Awards 1.2
W3C validation...google it.

[Image: mybbsig.php]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  My Awards In Vertical Postbit 3KB 11 374 Jul 08, 2010 04:53 PM
Last Post: labrocca
  Awards Systen - Recoking? iymovies 2 633 Dec 12, 2009 06:01 PM
Last Post: labrocca
  Awards Xenocide 4 605 Nov 12, 2009 01:08 PM
Last Post: MattR
  My Awards Badge! upthevale 17 4,507 Oct 23, 2009 01:41 AM
Last Post: mynameis940

Forum Jump:

Web Hosting


icon buffet