Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 

The free forums are now under new ownership, a full announcement will be made shortly

       myfreeforum.org Forum Index -> Search Engines
symon

phpBB robots.txt

Just what would be a good one for a forum

Code:
User-agent: *
Disallow: /forums/admin/
Disallow: /forums/images/
Disallow: /forums/includes/
Disallow: /forums/language/
Disallow: /forums/templates/
Disallow: /forums/common.php
Disallow: /forums/groupcp.php
Disallow: /forums/memberlist.php
Disallow: /forums/modcp.php
Disallow: /forums/posting.php
Disallow: /forums/profile.php
Disallow: /forums/privmsg.php
Disallow: /forums/viewonline.php
Disallow: /forums/faq.php
Disallow: /forums/updates-topic
Disallow: /forums/stop-updates-topic
Disallow: /forums/ptopic
Disallow: /forums/ntopic
Disallow: /post-


would that work for a forum or do i need to add more or takem away anything
myff admin

A bot comes in as a guest and hence won't see most of that anyway.

User-agent: *
Disallow: /forums/groupcp.php
Disallow: /forums/memberlist.php
Disallow: /forums/posting.php
Disallow: /forums/profile.php
Disallow: /forums/privmsg.php
Disallow: /forums/viewonline.php
Disallow: /forums/faq.php

is probably enough, good tip though as do not have this currently.
myff admin

Actually we do!
symon

So i just add that to root then follow the guides that i posted below this called good idea 1 good idea 2 .

I fi add that to root would that cover the website as well as the forum ?
myff admin

Not sure what you mean about the rest of the site,as the entries seem only forum related.
symon

hmm seems as if theres an error anyway when i do it i get an parse error in the index.php

just wanted a smiple mod to get me noticed on google as at moment assiejack just brings up myfreeforums one
myff admin

Where are you altering index.php? I cannot see the links you mention.
symon

http://forum.myfreeforum.org/ftopic6366.php
myff admin

What parse error do you get? and what is the code?


Do you really know php?
symon

A little yes its a learn process

Quote:
Parse error: parse error, unexpected T_STRING in /home/symon/public_html/forum/index.php on line 683


line 683 reads
Code:
                        $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '$forum_data[$j]['username'];  . '</a> ';
myff admin

$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : $forum_data[$j]['username']; . '</a> ';

is more like it.
symon

Just got to remove the rouge

Parse error: parse error, unexpected '.' in /home/symon/public_html/forum/index.php on line 683
myff admin

So you are saying my replacement line does not fix the bug?
symon

No it came back with above error message
myff admin

So there were two errors in the line!

$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : $forum_data[$j]['username'] . '</a> ';

is probably what you need.
symon

Well that solved that but i think this is one major bugging mod as there is now another parse error

Quote:
Parse error: parse error, unexpected T_STRING in /home/symon/public_html/forum/index.php on line 689





So where i have edited it using the codes all seem to incorrect.

I will look for a better solution as i know time is money
Code:
' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
myff admin

That is an incomplete line, the line(s) above are needed to make sense of it.
symon

buggy index

Click to download file

working index before changes made in that mod


Click to download file
myff admin

In the new file you have inexplicably:

Code:

   /*

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

*/

' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';


compared to the old:
Code:

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';


I think you want to replace that bit which is a mess, with the old code. I can't see instructions for actually changing this bit anyway.

The more I see of this, the more I believe what I have been saying all along about the dangers of applying mods without reading and understanding what each line is actually doing.
symon

Code:
#
#-----[ FIND ]------------------------------------------
#

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';

#
#-----[ REPLACE WITH ]------------------------------------
#

/*
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
*/
myff admin

Ok, though I can't easily relate before and after here, but what you have done is stuck an end of comment "*/" half way through a code line.

You may need

Code:

 /*

$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?"  . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';



' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
*/



to fully comment out the line. What the mod is all about here is removing excess links from the last_post.
symon

admin wrote:

The more I see of this, the more I believe what I have been saying all along about the dangers of applying mods without reading and understanding what each line is actually doing.


I agree i have had nightmares over some mods, viper was kind enough to show me the way at first.

But here is the thing, a new person like me with reasonable brains finds a mod they like the sound of it and download it, now follow the instructions to the letter , double checking that all is what it says it should be.

OK so now i have done it all, goes back to forum to find white pages with parse errors or sql errors ,, you fix one then another appears and so on.

This is where a knowledge of PHP comes in shouts those in the know,, fair call, but when all i have to do is follow a few simple details you would expect it all to work.

It is almost like buying a bunk bed form M(made)F(for)I(idiots) and following the instructions to find it fact they are all wrong and you have the wrong parts.

Sites like www.phpbb.com should throughly test these mods before allowing them to be posted on their site, as to anyone like me there is nothing more annoying than spending the rest of the night trying to find a fix for an error in what is meant to be a working finished mod.

Rant over

       myfreeforum.org Forum Index -> Search Engines
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum