Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Smilies not on localhost

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
thanks
[originally posted on jforum.net by Shnder1]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic