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)

roundy 04-11-2006 01:04 AM

you rock! i was able to reverse-engineer postnuke (to quite a degree) and write my own hack / modules - vb is a bit more complex ;) only my second day perusing the code / using vb, but this helps ALOT!!!!!!!!!!!!!!!!!!!!

Kirk Y 04-11-2006 01:29 AM

Princeton, I <3 You! lol :P

* acidburn0520 slaps the install button's butt

MThornback 04-11-2006 01:34 AM

*Installed (thank you VERY much!)

Question...The Sitemap, the Search, Advertisement & Stuff boxes on the left side....what do I do about customizing those boxes, or do you have plans for them :)

kurtbarker 04-11-2006 01:56 AM

Quote:

Originally Posted by Princeton
Sorry, the file has been updated ... use what's on the first postbit :)

thanks mate, you confused me there for a minute

kurtbarker 04-11-2006 02:02 AM

dude, lol, you refer to faq references in the header, have a look at my header template:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<div align="center">$phpAds_raw[html]</div>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

There is no reference to faq.php in there, so I can't add the code your telling me to add... any suggestions?

using vBulletin 3.5.4

roundy 04-11-2006 02:18 AM

Quote:

Originally Posted by MThornback
Question...The Sitemap, the Search, Advertisement & Stuff boxes on the left side....what do I do about customizing those boxes, or do you have plans for them :)

this may / may not answer your question - if you want to get rid of the left boxes, edit goto.php, at the very bottom of file, change call to "CUSTOM_SHELL" to "GENERIC_SHELL" so it will display full page width. I imagine you could edit those shell templates to add content to the boxes if you want...

roundy 04-11-2006 03:05 AM

princeton would you mind clarifying exactly how to add php through sitemap? how to call the file / where to store it / declare it?

Princeton 04-12-2006 12:52 PM

Quote:

Originally Posted by MThornback
*Installed (thank you VERY much!)

Question...The Sitemap, the Search, Advertisement & Stuff boxes on the left side....what do I do about customizing those boxes, or do you have plans for them :)

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

Princeton 04-12-2006 12:57 PM

Quote:

Originally Posted by kurtbarker
dude, lol, you refer to faq references in the header, have a look at my header template:

Code:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
        <td align="center"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
</tr>
</table>
<div align="center">$phpAds_raw[html]</div>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

There is no reference to faq.php in there, so I can't add the code your telling me to add... any suggestions?

using vBulletin 3.5.4

:D I did it again ... updated the firstpostbit :)

kurtbarker 04-13-2006 03:57 AM

thanks mate, i'll give it another shot, lol

kurtbarker 04-13-2006 11:26 PM

works good mate...

just one question though. On the navbar it's only got the down arrow that allows access to FAQ, Terms of Service, etc, etc... But when I use the search function 'search.php' the navbar function says 'help' with the down arrow...

How would I get the Help text beside the down arrow on every page, and why is the 'help' text only displaying when I use search.php

Thanks mate

Princeton 04-14-2006 12:52 AM

add the phrase 'help' to the GLOBAL phrase group

dilbert 04-14-2006 01:53 PM

Hi,
I will be adding this to my site.
Can pages be included? i.e. can I create a page that is not php and include it here? I would like to be able to display cold fusion pages as I do not understand php.

Also, your PayPal link is outdated. I tried to donate but could not. :classic:

Princeton 04-14-2006 02:29 PM

Sorry ... not familiar with Cold Fusion.
I'm guessing you could add it via an iframe ... or an include.

dilbert 04-14-2006 03:47 PM

Quote:

Originally Posted by Princeton
Sorry ... not familiar with Cold Fusion.
I'm guessing you could add it via an iframe ... or an include.

Let's say the file was named test.cfm and was located at D:/inetpub/mysite/calls/test.cfm and my forum is at D:/inetpub/mysite/forum.

How would I indicate the include for a file like that? Or do they need to be in the forum folder?

Also, did you update the paypal link?

CSS59 04-15-2006 03:12 AM

Quote:

Originally Posted by Cebby
No they aren't

that sucks :(

Princeton 04-15-2006 08:14 PM

Quote:

Originally Posted by dilbert
Let's say the file was named test.cfm and was located at D:/inetpub/mysite/calls/test.cfm and my forum is at D:/inetpub/mysite/forum.

How would I indicate the include for a file like that? Or do they need to be in the forum folder?

Also, did you update the paypal link?

Like I said, I'm not a CFM user but I'm leaning towards ... NO, it can't be done.

For starters, how are you going to share the session?
How will one language 'talk' to the other?

Sorry, it's probably not what you wanted to hear; but, I suggest recreating the content using PHP.

dilbert 04-18-2006 11:24 PM

OK, so I'll do a "little" reading. :)
Is it possible to do a phpinclude of a php file with this mod?
I tried a test php page, with no code, just some text, and it didn't display.

Princeton 04-19-2006 12:11 AM

if you have the php you can add it to the file...

take a look at this tut:
https://vborg.vbsupport.ru/showthread.php?t=108725
it will set you in the right direction

dilbert 04-19-2006 12:51 AM

Thanks for your patience.
There has to be an easier way to create a vBulletin page. :(
I want to create about a dozen pages, this seems impractical.

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)

PixelFx 04-30-2006 06:41 PM

how do I setup the Who's Online Locations for your script? and thanks so much for making this system, it works very nicely, and the policy info is a godsend.

Princeton 05-01-2006 02:37 PM

thank you PixelFx ... I appreciate the donation ... check your email

agitated 05-12-2006 04:18 PM

Installed and clicked. Thanks very much. :)

Marcus Lau 05-23-2006 07:00 AM

is it good for 3.5.4

Princeton 05-23-2006 12:22 PM

Quote:

Originally Posted by Marcus Lau
is it good for 3.5.4

yes, it is :)

Marcus Lau 05-23-2006 02:21 PM

Thanks i installed it. Anyway i wanna add custom page ... i had no slight idea how to do it the simplest way. i had no idea what is going on here ... https://vborg.vbsupport.ru/showthread.php?t=108583 any alternative recommendation? Hit Installed!

Princeton 05-23-2006 02:24 PM

sorry, I have no idea what you're saying ... please explain

Marcus Lau 05-23-2006 02:34 PM

well basically that to means see: https://vborg.vbsupport.ru/showthread.php?t=98009

twitch 06-06-2006 05:28 AM

I was hoping to add code for my page that included a php include in it.

When I add code like this
Code:

<?php require_once('/home/clanvdqa/public_html/clan/ventrilo/ventrilo.php');?>
it just simply doesn't work and shows nothing in that spot. Would there be a fix for this in the future?

twitch 06-06-2006 05:29 AM

sorry about the double post


All times are GMT. The time now is 01:01 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.02482 seconds
  • Memory Usage 1,845KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_php_printable
  • (12)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
  • (40)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