У Вас в настройках PHP register_globals=ON? какеры идут к Вам!!!

Файловый Архив

  • Неограниченное количество категорий и суб-категорий
  • Настройки прав доступа по группам
  • Настройки прав доступа по каждой категории
  • Предпросмотр медиа файлов: FLV, IFLV, F4A, F4V, MP4, MP3, MOV и других...
  • Мультизагрузка файлов - SWFUploader
  • Добавление файлов с сервера
Подробности и история обновлений продукта в этой теме
Loading

Go Back   форум vBSupport.org > >
Register Изображения Меню vBsupport Files Manager Аллея Звёзд Реклама на форуме Search Today's Posts Mark Forums Read
  • Мемберка
  • Администраторам
  • Premoderation
  • For English speaking users
  • Изменения в правах
  • Каталог Фрилансеров
Пароли на скачивание файлов в Member Area меняются автоматически каждый день
Если вам нужно скачать какой то скрипт, за паролем ко мне в ЛС
привет какирам kerk
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Не можете скачать вложение?
Изменения в правах групп пользователей
внимательно читаем эту и эту темы
Короткая версия - тут
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

 
 
Первый пост
Old  
itdevil
Знаток
 
itdevil's Avatar
Default 0

Quote:
Originally Posted by КотЪ
That's because YOU ARE "user awaiting e-mail confirmations".
but i have confirmed email long ago... i had no problem downloading attachment before today...

how can i get new confirmation email... can you please guide me further... Thank you
 
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
Old  
zCarot
zМарковь
Хочет третью строчку =)
 
zCarot's Avatar
Default 0

itdevil
http://vbsupport.org/forum/register.php?do=requestemail
 
Old  
budja
Гость
Default

I need this new version, vBSeo mod rewrite

http://www.vbulletin.org/forum/showt...hlight=rewrite
 
Old  
Igrikk
Простоузер
Default 0

So need this file
http://www.vbulletin.org/forum/attac...chmentid=39640
 
Old  
kerk
k0t
 
kerk's Avatar
Default 1

bitfield_vbaffiliates.xml
Attached Files
File Type: xml bitfield_vbaffiliates.xml (733 Bytes, 13 views)
 
Old  
r4z0r
Простоузер
Default FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php 0

FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php

http://www.vbulletin.org/forum/showt...hreadid=105008

plz
 
Old  
КотЪ
Администратор
Неадекватный
 
КотЪ's Avatar
Default 3

Quote:
Originally Posted by r4z0r
FPS_EXTERNAL.PHP -- New options added & RSS compliant version of external.php

http://www.vbulletin.org/forum/showt...hreadid=105008

plz
Attached Files
File Type: zip cinvin_fps_external.zip (6.6 KB, 127 views)
 
Old  
Milad
Продвинутый
 
Milad's Avatar
Default 0

two pages request:

[How-To] vBulletin API Basics: Creating Custom Pages & Misc.
http://www.vbulletin.org/forum/print...t=98009&pp=100

[HowTo] Create Custom Usergroup Permissions
http://www.vbulletin.org/forum/print...t=82844&pp=100

Thanks in advance

Milad добавил 01-11-2006 в 10:16 AM
I found the second by search vbsupport.org using google, it's valuable more than vbulletin search engine.

Last edited by Milad : 01-11-2006 at 11:16 AM. Reason: Добавлено сообщение
 
Old  
Developer
Знаток
Default 3

Quote:
Originally Posted by Milad
two pages request:

[How-To] vBulletin API Basics: Creating Custom Pages & Misc.
http://www.vbulletin.org/forum/print...t=98009&pp=100

[HowTo] Create Custom Usergroup Permissions
http://www.vbulletin.org/forum/print...t=82844&pp=100

Thanks in advance

Milad добавил 01-11-2006 в 10:16 AM
I found the second by search vbsupport.org using google, it's valuable more than vbulletin search engine.
Quote:
Originally Posted by Andreas
Usergoup Permissions are being controlled through XML files, you don't have to edit usergroup.php anymore

To create your own usergroup permissions, the first thing to do is to modify table usergroup (keep table prefixes in mind!):

[sql]ALTER TABLE usergroup ADD myhackpermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL ;[/sql]

If your hack does need some integer settings as well (and not just On/Off-Options):

[sql]ALTER TABLE usergroup ADD myhackintset INT( 10 ) DEFAULT '100' NOT NULL ;[/sql]

Then you must create a an XML-File bitfield_myhack.xml and place it in includes/xml:

HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<bitfields product="vbulletin">
	<bitfielddefs>
		<group name="ugp">
			<group name="myhackpermissions">
				<bitfield name="canfoo" group="my_hack_permissions"  phrase="can_foo_forum" install="1,2,3,4,5,6,7">1</bitfield>
				<bitfield name="canbaa" group="my_hack_permissions"  phrase="can_baa_forum" install="">2</bitfield>
				<bitfield intperm="true" name="myhackintset" group="my_hack_permissions"  phrase="myhack_int_desc"></bitfield>
			</group>
		</group>
	</bitfielddefs>
</bitfields>
As you can see, you must create a new permission group below group ugp (short for usergroup permissions).

Parameter product of Tag bitfields should be the identifier of your Product

Paramater name of Tag group must match the column name in table usergroup.

The Parameters for Tag bitfield are:
  • name is the identifier you can use in your hack code (eg. $permissions['myhackpermissions'] & $vbulletin->bf_ugp['myhackpermissions']['canfoo'])
    In case of integer options this name must match the column name in table usergroup.
  • intperm indicates that this Option is a integer value
  • group is the varname for the Phrase that should be displayed as Permission Group Title.
    This is also being used to set up different Groups for your permissions.
  • phrase is the varname of the Phrase that should be displayed for this option in Usergroup Manager
  • install is a comma-separated list of the usergroups where this permission should be visible
    If this parameter is empty or omitted, this Option will be used for all Usergroups

The value of <bitfield> is the decimal value of the bit (eg. 1 for the first, 2 for the second, 4 for the third, and so on).
In case of an Integer Option this is the default value.

If you want to hide certain permission groups for some usergroups, for example from Guests as they don't make sense for them:

HTML Code:
<ignoregroups>
        <group name="myhackpermissions" ignoregroups="1" />
</ignoregroups>
Parameter name is the name of the permission group you want to hide, ignoregroups is a comma seperated list of usergoup IDs where this permission group should not show up.
Place this section below the <bitfielddefs>-Section.

Now create the necessary phrases (in Phrasegroup Permissions) at this point.

As vBulletin caches Bitfields in Datastore, you must rebuild this cache before the new usergroup permissions can be actually used (They will already show up in Usergroup Manager, but cannot be saved - you will get an error).
To do so, point your browser to admincp/index.php?do=buildbitfields.

You can also use the following Code (in a Custom Installer or Install-Code of a Product) to update the Bitfield Cache:
PHP Code:
// Rebuild Bitfields
require_once(DIR '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($db);
build_forum_permissions(); 
If you install/upgrade vBulletin and custom bitfield_xxx.xml files are already in place, they will be used - you don't have to update the Bitfield Cache in this case.

This How-To is (C) 2005 by KirbyDE and you are not allowed to redistribute it in any way without my explicit consent.
Quote:
Originally Posted by Psionic Vision
Ever wanted to create your own vBulletin-powered page but didn't know how? With this [How-To], you can.

NOTE: This is a vBulletin 3.5 version of Gary King's Manual, updated and expanded.

NOTE TO CODERS: THIS TUTORIAL CONTAINS MOST UP TO DATE INFORMATION IN THE WHOLE THREAD. IF ANY FURTHER POSTS BY 3RD PARTIES (INCLUDING OTHER CODERS) CONTAIN ANY INFORMATION THAT COMES INTO A CONFLICT WITH ANYTHING SAID IN THIS TUTORIAL, IT CAN BE CONSIDERED FALSE, UNLESS I VERIFY IT.

BASICS

Creating a custom vBulletin-Powered Script
  1. Create a new file, whatever you want to call it (let's say test.php).
    Open up the newly created file and fill in the following code:

    PHP Code:
    <?php

    // ######################## SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);

    // ##################### DEFINE IMPORTANT CONSTANTS #######################
    // change the line below to the actual filename without ".php" extention.
    // the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation.

    define('THIS_SCRIPT''test'); 

    // #################### 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(
            
    // change the lines below to the list of actual templates used in the script
            
    'test_mytesttemplate1',
            
    'test_mytesttemplate22',
    );

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

    // ########################## REQUIRE BACK-END ############################
    require_once('./global.php');

    // #################### HARD CODE JAVASCRIPT PATHS ########################
    $headinclude str_replace('clientscript'$vbulletin->options['bburl'] . '/clientscript'$headinclude);

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

    $navbits = array(); 
    // change the line below to contain whatever you want to show in the navbar (title of your custom page)
    $navbits[$parent] = 'Test Page';

    $navbits construct_navbits($navbits);
    eval(
    '$navbar = "' fetch_template('navbar') . '";');

    // change the line below to contain the name of the actual main output template used in your script
    eval('print_output("' fetch_template('test_mytesttemplate1') . '");');

    ?>
  2. Read through the code above and change what's commented with "// change this...".
  3. $navbits, just as any other array, can contain an unlimited of items. Note that in $navbits, array key serves an URL (in this case, pre-defined variable $parent contains an URL to the current script itself), and array value is what will actually be displayed as a link in your HTML output.

    Another example:
    PHP Code:
    $navbits['somepage.php'] = 'Sometitle';
    $navbits['somepage2.php'] = 'Sometitle2';

    $navbits construct_navbits($navbits);
    eval(
    '$navbar = "' fetch_template('navbar') . '";'); 
    The above is going to result in "Sometitle" serving as a link to "somepage.php", followed by "Sometitle2" serving as a link to "somepage2.php".
  4. Create template test_mytesttemplate1. Paste in the following content:

    HTML Code:
    $stylevar[htmldoctype]
    <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
    <head>
    $headinclude
    <title>$vboptions[bbtitle]</title>
    </head>
    <body>
    
    $header
    $navbar
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" 
    
    align="center">
    <tr>
    <td class="tcat">My Custom Page Title</td>
    </tr>
    <tr>
    <td class="alt1">Other Bluff...</td>
    </tr>
    </table>
    
    $footer
    </body>
    </html>

You are done!

Note that template names are prefixed with test_. Prefixing is a good practive, as it makes it easier to manage the mass later on. This applies not only to templates, but also to custom phrases and options.

On to the next section:

Adding Custom Online Locations

If you want Who's Online to reflect your new custom page when someone is browsing it (rather than Unknown Location), do the following steps:
  1. Open AdminCP.
  2. Plugin System -> Add New Plugin
  3. Fill in the following:

    Code:
    Product: vBulletin
    Hook Location: online_location_process
    Title: My Custom Location (Part1)
    Plugin PHP Code: if ($filename == 'test.php')
    {
            $userinfo['activity'] = 'test';
    }
    Plugin is Active: Yes
  4. Click Save.
  5. Plugin System -> Add New Plugin
  6. Fill in the following:

    Code:
    Product: vBulletin
    Hook Location: online_location_unknown
    Title: My Custom Location (Part2)
    Plugin PHP Code: if ($userinfo['activity'] == 'test')
    {
            $userinfo['action'] = 'Viewing Test Page'; // you might wanna use a $vbphrase here...
            $userinfo['where'] = '<a href="./test.php?' . $vbulletin->session->vars['sessionurl'] . '">This is My Test Page</a>'; // you might wanna use a $vbphrase here...
            $handled = true;
    }
    Plugin is Active: Yes
  7. In each of the above two, make sure to change "test" values to your own.
  8. Note that $userinfo['where'] is optional. It can be controlled with a usergroup permission "can view detailed location".

You are done!

Using vBulletin-powered scripts outside vBulletin Directory

REPLACE

PHP Code:
require_once('./global.php'); 
WITH

PHP Code:
chdir('/home/site/public_html/forums');
require_once(
'./global.php'); 
Where "/home/site/public_html/forums" must be replaced with an actual system path to your forums.
Also, make sure you add the following code in the beginning of any relative links:

Code:
$vbulletin->options['homeurl']
Creating "Subpages"

If you want to create "subpages" within your custom page, simply wrap blocks of code with the following structure:

PHP Code:
if ($_REQUEST['do'] == 'test'

    
// Block of code #1
}

if (
$_REQUEST['do'] == 'test2'

    
// Block of code #2

Limiting Access to the Script

Registered Members Only

UNDER

PHP Code:
require_once('./global.php'); 
ADD

PHP Code:
if (!$vbulletin->userinfo['userid'])
{
        
print_no_permission();

Certain Usergroups Only (In this example, 6 and 7)

PHP Code:
if (!is_member_of($vbulletin->userinfo6) AND !is_member_of($vbulletin->userinfo7))
{
        
print_no_permission();

You can also use the limits in your vBulletin templates. Here are to examples that you can use (but you are not limited to using them, so utilize your imagination):

HTML Code:
<if condition="is_member_of($bbuserinfo, 6)">
If in group 6, show this...
<else />
...or else, show this.
</if>
HTML Code:
<if condition="!$bbuserinfo['userid']">
Shown to registered members only.
<else />
Shown to everyone else.
</if>
ADVANCED CODING
Do not read below unless you have a basic knowledge of PHP and a general idea of what is it that you are doing.

vBulletin Phrase Replacements

As you might now, vBulletin supports phrase replacement. In other words, if your phrase (in this example, "testphrase") contains the following text,

Code:
The user {1} has written {2} posts.
What's it for? Well, if you use the following PHP code, you get "The user testuser has written 10 posts" in $testvar:

PHP Code:
$testvar construct_phrase($vbphrase['testphrase'], "testuser""10"
You can use as many replacement as you want in the construct_phrase() function. 1st replacement corresponds to {1}, 2nd - to {2}, Nth - to {N}... You can also use these replacements in templates, with a slightly different syntax:

HTML Code:
<phrase 1="testuser" 2="10">{$vbphrase['testphrase']}</phrase>
Using Variables in Templates

To use variables in templates, follow these rules:
  • "Regular" Variables ($somevar, $somevar2, etc).
    Use anywhere within template text.
  • "Array-Type" Variables ($somevar['someval'], etc).
    Avoid using single quotes, otherwise you get a parse error. In other words, use $somevar[someval] instead of $somevar['someval'].
  • "Object-Type" Variables ($vbulletin->GPC['somevar']).
    Do use single quotes, but wrap such variables into figure brackets. One valid example is {$vbulletin->GPC['somevar']}.
    If you attempt using $vbulletin->GPC['somevar'] or $vbulletin->GPC[somevar], you will get an error.

Warning: As a security measure, avoid using arrays $_POST[], $_GET[], $_REQUEST etc., in your templates - even though you may if you really need to.

Using Conditionals in Templates

vBulletin 3.0.0 and up features templates conditionals. Example:

HTML Code:
<if condition="$somevar">
        htmlcode
<else />
        other html code
</if>
In conditionals (the part highlighted in blue), and ONLY in conditionals, you should use the regular PHP variable-naming syntax (disregarding what's said in "Using Variables in Templates" part of this tutorial). Just put in whatever you would normally put into the if() clause.

Notably, vBulletin does not feature an "else if" clause within its templates system. Therefore if you need more than one conditional, you can nest them. Example:

HTML Code:
<if condition="$condition1">
        htmlcode
<else />
        <if condition="$condition2">
                more html code
        </if>
</if>
You can nest any number of conditional clauses, as long as the code is valid.

Valid vBulletin URL Formation
  • Every URL to a vBulletin page within the same site must contains a sessionurl.
    Note: You do not need to add an ampersand (&) after the sessionurl.

    In PHP Code, an example of a valid URL would be:

    PHP Code:
    $url "mytestpage.php?" $vbulletin->session->vars['sessionurl'] . "moreGETstring"
    In templates, you can use $session[sessionurl] instead. E.g.:

    HTML Code:
    mytest.php?$session[sessionurl]moreGETstring
  • If you pass more than one parameter using $_GET, use &amp; instead of just &.
    This way you will preserve valid XHTML code.

Creating Custom Standard Error Messages

Read very carefully. To show standard error messages, you must:
  1. Create a phrase in Front-End Error Messages, prefixed with "error_". The prefix is mandatory.
  2. Use the following PHP code in your manual:

    PHP Code:
    eval(standard_error(fetch_error('error_myphrase'))); 
    Be sure to change "error_myphrase" to your actual phrase (again, the real phrase must be prefixed with "error_").

Creating Redirects

To create a redirect you must:
  1. Make sure there is no output before the redirect, otherwise it might not work correctly.
  2. Define redirect URL using the following PHP code:

    PHP Code:
    $vbulletin->url "mytestpage.php?" $vbulletin->session->vars['sessionurl'] ."somevar=someval"
  3. Do not forget to replace "mytestpage.php" with an actual filename.
  4. Make sure to leave $vbulletin->session->vars['sessionurl'] part intact, otherwise the page might not work correctly.
  5. Make sure to replace "somevar=someval" with any variables and their respective values that you want to pass to the next script via $_GET array.

Once you are done with that:
  1. Create a phrase in "Front-End Redirect Messages" group. Must be prefixed with "redirect_".
  2. Add the following code where you want to activate the redirect:

    PHP Code:
    eval(print_standard_redirect('redirect_myphrase'truetrue)); 
  3. Be sure to replace "redirect_myphrase" with an actual phrase name.
  4. Be sure that you end up having a "redirect_" prefix.

Done!

>> END OF MANUAL
 
Old  
thanatos
Простоузер
Default 0

КотЪ, you forgot to upload the .txt or paste the code of this post > http://www.vbsupport.org/forum/showp...&postcount=387

Request:
Ultra Itemshop
http://www.vbulletin.org/forum/showthread.php?t=100344
 
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 12:35 PM.


Powered by vBulletin® Version 3.0.3
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.