vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Create Custom Pages (https://vborg.vbsupport.ru/showthread.php?t=108586)

Oddjob 07-23-2006 12:58 PM

Does anyone know if this works for 3.6?

PoetJA-1975 10-10-2006 01:38 AM

Hi PRINCETON - Fabulous Fabulous vB hack. I am soooo loving this one - I do have a question/issue about the layout. I think in vBadvanced there's an option to either Use Module Shell Template or NO!

My choice would be to not have the page in a "box" - so to speak - I would like to have the custom page aligned in the middle of the page, rather than in the Module shell - Is there anyway to accomplish this?

I am building an Amazon store for my forum - the link url is: http://www.jpicforum.info/goto.php?section=shop

You'll notice how the alignment of the store is off a bit... The inline frame code is from Amazon directly (also the html for my gtcustom_shop phrase) and is as follows:
Code:

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<iframe src="http://astore.amazon.com/jpicforumforw-20" width="100%" height="4000" frameborder="0" scrolling="no"></iframe>

I'm not really sure if I can tweek that html at all. But I have managed to tweek the CUSTOM_SHELL template as follows:

PHP Code:

$stylevar[htmldoctype]
<
html id="moooo" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$pagetitle $vboptions[bbtitle]</title>
</
head>
<
body>
$header
<br />
  
$showrandomquote
  
  
<div align="center">
  
  <
script type="text/javascript"><!--
  
google_ad_client "pub-6622330007501456";
  
google_ad_width 468;
  
google_ad_height 15;
  
google_ad_format "468x15_0ads_al";
  
google_ad_channel ="";
  
google_color_border "E7E3D2";
  
google_color_bg "E7E3D2";
  
google_color_link "800000";
  
google_color_text "000000";
  
google_color_url "008000";
  
//--></script>
  
<script type="text/javascript"
    
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  </
script>
  
  </
div>
  <
br />
<
table cellspacing="0" cellpadding="0" border="0" width="100%">
  <
tr>
    <
td width="100%" valign="top">$HTML</td>
  </
tr>
</
table>$footer
</body>
</
html

Can you please help me to fix this code to where the the custom-shell-like box is removed and the Amazon store can sit right in the middle of the http://www.jpicforum.info/goto.php?section=shop page ------> I will surely appreciate your help!

ALSO thanx for providing this nice piece of mod/hack work - Very nice indeed :)

Jacquii.

Princeton 10-17-2006 10:20 AM

hi PoetJA-1975,

I'm guessing that you want to remove the "box" enclosing the Amazon script. If so ...
REPLACE:
HTML Code:

<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tr>
    <td width="100%" valign="top">$HTML</td>
  </tr>
</table>

WITH:
HTML Code:

$HTML
If not the above template, you may have to edit the other template ... keep in mind that any changes you do to it may reflect on other custom pages.

If that's not what you are referring to can you be more specific?

Sorry for the delayed response ...

PoetJA-1975 10-17-2006 05:05 PM

Hey PRINCETON - Exactly... I'm trying to remove the box enclosing the Amazon script...

I tried the CUSTOM_SHELL template edit you suggested above - And it didn't work.

What do you mean by "other" template? I've looked at all GTCUSTOM PAGES Templates and the code you suggested is only on the CUSTOM_SHELL...

Jacquii.

Princeton 10-17-2006 08:04 PM

the template you need to edit is "gtcustom_mypage"

however, if you edit that template other custom pages will have the same look (eg. no 'wrapper')

PoetJA-1975 10-18-2006 08:21 AM

hey PRINCETON - just threwup a gallon of tainted beer - so trust me - I totally used to "no wrapper" :P ------ OK OK OK - more than enough info etcetera...

custom_mypage template:

PHP Code:

<table class="tborder" cellspacing="$stylevar[cellspacing]cellpadding="$stylevar[cellpadding]border="0" width="100%">
<if 
condition="$vbphrase['header_title']">
<
tr>
    <
td class="tcat" width="100%">$vbphrase[header_title]</td>
</
tr>
</if>
<if 
condition="$vbphrase['sub_title']">
<
tr>
    <
td class="alt2">$vbphrase[sub_title]</td>
</
tr>
</if>
<
tr>
    <
td class="alt1" valign="top">$vbphrase[content]</td>
</
tr>
</
table

What do I edit?

Jacquii.

btw - thank you everso kindly for helping me out with this issue. Perhaps I'll sleep for 24hrs and get over the throwup spree LOL :lick:

Princeton 10-18-2006 10:15 AM

remove everything except ... $vbphrase[content]

PoetJA-1975 10-19-2006 12:45 AM

GREAT - thanx PRINCETON! Much appreciation

Jacquii.

texasf1racer 11-08-2006 04:38 AM

Great mod! One brief question..

If I wanted one of my custom pages to "act" as the home page (like a portal) when someone visits my site url as usual, how would I do this?

Many thx!

Princeton 11-08-2006 11:27 AM

Quote:

Originally Posted by texasf1racer
Great mod! One brief question..

If I wanted one of my custom pages to "act" as the home page (like a portal) when someone visits my site url as usual, how would I do this?

Many thx!

rename your forum index page (option can be found in admincp) to forum.php ...

now, rename the custom page to index.php


NOTE: This hasn't been tested.


All times are GMT. The time now is 10:02 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.01588 seconds
  • Memory Usage 1,765KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)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