PDA

View Full Version : Parse image [IMG] tag in show printable version


J_Caesar
02-23-2009, 03:23 AM
Hi,

I am trying to get ... tags in the printable version of articles parsed, so that printable versions show images instead of hyperlinks.

I put in misc.php after:
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

the following:
$bbcode_parser->printable = true;

but it did not work.

Does anyone have a solution to this?

Brian
02-23-2009, 10:17 AM
It should parse images on the printer friendly page the same way it does within the article. Do you have that category set to allow for [img] tags (Admin CP => vBa Dynamics => Edit Category => {select category} => Entry Message => Allow [IMG] Code)? Also note that if you've changed that setting lately then you may need to run the 'Rebuild Entry Cache' tool from the Maintenance section.

Our Sponsors
 

J_Caesar
02-24-2009, 07:10 AM
Thanks Brian,

By: Admin CP => vBa Dynamics => Edit Category => {select category} => Entry Message => Allow [IMG] Code)
I think you mean: Admin CP => vBa Dynamics => Manage Category => {select category} => Articles Message => Allow [IMG] Code)
I had this option enabled

By: 'Rebuild Entry Cache' I think you mean Rebuild Article Cache (For version 1.1.0)

When I clicked "Rebuild Article Cache", all existing articles 's printable versions show images. However, , the printable version of new articles posted after that didn't show images until I clicked Rebuild Article Cache again :).

Brian
02-25-2009, 11:20 AM
The term "Entry" is changed dynamically throughout the software, so if you've changed that setting to "Article" then that's what will be shown. ;)

Our Sponsors
 

J_Caesar
02-25-2009, 02:22 PM
Haha, true!