TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 08:54:28 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 177
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

Gamerz personal message notification

Started by Lesmond, May 05, 2012, 07:24:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lesmond

I have this theme on a site I help run, but when a new PM is sent there is no notification next to the "My Messages" menu item, all other themes show there is a new message waiting on the site, but not Gamerz!

I dont have a clue where to look in the code  :idiot2:


Maxx1

Les meet me over at my test site I have the unchanged version installed there. you can send me

surfacethemes.com

a PM to test this... regards,
Maxx
But Mama, That's Where all the fun is!

lurkalot

Pretty sure the PM count never has worked on this theme.  I seem to remember reading about this shortly before Bloc shut down his support boards.

Maxx1

OK your both Correct I t no work!! I need to go though the code to see if can find something.  May take some time :)

regards,
Maxx
But Mama, That's Where all the fun is!

Lesmond

I did have a quick look, but I just didnt know what I was looking for, or even where to look lol

Maxx1

Cool Thanks I'll get back to you on this!
Should be in the index.template.php ..

regards,
Maxx
But Mama, That's Where all the fun is!

Maxx1

lets see if we can find somehting like this at the top of the index.template.php? of gamerz??

// Here comes the JavaScript bits!
   echo '
   <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
   <script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></script>
   <script 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'] ? '
      var fPmPopup = function ()
      {
         if (confirm("' . $txt['show_personal_messages'] . '"))
            window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
      }
      addLoadEvent(fPmPopup);' : '', '
      var ajax_notification_text = "', $txt['ajax_in_progress'], '";
      var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
   // ]]></script>';


I'm sure Brad know what to do but we will investigate, my friends!

regards,
Maxx
But Mama, That's Where all the fun is!

Maxx1

But Mama, That's Where all the fun is!

Maxx1

Ok the above code seems to be good so on we go>Not the problem!

regards,
Maxx
But Mama, That's Where all the fun is!

Maxx1

Well Guys looks like the index.template is good as far as I can tell, so I shall investigate this and get back if I find something, before Brad beats me to it :)
gonna dig in Bloc's menu stuff>>
regards,
Maxx
But Mama, That's Where all the fun is!