View Single Post
  #1  
Old 12-27-2005, 08:01 PM
Lord Angelus Lord Angelus is offline
 
Join Date: Sep 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default A couple modification questions.

Both of my questions are related to custom vb-powered pages. (As a note, I've read the [How-To] for making them.)

My first question involves editing of the page. To do it you need to go and edit the custom template in the style manager to edit it's content. I'm looking for a way of making it possible to edit the content from right there on the page. A post, for instance, has a button to edit the content.

That's what I'm generally looking for. Or even an admincp entry with the options of "Edit [Custom Page Name]" or something, where it then takes you to a page with an editor(Sort of like what you would see when making a new announcement).

However, I have only a few basic ideas of what all is needed for such a thing(Phrases, etc), and no clue of the specifics. That's really where I need the help.

The second question is (I think) easier. I created a custom page outside of the forum directiory(My forum directory is at forum.site.com, and I've got the custom page at www.site.com) but it's looking for everything in the directory the file is in rather than in the forum's actual directory. The [How-To] says:

Quote:
Originally Posted by Psionic Vision
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']
And I've followed it accordingly, but I'm not quite coding-savi enough to figure out where the $vbulletin->options['homeurl'] ought to be going to make this work. Or even if the lack of it in the .php file or template is what's causing the custom page to not look in the right location for everything.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01227 seconds
  • Memory Usage 1,778KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete