![]() |
Widget: Latest Articles In Section
1 Attachment(s)
Latest Articles In Section What is does: vBCMS only has one option for latest articles and that is all sections and categories. This widget will allow you to display the latest articles in a specific section. Change Log: 1.0 - Initial Release 1.1 - Updated to allow more than one section & display published date. 1.2 - Small update, no need to update unless you are using a table prefix. 1.3 - Added full page text if no previewtext row exists. 1.4 - Updated to not show unpublished articles. 1.5 - Updated read more link to look more vBulletin related. 1.6 - Small change to fix 4.0.2 [ATTACH] showing in text. Installation:
When clicking on your section you should see something like this: The number after ? in this case 11 is your section id. Can I enter more than one section id? Yes simply change $section = '11' to something like $section='11, 12, 13' Code to copy(make sure you change $section and $limit!) PHP Code:
https://vborg.vbsupport.ru/attachmen...1&d=1265896582 For Category Mod See Here: https://vborg.vbsupport.ru/showthread.php?t=232440 |
not working database error
|
Thank you very much OcR Envy, works perfectly.
Any chance to get one for most viewed and one for most commented articles per sections and/or categories? =) |
Quote:
Quote:
1.2 Updated - Small update for people using a table prefix should resolve any database errors. |
my box show nothing id have to change in my id
i use vbseo |
Quote:
There are other ways to find the Section ID. Go to your AdminCP-vBCMS-Section Manager. Hover over the section you want. The link should look like this: Code:
http://www.domain.com/admincp/cms_content_admin.php?do=filter§ionid=116&contenttypeid=17 |
Hi,
whats the 150px image for? It also seems like that the preview text code does not work :( |
OcR Envy, there's a way to print the section, subsection and/or categories from the article in the widget?
Thanks =) |
I also got an error.
I changed the section to one of my sections HTML Code:
Parse error: syntax error, unexpected $end in /usr/www/users/saj716/a_customxxxxxxxxx/forum/packages/vbcms/widget/execphp.php(171) : eval()'d code on line 44 |
Could u make it automatically get the section ID from the section clicked?
|
Quote:
Quote:
Quote:
Quote:
|
what section id if have to put in when i want to have articles from the main section - for example at vbulletin.com it is called "the Front page" ? that i get a lot of articles - because i tried the section id and i get nothing displayed ?!
|
Quote:
"I changed the section to one of my sections" PHP Code:
|
Quote:
Admin Panel Widgets>>Create New Widget >>Choose "General Search" (also name your widget) Then "save" Then you need to configure. Choose "Article". Then choose the rest how many days and how many you want to show up. |
Quote:
Quote:
|
Got it to work. No more error
I put in an incorrect section number :o Great job! :D |
Quote:
Glad to hear it, thanks for marking as installed too! :) |
I know this isn't available currently, but any thought to setting it up so that individual users could choose the section they want to appear by default? In other words, setting up a widget on the front page that would show articles by section based on their selection?
|
Quote:
Not something I'm going to work on but that's fairly easily done on your end. Create a User Profile Field, Single Line Textbox. In the UsersCP have the user enter the Section ID they want to display. In the widget change $section = ' '; to $section = $bbuserinfo['fieldX'] X would be the Profile Field #. I believe this will work I obviously haven't tested it. |
Updated to 1.3 no need to update unless previewtext was not appearing for you.
|
Hi dev!
Thanks for this great widget! I think I have found a bug: Also not published articles get catched up by the sql-query. This is not very good :D Please check this ... |
Quote:
|
can this be modified to just show the latest article in each section? Right now it is show up double on my main page and I am looking to just have a different display for the newest article in each section.
http://www.k-series.com/forum/content.php It is also showing up in the article itself so I might be doing something wrong. http://www.k-series.com/forum/conten...take-Manifolds |
Quote:
It's showing twice because you have the section set to your front page. I don't think it's possible to hide the front page section from appearing on the front page. Maybe bit a bit more clear exactly what you want to show and not show. |
I am trying to make the latest article in each section and the latest article on the main page show up different. I would like for them to have a larger image and have more a presense on the page than the typical 1x2 column that VB provides.
|
Quote:
The front page will always show your most recent articles there's no way to turn that off as far as I know. This mod is meant to show latest articles in a section outside of the front page. You should be playing with the layout manager and your templates to accomplish what you want. Updated to 1.5 It will no longer display unpublished articles. |
been playing around with those without a lot of success, I will keep trying.
|
I like it very much, but I would like to put some div there to use some css in order to make some changes (like floating the img to the left and the text on the right).
There's a way to do this? |
i get the widget working now
but there are 2 things what i need to know: 1.) when i click on the "(more)" link in the widget - nothing is working i get nothing displayed ?! (i think the problem is with seo - how can i fix this in the widget in the rest of the cms everything is working with seo .. please help :) ) 2.) how can i display the showed articels side by side in one row ?! this would be great if i get this things working ;) really a great hack ;) |
Quote:
no way to do it? |
The great thing would be to have the latest articles in the current section automatically detected, without to specify $section = 'x'; ... It would be amazing if $section=current section detected.
Would be this possible ? |
Seems like a mod i need thanks! Is there any way to control what user groups see the widget or not? I would like uno-logged in users to see block with certain articles but if you log in you will not see it.
Please advise.... |
Quote:
CAN SOMEBODY HELP ME WITH THIS 2 POINTS ?! |
Quote:
PHP Code:
PHP Code:
Quote:
2. Remove the <center> calls and make a <table><tr><td> would be easiest. It's just simply HTML :) Quote:
Quote:
PHP Code:
PHP Code:
|
1 Attachment(s)
OUTPUT
when i change the <center> to <table><tr><td> - i have no changes .... the articles in the widget have the same style not side by side in one row .... the code is now - this is everything what i have change in the whole code of the widget from you Quote:
but it should look like the 2nd picture (after widget.jpg) SEO URLS CMS Section Articles List: portal/section/[section_id]-[section_title]-list.html CMS Section Articles List Pagination: portal/section/[section_id]-[section_title]-page[page].html this is my url rewrite style for the articles in the cms |
can this be used to turn all posts from a certain section into articles for my news page on the cms?
|
Quote:
Quote:
PHP Code:
|
1 Attachment(s)
Perfect works good now - but i have a little thing with the text descriptions under the pictures now -> you see it in the attachment ..
There is no space between the text of each displayed articel in the widget - is there de possibility to do a maximum number of charters and the rest with "..." and then the "(more)" function like in the attachment with the number "2" -> this would be great if i can get this output then the widget is perfect ;) - or if this not possible then the "1" would be also good - but "2" would be the best ;) and how can i change the text size in the description? Is there a possibility to but the "Read more ->" like in the cms used with the articel previes instead of the "(more)" - thats just a idea to look more professional ... ;) Thx for your great help ;) i love your widget hack with the seo i have it working now your idea was right ;) |
There are two solutions to the spacing problem neptun.
You could either add cellpadding="10px" or something to <table> or a style="padding-right:10px;" to the <td> Or to shrink the text displayed find: PHP Code:
For the more idea: find: PHP Code:
PHP Code:
|
thanksss that you like my idea ;)
i have changed the code now with the "read more" instead of the "(more) and have put a little center & b to this - a change the text size of the discription - it looks really perfect now perfect hack ;) now its perfect for me ;) and it looks really professional now ;) thx for your help ;) |
All times are GMT. The time now is 04:18 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|