Can someone tell me what's wrong with my smilies? Everytime I try to post a new topic my smilies are gone. Here is a link, post new topic.
___________________________________________________________
Also, I keep getting the error that something is wrong with one of my files, view_topic.php, but everytime I check it and edit it to fix it it keeps coming up. Can someone tell me what's wrong?
Last edited by thpn on Sun May 14, 2006 9:55 pm; edited 1 time in total
You need to be registered to post a new topic, therefore we can't test it and can't help. Is this a joke so people register on your site?
| Quote: |
| Also, I keep getting the error that something is wrong with one of my files, view_topic.php, but everytime I check it and edit it to fix it it keeps coming up. Can someone tell me what's wrong? |
| Quote: |
| Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/thpn/domains/thpn.frih.net/public_html/viewtopic.php on line 996 |
If you paste lines 990-1000 here, we'll probably be able to help you.
| Quote: |
| Can someone tell me what's wrong with my smilies? Everytime I try to post a new topic my smilies are gone. Here is a link, post new topic. |
Can you provide us with a testing username/password, so we can take a look?
No, it's not a joke. I wasn't thinkin straight. Here, a demo user name you can use: 'test_demo' pass: 'demo'.
Here is 990-1000:
| view_topic.php wrote: |
$temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with_quote'] . '" border="0" /></a>';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts4);
$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '</a>';
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
{ |
| thpn wrote: |
No, it's not a joke. I wasn't thinkin straight. Here, a demo user name you can use: 'test_demo' pass: 'demo'.
Here is 990-1000:
| view_topic.php wrote: | $temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
$quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with_quote'] . '" border="0" /></a>';
$quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';
$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts4);
$search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
$search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '</a>';
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
{ |
|
For that viewtopic.php error, I think this is the problem:
| Quote: |
| $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts4); |
The end of that line doesn't look right. If you're editing the file by the cPanel/DirectAdmin File Manager, then try uploading the original phpBB file (I've had problems like this, the cPanel File Manager seems to corrupt some files, I'm not sure about the DirectAdmin one)
And for your smilies, it's trying to load the pictures from http://www.thpn.frih.net/images/smiles/ , which doesn't appear to exist. Try reuploading that folder.
I think the Smilies' Images might not be properly linked.
Also, there is no way of knowing if the smilies actually appear on your post since the topic viewing has a problem as you said.
So unless that issue is resolved, the smilies issue cant be looked into, I think
And I am not an expert in Php, so just wait for the viewtopic to be resolved, then I will have a look into the smilies(if they Haven't) 
You should have no problems with DA cirrupting files, this has never happened to me.
It could be that html is on. There have been problems with this other places too. Try turning that off... you can also delete the and test.
To Scorpio, I fixed the view_topic error so now you can see it and the smilies don't show up.
I took off the html on the new upload and it still works.
Also to wumingsden, I think it did corrupt the file becuase when I re-uploaded it it worked.
/************************
edit:
okay, i fixed the problem. apparently the file in which the smiles were placed was wrongly named so it was a linking error. but, there is now another error, this time with the avatars. when I try to upload one, it gives me an error at the top of the page. try to upload one on the test username I gave above. can someone tell me how to fix this one?
************************/
I opened thpn.frih.net. i got this
| Quote: |
Warning: main(./../includes/constants.php): failed to open stream: No such file or directory in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 322
Warning: main(./../includes/constants.php): failed to open stream: No such file or directory in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 322
Warning: main(): Failed opening './../includes/constants.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 322
Warning: main(./../includes/functions.php): failed to open stream: No such file or directory in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 323
Warning: main(./../includes/functions.php): failed to open stream: No such file or directory in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 323
Warning: main(): Failed opening './../includes/functions.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 323
Warning: main(./../includes/sessions.php): failed to open stream: No such file or directory in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 324
Warning: main(./../includes/sessions.php): failed to open stream: No such file or directory in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 324
Warning: main(): Failed opening './../includes/sessions.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/thpn/domains/thpn.frih.net/public_html/forums/install/install.php on line 324 |
For the link to the post new topic you gave in the first post I got this
| Quote: |
Not Found
The requested URL /posting.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. |
I think a little more fixing needs to be done
| thpn wrote: |
To Scorpio, I fixed the view_topic error so now you can see it and the smilies don't show up.
I took off the html on the new upload and it still works.
Also to wumingsden, I think it did corrupt the file becuase when I re-uploaded it it worked.
/************************
edit:
okay, i fixed the problem. apparently the file in which the smiles were placed was wrongly named so it was a linking error. but, there is now another error, this time with the avatars. when I try to upload one, it gives me an error at the top of the page. try to upload one on the test username I gave above. can someone tell me how to fix this one?
************************/ |
Are the avatars CHMOD'd right?
The folders avatars mut be chmodded 777. Not the images in the folder.