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
rand_items_widget [2018/06/13 17:28]
admin [Important Info Regarding Adding The Random Widget]
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:
rand_items_widget.txt ยท Last modified: 2018/06/13 17:52 by admin