Author |
Message |
izone
Involved


Joined: Sep 07, 2004
Posts: 354
Location: Sweden
|
Posted:
Thu Feb 16, 2006 5:34 am |
|
I've found this hack which makes it so that only a part of each message is shown to guests in the Forums.
Here is a demo (on phpbb):
http://www.detecties.com/phpbb2018/viewtopic.php?t=19
and here is the instructions (for phpbb) I have made this to works with Nuke's forums.
Code:
########################################################
##
## MOD Title: Guest_See_Part_Message
## MOD Version: 1.0.0
## Author: Wicher (http://www.detecties.com/phpbb2018)
##
## Description:
## Displays only a part of a full posting if the user is a guest.
##
##
## Installation Level: easy
## Installation Time: 1 minutes
##
## Files To Edit: 2
## - viewtopic.php
## - language/lang_main.php
##
## Included Files: None
##
########################################################
## Guest_See_Part_Message
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$path = __FILE__;
$file = basename ($path);
if ($file != 'portal.php')//needed for portal support, otherwise portal layout will breakout when clips are played.
{
//first check if message has quote in it, quote box breaks forums layout.
$dont= '';
$count = 0;
$fulllenght = (strlen($message));
$fulllenght = $fulllenght-6;
While ($count < $fulllenght)
{
$quotecheck = substr(($message), $count, 6);
if ($quotecheck == '[quote');
{
$dont = '1';
}
$count++;
}
if (($userdata['username'] == 'Anonymous') or ($dont != '1'))
{
$lettercount = (strlen($message));
if ($lettercount > 40)
{
$message = substr(($message), 0, 40).'... <b><a href="http://'.$board_config['server_name'].$board_config['script_path'].'profile.php?mode=register">'.$lang['Register'].'</a> '.$lang['or'].' <a href="http://'.$board_config['server_name'].$board_config['script_path'].'login.php?redirect=viewtopic.php?t='.$postrow[$i]['topic_id'].'">'.$lang['Login'].'</a> '.$lang['GuestWantReadAll'].'</b>';
}
}
}
#
#-----[ FIND ]------------------------------------------
#
if ($bbcode_uid != '')
#
#-----[ REPLACE WITH ]------------------------------------------
#
if (($bbcode_uid != '') && ($userdata['username'] != 'Anonymous'))
#
#-----[ OPEN ]------------------------------------------
#
language/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ ADD, BEFORE ]------------------------------------------
#
//Guest read part
$lang['GuestWantReadAll'] = 'if you want to read the full posting';
$lang['or'] = 'or';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
My question is if Google and other search engines can still search and index the forums after installing this hack?
Best Regards! |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Thu Feb 16, 2006 6:34 am |
|
i dont think so ....but its simple,google crawls and picks up keyword or larger parts and puts that together...
as long as it can read titles and it shows content...i dont see anything wrong.. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Thu Feb 16, 2006 6:40 am |
|
izone, search engines will see only the 40 characters of text. This essentially restricts the amount of "usable content" from the forums and, in my opinion, this could hurt your rankings and certainly make it more difficult for people to find specific content within your forums. You are relying on the first few characters of text to have all the essential keywords that people would be searching for. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
hitwalker

|
Posted:
Thu Feb 16, 2006 6:52 am |
|
a little summary of anti-crawl rules....
Factors that may count against you
Too much keyword repetition
Hidden content via text same color as background or CSS or other such methods
Javascript Redirects or certain other redirects
Cross linking bunch of sites to eac other in the same network
Doorway pages,Pages that are specifically written for search engines and cannot be found by your site visitors via your normal navifation menues.
PPC: Adult, Pharmacy and Casino related content
Duplicate content : watch out for those duplicate filters. Make sure your site doesn't have content from other sites or one else has copied you.
Age of your domain. Brand new or less than 6-month old domains may be in the Google Sandbox
Participating in Link Farms or services that try to artificially increase your links by doing shortcuts
Cloaking : Showing a page to search engines different than what the users see based on their IP address |
|
|
|
 |
izone

|
Posted:
Thu Feb 16, 2006 6:53 am |
|
hitwalker, Thanks.
Quote: |
as long as it can read titles and it shows content...i dont see anything wrong..
|
But dosen't google see the forums as a guest? If yes:
- then it cann't see the whole topics text!
- and is there any way to change it so the bots could have a member status or like that? |
|
|
|
 |
hitwalker

|
Posted:
Thu Feb 16, 2006 7:01 am |
|
well .....theres another way of explaining this..
your hack is script like,you are not using forbidden techniques as described above as in the crawler behaviour.
but montego is also right on the part how good you will be crawled so google can determine usable content
But i didnt noticed the 40 charaters,thats not much...
you should set it to atleast 200 or 300 |
|
|
|
 |
izone

|
Posted:
Thu Feb 16, 2006 7:02 am |
|
montego, thanks.
I think you are right. I was thinking about make all forums visible for all guests. But wanted to make them to register or login if they want to see some codes or discription of how to installing a mod/hack.
A hack like this one using here at Ravens which not showing the links to guests, but for codes and quote too.
Do you know any hack for this? |
|
|
|
 |
hitwalker

|
Posted:
Thu Feb 16, 2006 6:40 pm |
|
i saw it only with links, i use it to.
i searched at phpbb hacks and something that comes close to it is this one..
http://www.phpbbhacks.com/download/4964
im not saying this is it,but function is the same only target group is bit wrong. |
|
|
|
 |
|