
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(6, 5, 9))) { 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] . ' ' . $thread[lastposttime] . ' <br>by <a href="member.php?find=lastposter&t=' . $thread[threadid] . '">' . $thread[lastposter] . '</a> <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] . ' ' . $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
|