Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-24-2008, 12:18 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

14. Just curious to know, why has vb changed functions like mail to vbmail, date to vbdate and so on. What is the difference in the two?

15. By following this article, I was able to create online locations for my vbpage via plugins. I wanted to know, how do I make it so that it shows a different location for sub-pages as well.

Like, if a person is viewing page.php?do=edit , then it should display the correct location and not the location of page.php

Thank You
Reply With Quote
  #12  
Old 08-24-2008, 01:34 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

14. To see the difference, have a look at these functions in the ./includes/functions.php file.

15. Make sure the usergroup of the user browsing the WOL has permission to view detailed locations.
Reply With Quote
  #13  
Old 08-25-2008, 12:18 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

14. Thank You.. It did helped me.

15. Ofcourse the permissions are all set to YES. See this is my code

Hook: online_location_process

PHP Code:
if ($filename == 'page.php')
{
        
$userinfo['activity'] = 'Viewing Page';
}
if (
$filename == 'page.php?do=edit')
{
        
$userinfo['activity'] = 'Editing Page';

Hook: online_location_unknown

PHP Code:
if ($userinfo['activity'] == 'Viewing Page')
{
        
$userinfo['action'] = 'Viewing Page';
        
$handled true;
}
if (
$userinfo['activity'] == 'Editing Page')
{
        
$userinfo['action'] = 'Editing Page';
        
$handled true;


Now... my problem is that even on viewing page.php?do=edit , it shows "Viewing Page" INSTEAD OF "Editing Page" at whos online !

Thank You
Reply With Quote
  #14  
Old 08-25-2008, 12:45 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about:
PHP Code:
if ($filename == 'page.php' AND $_REQUEST['do'] == 'edit')
{
        
$userinfo['activity'] = 'Editing Page';
}  
elseif (
$filename == 'page.php')
{
        
$userinfo['activity'] = 'Viewing Page';

Reply With Quote
  #15  
Old 08-25-2008, 01:36 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had put the above code in online_location_process hook but its still showing "Viewing Page" for page.php?do=edit

by the way, can the reason be that my actual subpage is page.php?do=edit&uid=$row_id

Any other way pleasee.. ?
Reply With Quote
  #16  
Old 08-27-2008, 10:48 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

11. vB uses this code to redirect to any location (in our case page.php), how do I redirect to previous page that user accessed?

PHP Code:
$vbulletin->url "page.php" $vbulletin->session->vars['sessionurl'];
  if (isset(
$_SERVER['QUERY_STRING'])) {
eval(
print_standard_redirect('redirect_linkdir'truetrue));} 
15. How do I create online locations for my sub-pages. Solution in post #14 doesn't work for me.

16. After reading Send PMs (automatically), it was easy to send PM's. Just have a few queries, what does $pmdm->set_info('is_automated', true); AND cache_permissions($fromuser, false); does ? coz I can't see any difference with/without them.
Reply With Quote
  #17  
Old 08-30-2008, 03:06 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more plz:-

17. How do we use vbmail function in our page? I think there's something wrong in my code as I am getting very late mails OR not getting them at all. The other default mailing functions are working perfect i.e. I receive mails instantly when using contact us or any other email function but only not through my custom page.

PHP Code:
$emailto "email@email.com";
$subject "my email subject";
$message "my message body";
vbmail($emailto$subject$messagefalse$vbulletin->options['webmasteremail'], ''$row_name); 
Reply With Quote
  #18  
Old 09-02-2008, 07:36 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone ??
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:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04146 seconds
  • Memory Usage 2,253KB
  • Queries Executed 13 (?)
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
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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