Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2009, 02:40 AM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default VBulletin code is required for guests to see what is it?

Hi,

vBulletin these codes
PHP Code:
error_reporting(E_ALL & ~E_NOTICE);
require_once(
'./global.php'); 

I'm just used to run them
PHP Code:
$field_alani $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no $vbulletin->input->clean_gpc('p''tc_no'TYPE_NOHTML);

$tc_no_sorgula $db->query_read("SELECT * FROM " TABLE_PREFIX "userfield WHERE $field_alani LIKE '$tc_no'"); 


My special number codes on them all
PHP Code:
error_reporting(E_ALL & ~E_NOTICE);

require_once(
'./global.php');

$field_alani $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no $vbulletin->input->clean_gpc('p''tc_no'TYPE_NOHTML);

$tc_no_sorgula $db->query_read("SELECT * FROM " TABLE_PREFIX "userfield WHERE $field_alani LIKE '$tc_no'");    

if(
mysql_num_rows($tc_no_sorgula))
{
echo 
'No';

}
else
{
echo 
'OK';

The problem that:
Note: My Forum
Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: No
Guests are not allowed?
Guests are allowed to give the code for what?
What code is required to use vBulletin?



Thanks
Reply With Quote
  #2  
Old 04-01-2009, 08:17 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no clue what you are actually asking, but i do notice that your script is open for SQL-injections because of the use of an uncleaned variable ($tc_no) in your query.
Reply With Quote
  #3  
Old 04-01-2009, 02:30 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you don't want guests to see that page, put this near the top but after including global.php

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

Reply With Quote
  #4  
Old 04-02-2009, 09:31 PM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

(I do not know English'll write a short text, please try to understand)

Let me explain what I am trying to do over.

The number is special to my country of citizenship

Members would like this number during registration

Registered members within

The numbers do control

Example flash video:
Code:
Registered number 11111111111 
 22222222222 number is not registered and can be used.
...forum.com/register.php?do=register
http://vbulletin.ardeseni.com/yeni_sayfa_3.htm
Jquery code
Code:
        $.ajax({  
        type: "POST",  
        url: "number_control.php",  
        data: "tc_no="+ usr,  
        success: function(msg){
number_control.php
Code:
error_reporting(E_ALL & ~E_NOTICE);

require_once('./global.php');

$field_alani = $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no = $vbulletin->input->clean_gpc('p', 'tc_no', TYPE_NOHTML);

$tc_no_sorgula = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "userfield WHERE $field_alani LIKE '$tc_no'");    

if(mysql_num_rows($tc_no_sorgula))
{
echo 'No';

}
else
{
echo 'OK';
}
Now these problems:

My Forum
Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: Yes, In this case, no problem at all running



Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: No, In this case, numbers can not be controlBecause, Visitors can not access this file number_control.php
In this case visitors want to run this file

Note: tc_no number name name of input field

I hope I could tell

Thanks




Reply With Quote
  #5  
Old 04-02-2009, 10:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, but I just don't understand the question. I think you are saying you are having problems with visitors because the query won't work for them (since there is no userfield table for a visitor).
Reply With Quote
  #6  
Old 04-02-2009, 10:43 PM
ragtek ragtek is offline
 
Join Date: Mar 2006
Location: austria, croatia
Posts: 1,630
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi.

Try it here: http://www.vbulletin-turkey.com/ or maybe hasann could translate it for us^^

Its realy hard to help you if we cant understand you.
Reply With Quote
  #7  
Old 04-03-2009, 01:10 AM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My Forum
Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: Yes, In this case, no problem at all running
See: http://vbulletin.ardeseni.com/yeni_sayfa_3.htm



Admincp>>Usersgroups>>Usergroup Manager>>Guest Usergroup>>Forum Viewing Permissions>>Can View Forum: No, In this case, numbers can not be controlBecause, Visitors can not access this file number_control.php
In this case visitors want to run this file
See: http://vbulletin.ardeseni.com/yeni_sayfa_2.htm


Guests can work the code on this page.
Required to work for?

number_control.php
PHP Code:
error_reporting(E_ALL & ~E_NOTICE);

require_once(
'./global.php');

$field_alani $vbulletin->options['tc_kimlik_no_kontrolu_field'];

$tc_no $vbulletin->input->clean_gpc('p''tc_no'TYPE_NOHTML);

$tc_no_sorgula $db->query_read("SELECT * FROM " TABLE_PREFIX "userfield WHERE $field_alani LIKE '$tc_no'");    

if(
mysql_num_rows($tc_no_sorgula))
{
echo 
'No';

}
else
{
echo 
'OK';

Reply With Quote
  #8  
Old 04-03-2009, 09:20 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you plese PM the license-id used for ardeseni.com, as i can not locate a valid license for this site.
Reply With Quote
  #9  
Old 04-03-2009, 10:12 AM
Adem GEN?'s Avatar
Adem GEN? Adem GEN? is offline
 
Join Date: Apr 2005
Location: İstanbul / T?rkiye
Posts: 377
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have two licenses.
See sample video web site that is ardeseni.com.
ardeseni.com do not use vBulletin forums
guide me how to use information only about ardeseni.com vBulletin am
PM I sent
Reply With Quote
  #10  
Old 04-03-2009, 11:15 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the verification.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06268 seconds
  • Memory Usage 2,277KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete