MyBB Community Forums

Full Version: Displaying News on your homepage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
The links are working fine, when you click on it ... even when the chars don't get replaced.
bot it still doesnt work (even without strtolower()) Sad

@up: but google will get it as one page under multiple urls :/
marines Wrote:bot it still doesnt work (even without strtolower()) Sad
Same problem as before?
MrDoom Wrote:
marines Wrote:bot it still doesnt work (even without strtolower()) Sad
Same problem as before?

yes Sad
Can you try:
$linksubject = str_ireplace($str, $rep, $row['subject']);

I'm not sure if the function supports those characters TBH.
MrDoom Wrote:Can you try:
$linksubject = str_ireplace($str, $rep, $row['subject']);

I'm not sure if the function supports those characters TBH.
oh my! i was really amazed. it works Big Grin but why? mmm... never mind. thx all Smile

//edit
@down: exactly Big Grin
That's a case insensitive version of str_replace, I don't understand why that would work and not the standard str_replace, but hey, it's working Toungue
MrDoom:

The forum where it's getting the news uses HTML, but when I display it on my Website, it doesn't allow HTML, is there a way to allow it?

Thanks.
Change:
$message = $parser->parse_message($row2['message'], array('no', 'yes', 'yes', 'yes', 'yes', 'yes'));

To:
$message = $parser->parse_message($row2['message'], array('yes', 'yes', 'yes', 'yes', 'yes', 'yes'));
Hmm Thanks, but it did not work..
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33