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

Reply
 
Thread Tools Display Modes
  #11  
Old 01-19-2005, 01:03 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you added the phrase like the instructions said, it should say
Read Private Messages
In the drop down at the top of the edit user page.
Reply With Quote
  #12  
Old 01-19-2005, 01:05 PM
Thug Thug is offline
 
Join Date: Feb 2004
Location: Sheffield : uk
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i will check
Reply With Quote
  #13  
Old 01-19-2005, 01:05 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WetWired
If you added the phrase like the instructions said, it should say
Read Private Messages
In the drop down at the top of the edit user page.
unless he didn't add the global phrase.
Reply With Quote
  #14  
Old 01-19-2005, 01:06 PM
Thug Thug is offline
 
Join Date: Feb 2004
Location: Sheffield : uk
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what global phrase?

here is what the modifed code looks like

$quicklinks = array_merge(
$quicklinks,
array(
"user.php?$session[sessionurl]do=emailpassword&email=" . urlencode(unhtmlspecialchars($user['email']))
=> $vbphrase['email_password_reminder_to_user'],
"../private.php?$session[sessionurl]do=newpm&userid=$userid"
=> $vbphrase['send_private_message_to_user'],
"usertools.php?$session[sessionurl]do=pmfolderstats&userid=$userid"
=> $vbphrase['private_message_statistics'],
"usertools.php?$session[sessionurl]do=removepms&userid=$userid"
=> $vbphrase['delete_all_users_private_messages'],
"usertools.php?$session[sessionurl]do=removesentpms&userid=$userid"
=> $vbphrase['delete_private_messages_sent_by_user'],
"usertools.php?$session[sessionurl]do=removesubs&userid=$userid"
=> $vbphrase['delete_subscriptions'],
"usertools.php?$session[sessionurl]do=doips&userid=$userid"
=> $vbphrase['view_ip_addresses'],
"../member.php?$session[sessionurl]do=getinfo&userid=$userid"
=> $vbphrase['view_profile'],
"../search.php?$session[sessionurl]do=finduser&userid=$userid"
=> $vbphrase['find_posts_by_user'],
"../$modcpdir/banning.php?$session[sessionurl]do=banuser&userid=$userid"
=> $vbphrase['ban_user'],
"user.php?$session[sessionurl]do=remove&userid=$userid"
=> $vbphrase['delete_user'],
"pm.php?$session[sessionurl]userid=$userid"
=> $vbphrase['read_pm_user'],
)
);

if (intval($user['adminpermissions']) & CANCONTROLPANEL AND in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY)))
{
$quicklinks["adminpermissions.php?$session[sessionurl]do=edit&userid=$userid"] = $vbphrase['edit_administrator_permissions'];
}

$userfield = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "userfield WHERE userid = $userid");
Reply With Quote
  #15  
Old 01-19-2005, 01:10 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Thug
what global phrase?
If you look at the bottom of the instructions above, it says the following
Code:
  Add new phrase
 ##############################################################
 
 Phrase type	=>	CONTROL PANEL GLOBAL
 Varname		=>	read_pm_user
 Text			 =>	Read Private Messages
and you need to add your code above in tag's to prevent unlicensed users from reading it.
Reply With Quote
  #16  
Old 01-19-2005, 01:11 PM
Thug Thug is offline
 
Join Date: Feb 2004
Location: Sheffield : uk
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Thug
what global phrase?

here is what the modifed code looks like

$quicklinks = array_merge(
$quicklinks,
array(
"user.php?$session[sessionurl]do=emailpassword&email=" . urlencode(unhtmlspecialchars($user['email']))
=> $vbphrase['email_password_reminder_to_user'],
"../private.php?$session[sessionurl]do=newpm&userid=$userid"
=> $vbphrase['send_private_message_to_user'],
"usertools.php?$session[sessionurl]do=pmfolderstats&userid=$userid"
=> $vbphrase['private_message_statistics'],
"usertools.php?$session[sessionurl]do=removepms&userid=$userid"
=> $vbphrase['delete_all_users_private_messages'],
"usertools.php?$session[sessionurl]do=removesentpms&userid=$userid"
=> $vbphrase['delete_private_messages_sent_by_user'],
"usertools.php?$session[sessionurl]do=removesubs&userid=$userid"
=> $vbphrase['delete_subscriptions'],
"usertools.php?$session[sessionurl]do=doips&userid=$userid"
=> $vbphrase['view_ip_addresses'],
"../member.php?$session[sessionurl]do=getinfo&userid=$userid"
=> $vbphrase['view_profile'],
"../search.php?$session[sessionurl]do=finduser&userid=$userid"
=> $vbphrase['find_posts_by_user'],
"../$modcpdir/banning.php?$session[sessionurl]do=banuser&userid=$userid"
=> $vbphrase['ban_user'],
"user.php?$session[sessionurl]do=remove&userid=$userid"
=> $vbphrase['delete_user'],
"pm.php?$session[sessionurl]userid=$userid"
=> $vbphrase['read_pm_user'],
)
);

if (intval($user['adminpermissions']) & CANCONTROLPANEL AND in_array($bbuserinfo['userid'], preg_split('#\s*,\s*#s', $superadministrators, -1, PREG_SPLIT_NO_EMPTY)))
{
$quicklinks["adminpermissions.php?$session[sessionurl]do=edit&userid=$userid"] = $vbphrase['edit_administrator_permissions'];
}

$userfield = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "userfield WHERE userid = $userid");
thats the code?

could u send me what the code should look like
Reply With Quote
  #17  
Old 01-19-2005, 01:17 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Thug
thats the code?

could u send me what the code should look like
so what you want to do now is in the Laguages & Phrases section, click on Phrase manager, then Click add new phrase, then in the drop down box you want to select control panel global, varname will be read_pm_user, and the test will be Read Private Messages or whatever you'd like to call the variable.
Reply With Quote
  #18  
Old 01-19-2005, 01:19 PM
Thug Thug is offline
 
Join Date: Feb 2004
Location: Sheffield : uk
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i wil ltry
Reply With Quote
  #19  
Old 01-19-2005, 01:21 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Thug
ok i wil ltry
you asked, so the code after you make the file edit in admincp/user.php should look like this.

Code:
     => $vbphrase['delete_user'],
     			"pm.php?$session[sessionurl]userid=$userid"
     => $vbphrase['read_pm_user'],
note that nothing will show up untill you add the Control Panel Global Phrase.
Reply With Quote
  #20  
Old 01-19-2005, 01:23 PM
Thug Thug is offline
 
Join Date: Feb 2004
Location: Sheffield : uk
Posts: 783
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok let me just forward this to my admin see if he got it

thanx everyone ive now done it
big thanx to you all sorry for being a pest
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 07:23 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.04219 seconds
  • Memory Usage 2,254KB
  • 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
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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