Advertisement:

Author Topic: Post inserts (smileys, quotes, etc.) wont work  (Read 6226 times)

Offline 2pac

  • Jr. Member
  • **
  • Posts: 235
  • Gender: Male
  • Str8 Ballin'
Post inserts (smileys, quotes, etc.) wont work
« on: May 04, 2008, 11:12:38 PM »
SO I made the upgrade to 2.3.1 today, and I notice that when I type a new post, i try clicking on smileys or quotes, or any of the buttons above the post form but it doesnt insert anything.

im using the old index, board index, message and display index files from my previous theme. so im guessing something is not being called. i dont know too much about coding. anyone know what i should add?

Offline shadow82x

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,279
  • Gender: Male
    • cmblaber on LinkedIn
Re: Post inserts (smileys, quotes, etc.) wont work
« Reply #1 on: May 04, 2008, 11:33:35 PM »
Old themes are not really fully supported on SMF2. Features wont even display. I can suggest looking in your themes index.template.php and making it so all the js files call to scripts/filename
« Last Edit: May 05, 2008, 12:06:48 AM by shadow82x »
Colin B
Former Spammer, Customize, & Support Team Member

Offline 2pac

  • Jr. Member
  • **
  • Posts: 235
  • Gender: Male
  • Str8 Ballin'
Re: Post inserts (smileys, quotes, etc.) wont work
« Reply #2 on: May 05, 2008, 12:04:26 AM »
alright, i fixed it, just had to do a little copy and paste


i basically just copied this from the default theme index template:


Code: [Select]
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?b21"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/theme.js?b21"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open("' . $scripturl . '?action=pm");' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>


and replaced it on my theme, it works now! :D

Offline shadow82x

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,279
  • Gender: Male
    • cmblaber on LinkedIn
Re: Post inserts (smileys, quotes, etc.) wont work
« Reply #3 on: May 05, 2008, 12:09:04 AM »
Yep that could do the trick too. If you se in your new code its calling to scripts/filename. The scripts folder is new in smf2.0 so it was not calling to it. :)
Colin B
Former Spammer, Customize, & Support Team Member

Offline 2pac

  • Jr. Member
  • **
  • Posts: 235
  • Gender: Male
  • Str8 Ballin'
Re: Post inserts (smileys, quotes, etc.) wont work
« Reply #4 on: May 05, 2008, 12:19:06 AM »
Yep that could do the trick too. If you se in your new code its calling to scripts/filename. The scripts folder is new in smf2.0 so it was not calling to it. :)

yeah i did notice a few changes in the code. thanks for the help! :D