PDA

View Full Version : Adding Articles to a Widget


sLaeYa
04-02-2012, 01:31 AM
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, 02: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, 10:39 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>

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, 12: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! :)