3 Missing Images?
-----
| Author | Message | |
|---|---|---|
|
toshiRo |
||
| Wed Aug 31, 2005 5:18 pm Post subject: 3 Missing Images? | ||
|
Hello,
I'm loving the Contact List modification and have been using it for several weeks now. I also had the Blank Popup problem but was able to resolve that issue thanks to your forums Any assistance is much appreciated!
|
||
|
Thoul |
||
| Wed Aug 31, 2005 7:14 pm Post subject: re: 3 Missing Images? | ||
|
Welcome to phpBB Smith!
Those should be the three smiley face images, like these:
Make sure you've upload the images that come with the mod, in the hack_files/templates/subSilver/images/ folder, to every template on your forum. Chances are you just misplaced them or didn't upload them to one template. If they all seem to be in the right place, check that you edited the *.cfg file, like subSilver.cfg or ZoneCopper.cfg, for each template. |
||
|
toshiRo |
||
| Wed Aug 31, 2005 9:56 pm Post subject: re: 3 Missing Images? | ||
|
Thanks for the speedy reply
All the appropriate images are located in /www/forums/templates/subSilver/images/ I do see the images on Profile pages, just not on viewtopic.php Also, when I click on any of those 3 images, a blank pop-up appears. Here's the source for that blank pop-up: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title></title></head><body></body></html>
I use the subSilver Theme, though slightly modified. Here's the additions to my current subSilver.cfg Code: //------------------------------------------------------------------------ // Contact List - Begin Code Addition // $images['ignore_add'] = "$current_template_images/contact_ignadd.png"; $images['ignore_remove'] = "$current_template_images/contact_ignrem.png"; $images['disallow_add'] = "$current_template_images/contact_disadd.png"; $images['disallow_remove'] = "$current_template_images/contact_disrem.png"; $images['buddy_add'] = "$current_template_images/contact_budadd.png"; $images['buddy_remove'] = "$current_template_images/contact_budrem.png"; // // Contact List - End Code Addition //------------------------------------------------------------------------ Here's what was changed in viewtopic.php, in what I'll assume are the correct places Code: //------------------------------------------------------------------------
// Contact List - Begin Code Addition // $contact_list->get_list('all'); $contact_list->get_list('ignored_by'); $contact_list->get_list('disallow_by'); $contact_list->build_quote_regexp(); $highlight_str = ( $highlight ) ? "highlight=$highlight&" : ''; $baseurl = 'viewtopic.' . $phpEx . '?' . $highlight_str . POST_TOPIC_URL . '=' . $topic_id . '&postdays=' . $post_days . '&postorder=' . $post_order . '&start=' . $start; // // Contact List - End Code Addition //------------------------------------------------------------------------ //------------------------------------------------------------------------ // Contact List - Begin Code Addition // if( $postrow[$i]['user_id'] != ANONYMOUS && !defined('NO_CONTACTS') ) { $contact_result = $contact_list->get_image_links($postrow[$i]['user_id'], $postrow[$i]['username'], $ignore_users); if( !$contact_result ) { $have_ignored = true; continue; } } // // Contact List - End Code Addition //------------------------------------------------------------------------ //------------------------------------------------------------------------ // Contact List - Begin Code Addition // check_contact_data($poster_id); // // Contact List - End Code Addition //------------------------------------------------------------------------ //------------------------------------------------------------------------ // Contact List - Begin Code Addition // check_quotes($message, $bbcode_uid, $baseurl, $contact_list, $ignore_users); // // Contact List - End Code Addition //------------------------------------------------------------------------ //------------------------------------------------------------------------ // Contact List - Begin Code Addition // assign_cl_images('postrow.contact', $contact_result); // // Contact List - End Code Addition //------------------------------------------------------------------------ //------------------------------------------------------------------------ // Contact List - Begin Code Addition // make_ignore_msg($have_ignored, $ignore_users, $baseurl); // // Contact List - End Code Addition //------------------------------------------------------------------------ |
||
|
Thoul |
||
| Wed Aug 31, 2005 10:42 pm Post subject: re: 3 Missing Images? | ||
|
Hmm... ah, I see the problem now. It's in viewtopic_body.tpl. One of the pieces of code to be added there is:
Code: <!-- BEGIN contact -->
<a href="{postrow.contact.U_BUDDY}" target="_blank" onclick="javascript:window.open('{postrow.contact.U_BUDDY}', '_blank', 'width=225, innerWidth=225, height=175, innerHeight=175'); return false"><img border="0" src="{postrow.contact.IMG_BUDDY}" alt="{postrow.contact.L_ALT_BUDDY}" title="{postrow.contact.L_ALT_BUDDY}" /></a> <a href="{postrow.contact.U_IGNORE}" target="_blank" onclick="javascript:window.open('{postrow.contact.U_IGNORE}', '_blank', 'width=225, innerWidth=225, height=175, innerHeight=175'); return false"><img border="0" src="{postrow.contact.IMG_IGNORE}" alt="{postrow.contact.L_ALT_IGNORE}" title="{postrow.contact.L_ALT_IGNORE}" /></a> <a href="{postrow.contact.U_DISALLOW}" target="_blank" onclick="javascript:window.open('{postrow.contact.U_DISALLOW}', '_blank', 'width=225, innerWidth=225, height=175, innerHeight=175'); return false"><img border="0" src="{postrow.contact.IMG_DISALLOW}" alt="{postrow.contact.L_ALT_DISALLOW}" title="{postrow.contact.L_ALT_DISALLOW}" /></a> <!-- END contact --> I believe you've left off the first and last lines (BEGIN contact and END contact). These are important lines that let viewtopic.php know where the code for the images begin. Add those lines to your file and that should fix it. Also make sure nothing else is placed on the BEGIN/END lines. They need to be on separate lines all by themselves. |
||
|
toshiRo |
||
| Thu Sep 01, 2005 7:17 am Post subject: re: 3 Missing Images? | ||
|
Thank you so very much again. This solved the problem!
|
||
Page 1 of 1
Any assistance is much appreciated!