Kendi sayfamızı nasıl oluştururuz? /index.php?action=sayfa gibi

Started by Elmacik, December 07, 2005, 07:45:59 PM

Previous topic - Next topic

robenn

Aldığım hata:

Fatal error: Call to undefined function: show_topofpageads() in /home/pcwebtur/public_html/forum/Sources/Load.php(1707) : eval()'d code on line 183

Eklediğim kodlar:

<?php

$ssi_layers 
= array('main');
$ssi_theme '4'// Buraya, radyo sayfasi görüntülenirken kullanilmasini istediginiz temanin sizin sitenizde kurulum sira numarasini yazacaksiniz. Örnegin varsayilan tema için 1 girebilirsiniz.

include("/home/pcwebtur/public_html/forum/SSI.php"); // Buraya da forumun dosya yolunu yazin. Yönetim panelindeki Temalar ve Görünüm bilgilerinden forumun dosya yolunu ögrenebilirsiniz.

ssi_recentTopics();
/* Yukariya koydugumuz kodlarin içinde tek tirnak isareti ( ' ) varsa, önlerine mutlaka ters bölü ( \ ) koyuyoruz.
Yoksa PHP hatasi aliyoruz - Template Parse Error. */

ssi_shutdown();

?>



Hatada bahsedilen Load.php'nin 178. satırdan başlayan ve devam eden kodları:
// Set a list of common functions.
$ent_list = empty($modSettings['disableEntityCheck']) ? '&(#\d{1,7}|quot|amp|lt|gt|nbsp);' : '&(#021|quot|amp|lt|gt|nbsp);';
$ent_check = empty($modSettings['disableEntityCheck']) ? array('preg_replace(\'~(&#(\d{1,7}|x[0-9a-fA-F]{1,6});)~e\', \'$func[\\\'entity_fix\\\'](\\\'\\2\\\')\', ', ')') : array('', '');

