vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO 3.2.0 Patch Release for vB 3.8 vBSEO Total Support Team Launches DeskPro vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Two copyright notices in a page

This is a discussion on Two copyright notices in a page within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello, I am running AJAX Tabs Content Script v2.0 enhanced. I am using this code: PHP Code: <?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-29-2008, 03:51 AM
Member
 
Real Name: Itworx4me
Join Date: Oct 2006
Posts: 87
Two copyright notices in a page

Hello,

I am running AJAX Tabs Content Script v2.0 enhanced. I am using this code:

PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''tabrecentthreadsexp'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
//require_once('./includes/vba_cmps_include_template.php');
require_once('./includes/vba_cmps_global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
?>
<?php
echo '<table border="0" cellpadding="6" cellspacing="1" width=100%><tr><td class="thead" width="40%">Title, Username, Date</td><td align="center" class="thead" style="white-space: nowrap" width="40%">Last Post</td><td class="thead" width="2%">Replies</td><td align="center" class="thead" width="2%">Views</td></tr>';
$show['lastpost'] = $mod_options['portal_threads_lastpost'];
$mod_options['portal_threads_orderby'] = 'thread.dateline';
$mod_options['portal_threads_orderby'] = 'lastpost';
$mod_options['portal_threads_direction'] = 'DESC';
$mod_options['portal_threads_maxchars'] = '25';
$markinglimit = (TIMENOW - ($vbulletin->options['markinglimit'] * 86400));
// Thread Icon (NOT IMPLIMENTED YET)
 
 // $rthread_fields .= ', thread.iconid AS threadiconid, iconpath AS threadiconpath';
 // $rthread_join .= ' LEFT JOIN ' . TABLE_PREFIX . 'icon AS icon ON (icon.iconid = thread.iconid)';
// Database read marking (NOT IMPLIMENTED YET)
 
 // $rthread_fields .= ', threadread.readtime AS threadread';
 // $rthread_join .= ' LEFT JOIN ' . TABLE_PREFIX . 'threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = ' . $vbulletin->userinfo['userid'] . ')   LEFT JOIN ' . TABLE_PREFIX . 'forumread AS forumread ON (thread.forumid = forumread.forumid AND forumread.userid = ' . $vbulletin->userinfo['userid'] . ')';
// Attach paperclip (NOT IMPLIMENTED YET)
 // $rthread_fields .= ', thread.attach';
// COMMENTED OUT FOR TESTING
 
($hook vBulletinHook::fetch_hook('vba_cmps_module_recthreads_start')) ? eval($hook) : false;
// Main SQL
                
$threads $db->query_read("
                    SELECT $rtrating_fields thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, thread.lastpostid, pollid, thread.forumid, thread.open, sticky, post.pagetext AS preview
                    $rthread_fields
                        FROM " 
TABLE_PREFIX "thread as thread
                        LEFT JOIN " 
TABLE_PREFIX "post AS post ON (post.postid = thread.firstpostid)
                        $rthread_join
                        WHERE open != 10
                                AND thread.visible = 1 " 
.
                                
iif($mod_options['portal_threads_cutoffdate'],
                                        
'AND thread.lastpost > ' . (TIMENOW $mod_options['portal_threads_cutoffdate'] * 86400)
                                ) .
                                
iif($ignusers,
                                        
' AND thread.postuserid NOT IN(' $ignusers ')'
                                
) . "
                                AND thread.forumid=28 OR thread.forumid=37 OR thread.forumid=6 OR thread.forumid=7 OR thread.forumid=26 OR thread.forumid=11 OR thread.forumid=21 OR thread.forumid=23 OR thread.forumid=9 OR thread.forumid=36 OR thread.forumid=17 OR thread.forumid=15 OR thread.forumid=9 OR thread.forumid=10
                        ORDER BY $mod_options[portal_threads_orderby] $mod_options[portal_threads_direction]
                        LIMIT 10
                "
);
 
                
$mods['threadcount'] = $db->num_rows($threads);
                if (
$mods['threadcount'])
                {
                        require_once(
DIR '/includes/functions_forumdisplay.php');
                        if (
$mod_options['portal_threads_multipage'])
                        {
                                
$vbulletin->templatecache['threadbit_pagelink'] = str_replace(
                                        
'"$address"',
                                        
'"' $vbulletin->options['bburl'] . '/$address"',
                                        
$vbulletin->templatecache['threadbit_pagelink']
                                );
                        }
                        
// Table cell classes
                        
$bgclass 'alt1';
                        if (
$show['lastpost'])
                        {
                                
// Don't need a variable since it's after a known class, just switch
                                
exec_switch_bg();
                        }
                        if (
$mod_options['portal_threads_replies'])
                        {
                                
$class_reply exec_switch_bg();
                        }
                        if (
$mod_options['portal_threads_views'])
                        {
                                
$class_view exec_switch_bg();
                        }
                        if (
$mod_options['portal_threads_showforum'])
                        {
                                
$class_ftitle exec_switch_bg();
                        }
                        
$recthreads_comma '';
                        if (
$mod_options['portal_threads_views'] AND $mod_options['portal_threads_replies'])
                        {
                                
$recthreads_comma ', ';
                        }
                }
                while (
$thread $db->fetch_array($threads))
                {
                        
$bgclass exec_switch_bg();
 
                        
// The vB preview function can be intensive w/ long strings, so let's try to save some overhead
                                
$thread['preview'] = substr($thread['preview'], 0, ($vbulletin->options['threadpreview'] * 10));
 
                        
// Trim title
                        
if (strlen($thread['title']) > $mod_options['portal_threads_maxchars'] AND $mod_options['portal_threads_maxchars'])
                        {
                                
$thread['title'] = fetch_trimmed_title($thread['title'], $mod_options['portal_threads_maxchars']);
                        }
                        
// Check for long words that may stretch the page
                        
if ($mod_options['portal_threads_maxwordchars'])
                        {
                                
$thread['titlecheck'] = explode(' '$thread['title']);
                                if (!empty(
$thread['titlecheck']))
                                {
                                        
$thread['title'] = '';
                                        foreach (
$thread['titlecheck'] AS $key => $word)
                                        {
                                                if (!
$thread['titletrimmed'])
                                                {
                                                        if (
strlen($word) > $mod_options['portal_threads_maxwordchars'])
                                                        {
                                                                
$word fetch_trimmed_title($word$mod_options['portal_threads_maxwordchars']);
                                                                
$thread['titletrimmed'] = true;
                                                        }
                                                        if (
$thread['title'])
                                                        {
                                                                
$thread['title'] .= ' ';
                                                        }
                                                        
$thread['title'] .= $word;
                                                }
                                        }
                                }
                        }
                        
// Thread read marking
                        
if ($vbulletin->options['threadmarking'] AND $vbulletin->userinfo['userid'])
                        {
                                if (
$thread['threadread'] < $thread['forumread'])
                                {
                                        
$thread['threadread'] = $thread['forumread'];
                                }
                        }
                        else if (!
$vb_read_cookies[$thread['forumid']])
                        {
                                
$vb_read_cookies[$thread['forumid']] = max(fetch_bbarray_cookie('forum_view'$thread['forumid']), $markinglimit);
                        }
                        if (!
$thread['threadread'] AND $vb_read_cookies[$thread['forumid']] > $thread['lastpost'])
                        {
                                
$thread['threadread'] = TIMENOW;
                        }
                        else
                        {
                                
$thread['threadread'] = '-1';
                        }
                        
$thread process_thread_array(
                                
$thread,
                                
$thread['threadread'],
                                
$mod_options['portal_threads_showicon']
                        );
 
                        (
$hook vBulletinHook::fetch_hook('vba_cmps_module_recthreadsbits')) ? eval($hook) : false;
                        eval(
'$home["$mods[modid]"][\'content\'] .= "' fetch_template('adv_portal_recthreads_exp') . '";');
 
if (
is_member_of($vbulletin->userinfo, array(659)))

echo 
'<tr>  
<td class="alt1" width="50%"><a href="showthread.php?t=' 
$thread[threadid] . '"title="' $thread[preview] . '">' $thread[title] . '</a>  
<br><div class="smallfont">by <a href="member.php?u=' 
.  $thread['postuserid'] . '">' .  $thread['postusername'] . '</a><br></div></td> 
<td align="right" class="alt2" width="20%"><div class="smallfont">' 
$thread[lastpostdate] . '&nbsp;' $thread[lastposttime] . 
<br>by <a href="member.php?find=lastposter&amp;t=' 
$thread[threadid] . '">' .  $thread[lastposter] . '</a>&nbsp;<a href="showthread.php?p=' $thread[lastpostid] . '#post' $thread[lastpostid] . '"><img class="inlineimg" src="http://www.vbseo.com/images/buttons/lastpost.gif" alt="Go to Last Post" border="0" /></a></div></td> 
<td align="center" class="alt1" width="2%"><div class="smallfont">' 
$thread[replycount] . '</div></td> 
<td align="center" class="alt2" width="2%"><div class="smallfont">' 
$thread[views] . '</div></td></tr>'

else 

echo 
'<tr>  
<td class="alt1" width="50%"><a href="showthread.php?t=' 
$thread[threadid] . '"title="' $thread[preview] . '">' $thread[title] . '</a></td> 
<td align="right" class="alt2" width="20%"><div class="smallfont">' 
$thread[lastpostdate] . '&nbsp;' $thread[lastposttime] . ' </td> 
<td align="center" class="alt1" width="2%"><div class="smallfont">' 
$thread[replycount] . '</div></td> 
<td align="center" class="alt2" width="2%"><div class="smallfont">' 
$thread[views] . '</div></td></tr>';   
}
                 }
        
$db->free_result($threads);
        unset(
$thread);
 
echo 
"</table>";
?>
Running this as a tab and it show two copyright notices from vbseo. One at the bottom of this page and then again in the footer of my site. How can I get the vbseo copyright out of this tab module?

Thanks,
Itworx4me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 08-29-2008, 06:32 AM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
Hello,

you can add the filename of that ajax request in "Exclude Pages" option in vBSEO CP to skip it from processing.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Bug [Notices] AntonioP Bug Reporting 3 07-26-2008 04:07 PM
Copyright at the bottom of the page Redse Pre-Sales Questions 1 07-04-2007 07:14 AM
Possible Bug: SigmaChat/Raidersoft Chat Popup page has VbSeo copyright large & on top vissa Bug Reporting 2 10-25-2005 07:27 PM


All times are GMT -4. The time now is 10:37 PM.


Powered by vBulletin Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.