vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Custom pages based on your vBulletin forum ! (https://vborg.vbsupport.ru/showthread.php?t=232324)

AliMadkour 01-05-2010 10:00 PM

Custom pages based on your vBulletin forum !
 
1 Attachment(s)
Elsalam Alikom
Hi
with that Product you can make pages based on your vBulletin forum
just create a new template with prefix page_
ex:
when I create a template
page_Ali
the url of that page will be :
http://www.example.com/forum/pages.php?p=Ali

and you can also make a default fpage
edit template called pages_default
and write your own code !


Installing product :
Upload : pages.php to your vBulletin root folder
Install the xml file via AdminCP
Make it as Installed !
Enjoy

You can control the product from AdminCP->Settings->Options->Custom Pages
and you can also rename pages.php

AliMadkour 01-06-2010 06:59 AM

if you want forum header and footer
and forum style at your custom page
copy that code to your template
HTML Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
  <head>
    <title>{vb:raw vboptions.bbtitle}</title>
    {vb:raw headinclude}
  </head>
  <body>
   
    {vb:raw header}
   
    {vb:raw navbar}
   
    <div id="pagetitle">
      <h1>My Default Page!</h1>
    </div>
   
    <h2 class="blockhead">Custom Page</h2>
    <div class="blockbody">
      <div class="blockrow">
        Enter your Custom Page text here!
      </div>
    </div>
   
    {vb:raw footer}
  </body>
</html>


MARCO1 01-06-2010 07:22 AM

Good work Ali.

yilmaz 01-06-2010 07:35 AM

Wounded product
nice job
Thanks installed

AliMadkour 01-06-2010 11:57 AM

Quote:

Originally Posted by MARCO1 (Post 1948527)
Good work Ali.

Quote:

Originally Posted by yilmaz (Post 1948534)
Wounded product
nice job
Thanks installed

thanks for reply :)

Allan 01-06-2010 12:19 PM

Do you have screen to result please ?

AliMadkour 01-06-2010 12:23 PM

Quote:

Originally Posted by Allan (Post 1948704)
Do you have screen to result please ?

live demo
check that
http://www.masrawycafe.com/vb/pages.php
and that
http://www.masrawycafe.com/vb/pages.php?p=about

but its Arabic : )

beduino 01-06-2010 01:44 PM

Hi Ali
wonderful work!
Maybe a fool question ... It's possible create more than one page?
tks again

AliMadkour 01-06-2010 01:49 PM

Quote:

Originally Posted by beduino (Post 1948756)
Hi Ali
wonderful work!
Maybe a fool question ... It's possible create more than one page?
tks again

sure!
create any template with prefix page_
: )

beduino 01-06-2010 01:52 PM

Hi Ali
thank you a lot :D


All times are GMT. The time now is 03:13 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.01004 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_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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