vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   GTCustom Pages - Create Custom Pages With Ease (https://vborg.vbsupport.ru/showthread.php?t=108583)

Princeton 04-19-2006 01:51 AM

you will still need to do a little PHP to get anything accomplished

you may try
include() http://us3.php.net/include/
require() http://us3.php.net/require/
PHP Code:

switch($page)
{
case 
'index':
require(
'welcome.php');
break;
case 
'news':
require(
'news.php');
break;
default:
require(
'the file you want');
break;


good luck

bashy 04-23-2006 09:16 AM

Hi Princeton

Could you help me out here please?

I am trying to add my rules link into the menu but i keep getting

Code:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/bashy/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 181
Here is what i have done

Code:

<if condition="$show['popups']">       
        <td id="navbar_tools" class="vbmenu_control"><a href="rules.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[help]</a> <script type="text/javascript"> vbmenu_register("navbar_tools"); </script></td>
<else />
        <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
</if>

And

Code:

<!-- gt custom start -->
 <div class="vbmenu_popup" id="navbar_tools_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead" nowrap="nowrap">$vbphrase[need_help]</td>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[rules]">
            <a href="rules.php$session[sessionurl_q]">$vbphrase[rules]</a>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[faq]">
            <a href="faq.php$session[sessionurl_q]">$vbphrase[faq]</a>
       
        <tr>
            <td class="vbmenu_option" title="$vbphrase[gtcustom_sitemap_header]">
            <a href="goto.php?section=sitemap$session[sessionurl_q]">$vbphrase[gtcustom_sitemap_header]</a>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[gtcustom_privacy_header]">
            <a href="goto.php?section=privacy$session[sessionurl_q]">$vbphrase[gtcustom_privacy_header]</a>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[gtcustom_terms_header]">
            <a href="goto.php?section=terms$session[sessionurl_q]">$vbphrase[gtcustom_terms_header]</a>
            </td>
        </tr>
        </table>
    </div>
<!-- gt custom end -->

Now where have i gone wrong please :(

Princeton 04-24-2006 01:21 AM

Quote:

Originally Posted by bashy
Hi Princeton

Could you help me out here please?

I am trying to add my rules link into the menu but i keep getting

Code:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/bashy/public_html/forums/includes/adminfunctions_template.php(3537) : eval()'d code on line 181
Here is what i have done

Code:

<if condition="$show['popups']">       
        <td id="navbar_tools" class="vbmenu_control"><a href="rules.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[help]</a> <script type="text/javascript"> vbmenu_register("navbar_tools"); </script></td>
<else />
        <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
</if>

And

Code:

<!-- gt custom start -->
 <div class="vbmenu_popup" id="navbar_tools_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
            <td class="thead" nowrap="nowrap">$vbphrase[need_help]</td>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[rules]">
            <a href="rules.php$session[sessionurl_q]">$vbphrase[rules]</a>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[faq]">
            <a href="faq.php$session[sessionurl_q]">$vbphrase[faq]</a>
       
        <tr>
            <td class="vbmenu_option" title="$vbphrase[gtcustom_sitemap_header]">
            <a href="goto.php?section=sitemap$session[sessionurl_q]">$vbphrase[gtcustom_sitemap_header]</a>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[gtcustom_privacy_header]">
            <a href="goto.php?section=privacy$session[sessionurl_q]">$vbphrase[gtcustom_privacy_header]</a>

        <tr>
            <td class="vbmenu_option" title="$vbphrase[gtcustom_terms_header]">
            <a href="goto.php?section=terms$session[sessionurl_q]">$vbphrase[gtcustom_terms_header]</a>
            </td>
        </tr>
        </table>
    </div>
<!-- gt custom end -->

Now where have i gone wrong please :(

sorry ... I missed this one.


I don't see nothing wrong.
Upload your complete template (txt format) and I'll take a look.

SMO 04-24-2006 03:45 AM

Quote:

Originally Posted by Princeton
you can remove them (edit template) or add to them ... it's up to you


Im sorry..i didnt really understand what you meant here.

What template/file would I modify to add "stuff" to the left side there?

Princeton 04-25-2006 12:29 PM

you can edit any of the "GTCUSTOM_xx" templates

SMO 04-26-2006 03:41 AM

Quote:

Originally Posted by Princeton
you can edit any of the "GTCUSTOM_xx" templates


ooh..templates..i was looking through phrases..

thx princeton

SupremeWeapon 04-30-2006 03:18 AM

so ummmm can you make the README more.. understandable?

Quote:

Let's Create A Custom "About Us" Page:

1. In your favorite editor, create the contents of the page. HTML is allowed.
2. When you finish with the contents of the page, create 2 phrases (an optional subtitle is available).
* "gtcustom_about_header" - title of custom page
* "gtcustom_about "- contents of custom page
* "gtcustom_about_subtitle" -optional subtitle for custom page; the subtitle (table cell) will only display if it's created
3. That's it! Now, go visit the page via URL: $vboptions[bburl]/goto.php?section=about
k I got my stuff done in my favorite editor.. the phrases are done. So what do i do witht he page I just made in my favorite editor?


at this point im just staring at it because thats all your directions state. there is no directions on HOW to get th epage IN

Princeton 04-30-2006 01:20 PM

you would add it to your "content" phrase

in the example you quoted ... it would be
"gtcustom_about "- contents of custom page

if you want to edit the template you can ... just edit the "custom_mypage" template

SupremeWeapon 04-30-2006 01:21 PM

k, I see what you mean.

anyway to remove the right side boxes?

Princeton 04-30-2006 01:51 PM

edit the template(s)


All times are GMT. The time now is 10: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.02041 seconds
  • Memory Usage 1,761KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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