[Include: 'Includes/guest_access.html']
[If: ($sess_name)=='guest']
[Variable:
'Inc_1'='NavHeader.html',
'Link_1'='Account_Signup.html?member=guest',
'Link_2'='Joke_Browser.html',
'Link_3'='Joke_Category.html',
'Link_4'='Joke_Detail.html',
'Link_5'='Account_Signup.html',
'member_guest'='member=guest']
[Else]
[Variable:
'Inc_1'='NavHeader.html',
'Link_1'='Joke_Add.html',
'Link_2'='Joke_Browser.html',
'Link_3'='Joke_Category.html',
'Link_4'='Joke_Detail.html',
'Link_5'='Joke_Comment.html',
'member_guest'='']
[/If]
[Variable:
'forumWords'=(array),
'path'=(String_Concatenate: '/Accounts/',($sess_acct), '/'),
'pathThumb'=(String_Concatenate: '/Accounts/',($sess_acct), '/Thumb/'),
'monitor' = (action_param:'monitor'),
'forumSearch' = (action_Param:'forumSearch'),
'forumKeywords'=($forumSearch->split:' '),
'Joke' = (action_Param:'Joke'),
'thread' = (action_Param:'thread'),
'respond' = (action_Param:'respond'),
'reply' = (action_Param:'reply')]
[Loop: ($forumKeywords->Size)]
[$forumWords->(insert:'Joke_Searchable'=($forumKeywords->(Get:(Loop_Count))))]
[/Loop]
|
[If: (Cache_Exists: -Name='JokeAds', -Expires='86400')]
[Else]
[Inline: -Search, -Database='MMS', -Table='Ads', -Keyfield='_Ads_ID', 'Ads_Page'='Joke_Home', 'Ads_Orientation'='Banner', 'Ads_Position'='Header', 'Ads_Active'='Yes']
[Variable:'ads'=(Array)]
[If: (Found_Count)>0]
[Records]
[$ads->Insert:(Field:'Ads_HTML')]
[/Records]
[Else]
[$ads->Insert:'GoogleAds/Header_468x60.html']
[/If]
[/Inline]
[Cache_Store: -Name='JokeAds', -Content=($ads)]
[/If]
[Variable:'bAads'=(Array)]
[Variable:'bAds'=(Cache_Fetch: -Name='JokeAds')]
[Variable:'cnt'=($bAds->Size)+1, 'rdm'=(Math_Random: -Min=1, -Max=($cnt))]
[Include: ($bAds->Get:$rdm)]
|
[Include: ($Inc_1)]
| |
|
|
|
|
|
|
|
[Include: ($sess_side)]
|
| |
|
[Include: 'MMS_Search_Joke.htm']
|
|
| |
|
|
|
|
|
|
|
| |
 |
|
|
|
|
|
|
| |
|
|
| |
[If: (Cache_Exists: -Name='Jokes', -Expires='86400')]
[Else]
[Inline: -Search, -Database='MMS', -Table='Categories', -Keyfield='_Cat_ID', -SortField='Cat_Sort','Cat_Type'='Joke']
[Variable:'jokerecs'=(Records_Map:
-ReturnField='Cat_Photo',
-ReturnField='Cat_Description',
-ReturnField='Cat_Name',
-ReturnField='_Cat_ID')]
[/Inline]
[Cache_Store: -Name='Jokes', -Content=($jokerecs)]
[/If]
[Variable:'Recs'=(Cache_Fetch: -Name='Jokes')]
| Categories |
[Loop:($recs->Size)]
[Variable:'CRecs'=($Recs->Get:(Loop_Count))]
[Variable:'CRec'=($CRecs->Second)]
[Variable:'gotocat'=($Link_3)+'?cat='+($CRec->(Find:'_Cat_ID'))+'&cat4='+($CRec->(Find:'Cat_Name'))+'&'+($member_guest)]
|
[/Loop]
|
[Loop: $Recs->Size]
[Variable:'CRecs'=($Recs->Get:(Loop_Count))]
[Variable:'CRec'=($CRecs->Second)]
[Variable:'gotocat'=($Link_3)+'?cat='+($CRec->(Find:'_Cat_ID'))+'&cat4='+($CRec->(Find:'Cat_Name'))+'&'+($member_guest)]
|
|
[$CRec->(Find:'Cat_Description')]
|
|
[If: (Loop_Count % 4) == 0]
[/If]
[/Loop]
|
|
|
|
|
|
[Include: 'NavFooter.html']
[Include:'Includes/g_analytics.htm']