ForumNeuro


Geri Git   ForumNeuro > Bilgisayar Dünyası > Webmaster
Kayıt S.S.S Üye Listesi Ajanda Konuları Okundu İşaretle

Webmaster Web Dizayn ve Webmasterlarla ilgili herşey burada...


Yanıtla
 
Forum Araçları Görüntüleme Biçimleri
Eski 04-12-2005, 11:39   #1 (permalink)
mdmx
Etkisiz Üye
 
Giriş Tarihi: 02-10-2005
Konum: Rusya
Mesajlar: 33
Rep Gücü: 4
Rep Puanı : 28
mdmx Yavaş ama emin adımlarla geliyorum
Varsayılan vBulletin'de Özel Sayfa Oluşturmak

Güzel bir vbulletin hacki.. Kullanışlı. footer ve header'ın arasına istediğiniz içeriği koyabiliyorsunuz. Configuration'ı ben türkçeleştirdim. Umarım işinize yarar. Bu uygulamayı forumneuro resim upload bölümünde kullanılabilir aslında. Bunun gibi birçok yerde yada. Kullanıcı grup numaralarını kendi forumunuza göre ayarlamanız lazım. Kolay gelsin. (Daha çok bilgi almak istiyorsanız sorabilirsiniz.)

PHP Kodu:
<?php

// ########################################################################
// ####################### START CONFIGURATION ############################

// ########################################################################

// Sayfayı görecek kullanıcı gruplarının numaraları (1=üye olmamış giriş yapmamış üye, 6=administrator, 7=moderator, 2=normal üye, 5=süper moderator (yönetici))
define('UGS','6,7,2,5,1');

// vBulletin'in kurulu dizini
define('FWD','d:/phpdev/www/mdmx.web/forum');

// vBulletin'in sürümü sadece 3.0.7 veya 3.5.0 olabilir (370 & 350)
define('VBN','350');

// Bu dosyanın ismi *.PHP (Nokta olmadan. Örneğin dosyanın ismi portal.php = portal)
define('THIS_SCRIPT','site');

// ########################################################################

// ######################## END CONFIGURATION #############################
// ########################################################################

// ####################### SET PHP ENVIRONMENT ############################

// report all errors except notice level errors
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS ########################

// deglobalize variables in vB < 350 - vB 350 does deglobalize
if (VBN != '350')
{
define('NO_REGISTER_GLOBALS'1);
}

// ################### PRE-CACHE TEMPLATES AND DATA #######################

// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
'header',
'headinclude',
'navbar',
'footer'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END #############################
// #######################   www.netkabus.com  ############################
// define current directory
define('BWD', (($getcwd getcwd()) ? $getcwd '.'));

chdir(FWD);
require_once(
'./global.php');
chdir(BWD);

// ########################################################################
// ######################## START MAIN SCRIPT #############################

// ########################################################################

// ######################## SET SOME VARIABLES ############################

if (VBN == '350')
{
// to make compatible with vB 307 code - TMTOWTDI !
$vboptions['homeurl'] = $vbulletin->options['homeurl'];
$vboptions['bburl'] = $vbulletin->options['bburl'];
$vboptions['bbtitle'] = $vbulletin->options['bbtitle'];
$vboptions['forumhome'] = $vbulletin->options['forumhome'];
$vboptions['contactuslink'] = $vbulletin->options['contactuslink'];
$bbuserinfo['userid'] = $vbulletin->userinfo['userid'];
$bbuserinfo['usergroupid'] = $vbulletin->userinfo['usergroupid'];
$bbuserinfo['username'] = $vbulletin->userinfo['username'];
$bbuserinfo['email'] = $vbulletin->userinfo['email'];
$session['sessionurl'] = $vbulletin->session->vars['sessionurl'];
$session['sessionhash'] = $vbulletin->session->vars['sessionhash'];
// and so forth ...
}

$src_input = array(
'url(',
'var IMGDIR_MISC = "',
'href="',
'src="',
'action="'
);
$src_output '';
$src_link $vboptions['bburl'];

