User Tools

Site Tools


rand_items_widget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rand_items_widget [2017/01/14 17:24]
admin [Random Photos]
rand_items_widget [2018/06/13 17:52] (current)
admin [Random Members]
Line 25: Line 25:
  
 <​code>​$query.="​ LIMIT 15"; if (!($res=@mysql_query($query))) {trigger_error(mysql_error(),​E_USER_ERROR);​} $user_ids=array();</​code>​ <​code>​$query.="​ LIMIT 15"; if (!($res=@mysql_query($query))) {trigger_error(mysql_error(),​E_USER_ERROR);​} $user_ids=array();</​code>​
 +
 +**TIP** - be careful how many items you display on your page, having too many can cause slower page performance. Your index page is the main page that Google lists and ranks in their search engine and Google typically ​ prefers pages that aren't slow loading or too bloated. It's best to try and keep your index page focused and to the point making sure visitors can quickly grasp what your site is about and what it has to offer. Widgets should be considered teasers and provide just enough to make visitors want to explore further and ultimately signup to see more.
  
 To make the widget display random members on the member'​s home page or other pages use this code inside the appropriate html file from the skins_site/​def/​ folder: To make the widget display random members on the member'​s home page or other pages use this code inside the appropriate html file from the skins_site/​def/​ folder:
Line 57: Line 59:
  
 <​code><​!--widget="​photos(array('​mode'​=>'​rand'​))"​--></​code>​ <​code><​!--widget="​photos(array('​mode'​=>'​rand'​))"​--></​code>​
 +
 +
 +
 +==== Important Info Regarding Adding The Random Widget ====
 +
 +Refer to your **skins_site/​def/​index.html** file, you'll see sections like the following ...
 +<​code><​!-- Newest Members widget -->
 +<div class="​front-widget">​
 +<​h3>​Newest Members</​h3>​
 +<​!--widget="​members(array('​mode'​=>'​new','​area'​=>'​front','​total'​=>​12))"​-->​
 +</​div><​!-- End Newest Members widget --></​code>​
 +
 +Add your random items widget as follows ...
 +<​code><​!-- Random widget -->
 +<div class="​front-widget">​
 +<​h3>​Featured Members</​h3>​
 +<​!--widget="​members(array('​mode'​=>'​rand','​area'​=>'​front','​total'​=>​12))"​-->​
 +</​div><​!-- End Random widget --></​code>​
 +
 +If you want you can you can replace the "​Newest Members widget"​ with a "​Random widget"​. You can also add widget codes in any order you want. The order you add them in the file is the order in which they will be displayed on the page.
  
rand_items_widget.1484414668.txt.gz ยท Last modified: 2017/01/14 17:24 by admin