![]() |
|
Mod Options |
![]() |
|||||||||||||||
Widget: Latest Articles In Section
![]() Developer Last Online: Oct 2016 ![]() ![]() ![]()
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!)
Preview: For Category Mod See Here: http://www.vbulletin.org/forum/showthread.php?t=232440 Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
|
Comments |
#2
|
||||
|
||||
not working database error
No members have liked this post.
|
#3
|
|||
|
|||
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? =) No members have liked this post.
|
#4
|
||||
|
||||
What is the database error sisterhood?
Originally Posted by kingMOB
Sure I could work on that King.![]()
1.2 Updated - Small update for people using a table prefix should resolve any database errors. No members have liked this post.
Last edited by OcR Envy; 08 Jan 2010 at 11:30. |
#5
|
||||
|
||||
my box show nothing id have to change in my id
i use vbseo No members have liked this post.
Last edited by sisterhood; 08 Jan 2010 at 16:46. |
#6
|
||||
|
||||
So you aren't getting any database errors just nothing is showing in the widget?
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:
sectionid=116 is the part you'd want 116 would be your section id in this example. No members have liked this post.
|
#7
|
||||
|
||||
Hi,
whats the 150px image for? It also seems like that the preview text code does not work ![]() No members have liked this post.
Last edited by Datenpapst; 16 Jan 2010 at 13:22. |
#8
|
|||
|
|||
OcR Envy, there's a way to print the section, subsection and/or categories from the article in the widget?
Thanks =) No members have liked this post.
|
#9
|
||||
|
||||
I also got an error.
I changed the section to one of my sections
Also, to add, I do have a prefix "vbull" No members have liked this post.
|
#10
|
||||
|
||||
Could u make it automatically get the section ID from the section clicked?
No members have liked this post.
|
#11
|
||||
|
||||
Originally Posted by Datenpapst
Preview Text works fine for me on two of my test boards. Check your source and see paste the HTML the widget enters so I can look at it closer please. The 150px image is the preview image for the article. If you insert and image into the article it will display a thumbnail view of the image. You can change the dimensions if you'd like. 150px just worked for what I was trying to do.![]()
Originally Posted by kingMOB
No king not currently.![]()
Originally Posted by tazattitude
You must change the sections to match your own section numbers. Make sure you have the number reading like this $section = '115'; 115 would be your own section id but you must have the surrounding ' '; for it to work.![]()
I'm not sure what you mean? Explain more please. No members have liked this post.
Last edited by OcR Envy; 19 Jan 2010 at 11:26. |
#12
|
|||
|
|||
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 ?!
No members have liked this post.
|
#13
|
||||
|
||||
Originally Posted by OcR Envy
That's what I mean by![]()
"I changed the section to one of my sections"
No members have liked this post.
|
#14
|
||||
|
||||
Originally Posted by Neptun
You can do this by default...![]()
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. No members have liked this post.
|
#15
|
||||
|
||||
Originally Posted by tazattitude
And you are getting an error with this code?![]()
This will show every section though. To show just the front page set $section = '1'; No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:53.