$func = array(
(183. Satır burası)'entity_fix' => create_function('$string', '
$num = substr($string, 0, 1) === \'x\' ? hexdec(substr($string, 1)) : (int) $string;
return $num < 0x20 || $num > 0x10FFFF || ($num >= 0xD800 && $num <= 0xDFFF) ? \'\' : \'&#\' . $num . \';\';'),
'substr' => create_function('$string, $start, $length = null', '
global $func;
$ent_arr = preg_split(\'~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|&quot;|&amp;|&lt;|&gt;|&nbsp;|.)~' . ($utf8 ? 'u' : '') . '\', ' . implode('$string', $ent_check) . ', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
return $length === null ? implode(\'\', array_slice($ent_arr, $start)) : implode(\'\', array_slice($ent_arr, $start, $length));'),
'strlen' => create_function('$string', '
global $func;
return strlen(preg_replace(\'~' . $ent_list . ($utf8 ? '|.~u' : '~') . '\', \'_\', ' . implode('$string', $ent_check) . '));'),
'strpos' => create_function('$haystack, $needle, $offset = 0', '
global $func;
$haystack_arr = preg_split(\'~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|&quot;|&amp;|&lt;|&gt;|&nbsp;|.)~' . ($utf8 ? 'u' : '') . '\', ' . implode('$haystack', $ent_check) . ', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$haystack_size = count($haystack_arr);
if (strlen($needle) === 1)
{
$result = array_search($needle, array_slice($haystack_arr, $offset));
return is_int($result) ? $result + $offset : false;
}
else
{
$needle_arr = preg_split(\'~(&#' . (empty($modSettings['disableEntityCheck']) ? '\d{1,7}' : '021') . ';|&quot;|&amp;|&lt;|&gt;|&nbsp;|.)~' . ($utf8 ? 'u' : '') . '\',  ' . implode('$needle', $ent_check) . ', -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
$needle_size = count($needle_arr);

$result = array_search($needle_arr[0], array_slice($haystack_arr, $offset));
while (is_int($result))
{
$offset += $result;
if (array_slice($haystack_arr, $offset, $needle_size) === $needle_arr)
return $offset;
$result = array_search($needle_arr[0], array_slice($haystack_arr, ++$offset));
}
return false;
}'),
'htmlspecialchars' => create_function('$string, $quote_style = ENT_COMPAT, $charset = \'ISO-8859-1\'', '
global $func;
return ' . strtr($ent_check[0], array('&' => '&amp;'))  . 'htmlspecialchars($string, $quote_style, ' . ($utf8 ? '\'UTF-8\'' : '$charset') . ')' . $ent_check[1] . ';'),
'htmltrim' => create_function('$string', '
global $func;
return preg_replace(\'~^([ \t\n\r\x0B\x00' . ($utf8 ? '\x{C2A0}' : '\xA0') . ($utf8 && @version_compare(PHP_VERSION, '5.1.0') != -1 ? '\pZ' : '') . ']|&nbsp;)+|([ \t\n\r\x0B\x00' . ($utf8 ? '\x{C2A0}' : '\xA0') . ($utf8 && @version_compare(PHP_VERSION, '5.1.0') != -1 ? '\pZ' : '') . ']|&nbsp;)+$~' . ($utf8 ? 'u' : '') . '\', \'\', ' . implode('$string', $ent_check) . ');'),
'truncate' => create_function('$string, $length', (empty($modSettings['disableEntityCheck']) ? '
global $func;
$string = ' . implode('$string', $ent_check) . ';' : '') . '
preg_match(\'~^(' . $ent_list . '|.){\' . $func[\'strlen\'](substr($string, 0, $length)) . \'}~'.  ($utf8 ? 'u' : '') . '\', $string, $matches);
$string = $matches[0];
while (strlen($string) > $length)
$string = preg_replace(\'~(' . $ent_list . '|.)$~'.  ($utf8 ? 'u' : '') . '\', \'\', $string);
return $string;'),
'strtolower' => $utf8 ? (function_exists('mb_strtolower') ? create_function('$string', '
return mb_strtolower($string, \'UTF-8\');') : create_function('$string', '
global $sourcedir;
require_once($sourcedir . \'/Subs-Charset.php\');
return utf8_strtolower($string);')) : 'strtolower',
'strtoupper' => $utf8 ? (function_exists('mb_strtoupper') ? create_function('$string', '
return mb_strtoupper($string, \'UTF-8\');') : create_function('$string', '
global $sourcedir;
require_once($sourcedir . \'/Subs-Charset.php\');
return utf8_strtoupper($string);')) : 'strtoupper',
'ucfirst' => $utf8 ? create_function('$string', '
global $func;
return $func[\'strtoupper\']($func[\'substr\']($string, 0, 1)) . $func[\'substr\']($string, 1);') : 'ucfirst',
'ucwords' => $utf8 ? (function_exists('mb_convert_case') ? create_function('$string', '
return mb_convert_case($string, MB_CASE_TITLE, \'UTF-8\');') : create_function('$string', '
global $func;
$words = preg_split(\'~([\s\r\n\t]+)~\', $string, -1, PREG_SPLIT_DELIM_CAPTURE);
for ($i = 0, $n = count($words); $i < $n; $i += 2)
$words[$i] = $func[\'ucfirst\']($words[$i]);
return implode(\'\', $words);')) : 'ucwords',
);


hata nedem kaynaklnıyor olabilir

robenn

Şunu da ekleyim. Forumdaki diğer temalarda sorunsuz çalışıyor ama kullandığım Çöl Ateşinde sorun çıkarıyor.

mk1977

Muhasebe, Vergi, Sosyal Güvenlik ve Ekonomi Portalı
www.Muhasebe-Online.com

SMF 1.1.21 - Classic Tema

HayaTR

Oluşturduğum Sayfanın Title ını Nasıl Değiştirebilirim ?
ELVEDA SMF :/

Elmacik

Dosyanın en başına şunu yazmayı dene;
$context['page_title'] = 'Sayfa Başlığı';
Home of Elmacik

HayaTR

Quote from: Elmacik on July 29, 2007, 10:06:49 AM
Dosyanın en başına şunu yazmayı dene;
$context['page_title'] = 'Sayfa Başlığı';
Teşşekür Ederim Elmacik
ELVEDA SMF :/

hcm_erhan

Quote from: Elmacik on July 29, 2007, 10:06:49 AM
Dosyanın en başına şunu yazmayı dene;
$context['page_title'] = 'Sayfa Başlığı';
Hayy Allah razı olsun be, çok işime yaradı saolasın :)

deejayss

hey gidi günler hey.

oLgan

ben aylardır cevap alamadım yine lazım oldu :) .. sayfa yaptım diyelim o sayfada kaç tane üye var saydırmam lazım bunu nasıl yaptıcam?
P e s i m i s t     z 0 m b i e
http://nerdekalmistik.com

ALpHi

Merhabalar,
Ben Reklam için ayrı bir sayfa oluşturmak istiyorum,forumda baktım,bulamadım,Elmacik yardımcı olur musun?


ALpHi

Kardeşim ben İletişim sayfası koymak istiyorum aynı bunun gibi ;

Yalnız kendi sayfamı nasıl ekleyeceğimi anlamadım :S
Sen radyoya göre anlatmışsın,bir de İletişime göre anlatırsan sevinirim :)

HoT_sOuRcE_

radyoya göre bir durum yok radyo yazan yere iletisim yazarsın olur biter önemli olan kodları koyacağın yer

ayrıca o iletişim sayfasının modu mevcut direk butonunu falan ekliyor ayrı sayfada oluyor

contact page olarak mod sitesinde mevcut türkçesi için arama yap var mı bilmiyorum çünkü kendim çevirmiştim ;)
Ne Mutlu Türk'üm Diyene!!!

Bursa Gazi Anadolu Lisesi İnternet Sitesi ve Forumu
Forumuma Üye Olabilmek İçin Bursa Gazi Anadolu Lisesi Mensubu Olmanız Gerekli!

ALpHi

Kardeşim o linkleri bulup siteye ekler misin lütfen ?
Türkçesini ben bulamadım burada,yardımcı olursan şu kardeşine çok memnun olurum,kandil günü valla ne hora geçer.. :)

nymphe

arkadaşlar alt link nasıl verebilirim yani  index.php?action=iletisim;sa=reklam gibi

kenenn

arkadaşlar ben bi sayfa yapmak istiyorum forumun içinde olacak ne bilim whois bilgileri sorgulama gibi ama 1000 mesajı olamayan üyeler oraya girmiyecek bunu nasıl yapabilirim yardımcı olurmusunuz

kenenn

Quote from: kenenn on October 04, 2007, 06:46:22 PM
arkadaşlar ben bi sayfa yapmak istiyorum forumun içinde olacak ne bilim whois bilgileri sorgulama gibi ama 1000 mesajı olamayan üyeler oraya girmiyecek bunu nasıl yapabilirim yardımcı olurmusunuz

elmacık yardımını bekliyorum

Minare

Bu sayfaya nasıl title veririm , bilen var mı  :)

<?php

function template_main()

{

echo 
'

<iframe src="http://www.minare.net/padisahlar/index.htm" align="center" height="800" width="100%">'
;

/* Yukariya koydugumuz kodlarin içinde tek tirnak isareti ( ' ) varsa, önlerine mutlaka ters bölü ( \ ) koyuyoruz.
Yoksa PHP hatasi aliyoruz - Template Parse Error. */
}

?>


yansima

Yaptim ama asagidaki hatayi veriyor arkadaslar bundan nasil düzeltebilirim tesekükler


Fatal error: smf_main() [function.require]: Failed opening required '/home/siteismi/public_html/forum/Sources/candirfm.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/siteismi/public_html/forum/index.php on line 356



nymphe

arkadaşlar alt link nasıl verebilirim yani  index.php?action=iletisim;sa=reklam gibi

Advertisement: