![]() |
This is my edited code, it has bullet point at the start and seperated with lines:
Code:
ob_start(); |
any ideas on getting it to pull x number of articles from a specific category instead of view count?
|
Quote:
Then change the PHP code to: Code:
$mostpopularweek_get = vB::$db->query_read(" X = the parentnode you want (this will be a number) Y = The max number of articles you want to pull from that parentnome (also a number.) That *should* work, I haven't tested it at all but it is basic MySQL. I didn't change any of the php code. |
Quote:
Code:
Database error in vBulletin 4.1.12: |
Sorry it should be ORDER BY cn.publishdate desc... I will edit the original code I posted.
|
:) Thanks Joe its working now! :up:
by the way, is there anyway to get the breadcrumbs working like the original one below? https://vborg.vbsupport.ru/attachmen...4&d=1271855308 again thanks a lot, really appreciate it. :) |
Sorry I don't know what you mean by breadcrumbs? To me breadcrumbs were what is under the navbar saying where you are in a forum, it wouldn't have anything to do with a widget... ?
|
Sorry, I meant this https://vborg.vbsupport.ru/showpost....1&postcount=43
https://vborg.vbsupport.ru/attachmen...1&d=1316160231https://vborg.vbsupport.ru/attachmen...2&d=1316160376 I wasn''t too sure what its called, breadcrumb separators maybe? :erm: See how the original has those small dots after each title, I think the original had these separators(?) but they disappeared or stopped working due to a vBulletin upgrade version incompatibility :confused: by the way, how often will it refresh and add more new articles added in the category to the list? currently I have set it to display 12, and have since added a few articles to the category, but it's only showing 7 and hasn't updated the list with the other articles yet. if i added the cache time to say a few hrs or even a few days (in mins) will it auto refresh every few day or so? |
Hey :)
is it possible to change the url? <a href="content.php?r='.$article[nodeid].'"> The ID is not good for social-plugins. A foll url (/content/753-Sorcery) were better.... |
Quote:
As for how often it refreshes there should be a cache time in the widget settings/configuration in the admin cp. It *should* refresh as often as you have it set. You can go to Admin CP -> Maintenance -> Clear System Cache to force the refresh. |
All times are GMT. The time now is 05:57 PM. |
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:
|