I am using a non vBulletin cms in my site, not intergrated. I have made a couple plugins like showing latest forum post etc.
I half managed to finish with the latest post plug
3D Accelerator on the right.
The thread links work ok but then if you check the images arrows that they are supposed to point to the last post it doesn't work. It just give a "http://www.3dacc.net/forums/last" link
Here is my code, it's not vbulletin style but you will get the point
It's like the "vbseo_thread_url_row_spec" doesn't want to work.PHP Code:if(!empty($cfg['plugin']['vbforums']['exculde_forumid'])){
$cfg['plugin']['vbforums']['exculde_forumid'] = explode(',', $cfg['plugin']['vbforums']['exculde_forumid']);
$where_clause_exclude = "AND forumid NOT IN(".implode(',', $cfg['plugin']['vbforums']['exculde_forumid']).")";
}
include_once 'forums/includes/functions_vbseo.php';
vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
$sql = sed_sql_query("SELECT * FROM vb_thread
WHERE visible = 1 AND open <> 10 $where_clause_exclude
ORDER BY lastpost DESC LIMIT ".$cfg['plugin']['vbforums']['max_threads']);
while ($row = sed_sql_fetcharray($sql))
{
$jj++;
$t-> assign(array(
//"THREAD_ROW_URL" => $cfg['plugin']['vbforums']['vb_location']."/showthread.php?t=".$row['threadid'],
"THREAD_ROW_URL" => $cfg['plugin']['vbforums']['vb_location']."/".vbseo_thread_url_row($row),
//"THREAD_ROW_URL_LAST" => $cfg['plugin']['vbforums']['vb_location']."/showthread.php?goto=newpost&t=".$row['threadid'],
"THREAD_ROW_URL_LAST" => $cfg['plugin']['vbforums']['vb_location']."/".vbseo_thread_url_row_spec($row,'last'),
"THREAD_ROW_TITLE" => sed_cutstring($row['title'], $cfg['plugin']['vbforums']['title_cutstring']),
"THREAD_ROW_LASTPOST_DATE" => @date($cfg['dateformat'], $row['lastpost'] - $cfg['servertimezone']*3600),
"THREAD_ROW_LASTPOSTER" => $row['lastposter'],
"THREAD_ROW_REPLIES" => $row['replycount'],
"THREAD_ROW_VIEWS" => $row['views'],
"THREAD_ROW_ODDEVEN" => sed_build_oddeven($jj)
));
$t->parse("MAIN.THREAD_ROW");
}
Any help is appreciated. Thanks in advance.


1Likes
LinkBack URL
About LinkBacks





Reply With Quote

