vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

Lynne 09-17-2010 05:09 PM

Quote:

Originally Posted by joejoemaker (Post 2099688)
It works, Thanks!!

Have I to do this for every Template I want to use or is there a short version?

Yes, you need to render every template you want to use. You may be able to put it in a while loop, but that depends on what you are doing.

joejoemaker 09-17-2010 05:24 PM

Ok, Thank You!!!

sergioloporto 09-19-2010 10:44 AM

Hello,

how should the following look like if the file test.php is on the path http://mysite.com/custompages/test.php ?



PHP Code:

switch ($filename)
{
    case 
'test.php':
        
$userinfo['activity'] = 'mypage';
        break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.


PHP Code:

switch ($userinfo['activity'])
{
    case 
'mypage':
        
$userinfo['where'] = '<a href="test.php?'.$vbulletin->session->vars[sessionurl].'">My Page</a>';
        
$userinfo['action'] = "Viewing My Page";
        
$handled true;
        break;
// add more cases here if you have more than one custom page. no need for multiple plugins. one plugin can handle all.



If I put
HTML Code:

/custompages/test.php
instead of
HTML Code:

test.php
I get the right link and redirection in the "who's online" list, but instead of the action I get "Unknown Location".

tiga2 09-24-2010 04:12 PM

I love this tutorial but Im lacking of showing the latest threads on that Page.
I hope some has the php code for pulling the latest threads out

Lostboyfan 09-24-2010 06:59 PM

Where do we put the text and custom code. Like html and text? I see an area that says to put your own custom code but I keep getting errors.

Wilfred1 09-30-2010 04:06 AM

I have my forums located at root/forum
I have a shop that uses the software CS-CART (http://www.cs-cart.com) located at root/shop. It has its own index.php file

What I would like to do is wrap a forum page, with the header and navbar, around the shop pages.

I tried using this method and the template I created was an iframe but it isn't the best solution...for example click refresh and the iframe goes back to the shop home page etc.

Can anyone advise what would be the best way to do this...thanks

Gn_Snake 10-04-2010 08:30 AM

Hello everyone,
I tried to read this thread a little but honestly I'm lost ... :D

I would need to insert a php code within a thread, you can do?

Lynne 10-04-2010 02:07 PM

Quote:

Originally Posted by Gn_Snake (Post 2106565)
Hello everyone,
I tried to read this thread a little but honestly I'm lost ... :D

I would need to insert a php code within a thread, you can do?

This article is about create a whole new page. It won't help if you are trying to insert php code into a thread.

Gn_Snake 10-04-2010 05:54 PM

Quote:

Originally Posted by Lynne (Post 2106670)
This article is about create a whole new page. It won't help if you are trying to insert php code into a thread.

Sorry Lynne :erm:

I look for the solution ... even if I have not seen it yet

ceho 10-07-2010 07:27 PM

Hi Lynne,

was it possible to use {username} on a custom site? I use them your way and would like to add {username} on one or two of my custom sites, like e.g. in the vB notices.

Is there any chance to realize this? Thanks a lot!


All times are GMT. The time now is 01:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02829 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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