$user_groups explode(",",ereg_replace("[[:space:]]+","",UGS));
$usergroup_id $bbuserinfo['usergroupid'];

// #################### CHECK USERGROUP FOR ACCESS ########################


if (!in_array($usergroup_id,$user_groups))
// LOGIN PAGE
$show['permission_error'] = true;
eval(
'$src_output = "' fetch_template('STANDARD_ERROR') . '";');
}
else
// CONTENT PAGE
eval('$navbar = "' fetch_template('navbar') . '";');
// here you can set $src_output to a custom template like follows
// eval('$src_output = "' . fetch_template('CUSTOM_TEMPLATE') . '";');
// for this example script $src_output is set from make_page_content
// make sure not to set $src_output to something like config.php - duh
$src_output make_page_content();
}
make_absolute_links($src_input,$src_output,$src_link); // prints page

// ########################################################################

// ######################### END MAIN SCRIPT ##############################
// ########################################################################

// ######################## START MAKEPAGECONTENT #########################


function make_page_content()
{
// this is an example page that could be set in a custom template instead
global $stylevar,$headinclude,$vboptions,$onload,$header,$navbar,$vbphrase,$bbuserinfo,$footer;
$src_output = <<<END
$stylevar[htmldoctype]
<html dir="$stylevar
[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions
[bbtitle]</title>
</head>
<body onload="$onload">

$header
$navbar

<table class="tborder" cellpadding="$stylevar
[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr><td class="tcat"><strong>Burada başlık</strong></td></tr>
<tr><td class="alt2">Burada içerik (İsterseniz bu table'ı silebilirsiniz.)
</td></tr>
</table>

$footer
</body>
</html>
END;
return 
$src_output;
}

// ####################### START MAKEABSOLUTELINKS ########################
function make_absolute_links($src_input,$src_output,$src_link)
{
$src_output_arr explode("\n",$src_output);
foreach (
$src_output_arr as $sopa_key => $sopa_value)
{
 for (
$i=0$i<count($src_input); $i++)
 {
  if (
eregi("(.*)(".preg_quote($src_input[$i]).")(.*)",$sopa_value,$sopa_regs))
  {
   if (!
eregi("^(javascript:|mailto:|ftp:|news:|http[s]?:)",$sopa_regs[3]))
   {
    
$sopa_value $sopa_regs[1].$sopa_regs[2].$src_link."/".$sopa_regs[3];
   }
  }
 }
 echo 
$sopa_value."\n";
}
exit();
}
// ####################### By mDmx ########################
?>
__________________
POWERED BY FLUORESCENCED
mdmx is offline   Alıntı Yaparak Cevapla
Yanıtla


Forum Araçları
Görüntüleme Biçimleri

Gönderme Kuralları
Yeni konular açabilirsiniz --> izin yok
Yanıtlar gönderebilirsiniz --> izin yok
Eklentiler gönderebilirsiniz --> izin yok
Mesajlarınızı düzenleyebilirsiniz --> izin yok

vB koduAçık
SimgelerAçık
[IMG] kodu Açık
HTML kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı


Saat 05:04.

Porno

Powered by vB 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by 3.0.0
Tercüme Eden: ReSSaM

Reklam Vermek için ressam@gmail.com Adresine e-mail gönderiniz

For Advertising contact ressam@gmail.com




Forum
haber dizi izle dizi
1 2 4 5 6 7 8 10 11 12 13 14 15 16 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 44 45 46 47 48 50 51 52 53 54 59 66 70 77 78 83 84 85 86 87 88 89 90 91 92 94 99 100 101 102 103 104 105 106 107 108 109 110 111 113 114 115 116 119 120 124 125 126 127 128 130 131 132 133 134 135 136 137 138 140 141 143 144 145 146 147 148 149 150 151 152 153 154 159 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 240 249 250 251 253 256 257 260 267 268 269 270 272 273 274 275 277 278 279 280 281 283 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 306 307 309 310 312 313 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 346 347 348 349 351 352 353 354 356 357 358 359 360 361 362 363 364 365 366 367 369 370 371 372 373 374 402 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489