PDA

View Full Version : use the Rich Prefix instead of the Plain Prefix for News?


qG ThaLiX
07-16-2008, 12:24 PM
Basiclly:

Currently the news module uses the plain prefix (vB 3.7.2). Is there any way i can change it to rich? As i want to display flags in front of the title, which is possible with rich prefixes, but not with plain where it will just show text.

I hope my question is clear.

Brian
07-16-2008, 01:12 PM
Thank you for pointing this out, as it should show the rich text preview instead of the plain text. If you will look in your forum/modules/news.php file for this line:
$news['prefix'] = htmlspecialchars_uni($vbphrase['prefix_' . $news['prefixid'] . '_title_plain']);

And replace with this:
$news['prefix'] = $vbphrase['prefix_' . $news['prefixid'] . '_title_rich'];

Then that should take care of the issue.

Our Sponsors
 

qG ThaLiX
07-16-2008, 03:35 PM
Thanks alot, exactly what i needed, gonna change it in a sec.

Alien
12-07-2008, 09:30 PM
I'm having a small issue with this functionality... When it tries to display the rich images, it tries to get them from www.domain.com/forums/images/prefixes instead of from sub.domain.com/images/prefixes which is where all my images are located (and works elsewhere on site).

Any idea how to resolve that?

Our Sponsors
 

Brian
12-08-2008, 10:38 AM
Make sure your images are pointing to the full URL (http://yoursite.com/images/whatever) instead of a relative path (images/whatever).

Alien
12-09-2008, 12:45 AM
Thank you VERY much, Brian. That's the issue and I'll just have to edit all the icons paths.

Appreciate it!