vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Adding Articles to a Widget (https://vborg.vbsupport.ru/showthread.php?t=280994)

sLaeYa 04-02-2012 02:31 AM

Adding Articles to a Widget
 
I would like to create a widget as a navigation menu on my page but cannot find info on the php required to add desired articles to a widget. If someone could point me in the right direction it would be much appreciated.

Cheers.

Lynne 04-02-2012 03:41 PM

If you just want to list some articles, then just make an html widget and list the that way:

<a href="content.php?r=xxx">Article 1</a>
<a href="content.php?r=yyy">Article 2</a>
<a href="content.php?r=zzz">Article 3</a>

sLaeYa 04-02-2012 11:39 PM

Quote:

Originally Posted by Lynne (Post 2316054)
If you just want to list some articles, then just make an html widget and list the that way:

<a href="content.php?r=xxx">Article 1</a>
<a href="content.php?r=yyy">Article 2</a>
<a href="content.php?r=zzz">Article 3</a>

Thanks for the help Lynne, I was under the impression I was required to use a php call to the articles but this makes alot more sense to me. Being a newbie to vBulletin I'm not too keen try new things I don't quite comprehend. I guess reading others posts can sometimes be misleading or easily taken out of context.

Thanks again.

Lynne 04-03-2012 01:35 AM

A PHP widget could be written if you need to query the database for what articles to show, but if you know what articles you want to show, why waste resources doing a query? Just write it out as html instead! :)


All times are GMT. The time now is 04:42 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
  • Page Generation 0.01089 seconds
  • Memory Usage 1,712KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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