News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Undefined index: code - URL box

Started by edi67, July 26, 2005, 09:58:49 AM

Previous topic - Next topic

edi67

i installed this little mod by AMA: http://www.simplemachines.org/community/index.php?topic=17867.msg146789#msg146789

Font Size & Name drop down list,  URL input boxes all 2 work good but my log errors is full of one errors this one:

Quotehttp://www.forumzone.net.ru/index.php?action=post;topic=49744.0;num_replies=8 
8: Undefined index: code
File: /home/forumzonenetru/www/Themes/default/languages/Post.italian.php (eval?)
Linea: 785

so i think this error is cause of this
part of mod:

In Post.Template.php

look for:
// Print the buttom row of buttons!
foreach ($context['bbc_tags'][1] as $image => $tag)
{

add after:

784      // only replace the URL tag! . . . . . . . . . . .
785          if ($tag['code'] == 'url')
786      echo '<a href="javascript:void(0);" onclick="urlINPT(); return false;"><img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" border="0" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
787       else



this line 785       if ($tag['code'] == 'url') i think cause error somebody have some solution ?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

[Unknown]

Use:

if (isset($tag['code']) && $tag['code'] == 'url')

Instead.

-[Unknown]

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: