vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

ThreeD 08-08-2007 09:56 PM

Can anyone tell me how I can add "Last Activity" information of a user to a custom page, what hook do I have to include?

I am customizing the showgroups.php to redesign the staff list...and I want to include "last activity" but I can't seem to get it to work :( Shouldn't it be a simple line of code?

Day Dreamer 08-10-2007 08:02 PM

I was wondering if there was something I could add to force the page to be viewed in a certain style when people view it?

mackers8923 08-10-2007 10:13 PM

Would this hack work for a cubecart installation? I'm trying to integrate a cubecart shop with my vbulletin site.

Can I call another page from within a vbulletin template?

dutchbb 08-12-2007 02:08 PM

Hello Gary, is this possible:

I want a template in the admin cp >templates to to show as LINKS but some other templates should hide (collapsed) under it just like the SHOWTHREAD template has. This would make the template list less cluttered. How can this be done please?

ragtek 08-12-2007 02:47 PM

thats made with the name i
the 1.ellement needsthe name myhack
than the collapsed:
myhack_1
myhack_2

rnmcd 08-19-2007 04:20 PM

I've been looking for a way (outside of the forums) to display RSS feeds. Would this be a method to do that?

Thanks.

ravyn 08-21-2007 05:15 PM

I have to say this is the best, easiest, fastest, most efficient (and every other-est) way to create extra pages with the VB styles! It was so easy to set up and I found that it was just as easy as the rest of the board to customize. All of my styles worked right from the start and guests can view pages without any problems!

Here is a link to my site. The links 'Written Works', 'Art Gallery', Project Surreal Manga', and 'Anime Convention Gallery' are the custom pages. I know there's not much on them (the Anime Gallery is the only one with content), but I even found a way to display different stuff in the side columns (using the side column hack) and the VB_AREA function. It's a simple code that you can add to the php pages you have to upload.

Where is says in the php file:
define('THIS_SCRIPT', 'yourscript');

Below that add:
define('VB_AREA', 'test');

where 'test' is the area you want it to be named. keep it simple. I used simple words like art and manga. then when you make the links in your side columns, you can have separate links for your forums, then separate links for the custom pages:

<if condition="VB_AREA == test">
Links for your test page
</if>
<if condition="VB_AREA == VBA_PORTAL">
Separate links if you have VBAdvance portal
</if>
<if condition="VB_AREA == Forum">
regular links for the forum.
</if>

And this will work in the navbar too! I haven't found a place where the VB_AREA function doesn't work. I thought it would just be something cool to add so that for all the work you go through to make the custom pages, you can have custom links too!

jasonmerchant 08-21-2007 08:43 PM

After calling global.php, all the query string variables are emptied, and I'm guessing they are checked and then placed in another variable.

What variable are they moved to?

FWT 08-21-2007 11:46 PM

In the beginning example, I see $navbits[$parent] = 'Test Page'; but the var $parent is not set. What is this used for?

jasonmerchant 08-22-2007 01:51 AM

FWT:

$navbits is for the breadcrumb in the navbar template. It will set the text that is displayed at the end of the breadcrumb


All times are GMT. The time now is 02:07 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.02000 seconds
  • Memory Usage 1,736KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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