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)

twitch 05-26-2006 11:39 PM

Quote:

Originally Posted by Princeton
edit the CUSTOM_SHELL template

can you tell me exactly what to remove in order to get rid of that stuff on the left?

Awesome product, I donated to help the cause :)

Princeton 05-27-2006 01:51 AM

replace custom_shell with
HTML Code:

$stylevar[htmldoctype]
<html id="moooo" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$pagetitle - $vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tr>
    <td width="100%" valign="top">$HTML</td>
  </tr>
</table>
$footer
</body>
</html>

thanks Arin ... appreciate the donation :up:

twitch 05-27-2006 04:23 AM

Thanks! That did the trick :)

blankoboy 06-22-2006 03:40 AM

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----

Princeton 06-22-2006 11:44 AM

the "body" of the page is a phrase

MadKad 07-19-2006 10:33 AM

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?

Princeton 07-19-2006 01:29 PM

you can use is_member_of() function...

Code:

is_member_of()

Works out if a user is a member of the specified usergroup(s)

This function can be overloaded to test multiple usergroups: is_member_of($user, 1, 3, 4, 6...)
boolean is_member_of (array &$userinfo, integer $usergroupid)

    * array &$userinfo: User info array - must contain userid, usergroupid and membergroupids fields
    * integer $usergroupid: Usergroup ID to test


MadKad 07-19-2006 07:31 PM

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

Princeton 07-19-2006 07:39 PM

that's up to you ... you can add it to the templates or the file

MadKad 07-19-2006 07:46 PM

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?


All times are GMT. The time now is 10:03 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.01626 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_html_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