https://www.icyphoenix.com/viewtopic.php?f=35&t=1887 ----------------------------------- ialvarez Wed 09 May, 2007 22:09 Emoticons & Domain Problem ----------------------------------- Hi everybody, this is my first post here and let me tell you my problem... I had a phpBB2 forum working and then I installed Icy Phoenix. I used the update_to_ip.php program and eveything went ok. I updated all my forum categories, forums, user, etc. in my [color=#ff000c]Icy Phoenix [/color]new Site! I maded the "update" in a local server on my PC first and then I did a Copy & Paste to the Production Server, I mean files and the MySQL database. I worked on a local address like http://150.150.1.22:8090/forum and then moved eveything to http://www.miviajeaeuropa.com.ar/forum. Everything worked but smiles path! Here while writing this post I click over an smile and click properties and I see the next path: [b]http://www.icyphoenix.com/images/smiles/icon_cry.gif[/b], If I do the same in my site I see [b]http://150.150.1.75:8090/forum/images/smiles/icon_razz.gif[/b]. [color=#ff000c]I don't know why my site is using the old local domain to show the smiles![/color] I went to my ACP, Configuration, Server and in the domain name and port variables I have it right! (www.miviajeaeuropa.com.ar) and port=80 I search for a place to change smiles path address but couldn't! Do you know how can I solve this! Thanks! Ignacio, from Cordoba, Argentina ----------------------------------- Zuker Wed 09 May, 2007 22:27 Re: Smiles & Domain Problem ----------------------------------- Clean the content of cache folder and try again ----------------------------------- ialvarez Wed 09 May, 2007 22:53 Re: Smiles & Domain Problem ----------------------------------- I mistaked the question I thing: This address ([color=#ff0000]http://150.150.1.75:8090/forum/images/smiles/icon_surprised.gif[/color]) is the local address of the server inside my network! And it is right. The site works in http://www.miviajeaeuropa.com.ar/forum (external) or in http://150.150.1.75:8090/forum (internal) Somewhere is not translating the domain I think, maybe the cache like you said! I dont know! Could you please remain me how to do that? :roll: ACP, then ? Templates & Styles? Configuration? There?[color=#ff0000][/color] Here it says: Servidor FTP (Probablemente "150.150.1.75:8090" [Fijar servidor]): -----> [color=#0c00ff]Why it gives me this domain name and not [color=#0c00ff]www.miviajeaeuropa.com.ar[/color]?[/color]Usuario FTP: Ruta de phpBB en FTP ----------------------------------- Zuker Wed 09 May, 2007 23:53 Re: Smiles & Domain Problem ----------------------------------- Inside templates & styles you can clean cache :mricy: ----------------------------------- ialvarez Thu 10 May, 2007 12:38 Re: Smiles & Domain Problem ----------------------------------- I did what you said but it did not work.... :cry: any other thing? You can test it yourself entering there! What I found out today, it maybe interesting for you.... I installed IP last version again and when it asks for server I write: 150.150.1.75, then after finish installation I go to ACP, Configuration, Server and I change it for my domain name: www.miviajeaeuropa.com. Eveything works but smiles path (and I dont know about avatars, didn't try yet!). I mean, when I want to post a message I see emoticos because I in this network but if check emoticons path (doing mouse right button, properties) I see http://150.150.1.75:8090/..... in other words I see my old domain (the local one I used to install it) Anybody knows where does [b]Icyphoenix[/b] records this domain name (150.150.1.75, in the site or mysql) in order to change it??? The other exit I have I guess is to install it again writing the right server name from the start! But I curious now I want to know if there's away to fix it! thanx a lot IGNACIO ----------------------------------- Zuker Thu 10 May, 2007 14:49 Re: Smiles & Domain Problem ----------------------------------- [quote user="ialvarez" post="13795"]I did what you said but it did not work.... :cry: any other thing? You can test it yourself entering there![/quote] Please give me a test user :) ----------------------------------- ialvarez Thu 10 May, 2007 15:05 Re: Emoticons & Domain Problem ----------------------------------- Thanx Zuker! URL: http://www.miviajeaeuropa.com.ar/forum Test User: prueba password: prueba Try to post any message and you will see what I mean! Thanks again! 8) ----------------------------------- Cristina Thu 10 May, 2007 15:12 Re: Emoticons & Domain Problem ----------------------------------- Hi Ialvarez :mrblue: I try to reply to your inquiry :mrblue: :mrblue: go in ACP=>Configuration=>Posting=>Disable precompiled posts then select YES SUBMIT the changes then click on YES to Empty precompiled posts ----------------------------------- ialvarez Thu 10 May, 2007 15:40 Re: Emoticons & Domain Problem ----------------------------------- :evil: Thanx Cristina but It did not work! Check it entering with "prueba", "prueba" Everything works but emoticons! I mean, I see them but only accesing from my network! (150.150....) Thanx anyway! ----------------------------------- hpl Thu 10 May, 2007 15:56 Re: Emoticons & Domain Problem ----------------------------------- [code]Emoticonos Mr. Green Twisted Evil Evil or Very Mad Crying or Very sad Embarassed Razz [/code] you are right, link of emoticons are wrong...try to search 150.150.1.17:8090 into your db and replace with your website link 8) ----------------------------------- ialvarez Thu 10 May, 2007 16:07 Re: Emoticons & Domain Problem ----------------------------------- What do you mean with "[b]db[/b]", database? I search all tables and could't find where! If it is not the mySQL database tell me where please, which file! I think I gonna cry if can't solve this! I quit! :( ----------------------------------- Cristina Thu 10 May, 2007 16:23 Re: Emoticons & Domain Problem ----------------------------------- Jim Morrison pay attention :wink: here below: You can force the smiley loading by changing this: OPEN [b]includes/bbcode.php[/b] FIND [code] 'replace' => '' . htmlspecialchars($row['emoticon']) . ''[/code] REPLACE WITH [code] 'replace' => '' . htmlspecialchars($row['emoticon']) . ''[/code] ----------------------------------- ialvarez Thu 10 May, 2007 17:07 Re: Emoticons & Domain Problem ----------------------------------- Dear Cristina: I did what you said and nothing! I must be something else! Even also i put slashes (//) over that line, the original one and nothing happens, seems looks like the program is not passing by that part of the code! Anyway why the variable [b]$_SERVER['HTTP_HOST'][/b] it's bringing th wrong domain (150.150.... instead of www.miviajea...) ? Thanx anyway! I bring the original bbcode.php file from other install and nothing too! (I thought that maybe because it was un "update" from phpBB2 something was updated wrong...) I dont know, just dont know... ----------------------------------- tonyf12 Thu 10 May, 2007 17:16 Re: Emoticons & Domain Problem ----------------------------------- [quote user="ialvarez" post="13822"]Dear Cristina: I did what you said and nothing! I must be something else! Even also i put slashes (//) over that line, the original one and nothing happens, seems looks like the program is not passing by that part of the code! Anyway why the variable [b]$_SERVER['HTTP_HOST'][/b] it's bringing th wrong domain (150.150.... instead of www.miviajea...) ? Thanx anyway! I bring the original bbcode.php file from other install and nothing too! (I thought that maybe because it was un "update" from phpBB2 something was updated wrong...) I dont know, just dont know...[/quote] Cehck your config.php and change the server to the doamin from the IP (internet protocol) adress ----------------------------------- ialvarez Thu 10 May, 2007 17:35 Re: Emoticons & Domain Problem ----------------------------------- Thanx Tony but I understand that config.php is only for the conection to the database shhhh do not post here your config.php please ;) dont worry Admin I changed all the information off course! Anyway, HELP! ----------------------------------- Zuker Thu 10 May, 2007 19:13 Re: Emoticons & Domain Problem ----------------------------------- i think i've got the problem :D run these sql querries [code linenumbers=false]DROP TABLE phpbb_smilies; CREATE TABLE `phpbb_smilies` ( `smilies_id` smallint(5) unsigned NOT NULL auto_increment, `code` varchar(50) default NULL, `smile_url` varchar(100) default NULL, `emoticon` varchar(75) default NULL, `smilies_order` int(5) NOT NULL default '0', PRIMARY KEY (`smilies_id`) ); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (1, ':D', 'icon_biggrin.gif', 'Very Happy', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (2, ':-D', 'icon_biggrin.gif', 'Very Happy', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (3, ':grin:', 'icon_biggrin.gif', 'Very Happy', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (4, ':)', 'icon_smile.gif', 'Smile', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (5, ':-)', 'icon_smile.gif', 'Smile', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (6, ':smile:', 'icon_smile.gif', 'Smile', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (7, ':(', 'icon_sad.gif', 'Sad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (8, ':-(', 'icon_sad.gif', 'Sad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (9, ':sad:', 'icon_sad.gif', 'Sad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (10, ':o', 'icon_surprised.gif', 'Surprised', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (11, ':-o', 'icon_surprised.gif', 'Surprised', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (12, ':eek:', 'icon_surprised.gif', 'Surprised', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (13, ':shock:', 'icon_eek.gif', 'Shocked', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (14, ':?', 'icon_confused.gif', 'Confused', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (15, ':-?', 'icon_confused.gif', 'Confused', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (16, ':???:', 'icon_confused.gif', 'Confused', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (17, '8)', 'icon_cool.gif', 'Cool', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (18, '8-)', 'icon_cool.gif', 'Cool', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (19, ':cool:', 'icon_cool.gif', 'Cool', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (20, ':lol:', 'icon_lol.gif', 'Laughing', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (21, ':x', 'icon_mad.gif', 'Mad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (22, ':-x', 'icon_mad.gif', 'Mad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (23, ':mad:', 'icon_mad.gif', 'Mad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (24, ':P', 'icon_razz.gif', 'Razz', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (25, ':-P', 'icon_razz.gif', 'Razz', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (26, ':razz:', 'icon_razz.gif', 'Razz', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (27, ':oops:', 'icon_redface.gif', 'Embarassed', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (28, ':cry:', 'icon_cry.gif', 'Crying or Very sad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (29, ':evil:', 'icon_evil.gif', 'Evil or Very Mad', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (30, ':twisted:', 'icon_twisted.gif', 'Twisted Evil', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (31, ':roll:', 'icon_rolleyes.gif', 'Rolling Eyes', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (32, ':wink:', 'icon_wink.gif', 'Wink', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (33, ';)', 'icon_wink.gif', 'Wink', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (34, ';-)', 'icon_wink.gif', 'Wink', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (35, ':!:', 'icon_exclaim.gif', 'Exclamation', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (36, ':?:', 'icon_question.gif', 'Question', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (37, ':idea:', 'icon_idea.gif', 'Idea', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (38, ':arrow:', 'icon_arrow.gif', 'Arrow', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (39, ':|', 'icon_neutral.gif', 'Neutral', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (40, ':-|', 'icon_neutral.gif', 'Neutral', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (41, ':neutral:', 'icon_neutral.gif', 'Neutral', 0); INSERT INTO `phpbb_smilies` (`smilies_id`, `code`, `smile_url`, `emoticon`, `smilies_order`) VALUES (42, ':mrgreen:', 'icon_mrgreen.gif', 'Mr. Green', 0);[/code] ----------------------------------- ialvarez Thu 10 May, 2007 21:32 Re: Emoticons & Domain Problem ----------------------------------- I promise i will, but tell me....i work with databases too and you are just empty it and refill it... I just want to understand what I do, dont make my wrong please! I copy that table from another DB installation and nothing happens either! Question is "where IP is taking that address from?" Promise i will do it and tell you later what happend! Thanks Zuker ----------------------------------- Zuker Thu 10 May, 2007 22:45 Re: Emoticons & Domain Problem ----------------------------------- i'm only checking that everything there is ok ;) ----------------------------------- ialvarez Fri 11 May, 2007 17:48 Re: Emoticons & Domain Problem ----------------------------------- I solved this by chaging code in [b]function_post.php and bbcode.php[/b] Point is: why IP is resolving $_SERVER['HTTP_HOST'] as 150.150.1.75:8090 instead of www.miviajeaeuropa.com.ar? Can I write anywhere in IP [color=#0026ff]$_SERVER['HTTP_HOST']='www.miviajeaeuropa.com'[/color] somewhere??? I know that $_SERVER['HTTP_HOST'] is a PHP variable but what Can I do? I dont know if I have other problems when getting something from MySQL like emoticons... or Albums pics, my page get blank when trying uploading a pic for example. What I mean, this solved emoticons loading in post but i had to modify bbcode.php too, because it wasn't saving it correctly in the post, it was saving as 150.150.... Here function_post.php, the bbcode was modify as [color=#ff0019]CRISTINA[/color] told me to do. Thank CRISTINA! [code linenumbers=false] $parsing_template = array( 'SMILEY_CODE' => $rowset[$i]['code'], //'SMILEY_IMG' => 'http://' . $_SERVER['HTTP_HOST'] . $board_config['script_path'] . $board_config['smilies_path'] . '/' . $rowset[$i]['smile_url'], 'SMILEY_IMG' => 'http://www.miviajeaeuropa.com.ar' . $board_config['script_path'] . $board_config['smilies_path'] . '/' . $rowset[$i]['smile_url'], 'SMILEY_DESC' => $rowset[$i]['emoticon'][/code] ----------------------------------- tonyf12 Fri 11 May, 2007 18:23 Re: Emoticons & Domain Problem ----------------------------------- [quote user="ialvarez" post="13870"]I solved this by chaging code in [b]function_post.php and bbcode.php[/b] Point is: why IP is resolving $_SERVER['HTTP_HOST'] as 150.150.1.75:8090 instead of www.miviajeaeuropa.com.ar? Can I write anywhere in IP [color=#0026ff]$_SERVER['HTTP_HOST']='www.miviajeaeuropa.com'[/color] somewhere??? I know that $_SERVER['HTTP_HOST'] is a PHP variable but what Can I do? I dont know if I have other problems when getting something from MySQL like emoticons... or Albums pics, my page get blank when trying uploading a pic for example. What I mean, this solved emoticons loading in post but i had to modify bbcode.php too, because it wasn't saving it correctly in the post, it was saving as 150.150.... Here function_post.php, the bbcode was modify as [color=#ff0019]CRISTINA[/color] told me to do. Thank CRISTINA! [code linenumbers=false] $parsing_template = array( 'SMILEY_CODE' => $rowset[$i]['code'], //'SMILEY_IMG' => 'http://' . $_SERVER['HTTP_HOST'] . $board_config['script_path'] . $board_config['smilies_path'] . '/' . $rowset[$i]['smile_url'], 'SMILEY_IMG' => 'http://www.miviajeaeuropa.com.ar' . $board_config['script_path'] . $board_config['smilies_path'] . '/' . $rowset[$i]['smile_url'], 'SMILEY_DESC' => $rowset[$i]['emoticon'][/code][/quote] Go to config.php and check that points to the host and not the IP ----------------------------------- ialvarez Fri 11 May, 2007 19:36 Re: Emoticons & Domain Problem ----------------------------------- I changed as you said, did my changes back and didn't work... Point is that the code exposed before "make" the URL from that PHP variable ignoring what i hae in config.php. Can it be posible? ----------------------------------- Mighty Gorgon Wed 16 May, 2007 02:12 Re: Emoticons & Domain Problem ----------------------------------- I'm almost sure that your problems are related to a wrong configuration... You may also achieve your objective by using HTACCESS to redirect wrong requests... if your server is supporting HTACCESS you may try something like this: [code]RewriteCond %{HTTP_HOST} ^150.150.1.22:8090 RewriteRule (.*) http://www.miviajeaeuropa.com.ar/$1 [R=301,L][/code] I don't know if it works... but if it will, this would be the best way to go. ----------------------------------- ialvarez Wed 16 May, 2007 19:59 Re: Emoticons & Domain Problem ----------------------------------- Nice to meet you man! I was waitng for your answer! Who if it is not the best, eh? :roll: I will modify, try and tell you later, ok? I'm sure it is a bad configutration. I'm learning a lot about PHP, Apache and MySQL and sometimes I think I know nothing at all! Thanks mate! Ignacio! ----------------------------------- ialvarez Tue 22 May, 2007 14:20 Re: Emoticons & Domain Problem ----------------------------------- Hi MG, I left my original [color=#ff000c]function_post.php[/color] and [color=#ff0000]bbcode.php[/color] files and modify my [b].htaccess [/b]file and my file folder "forum" and It looks like this now: [code linenumbers=false] #Make sure the whole site goes to www.mysite.com instead of mysite.com. This is good for the search engines #Edit and uncomment the below lines for your own site. #RewriteCond %{HTTP_HOST} ^mysite.com // La de abajo es nueva NACHO RewriteCond %{HTTP_HOST} ^150.150.1.22:8090 #RewriteRule (.*) http://www.mysite.com/$1 [R=301,L] // La de abajo es nueva NACHO RewriteRule (.*) http://www.miviajeaeuropa.com.ar/$1 [R=301,L] RewriteRule ^.+-vf([0-9]*) viewforum.php?%{QUERY_STRING}&f=$1 [L] [/code] But when i go to post a message I see the bad path again on smiles ie. like "http://150.150.1.75:8090/forum/images/smiles/icon_surprised.gif" Is there another file with that name anywhere else? What else can we try MG? Thank for your help P/D: I changed the [color=#ff000c]function_post.php[/color] and [color=#ff0000]bbcode.php[/color] files again in order the site works again. You can make any test using prueba/prueba. ----------------------------------- Mighty Gorgon Fri 25 May, 2007 02:56 Re: Emoticons & Domain Problem ----------------------------------- I have no idea... maybe the redirect doesn't work properly because of the port. Try this instead and let me know. [code linenumbers=false] RewriteCond %{HTTP_HOST} ^150.150.1.22 #RewriteRule (.*) http://www.mysite.com/$1 [R=301,L] [/code] ----------------------------------- ialvarez Tue 29 May, 2007 15:15 Re: Emoticons & Domain Problem ----------------------------------- It did not work Luca... sorry but I don't understand very well these lines you write, i don't know much about Tomcat. I will give you more information about my site in order you can solve the problem My site is under this address (internal IP) http://150.150.1.75:8090/forum (External address): http://www.miviajeaeuropa.com.ar/forum http://www.miviajeaeuropa.com.ar work under an [b]IIS[/b] (Internet Information Server) and it is another site (mine :wink: ) but [b]/forum[/b] point to a [b]Tomcat Server[/b] Same happend to http://150.150.1.75, this point to IIS and http://150.150.1.75:8090 to Tomcat. [color=#ff000c]http://150.150.1.75:9000 point to http://www.miviajeaeuropa.com.ar (IIS) and http://150.150.1.75:8090/forum point to http://www.miviajeaeuropa.com.ar/forum (Tomcat)[/color] Thanks for help! I hope this info helps! Ignacio ----------------------------------- Mighty Gorgon Tue 29 May, 2007 16:00 Re: Emoticons & Domain Problem ----------------------------------- I think your server doesn't support htaccess, that's why is not working. Sorry, but without htaccess I have no clue on how to help you. ----------------------------------- ialvarez Tue 29 May, 2007 16:46 Re: Emoticons & Domain Problem ----------------------------------- I think it does because when I did the changes you told me to do the site worked different. I mean the site works different depending this configuration file!