#1
I found that syntax highlighting for Visual Basic code does not work in the release version of YAF 2.2.4.14. It works for other languages like C# but not for VB. Is there an easy fix for this problem?
Topic Starter
  • tecman
  • Rank: YAF All-the-Time
  • Reputation:
    Exalted
    100%
  • Joined: 20/09/2013
  • Posts: 160
  • Thanks: 8 times
#2
Originally Posted by: tecman

I found that syntax highlighting for Visual Basic code does not work in the release version of YAF 2.2.4.14. It works for other languages like C# but not for VB. Is there an easy fix for this problem?



Will be fixed with the next update. You can download the updates js file from the stable branch

https://github.com/YAFNE...y.ForumExtensions.min.js 


UserPostedImage
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,005
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1207 time(s) in 1032 post(s)
#3
Is it enough just to replace the current file Scripts/jquery.ForumExtensions.min.js with that one to fix the problem (no compilations, etc.)? I did that but see no effect.
Topic Starter
  • tecman
  • Rank: YAF All-the-Time
  • Reputation:
    Exalted
    100%
  • Joined: 20/09/2013
  • Posts: 160
  • Thanks: 8 times
#4
Originally Posted by: tecman

Is it enough just to replace the current file Scripts/jquery.ForumExtensions.min.js with that one to fix the problem (no compilations, etc.)? I did that but see no effect.



Did you clear the browser cache or to force the browser to reload the javascript?
UserPostedImage
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,005
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1207 time(s) in 1032 post(s)
#5
Yes, cache cleaning helped. However, I expected that replacing the .js file with a newer version on the server should force browsers to download the fresh version of the scripts automatically. Now it looks like I need to ask all users of our forum to clean their browser caches to make syntax highlighting work.
Is there a way to fix this issue on our side? Say, relaunch the forum application or update default.aspx or something like that?
Topic Starter
  • tecman
  • Rank: YAF All-the-Time
  • Reputation:
    Exalted
    100%
  • Joined: 20/09/2013
  • Posts: 160
  • Thanks: 8 times
#6
Originally Posted by: tecman

Yes, cache cleaning helped. However, I expected that replacing the .js file with a newer version on the server should force browsers to download the fresh version of the scripts automatically. Now it looks like I need to ask all users of our forum to clean their browser caches to make syntax highlighting work.
Is there a way to fix this issue on our side? Say, relaunch the forum application or update default.aspx or something like that?



The only solution would be to change the url and add a versionnumber to the js url for example like...

<script type="text/javascript" src="myfile.js?1500"></script>


But that would require that the number needs to be stored in the app.config for example. But that would require an manual update every time there is a new release.

I need to find a better solution for this problem. At the moment the only option is to Press CTRL+F5 to reload the page and force a reload.


UserPostedImage
  • tha_watcha
  • Rank: YAF.NET Project Lead
  • Reputation:
    Exalted
    100%
  • Medals:
    Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.
  • Joined: 06/03/2010
  • Posts: 4,005
  •  Germany
  • Thanks: 73 times
  • Was thanked: 1207 time(s) in 1032 post(s)
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved