vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Quick PM Sending (pop-up) v2 (https://vborg.vbsupport.ru/showthread.php?t=70085)

Floris 10-03-2004 12:20 AM

Quote:

Originally Posted by M1th
Hmm, so basically you've copied/pasted chunks of code from the private.php file? I'm not even sure that is allowed, but you might want to ask around just to make sure. :)

Nope, you can addon or modify, but you can't duplicate and share.

Logikos 10-03-2004 12:26 AM

Quote:

Originally Posted by floris
Nope, you can addon or modify, but you can't duplicate and share.

So basicly you cannot take code from the vb files and add them else where?

For instant, if i wanted to make the attachments in the new thread page instead of a popup and i just copyed /pasted chucks of the attachments.php file to the newthread.php file.

That is not allowed?

AnhTuanCool 10-03-2004 12:42 AM

I did the modify to the code and left the copyright notice as you can see :)

Polo 10-03-2004 07:14 PM

This looks nice ;) I will go ahead and install this mod ;)

FleaBag 10-03-2004 10:11 PM

Sweet.

enginethatcan't 10-08-2004 04:11 PM

is it me or what? For some reason I don't have a newpm.php file anywhere, are you sure that's what the file is called?

AnhTuanCool 10-08-2004 04:14 PM

It's(newpm.php) in my attachment at the first post, check it out ;)

Erwin 10-09-2004 01:38 AM

2 issues:

1. You have not cached a LOT of templates causing 20 extra queries for no reason.

You need to add these templates to be cached (including newpm - make that a global template to be cached, not an actiontemplate).

Replace globaltemplates with these ones:

PHP Code:

// pre-cache templates used by all actions
$globaltemplates = array(
    
'PM',
    
'newpm',
    
'newwpm',
    
'pmsent',
'editor_clientscript',
'editor_jsoptions_font',
'editor_jsoptions_size',
'editor_smilie_wysiwyg',
'editor_smilie_standard',
'editor_smiliebox',
'editor_smiliebox_category',
'editor_smiliebox_row',
'editor_smiliebox_straggler',
'editor_smiliemenu_category',
'editor_smiliemenu_smilie',
'editor_toolbar_wysiwyg',
'editor_toolbar_standard'
'newpost_disablesmiliesoption',
'newpost_quote',
'posticonbit',
'posticons'
'forumrules',
'usercp_nav_folderbit'
); 

And remove the actiontemplates bit - no need.

2. Get rid of the smilie panel by doing this:

Find:

PHP Code:

    require_once('./includes/functions_editor.php'); 

ABOVE this, ADD:

PHP Code:

    $vboptions['wysiwyg_show_smiliebox'] = '0'

Enjoy. :)

AnhTuanCool 10-09-2004 03:43 AM

Oh thank you Erwin, that would help :)

New newpm.php file updated ;)

theArchitect 10-10-2004 01:51 AM

*theArchitect clicks install*.

A great hack. Very useful. And thankyou Erwin for your corrections.


All times are GMT. The time now is 08:00 AM.

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.01197 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete