Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 12-30-2005, 10:16 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, as I am doing for 2 teams, here is the other serialize

PHP Code:
 a:5:{i:0;s:0:"";i:1;s:4:"5 25";i:2;s:2:"15";i:3;s:2:"55";i:4;s:0:"";} 
templates that I use

Main template

PHP Code:
 <form name="getcup">
<
table cellpadding="6" cellspacing="0" border="0" width="100%" class="tborder" align="center"> <tr> <td class="tfoot">
<
select name="cupid" onChange="MM_jumpMenu('parent',this,0)">
<
option value="#" selected>View other schedules</option>
$cuplist
</select>
</
td><td width="100%" class="tfoot"><strong><span style="float:right;">&raquo;&raquo; <a href="international/index.php?opt=schedule&divid=$thedivision&season=$seasonid">Full Standings</a>&nbsp;</span>$mycupname</strong></td></tr></table></form>
<
strong><font color="red">Under ConstructionAny predictions will be deleted.</font></strong>
<
table align="center" border="0" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]class="tborder" width="100%">
 <
tr><td align="right" colspan="10" class="alt1"><span class="smallfont"><if condition="$prediction"><a href="#">View predictions for $t1 vs $t2</a> | </if><a href="#">View all predictions</a> | <a href="#">View your predictions</a></span>&nbsp;</td></tr>
  <
tr
     <
td class="thead">Date</td>
    <
td align="center" class="thead">Time</td
    <
td class="thead">Location</td>
<
td class="thead">Team</td>
    <
td width="18" class="thead">Flag</td>
<
td colspan="2" align="center" class="thead">Score</td>
       <
td width="18" class="thead">Flag</td>
    <
td class="thead">Team</td>
<
td class="thead">Group</td>
      </
tr
$currentsched$predict
</table
Soccer_predict template ($predict)

PHP Code:
<form name="prediction" method="post" action"interschedule.php">
<
input type="hidden" name="seasonid" value="$seasonid">
<
input type="hidden" name="divid" value="$thedivision">
<
input type="hidden" name="teamid1" value="$tid1">
<
input type="hidden" name="teamid2" value="$tid2">
<
input type="hidden" name="gameid" value="$gameid">
<
input type="hidden" name="do" value="dopredict">
  <
tr
     <
td><span class="smallfont">$d</span></td>
    <
td align="center"><span class="smallfont">$t</span></td>
    <
td><span class="smallfont">$l</span></td>
<
td><span class="smallfont"><a href="international/index.php?opt=viewteam&id=$tid1&sid=$seasonid"><strong>$t1</strong></a></span></td>
    <
td width="18"><img src="international/images/smallflags/$t1.gif"></td>
 <
td align="center" class="alt1"><input name="predscore1" value="$predscore1type="text" size="1" maxlength="2">
</
td> <td align="center" class="alt1"><input name="predscore2" type="text" size="1" value="$predscore2maxlength="2">
</
td>
       <
td width="18"><img src="international/images/smallflags/$t2.gif"></td>
    <
td><span class="smallfont"><a href="international/index.php?opt=viewteam&id=$tid2&sid=$seasonid"><strong>$t2</strong></a></span></td>
<
td><span class="smallfont"><a title="$cupnamehref="interstandings.php?g=$gamegroup&cupid=$thecupid">$gamegroup</a></span></td>
      </
tr>
<
tr><td align="center" colspan="10"><span class="smallfont">Predictions may be changed anytimeup to 30 seconds before the game start. <br />We use the game location timezone for prediction cutoff time.  <br /><strong><font color="#990000">Optional:</font></strongYou may also predict the scorer's name and the minutes that he will score.<br />Separate minutes by a <b>space</b> for same player with more than one goal.(e.g.: 21 46 65)<br />Those values will be used in case of multiple winners. First by name, then by minutes if we still have multiple winners.</span></td></tr>
<tr><td width="50%" valign="top" align="center" colspan="5">
<table class="tborder" width="100%" cellspacing="1" cellpadding="2" border="0"><tr><td class="thead" colspan="5" align="center">$t1</td><tr>
<tr class="alt2"><td>&nbsp;</td><td><span class="smallfont">Player Name</span></td><td align="center"><span class="smallfont">#</td><td><span class="smallfont">Position</td><td nowap align="center"><span class="smallfont">Minutes will Score</span></td></tr>
$playerlist1
</table>
 </td>
<td width="50%" valign="top" align="center" colspan="5"><table class="tborder" width="100%" cellspacing="1" cellpadding="2" border="0"><tr><td class="thead" colspan="5" align="center">$t2</td><tr>
<tr class="alt2"><td>&nbsp;</td><td><span class="smallfont">Player Name</span></td><td align="center"><span class="smallfont">#</td><td align="center"><span class="smallfont">Position</td><td nowrap align="center"><span class="smallfont">Minutes will Score</span></td></tr>
$playerlist2
</table>
</td></tr><tr><td colspan="10" align="center"> <input type="submit" name="submit" value="Submit Prediction" class="button" />
</td></tr></td></tr></form> 
and playerlist1 soccer_predictplayer1 template (identical to playerlist2)

PHP Code:
<tr><td width="5">$checkbox1</td><td width="45%" align="left"><span class="smallfont"><a href="international/playerinfo.php?pid=$playerid1">$playerlname1$playerfname1</a></span></td>
<
td width="10" align="center"><span class="smallfont">$playernumber1</span></td>
<
td align="center"><span class="smallfont">$playerposition1</span></td>
<
td align="center">
<
span class="smallfont">$minutes1</span></td>
</
tr
Wow, great code for the checkboxes. It works!!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04762 seconds
  • Memory Usage 2,329KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete