FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Smilies Gone/View Topic/Avatar Error





thpn
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?
Hobbit
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?
Daniel15
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?
thpn
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']) . "&amp;showresults=posts&#3&#52);
$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'] )
{
Daniel15
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&amp;" . 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']) . "&amp;showresults=posts&#3&#52);
$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']) . "&amp;showresults=posts&#3&#52);

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.
Scorpio
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) Very Happy
wumingsden
You should have no problems with DA cirrupting files, this has never happened to me.
Blaster
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.
thpn
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?
************************/
Scorpio
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
Hobbit
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?
n0obie4life
The folders avatars mut be chmodded 777. Not the images in the folder.
Related topics
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.