Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Smilies not on localhost

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where do I go to change the code so that the smilies are not trying to pull from localhost but rather an IP address.

For instance, I want to change the localhost in this address to a specific IP address

http://localhost:8080/jForum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif

BTW: Im using the following
OS: Windows Server 2003 Standard SP2
Servlet: Tomcat 6
DB: MySql 5.0
[originally posted on jforum.net by confused2gether]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
either systemglobals.properties
or jforum-custom.conf (which overwrites the values in the properties file)

have a look at the forum.link or homepage.link URL .. those should point to localhost. Change those so that they point to the IP address
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Checked both of those and I had already changed them from localhost to my IP address. Smilies are still trying to connect to localhost.

Where is the #CONTEXT# being grabbed from to define it? I think that is where I need to go to change the localhost setting but I cant seem to find it.
[originally posted on jforum.net by confused2gether]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
#CONTEXT# is retrieved from request.getContextPath() when JForum is loading.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What file contains that request so that I can make that change or is there any other place that I need to be looking for to change from localhost to my IP address that I want.
[originally posted on jforum.net by confused2gether]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hmmm ok kinda weird but they are showing up now.......i didnt make any recent changes either. oh well as long as it works i guess

Thanks guys.
[originally posted on jforum.net by confused2gether]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*smirks* that's because they are loaded from the conf/properties file ...

... yet it seems that your cache showed still the old values. You can clear cached informations via administratin panel too, aswell as within the browser.
[originally posted on jforum.net by Sid]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I remember clearing my browser cache out numerous times thinking it was that along with tomcat restarts but I didnt look closely enough at the admin console to see the cache section.

Thanks for the help!
[originally posted on jforum.net by confused2gether]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My smilies are not showing.. same error as confused2gether.. I already change the values in the systemglobal and jforum-custom and cleared cache but still im getting the same path for the smilies.

Sample:
http://localhost/jForum//images/smilies/3b63d...616c5dfcf29f8a7a031aaa7cad.gif

Please help!

[originally posted on jforum.net by rothnix]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey
check your sysglobal.properties

forum.link=http://localhost:8080/XXXXXXXX

Check that there is no space at the end.
[originally posted on jforum.net by gregjhonson]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its working now.. thanks guys!
[originally posted on jforum.net by rothnix]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks
[originally posted on jforum.net by Shnder1]
 
Do not set lab on fire. Or this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic