vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Need Help to create my Portal page on vB CMS (https://vborg.vbsupport.ru/showthread.php?t=299328)

Reef Man 06-20-2013 03:34 PM

Need Help to create my Portal page on vB CMS
 
Hi,
I need some help.
I want to configure my Portal page of my vB CMS.

I already created diferent section without categories on my CMS.
Let me explain.

Sections:
-Tank of the month
-Photo of the month
-Meetings
-etc.....

In my portal page, I just want to show the most recent article of every section.
Is this possible? How can I do it?

Thanks !

Lynne 06-20-2013 03:39 PM

It isn't possible with a default widget or in the Section "Content From" dropdown. I think you would need to create a PHP article and do a query to get the most recent article of every section and then list them in that PHP article. Make sure that article is set to show as the full article on the section and then only show that article in the section view.

Reef Man 06-20-2013 03:46 PM

I am not a programmer. Can you give me a hand Lynne?

On the other hand, is it possible to promote a blog entry as article on the CMS?

Lynne 06-20-2013 03:57 PM

If the user has the permission to do so, there should be a Promote to Article link on the Blog entries.

As for the php article, I can give you my quick query that simply lists all the articles in one particle section. You can modify it to do what you want:

PHP Code:

$myquery2 =vB::$vbulletin->db->query_read_slave($myquery "SELECT cms_nodeinfo.title AS title FROM cms_nodeinfo RIGHT JOIN cms_node ON (cms_node.nodeid=cms_nodeinfo.nodeid) WHERE cms_node.parentnode = 2 AND cms_node.contenttypeid = 18");
while (
$myarts vB::$vbulletin->db->fetch_array($myquery2))
        {
$output .= $myarts['title']."<br />";


So, change parentnode to a different value for each section. (Also, verify that the contenttypeid for Articles should be 18 for your site.) That should at least get you started.

Reef Man 06-20-2013 09:08 PM

Quote:

Originally Posted by Lynne (Post 2429381)
If the user has the permission to do so, there should be a Promote to Article link on the Blog entries.

As for the php article, I can give you my quick query that simply lists all the articles in one particle section. You can modify it to do what you want:

PHP Code:

$myquery2 =vB::$vbulletin->db->query_read_slave($myquery "SELECT cms_nodeinfo.title AS title FROM cms_nodeinfo RIGHT JOIN cms_node ON (cms_node.nodeid=cms_nodeinfo.nodeid) WHERE cms_node.parentnode = 2 AND cms_node.contenttypeid = 18");
while (
$myarts vB::$vbulletin->db->fetch_array($myquery2))
        {
$output .= $myarts['title']."<br />";


So, change parentnode to a different value for each section. (Also, verify that the contenttypeid for Articles should be 18 for your site.) That should at least get you started.

Sorry, I didn?t find how to do it.

I already changed the values but just get text from the title, but not content or images from the articles.

I don?t know about PHP, SQL or programming. :(

--------------- Added [DATE]1371772558[/DATE] at [TIME]1371772558[/TIME] ---------------

Well, after research a lot, I find this one:

https://vborg.vbsupport.ru/showthread.php?p=1949493

This solve that part. Just a question, is there anyway to have on this mod the same image for "read more" that in the rest of my sections?

Lynne 06-21-2013 01:26 AM

Quote:

Originally Posted by Reef Man (Post 2429444)
Just a question, is there anyway to have on this mod the same image for "read more" that in the rest of my sections?

I would guess so. It's just a matter of changing the php to be the same in that widget as in other places on your site.


All times are GMT. The time now is 01:34 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.01341 seconds
  • Memory Usage 1,732KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete