![]() |
Search for posts by {username} is not seo'd as seen here
http://vgchat.info/forum/search.php?do=finduser&u=73 after clicking stats page & hovering over to find posts for them fix please? |
I installed the script and now all i get is
Code:
Script written by Stephen Yabziz | > Date started: 1th March 2007 +-------------------------------------------------------------------------- */ # yabbseo cp redirecting if(VB_AREA=='AdminCP'&&$_GET['yabbseo']==1) { $vbulletin->scriptpath='yabbseocp.php'; } # only parsing forum area! if(VB_AREA!='Forum') return ''; require_once( 'yabbseo/seo.init.php' ); # YABBSEO is disabled by itself if(defined('YABBSEOACTIVE')&&YABBSEOACTIVE==0) return ; # using the one at vB admin panel if(!$vbulletin->options['bburl']) { die("YABBSEO need [Forum URL] setup at [AdminCP > vBulletin Options > Site Name / URL / Contact Details]"); } $urlparts = parse_url($vbulletin->options['bburl']); $YABBCONFIG['GLOBAL']['bbscript_url'] = $YABBCONFIG['GLOBAL']['absolutebburl']? $vbulletin->options['bburl']:$urlparts['path']; $YABBCONFIG['GLOBAL']['bbscript_path'] = $urlparts['path'].'/'; $YABBCONFIG['GLOBAL']['localhost'] = str_replace('www.','',$urlparts['host']); # adding localhost to the exclusive lists $YABBCONFIG['GLOBAL']['exclusive_externalurls'][]=$YABBCONFIG['GLOBAL']['localhost']; $YABBCONFIG['GLOBAL']['exclusive_externalurls'][]='www.'.$YABBCONFIG['GLOBAL']['localhost']; ############################# # begin extending Database ############################# if (!function_exists('spl_object_hash')) { /** * Returns the hash of the unique identifier for the object. * * @param object $object Object * @author Rafael M. Salvioni * @return string */ function spl_object_hash($object) { if (is_object($object)) { ob_start(); var_dump($object); $dump = ob_get_contents(); ob_end_clean(); //if (preg_match('/^object\(([a-z0-9_]+)\)\#(\d)+/i', $dump, $match)) { // return md5($match[1] . $match[2]); //} return md5($dump); } return null; } } $dbtype = strtolower($vbulletin->config['Database']['dbtype']); if($dbtype=='mysql'||$dbtype=='') $dbclass = 'vB_Database'; if($dbtype=='mysql_slave') $dbclass = 'vB_Database_Slave'; if($dbtype=='mysqli') $dbclass = 'vB_Database_MySQLi'; if($dbtype=='mysqli_slave') $dbclass = 'vB_Database_MySQLi_Slave'; if($dbtype=='mysqli'||$dbtype=='mysqli_slave') $newcode = @file_get_contents('yabbseo/forumhook/db_extend2.php'); else $newcode = @file_get_contents('yabbseo/forumhook/db_extend.php'); eval("class YABBDB extends $dbclass{ " . $newcode . " } "); $mydb = new YABBDB($vbulletin); $arrVars = get_class_vars($dbclass); foreach ($arrVars as $key=>$value) { $mydb->$key =& $db->$key; } unset($arrVars); $db = $mydb; unset($mydb); ############################# # end extending Database ############################# # 301 redirect is disabled if($YABBCONFIG['GLOBAL']['301_redirect']==0||$_POST) { return ; } /** * Processing forum_id: * 1. recover it from forum titles? * 2. checking if the forum titles are changed */ # get forum id from unique forum title #if($YABBCONFIG['GLOBAL']['forumtitleonly']==1&&'forumdisplay.php'==YABBSEO_THIS_SCRIPT) if('forumdisplay.php'==YABBSEO_THIS_SCRIPT&&$bbvalues['f']==0) { global $vbulletin,$bbvalues; # use custom forum titles? $forumcache = BuildForumTitles(); # compare the forum title with the one in db # and check if the title is changed foreach($forumcache as $forumid=>$forumrow) { if($bbvalues['forum_title']==MakeUrls($forumrow['title_clean'])) { $vbulletin->GPC['forumid']=$forumid; break; } } } # checking if the forum titles are changed: avoid the title changes, # the below code for the script forumdisplay.php called from yabbseo.php $redirect_301 = 0; if('forumdisplay.php'==YABBSEO_THIS_SCRIPT #&&$YABBCONFIG['GLOBAL']['forumtitleonly']==0 &&$bbvalues['f'] &&( in_array('forum_title',$YABBCONFIG['URL']['seovars']['forumdisplay']) ||strlen($bbvalues['forum_title']) ) ) { global $vbulletin,$bbvalues; # use custom forum titles? $forumcache = BuildForumTitles(); $org_forumrow = $forumcache[$bbvalues['f']]; if($bbvalues['forum_title']!=MakeUrls($org_forumrow['title_clean'])) { $redirect_301 = true; unset($_GET['bbseourl']); unset($_GET['forum_title']); } } # get query $bbquery = defined('IN_YABBSEO') ? $bbvalues : $_GET; # redirecting showthread.php?p=x to showthread.php?t=x&page=x # redirecting forum_title/thread_title_postid.html to forum_title/thread_title/index_page.html if ($YABBCONFIG['GLOBAL']['redirect_showthreadpost']==1&&THIS_SCRIPT=='showthread'&&!empty($bbquery['p'])) { $postinfo = verify_id('post', $bbquery['p'], 0, 1); $postid =& $postinfo['postid']; $threadedmode = 0; if ($vbulletin->options['allowthreadedmode'] AND !$show['search_engine']) { if (!isset($threadedmode)) { // Set threaded mode from user options if it doesn't exist in cookie or url passed form $threadedmode = $vbulletin->userinfo['threadedmode'] == 3 ? 0 : $vbulletin->userinfo['threadedmode']; } } $postorder = $vbulletin->userinfo['postorder'] ? 'DESC': ''; $postinfo = verify_id('post', $postid, 1, 1); $threadid = $postinfo['threadid']; // assign to the bbvalues $bbvalues['t'] = $threadid; $getpagenum = $db->query_first(" SELECT COUNT(*) AS posts FROM " . TABLE_PREFIX . "post AS post WHERE threadid = $threadid AND visible = 1 AND dateline " . iif(!$postorder, '<=', '>=') . " $postinfo[dateline] "); $vbulletin->GPC['pagenumber'] = ceil($getpagenum['posts'] / 10); $bbquery['page']=$vbulletin->GPC['pagenumber']; $redirect_301 = true; } # if direct access to dynamical url, redirect to static url # or the forum titles are changed, 301 redirect to new forum title page if(defined('IN_YABBSEO')&&!$redirect_301) return ''; /** * Get forum vars: */ $shortvars = array( 'f' => 'forumid', 't' => 'threadid', 'p' => 'postid', 'u' => 'userid', 'a' => 'announcementid', 'c' => 'calendarid', 'e' => 'eventid', 'q' => 'query', 'pp' => 'perpage', 'page' => 'pagenumber', 'sort' => 'sortfield', 'order' => 'sortorder', '0' => 'forum_title', '1' => 'thread_title', ); foreach($shortvars as $longvar) { unset($bbquery[$longvar]); } $bbscript = THIS_SCRIPT.'.php'; $bbinput = $bbquery; /** * Redirecting forum index page */ if(THIS_SCRIPT=='index') { //$new_url = BBUrlConverter('forumindex'); } /** * Redirecting forum display page */ if(THIS_SCRIPT=='forumdisplay') { $forumid = intval($bbinput['f']); $new_url = sitemap_forumdisplay($forumid,$bbinput,$bbscript); } /** * Redirecting thread page */ if(THIS_SCRIPT=='showthread') { if($bbquery['t']) { $threadid = intval($bbquery['t']); unset($bbinput['f']); $new_url = sitemap_showthread($threadid,$bbinput,$bbscript); } elseif($bbquery['p']) { $postid = intval($bbquery['p']); unset($bbinput['f']); unset($bbinput['t']); $new_url = sitemap_showthreadpost($postid,$bbinput,$bbscript); } } /** * Redirecting showpost page */ if(THIS_SCRIPT=='showpost') { $postid = intval($bbquery['p']); $new_url = sitemap_showpost($postid,$bbinput,$bbscript); } /** * Redirecting announcement page */ if(THIS_SCRIPT=='announcement') { $announcementid = intval($bbquery['f']); $new_url = sitemap_announcement($announcementid,$bbinput,$bbscript); } /** * Redirecting member list page */ if(THIS_SCRIPT=='memberlist') { $url_data = array( '{ltr}'=>strtolower($bbquery['ltr']), '{memberlist_page}'=>$bbquery['page'], '{bbscript}'=>$bbscript, '{bbquery}'=>$p['query'], '{bbinput}'=>$bbinput, ); $new_url = sitemap_memberlist($bbinput,$bbscript); } /** * Redirecting member page */ if(THIS_SCRIPT=='member') { $userid = intval($bbquery['u']); $new_url = sitemap_member($userid,$bbinput,$bbscript); } /** * 301 redirect dynamical url */ if(strlen($new_url)) { $new_url = @str_replace('&','&',$new_url); header("HTTP/1.1 301 Moved Permanently"); header("location:$new_url"); exit; } ?> i have mod_rewrite aktive. i think the installation killed my database is that possible? edit: ok i worked around the bug. i deleted all the code in the files and then i could deinstall it. thanks |
Mistake, please delete moderator.
|
Quote:
|
A new version of YABBSEO is available with lots of improved features. A detailed upgrade guide and explanation of yabbseo/data/config.php are created in this post:
https://vborg.vbsupport.ru/showthrea...49#post1731132 |
Is it fully utf-8 compatible?
|
Do you have a way of converting URLs altered by other URL rewrite mods, such as TfSEO or C-Logic SEO?
Also, when vBulletin 4.0 comes out with its own expanded SEO capabilities, would that render this mod moot? Peace, Gene |
this mod is the best vb seo system
i was try it by my self the 301 redirect is the best its work if i uninstall vbseo and recover my old links loooooooooooool i love that mod sooooooooooo much thanks allot yabsoft you have great maind ;) i hate to work with vbseo after this mod |
Looks great, I'll try it !
|
Quote:
|
All times are GMT. The time now is 08:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|