Skocz do zawartości

game

Użytkownik
  • Postów

    14
  • Dołączył

  • Ostatnia wizyta

Informacje o forum

  • Wersja
    IP.Board 2.3.x
  • Forum
    www.rares-suicide.com

Osiągnięcia game

Uczeń

Uczeń (3/14)

  • Pierwszy post
  • Współtwórca
  • Rozpoczęcie dyskusji
  • Pierwszy tydzień zakończony
  • Miesiąc później

Najnowsze odznaki

0

Reputacja

  1. ty for the mod Amfidiusz and yeap DawPi ur right its a built-in func , problem is i just did my upgrade guess i need play around more with acp lol
  2. any way to like add a image on side of the username on topics when reputation is giving? example when user has a score of 10 it will show one icon then when he reaches 20 it changes to another icon?
  3. Post Screen -> topictitle_fields
  4. didn't work but like your told me in ips one day keep on trying
  5. So it will be like this ryt? <if=" in_array( intval( $this->ipsclass->input['f'] ), explode(',',$this->ipsclass->vars['ae_extend_forums'] && in_array( $this->ipsclass->member['mgroup'] , explode(',' ,$this->ipsclass->vars['ae_extend_groups']) )">
  6. its one im just coding , i'm starting to code basic mods but sometimes i get stuck and ask for help
  7. yes the settings are made the mod is set and workin just that only part wont work the select forums. i've cheked also in settings for setting's key and seems fine ae_extend_forums and the Raw php code if ( $save == 1) { if ( is_array($_POST['ae_extend_forums']) ) { $_POST['ae_extend_forums'] = implode(",",$_POST['ae_extend_forums']); } else { $_POST['ae_extend_forums'] = ""; } $key = 'ae_extend_forums'; } if ( $show == 1 ) { $key = 'ae_extend_forums[]'; }
  8. ryt it is a mod , so far i got everything workin but the select forums is not. heres the full code i got on the template bit.
  9. tried but no luck
  10. need help on this code , for some reason the select forums is not workin i want this code to select the forums where the mod to show and also what groups allow to view the mod , this last one works. <if=" in_array( intval( $this->forum['id'] ), explode(',',$this->ipsclass->vars['ae_extend_forums'] && in_array( $this->ipsclass->member['mgroup'] , explode(',' ,$this->ipsclass->vars['ae_extend_groups']) )"> this will go in a template bit
  11. game

    help with code

    ryt i'm getting the first post , how can i change it to get the last?
  12. game

    help with code

    if ($this->ipsclass->vars['ae_post'] == 1 && $topic['state'] == "open" && $topic['close_auction'] == 0){ $this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'posts', 'where' => "topic_id ='{$topic['tid']}' AND post_date <= '{$end_date}'", 'limit' => array(0,1), 'order' => 'post_date ASC' ) ); $this->ipsclass->DB->simple_exec(); $p = $this->ipsclass->DB->fetch_row(); $p['post_date'] = $this->ipsclass->get_date($p['post_date'], 'LONG', 1 ); $content = "Auction Closed <br />Last valid Bid is: <br />[quote name='{$p['author_name']}' date='{$p['post_date']}' post='{$p['pid']}'] {$p['post']}[/quote]<br />Thanks for bidding"; $mod = $this->ipsclass->vars['ae_mod_id']; $t = $topic['tid']; $api->set_author_by_id($mod); $api->set_post_content($content); $api->set_topic_id($t); $api->post_settings['show_signature'] = 1; $api->create_new_reply(); $this->ipsclass->DB->do_update( 'topics', array( 'close_auction' => "1"), 'tid='.$topic['tid'] ); } if ($this->ipsclass->vars['ae_close'] == 1){ $this->ipsclass->DB->do_update( 'topics', array( 'state' => "closed"), 'tid='.$topic['tid'] ); } } } else{ $topic['auctionends'] = ""; } sorry that was the code , well i want just to add to it to get the last post from that topic when the auction ends
  13. game

    help with code

    ok when the topic reaches the ending date i want it to quote the last post of the member that replied on that topic.
  14. game

    help with code

    sorry if i post in the wrong forum but i need a bit of help on this coding. i got the mod working but its just no posting the last post , what is doing is quoting the first post and not the last $this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'posts', 'where' => "topic_id ='{$topic['tid']}' AND post_date <= '{$end_date}'", 'limit' => array(0,1), 'order' => 'post_date ASC' ) ); $this->ipsclass->DB->simple_exec(); $p = $this->ipsclass->DB->fetch_row(); $p['post_date'] = $this->ipsclass->get_date($p['post_date'], 'LONG', 1 ); $this->ipsclass->DB->simple_construct( array( 'select' => '*', 'last_poster_name', 'from' => 'topics', ) ); $this->ipsclass->DB->simple_exec(); $t = $this->ipsclass->DB->fetch_row(); $t['last_poster_name']; $content = "Auction Closed <br />Last valid Bid is: <br />[quote name='{$t['last_poster_name']}' date='{$p['post_date']}' post='{$p['pid']}'] {$p['post']}[/quote]<br />Thanks for bidding";
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.