News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Custom Action Turkce

Started by ghg, March 17, 2007, 04:39:35 PM

Previous topic - Next topic

ghg

Modun Cevabi Mod Sitesine Koymak Istemiyor Nedense :(
QuoteSure. Just attach the Turkish language file to a post in the Turkish boards.

Mod Yapimcisi:winrules
Turkce Ceviri:ghg
Uydugu Surumler:1.1 Ve Sonrasi
Fonksiyon:Siteye Yeni Sayfalar Eklemenizi Saglar.Ornegin Ben Durumum Modu Resimlerini Koydum Html Olarak



Forum Seceneklerinde "Custom Actions" Diye Bir Yazi Cikiyor Normalde.Cikmayanlar



Sources/ModSettings.php
      

Code (ara) Select
function ModifyActionSettings()
{
global $txt, $scripturl, $context, $settings, $sc, $modSettings, $db_prefix;

if (isset($_GET['addaction']))
{
$overwrite_old_settings = false;
$i = $_GET['addaction'];
$mod_settings = array(
'CA' . $i . '_name' => '',
'CA' . $i . '_type' => 'html',
'CA' . $i . '_title' => '',
'CA' . $i . '_code' => '',
);
// Turn the array defined above into a string of MySQL data.
$string = '';
foreach ($mod_settings as $k => $v)
$string .= '
(\'' . $k . '\', \'' . $v . '\'),';

// Sorted out the array defined above - now insert the data!
if ($string != '')
$result = db_query("
" . ($overwrite_old_settings ? 'REPLACE' : 'INSERT IGNORE') . " INTO {$db_prefix}settings
(variable, value)
VALUES" . substr($string, 0, -1),__FILE__,__LINE__);

redirectexit('action=featuresettings;sa=actions');
}
else
{
$config_vars = array();
$i = 1;
while (isset($modSettings['CA' . $i . '_name']))
{
$config_vars[$i*5-5] = array('text', 'CA' . $i . '_name', null, 'Name');
$config_vars[$i*5-4] = array('select', 'CA' . $i . '_type', array('html' => 'HTML', 'php' => 'PHP', 'bbc' => 'BBC',), 'Type');
$config_vars[$i*5-3] = array('text', 'CA' . $i . '_title', null, 'Page Title');
$config_vars[$i*5-2] = array('large_text', 'CA' . $i . '_code', 10, 'Code');
$config_vars[$i*5-1] = '';
$i++;
}
$config_vars[($i-1)*5] = '<a href="' . $scripturl . '?action=featuresettings;sa=actions;addaction=' . $i . '">Add an action</a>';
}
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=actions');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=actions';
$context['settings_title'] = 'Custom Actions';

prepareDBSettingContext($config_vars);
}




Code (Degistir) Select
function ModifyActionSettings()
{
global $sourcedir;
require_once($sourcedir . '/CustomAction.php');
CustomActionSettings();
}


Son Guncelleme:
Bazi Yerler Ingilizce Kalmis

#Serseri



тяƒσяυм¢α.¢σм


By-MaNIaC


Alpay

tşkler kasmicaz artik edit die :D dökümanlardaki başlik iptal olucak artik :P


mgimadu

Eksik çevirilmiş ama olsun, ellerine sağlık dostum
.ıl I love you simplemachines lı.
Forumgil.com - Enter my site.
My Mods        - Enter my Mods.
I wait you SMF 2.0

petr_cech


ghg

Quote from: kilislim on March 17, 2007, 07:39:19 PM
Eksik çevirilmiş ama olsun, ellerine sağlık dostum
neresi eksik ???

mgimadu

Custom Actions > Yeni Sayfa Ekle > Alt sayfa ekle

Sonuç: Sub-Action Settings For "" Action
                         Add a sub-action
                              KAYDET
.ıl I love you simplemachines lı.
Forumgil.com - Enter my site.
My Mods        - Enter my Mods.
I wait you SMF 2.0

ghg

Add a sub-action
bunu hicbiyerde bulamadim nedense :-\

Arbalot

ama var değil mi...

CustomAction.php dosyasında   

$config_vars[] = '<a href="' . $scripturl . '?action=featuresettings;sa=actions;addsub=' . $i . ';parentaction=' . $_GET['sasettings'] . ';sesc=' . $sc . '">Add a sub-action</a>';

ghg

olduunu biliodum ama bulamamistim :D

saolason Arbalot

тяƒσяυм¢α.¢σм

Quote from: ghg on March 17, 2007, 09:24:42 PM
olduunu biliodum ama bulamamistim :D

saolason Arbalot

düzeltmeyi düşünüyormusun :)

ghg


Allopa

Sağlıklı zayıflama, Zayıflama yöntemleri , Hızlı zayıflama, diyet programları

ghg


Arsin

Evet bu gercekten yapmak istediklerimden biriydi.
Teşekkurler.

Alpay

#19
Kardeşler bunu misal index.php?action=abc ama üyelik istmior direkt girior bunu nasıl üyelikli yapicaz ?

El cvp :

Php türü secilir

Kod :

Quoteif ($context['user']['is_guest'])
echo 'Merhaba Ziyaretci bu sayfayi görmek için giriş yapın veya üye olunuz';

if ($context['user']['is_logged'])


frame koycaksanız dvm:

Quote{
echo ' <center><iframe src="http://www.asdasda/index.html" width="900" height="900" scrolling="yes" frameborder="1">Iframe desteklemeyen tarayıcı bu yazıyı görüntüler.</iframe></center>';
}

Advertisement: