vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - [WIDGET] Recent Threads (https://vborg.vbsupport.ru/showthread.php?t=236404)

Scan Cape Cod 10-01-2010 11:00 PM

Indeed. I'll check further. Dummy here didn't search beyond .org .... I always seem to find my answers here...shame on me. Thanks for the handhold, I'll take it from here! :D Nice looking addition; I hope I can get it working.

Ronseal 10-20-2010 07:05 PM

Can anybody help me please? I'm trying to get this widget to display the info on two lines rather than four so I've added a table, however it's having none of it and I'm getting the following error.

Parse error: syntax error, unexpected '<' in /home/mysite/public_html/forum/packages/vbcms/widget/execphp.php(194) : eval()'d code on line 26


Many thanks. Ron :confused:

Quote:

ob_start();
global $vbulletin, $db;
//Begin Thread Counts
$toutput='';
$recent_threads = $vbulletin->db->query_read("
SELECT thread.threadid, thread.title, thread.dateline, thread.lastpost, thread.lastposter, thread.lastposterid, thread.visible, thread.open, thread.postusername, thread.postuserid, thread.replycount, thread.views, forum.forumid, forum.title as forumtitle
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON ( forum.forumid = thread.forumid )
WHERE NOT ISNULL(threadid) AND visible = '1' AND open!='10'
ORDER BY lastpost DESC
LIMIT 0, 10
");
$i = 0;
while ($recent_thread = $db->fetch_array($recent_threads))
{
$i++;
if (!in_array($recent_thread[forumid], array(105,83,121,110,82,112,109,101,102,72))) {
if ($i & 1) {$class='alt1';} else {$class='alt2';}
$recent_thread[title] = unhtmlspecialchars($recent_thread[title]);
$recent_thread[lastpostdate] = vbdate('M jS', $recent_thread[lastpost], 1);
$recent_thread[lastposttime] = vbdate($vbulletin->options['timeformat'], $recent_thread[lastpost]);
$toutput .='<tr><td>

<table>
<tr>
<td class="'.$class.'" align="left"><b><font color="#98B5E2" size="1" face="verdana,arial"><a href="showthread.php?t='. $recent_thread[threadid].'">'. $recent_thread[title].'</a></font></b>';</td>
<td class="'.$class.'" align="right">$toutput .='<b><span style="color: #E1E1E2"><font size="1" face="verdana,arial">Last Post By: <a href="member.php?u='.$recent_thread[lastposterid].'">'.$recent_thread[lastposter].'</a></font><br/></span>'; </td>
</tr>
<tr>
<td class="'.$class.'" align="left">$toutput .='<font size="1" face="verdana,arial">Forum: <a href="forumdisplay.php?f='.$recent_thread[forumid].'">'.$recent_thread[forumtitle].'</a> | Replies: '.$recent_thread[replycount].'</font>'; </td>
<td class="'.$class.'" align="right">$toutput .='<font size="1" face="verdana,arial">Posted: <strong>'.$recent_thread[lastpostdate].'</strong> at: <strong>'. $recent_thread[lastposttime].'</strong></font><hr/></td>
</tr>
</table>

</td></tr>';
}
}
//End Thread Counts

//Sidebar - Begin Forum Threads
$sb_threads = '
<table class="tborder" cellpadding="'.$stylevar[cellpadding].'" cellspacing="'.$stylevar[cellspacing].'" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat"></td> </tr> </thead> <tbody> <div class="smallfont"> <tr> <td>
'.$toutput.'
</td> </tr> </div> </tbody> </table>
';
//Sidebar - End Forum Threads
echo $sb_threads;
$db->free_result($recent_threads);
$output=ob_get_contents();
ob_end_clean();

rsuplido 10-20-2010 07:22 PM

It has something to do with the

';

at the end of lines 26, 27, and 30. Try removing them.

Ronseal 10-20-2010 07:46 PM

Quote:

Originally Posted by rsuplido (Post 2112135)
It has something to do with the ';

Tried removing them '; but still get the same error. Really stuck with this, it should be so easy!

rsuplido 10-20-2010 07:51 PM

Same exact error? Same line?

Ronseal 10-20-2010 08:06 PM

Same error but line 27 instead.

mmacrypt 11-20-2010 02:33 PM

Hey guys, with the .8 upgrade, this widget's colors don't flow with the rest of my site. I've tried finding the control in the StyleVars area but nothing effect it. Not very good at this stuff but can somebody point me in a direction.
As you can see, I have the left side working fine now but just don't know what controls the right widget.
https://vborg.vbsupport.ru/external/2010/11/33.png

cykelmyggen 12-09-2010 04:35 PM

Sorry for my ignorance, but is there a way to make this fine widget show pictures if listet as the first subject in the post? As for now it just shows the imagelink.

Joey Link 01-23-2011 10:56 PM

How do we change the color of the text?

HouseAddict 02-09-2011 08:14 PM

Has anyone figured out how to add the thumbnails to this? As in, beside each post you have the poster's thumbnail of some sort, just to add more "color" to this widget and liven up the actual CMS pages...

I'd kill for that!


All times are GMT. The time now is 12:37 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
  • Page Generation 0.01230 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete