Jump to content

rkm140

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rkm140's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I think that would work but again the hand posted is an example and it will be a variable that will be different for each person posting a hand and will also come from different sites. So this has to take all that into account.
  2. That code might work for a single person but it would not work as a variable, right?
  3. There is more than one set of brackets, but the format for them is the same. there is something like Full Tilt Poker Game #16783843176: Table Charger (deep) - $3/$6 - No Limit Hold'em - 22:07:32 ET - 2009/12/13 Seat 1: SadLittleDoggy ($998) Seat 2: Amorpheous ($180) Seat 3: novel20 ($1,257) Seat 4: drillhead7619 ($326.55) Seat 5: RobSainter ($894) Seat 6: mjm32088 ($391) Seat 7: leja2 ($807.90) Seat 8: jeffr8 ($1,066.50) Seat 9: HellaStacks_ ($810) HellaStacks_ posts the small blind of $3 SadLittleDoggy is sitting out Amorpheous posts the big blind of $6 The button is in seat #8 *** HOLE CARDS *** Dealt to jeffr8 [Ac Ah] SadLittleDoggy stands up novel20 folds drillhead7619 folds RobSainter folds mvisman adds $360 mjm32088 has 15 seconds left to act mjm32088 folds leja2 folds jeffr8 raises to $16.50 HellaStacks_ has 15 seconds left to act HellaStacks_ raises to $66 Amorpheous folds jeffr8 calls $49.50 *** FLOP *** [As Qd Tc] HellaStacks_ has 15 seconds left to act HellaStacks_ bets $118 jeffr8 raises to $246 HellaStacks_ has 15 seconds left to act HellaStacks_ calls $128 *** TURN *** [As Qd Tc] [Jc] HellaStacks_ bets $498, and is all in jeffr8 calls $498 HellaStacks_ shows [Ad Ks] jeffr8 shows [Ac Ah] *** RIVER *** [As Qd Tc Jc] [7h] HellaStacks_ shows a straight, Ace high jeffr8 shows three of a kind, Aces HellaStacks_ wins the pot ($1,623) with a straight, Ace high *** SUMMARY *** Total pot $1,626 | Rake $3 Board: [As Qd Tc Jc 7h] Seat 1: SadLittleDoggy is sitting out Seat 2: Amorpheous (big blind) folded before the Flop Seat 3: novel20 didn't bet (folded) Seat 4: drillhead7619 didn't bet (folded) Seat 5: RobSainter didn't bet (folded) Seat 6: mjm32088 didn't bet (folded) Seat 7: leja2 didn't bet (folded) Seat 8: jeffr8 (button) showed [Ac Ah] and lost with three of a kind, Aces Seat 9: HellaStacks_ (small blind) showed [Ad Ks] and won ($1,623) with a straight, Ace high As you can see only the items within the brackets need to change.
  4. I don't know much about writing PHP but something i was wondering and hoping someone could help me with. An if statement that will swap text within [ ] to corresponding images stored on my server. I think an if statement will be the best way to do this as if the post doesn't contain the [ ] with text/numbers within it then the statement would be false and nothing would be done. am i correct in my thinking here. so basically if [2h 3c] then change 2h to 2h.jpg and 3c to 3c.jpg and seeing how the text/number within are variables that cover all 52 playing cards and suites in a standard deck. i Have all image files and they are named for the card and suite. So 2h = 2 of hearts so on and so forth. can anyone help me with this.
  5. If i understand what your asking. If i remove the <?php and the ?> will it work it. No i tried this and only to get this error Fatal error: Cannot redeclare processcards() (previously declared in /home/mypoker2/public_html/forum1/includes/class_postbit.php(294) : eval()'d code:23) in /home/mypoker2/public_html/forum1/includes/class_postbit.php(294) : eval()'d code on line 26
  6. Below is an image of what i am doing within the vbulletin software. Maybe i am doing it wrong or something. But i have tried everything so far and it still isn't working.
  7. I tied both of those and i am getting this error. Parse error: syntax error, unexpected '<' in /home/mypoker2/public_html/forum1/includes/class_postbit.php(294) : eval()'d code on line 23
  8. Below is the original trext that will be placed in the post. Remeber this will all be similar. The cards will change and the players names and chip stack will change. PokerStars Game #33194475302: Razz Limit ($10/$20 USD) - 2009/09/23 15:08:17 ET Table 'Tselina' 8-max Seat 1: AkuAku ($115 in chips) Seat 2: Ceewyl ($464 in chips) Seat 3: kissyao389 ($591 in chips) Seat 4: caddymans ($210 in chips) Seat 5: bjao ($230 in chips) Seat 6: thx_dealer ($1045 in chips) Seat 7: art of ace ($305 in chips) AkuAku: posts the ante $1 Ceewyl: posts the ante $1 kissyao389: posts the ante $1 caddymans: posts the ante $1 bjao: posts the ante $1 thx_dealer: posts the ante $1 art of ace: posts the ante $1 *** 3rd STREET *** Dealt to AkuAku [Kc] Dealt to Ceewyl [8s] Dealt to kissyao389 [5h] Dealt to caddymans [Jh] Dealt to bjao [3h] Dealt to thx_dealer [Tc] Dealt to art of ace [6h] AkuAku: brings in for $3 Ceewyl: calls $3 kissyao389: folds caddymans: folds bjao: folds thx_dealer: folds art of ace: raises $7 to $10 AkuAku: folds Ceewyl: calls $7 *** 4th STREET *** Dealt to Ceewyl [8s] [Jd] Dealt to art of ace [6h] [9h] art of ace: bets $10 Ceewyl: calls $10 *** 5th STREET *** Dealt to Ceewyl [8s Jd] [Jc] Dealt to art of ace [6h 9h] [9c] art of ace: bets $20 karelli has returned Ceewyl: calls $20 *** 6th STREET *** Dealt to Ceewyl [8s Jd Jc] [4d] Dealt to art of ace [6h 9h 9c] [Kd] art of ace: checks Ceewyl: bets $20 art of ace: calls $20 *** RIVER *** art of ace: checks Ceewyl: checks *** SHOW DOWN *** Ceewyl: shows [5d As 8s Jd Jc 4d Qh] (Lo: J,8,5,4,A) art of ace: shows [Ad 3c 6h 9h 9c Kd 4s] (Lo: 9,6,4,3,A) art of ace collected $127 from pot *** SUMMARY *** Total pot $130 | Rake $3 Seat 1: AkuAku folded on the 3rd Street Seat 2: Ceewyl showed [5d As 8s Jd Jc 4d Qh] and lost with Lo: J,8,5,4,A Seat 3: kissyao389 folded on the 3rd Street (didn't bet) Seat 4: caddymans folded on the 3rd Street (didn't bet) Seat 5: bjao folded on the 3rd Street (didn't bet) Seat 6: thx_dealer folded on the 3rd Street (didn't bet) Seat 7: art of ace showed [Ad 3c 6h 9h 9c Kd 4s] and won ($127) with Lo: 9,6,4,3,A
  9. Using this gives me this error function graphicCards($cardAbbreviations){ $arr = preg_split('#[\[\]\s]#', $cardAbbreviations[0], -1, PREG_SPLIT_NO_EMPTY); $image = '['; foreach($arr as $val){ $image .= "<img src='http://mypokerrails.com/forum1/cards/$val.png'>"; } $image .= ']'; return $image; } Fatal error: Cannot redeclare graphiccards() (previously declared in /home/mypoker2/public_html/forum1/includes/class_postbit.php(294) : eval()'d code:23) in /home/mypoker2/public_html/forum1/includes/class_postbit.php(294) : eval()'d code on line 31
  10. It depends some will all be with one set of [ ] other will be in sepreate set I tried this code $text = <<<EOF Dealt to Ceewyl [8s Jd Jc] [4d] Dealt to art of ace [6h 9h 9c] [Kd][Kg] EOF; function graphicCards($cardAbbreviations){ $arr = preg_split('#[\[\]\s]#', $cardAbbreviations[0], -1, PREG_SPLIT_NO_EMPTY); $image = ''; foreach($arr as $val){ $image .= "<img src='http://mypokerrails.com/forum1/cards/$val.png'>"; } return $image; } $text = preg_replace_callback('#\[(??:[2-9TJQKA]|10)(?:[cdhs])\s?)+\]#', 'graphicCards', $text); echo $text; And i get this error
  11. Thanks for putting this in the correct area. I apologize for missposting it.
  12. I have this peace of code that seems to work sometimes and sometimes it doesn't. $text = preg_replace( '#\[([2-9TJQKA]|10)([cdhs])\]#', "<img src='http://mypokerrails.com/forum1/cards/$1$2.png'>", $text ); Now what i mean but working sometime and sometimes not. First off this is suppose to only change the letter or number combination within then [ ] and it is changing letter and number combos that are posted outside the [ ] second, it will change the letter and number combos within the [ ] but within the same post it it skips some. as shown in the image below. Now here is part of the post prior to being submitted. What i have found is if i go in and force a new space between say Jd and Jc and submit it will show correctly. However member of the forum are not going to know to do this and it should work seamlessly with out the user needed to do any extra work. can someone please help me figure this out. Dealt to Ceewyl [8s Jd] [Jc] Dealt to art of ace [6h 9h] [9c] art of ace: bets $20 karelli has returned Ceewyl: calls $20 *** 6th STREET *** Dealt to Ceewyl [8s Jd Jc] [4d] Dealt to art of ace [6h 9h 9c] [Kd] art of ace: checks Ceewyl: bets $20 art of ace: calls $20 *** RIVER *** art of ace: checks Ceewyl: checks *** SHOW DOWN *** Ceewyl: shows [5d As 8s Jd Jc 4d Qh] (Lo: J,8,5,4,A) art of ace: shows [Ad 3c 6h 9h 9c Kd 4s] (Lo: 9,6,4,3,A)
  13. Thanks for the code yesterday it made things a lot simpler, however i am stilling having issue with it. 1. if a text post that doesn't include [ ] has ad in it it will post the image. I am trying to get to only post the image for the letter combination and number combination within [ ]. 2. below is a screen shot of what is going on. it will post image sometimes and sometimes it wont $cards = array('2','3','4','5','6','7','8','9','T','J','Q','K','A'); $suits = array ('c','d','h','s'); $fromArray = $toArray = array(); foreach($cards as $card) { foreach($suits as $suit) { $word[] = '['.$card.$suit; $word[] = $card.$suit.']'; $word[] = ' '.$card.$suit.' '; $link[] = '[<img src="http://mypokerrails.com/forum1/cards/'.$card.$suit.'.png">'; $link[] = '<img src="http://mypokerrails.com/forum1/cards/'.$card.$suit.'.png">]'; $link[] = '<img src="http://mypokerrails.com/forum1/cards/'.$card.$suit.'.png">'; } } $this->post['message'] = str_ireplace($word, $link, $this->post['message']);
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.