Status
offline
Posts
10
Likes
12
Credits
0
LEVEL
0
175 XP
Compatible XF Versions2.0, 2.1, 2.2
Display Random Quotations, Tips, FAQs, Logos, Sub-headers in a widget or in any template, anywhere in the forums!
Widgets > Add Widgets > HTML Widget
- Widget definition: HTML
- Widget key: quotes
- Title: Quotations or Frequently Asked Questions
- Display in positions: Choose one or more locations
- Display condition: Optional
- Template:
➤ Where X = Total number of Quotes or Questions e.g. 10 in above example;
- Save, Done!
☀ The template code can be used in any template anywhere as-it-is without even creating a widget.
☀ You can create multiple widgets by simply changing the word variable $quote to anything you want to e.g. $faq, $tips etc.
Display Random Quotations, Tips, FAQs, Logos, Sub-headers in a widget or in any template, anywhere in the forums!
Widgets > Add Widgets > HTML Widget
- Widget definition: HTML
- Widget key: quotes
- Title: Quotations or Frequently Asked Questions
- Display in positions: Choose one or more locations
- Display condition: Optional
- Template:
HTML:
<font size=2; color="darkviolet";>
<xf:comment>Random Quotations, Tips, FAQs, Logos, Sub-headers and Everything Else!</xf:comment>
<xf:set var="$quote.1">Your Quote Goes Here! 1</xf:set>
<xf:set var="$quote.2">Your Quote Goes Here! 2</xf:set>
<xf:set var="$quote.3">Your Quote Goes Here! 3</xf:set>
<xf:set var="$quote.4">Your Quote Goes Here! 4</xf:set>
<xf:set var="$quote.5">Your Quote Goes Here! 5</xf:set>
<xf:set var="$quote.6">Your Quote Goes Here! 6</xf:set>
<xf:set var="$quote.7">Your Quote Goes Here! 7</xf:set>
<xf:set var="$quote.8">Your Quote Goes Here! 8</xf:set>
<xf:set var="$quote.9">Your Quote Goes Here! 9</xf:set>
<xf:set var="$quote.X">Your Quote Goes Here! 10</xf:set>
{$quote.{{ ($xf.time % X) + 1 }}|raw}
</font>
➤ Where X = Total number of Quotes or Questions e.g. 10 in above example;
- Save, Done!
☀ The template code can be used in any template anywhere as-it-is without even creating a widget.
☀ You can create multiple widgets by simply changing the word variable $quote to anything you want to e.g. $faq, $tips etc.