![]() |
Create Custom Pages
GO-TOTAL LLC had everyone in mind when GTCustom Pages was created.
Custom pages can now be created with little or no coding knowledge. If you know how to create a phrase within ADMINCP / LANGUAGES then you can create custom pages with ease. First Download and install product and... Let's Create A Custom "About Us" Page:
- Replace bold text with your choice of name. Follow naming convention as described above or the pages will not display. - All 'xxx_header' phrases should be added to GLOBAL phrase group. (Needs to be global to display in navbar, etc.) - All other phrases are required to be in GTCustom Pages phrase group. (If it's not here, cutom page will not work.) Tips:
Examples Included With Product:
|
Very nice .. if i need to show a messge for each usergroup when they visit the about page .. is there any way to do this ?
Thanks :) |
edit the goto.php and create a new template with conditionals
FIND: HTML Code:
switch($_REQUEST['section']) HTML Code:
switch($_REQUEST['section']) FIND: HTML Code:
switch ($section) HTML Code:
switch ($section) Create new template as you see fit (use conditionals, use phrases, it's up to you): name it "gtcustom_about" that's it |
Thankyou very much .. It's work fine. . i'm not sure if there is way where i can add UserPost Count ..
Example Welcome Username You have Made XX Post .. Welcome username i find how to do this but Their postcount i dont no :) Thanks :) |
What if I need the page to do some PHP commands?
How do I just add a header and a footer to that PHP file? |
Im sorry, but im new to this and i dont have a clue what you are talking about in your instructions.
In the admin CP im going to phrase manager, then what, you havent said?! Phrase type = ? Product type = ? Var name = gtcustom_about_header (for first one) Text = ? Thank you |
Quote:
- All 'xxx_header' phrases should be added to GLOBAL phrase group. (Needs to be global to display in navbar, etc.) - All other phrases are required to be in GTCustom Pages phrase group. (If it's not here, cutom page will not work.) |
Here is my page:
http://www.hiven.net/forum/goto.php?section=rules Can you tell me how i get rid of the box's on the left please, i just want the text no search / advert / stuff box. Thank you James |
edit the CUSTOM_SHELL template
|
Thanks for the tutorial. Very useful! :)
|
Quote:
Awesome product, I donated to help the cause :) |
replace custom_shell with
HTML Code:
$stylevar[htmldoctype] |
Thanks! That did the trick :)
|
Great looking mod. Will this allow me to update the body of the custom page via the Admin CP?
For example, I want to have a custom page to list advsertising rates and availability. I would then also like to regularly update the availability and pricing. Is this possible with this mod? ---off-topic---- ps - off-topic but hoping someone here might know the answer. How do sites like totalbf2.com and evilavatar.com display news pulled from specific forums on their front page? Are they using vbexternal or a similar available mod? thx. ---off-topic---- |
the "body" of the page is a phrase
|
Is there a way to set a permission on these pages so that I can only allow serton usergroups into the serton custom section page?
Like make some sort of code so I can add it to the page I want a serton group to access only and leave the others like sitemap so that any one can see them? |
you can use is_member_of() function...
Code:
is_member_of() |
Nice one mate, do i add this to the body of the template or to one of your php files like the goto.php
thanks |
that's up to you ... you can add it to the templates or the file
|
OK thanks, sorry one more question as I am a little confused on this
what code am I using with this then? I only want to allow 3 usergroups to serton pages so i would be adding it to the body of the template code so it would be is_member_of($user, 1, 3, 4) what would go with that :s sorry is it an if or something? |
Does anyone know if this works for 3.6?
|
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%"> PHP Code:
ALSO thanx for providing this nice piece of mod/hack work - Very nice indeed :) Jacquii. |
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%"> HTML Code:
$HTML If that's not what you are referring to can you be more specific? Sorry for the delayed response ... |
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. |
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') |
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:
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: |
remove everything except ... $vbphrase[content]
|
GREAT - thanx PRINCETON! Much appreciation
Jacquii. |
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! |
Quote:
now, rename the custom page to index.php NOTE: This hasn't been tested. |
Doest work with vbulletin 3.6.4
|
Quote:
[finally i will install this hack! :D] but... the last msg makes me unsure about . All the best And tks for all work in vb.org Beduino |
the mod was made for 3.5 not 3.6+
however, there are some users who say it does work for them ... https://vborg.vbsupport.ru/showthread.php?t=108583 |
tks a lot
|
Does this work outside the forumhome/root?
an example - http://somedomain/forum/index.php is the usual but I might want to see a page at http://somedomain/mynewpage.php thanks :) |
could I use this technique to produce a unique " Invoice page" for each of my users?
Essentially what I want to do is to have a page that each member can open, and that will show their " Invoice Number", which is the same as their "IDnumber". They then print out the page and send their payment to me by ordinary mail. How do I include the " IDnumber" on the custom page? Also, and this would be neat- once I have manually inserted their payment into the " paid subscriptions" section of the admincp, how can I get the paid subscriptions part of the usercp- the " active subscriptions" part, to show up on my custom page? All my members do not use the online paid subscriptions functions( they work for the NHS). And I need a page that they can easily access to produce/print out an invoice. all help much appreciated Gary |
yes, it can be done ... you will need to create the template - use $bbuserinfo[userid] to display ID
I also suggest a PRINT feature that will display only the "invoice" for printing purposes .. this cannot be done out-of-the-box with this addon. You will need to modify addon. |
nevrmind LOL I need more sleep
|
All times are GMT. The time now is 09:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|