Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

RyBeNiA

Użytkownik
  • Postów

    533
  • Dołączył

  • Ostatnia wizyta

Odpowiedzi opublikowane przez RyBeNiA

  1. Witam czytałem sobie ten tutorial ale jakoś sobie nie mogę poradzić;D

    http://forum.invisionize.pl/index.php?showtopic=1389

    Chciałbym zainstalować sobie ten skrypt php pozwalający wyswietlanie losowych banerow.

    <?php 
    
    // inicjujemy generator licz losowych   
    srand((float)microtime()*1000000); 
    
    // tablica zawierajaca tablice z banerami i linkami 
    $ban[] = array('baner1.gif' => 'www.wp.pl'); 
    $ban[] = array('baner2.gif' => 'www.onet.pl'); 
    $ban[] = array('baner3.gif' => 'www.php.net'); 
    $ban[] = array('baner4.gif' => 'www.php.pl'); 
    $ban[] = array('baner5.gif' => 'www.kess.com.pl'); 
    
    // wybieramy losowy element z tablicy 
    $ban_rand = $ban[array_rand($ban)]; 
    
    // wyswietlamy podlinkowany baner 
    foreach($ban_rand as $key => $value) { 
     echo "<a href=\"http://$value\" target=\"_blank\"> 
     <img src=\"$key\" alt=\"$value\" style=\"border: 0;\" /></a>"; 
    } 
    
    ?>

  2. <!-- Begin Topic Entry {$data['tid']} -->
    <tr> 
    <td align="center" class="$class2" id='tid-folder-{$data['tid']}' onclick='return topic_toggle_folder("{$data['tid']}", "{$data['state']}");'>{$data['folder_img']}</td>
    <td align="center" class="$class2">{$data['topic_icon']}</td>
    <td class="$class2" valign="middle">
    	<div style='float:right'>{$data['_rate_img']}</div>
    	<div>
    		{$data['go_new_post']}{$data['topicprefix']}{$data['prefix']} {$data['attach_img']}<span id='tid-span-{$data['tid']}'><a id="tid-link-{$data['tid']}" href="{$this->ipsclass->base_url}showtopic={$data['tid']}" title="{$this->ipsclass->lang['topic_started_on']} {$data['start_date']}"><span style='color:{$data['tit_col']};font-weight:{$data['tit_fw']};'>{$data['title']}</span></a></a></span> {$data['PAGES']}
    		<div class="desc"><span onclick='return span_desc_to_input("{$data['tid']}");' id='tid-desc-{$data['tid']}'>{$data['description']}</span></div>
    	</div>
    </td>
    <td align='center' class="$classposts">
     {$data['posts']}
    <if="$data['_hasqueued'] == 1 and $inforum == 1">
     <a href="{$this->ipsclass->base_url}showtopic={$data['tid']}&modfilter=invisible_posts"><{BC_QUEUED_POSTS}></a>
    </if>
    </td>
    <td align="center" class="$class1">{$data['starter']}</td>
    <td align="center" class="$class1">{$data['views']}</td>
    <td class="$class1"><span class="lastaction">{$data['last_post']}<br /><a href="{$this->ipsclass->base_url}showtopic={$data['tid']}&view=getlastpost">{$data['last_text']}</a> <b>{$data['last_poster']}</b></span></td>
    <if="$this->ipsclass->member['is_mod'] == 1 and $inforum == 1 and $data['tidon'] == 1">
    <td align="center" class="$class1"><input type='hidden' name='tid_{$data['real_tid']}' id='tid_{$data['real_tid']}' /><a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="forum_toggle_tid('{$data['real_tid']}'); return false;"><img name="img{$data['real_tid']}" id='ipb-topic-{$data['real_tid']}' src="{$this->ipsclass->vars['img_url']}/topic_selected.gif" alt='' /></a></td>
    </if>
    <if="$this->ipsclass->member['is_mod'] == 1 and $inforum == 1 and $data['tidon'] == 0">
    <td align="center" class="$class1"><input type='hidden' name='tid_{$data['real_tid']}' id='tid_{$data['real_tid']}' /><a href="#" title="{$this->ipsclass->lang['click_for_mod']}" onclick="forum_toggle_tid('{$data['real_tid']}'); return false;"><img name="img{$data['real_tid']}" id='ipb-topic-{$data['real_tid']}' src="{$this->ipsclass->vars['img_url']}/topic_unselected.gif" alt='' /></a></td>
    </if>
    </tr>
    <!-- End Topic Entry {$data['tid']} -->

    Nie widzę..

  3. Witam,

    wgrałem sobie modyfikacje Referal System i użyłem trzech sposobów na polecenie i tak:

    1: Link - nie został dodany pkt

    2: Gmail po probie zalogowania się na konto gmail wyskakuje error

    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 86
    
    Warning: curl_setopt() [function.curl-setopt]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/a2mir102/:/tmp:/usr/local/lib/php/) in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 101
    
    Warning: curl_setopt() [function.curl-setopt]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/a2mir102/:/tmp:/usr/local/lib/php/) in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 102
    
    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 117
    
    Warning: curl_setopt() [function.curl-setopt]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/a2mir102/:/tmp:/usr/local/lib/php/) in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 122
    
    Warning: curl_setopt() [function.curl-setopt]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/a2mir102/:/tmp:/usr/local/lib/php/) in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 123
    
    Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 140
    
    Warning: curl_setopt() [function.curl-setopt]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/a2mir102/:/tmp:/usr/local/lib/php/) in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 143
    
    Warning: curl_setopt() [function.curl-setopt]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/a2mir102/:/tmp:/usr/local/lib/php/) in /home/a2mir102/domains/muserwer.com.pl/public_html/sources/components_public/utr_classes/utr_gmail.php on line 144

    3: wysłanie na e-mail - nie dochodzi mail.

  4. //-----------------------------------------
    			// Have we read this topic before?
    			//-----------------------------------------
    
    			if ( isset($topic['db_read']) AND $topic['db_read'] )
    			{
    				$last_time = $topic['db_read'];
    			}
    			else if ( $this->db_row['marker_last_cleared'] )
    			{
    				$last_time = $this->db_row['marker_last_cleared'];
    			}
    			else
    			{
    				# $last_time_default is used because we don't have db tracking loaded
    				# when we're using search
    				$last_time = $last_time_default;
    			}
    		}
    	}
    	if($last_time && ($topic['last_post'] > $last_time))
    	{
    		$topic['title'] = "<b>".$topic['title']."</b>";	
    	}
    	//-----------------------------------------
    	// Not reading from DB or past out tracking limit
    	// At this point: last_vist =
    	// last_visit > board_marked ? last_visit : board_marked
    	//-----------------------------------------
    
    	if ( ! $last_time )
    	{
    		$last_time = $this->read_array[ $topic['tid'] ] > $this->ipsclass->input['last_visit'] ? $this->read_array[ $topic['tid'] ] : $this->ipsclass->input['last_visit'];
    
    		if ( $this->ipsclass->forum_read[ $topic['forum_id'] ] > $last_time )
    		{
    			$last_time = $this->ipsclass->forum_read[ $topic['forum_id'] ];
    		}
    	}

×
×
  • 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ę.