Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding a new page Details »»
Adding a new page
Version: , by diades diades is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-20-2002 Last Update: Never Installs: 0
 
No support by the author.

Hi people

I found this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><TITLE>$bbtitle - About</title>
$headinclude
</head>
<body>
$header
<p>Your code here!!!!!</p>
$footer
</body>
</html>
And make the new file about.php:
Code:
<?php 
error_reporting(7);
require("./global.php"); 
eval("dooutput(\"".gettemplate('aboutmain')."\");"); 
?>
and used it to run a new page that I have created. The new page comes up ok but absolutely no content (I did change the template names accordingly).
Also, I would like to have it read the names of some other templates that are used within, can anyone shed some light please?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-20-2002, 06:57 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by diades
Also, I would like to have it read the names of some other templates that are used within, can anyone shed some light please?
Not sure I understand what your saying for this part

And try c-prompts extra page driven by forum templates hack to do this if you haven't allready seen it
Reply With Quote
  #3  
Old 10-20-2002, 07:09 PM
diades diades is offline
 
Join Date: Jul 2002
Location: Glasgow
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi NTLDR

Thanks for the reply!

Regarding:
Quote:
Also, I would like to have it read the names of some other templates that are used within, can anyone shed some light please?
I have found that custom templates (bits not complete pages) have to be called also?

I have searched for the recommened therad in the hacks db but nothing came up (I also tried combinations etc., and have also searched on c-prompts in the members db in the hopes that, like yourself, there would be a libnk in the sig but both searches came up empty.
Reply With Quote
  #4  
Old 10-20-2002, 07:29 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

diades - your code should work, as long as you name the custom template correctly - make sure the name is "aboutmain". Make sure "aboutmain" is in the all your templatesets especially your default templateset.
Reply With Quote
  #5  
Old 10-20-2002, 07:37 PM
diades diades is offline
 
Join Date: Jul 2002
Location: Glasgow
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Erwin

"Make sure "aboutmain" is in the all your templatesets especially your default templateset."

I actually have this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><TITLE>$bbtitle - About</title>
$headinclude
</head>
<body>
$header
$mainscript
$preloads
<p>Your code here!!!!!</p>
$footer
</body>
</html>
where the two lines in yellow are also custom templates(bits)
And links.php3:
Code:
<?php 
error_reporting(7);
require("./global.php"); 
eval("dooutput(\"".gettemplate('links')."\");"); 
?>
It is called with:
"{forumlink}/links.php3?s=">
where links is the master page template.
I am only using it on one template at the moment to get it operational but, yes, I will naturally spread it accross when it is.
Reply With Quote
  #6  
Old 10-21-2002, 02:54 PM
diades diades is offline
 
Join Date: Jul 2002
Location: Glasgow
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Guys

Would it help if I posted the script/markup that I am actually using?
Reply With Quote
  #7  
Old 10-21-2002, 10:34 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If $mainscript and $preloads are templates being called, you need to define these variables in the php file using dooutput.
Reply With Quote
  #8  
Old 10-22-2002, 10:24 PM
diades diades is offline
 
Join Date: Jul 2002
Location: Glasgow
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

No luck so far!

We found c_prompts hack eventually and, after trying mine to no avail, I decided to use that hack verbatim the only difference being:
<p>Privacy Test</p> as content
all that I get is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

We are running 2.2.7 if that makes any difference
Reply With Quote
  #9  
Old 10-25-2002, 10:00 PM
diades diades is offline
 
Join Date: Jul 2002
Location: Glasgow
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We sorted thanks, used a different method
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 04:04 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.05769 seconds
  • Memory Usage 2,280KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete