vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Split ForumHome page - Custom Pagetitles! (https://vborg.vbsupport.ru/showthread.php?t=147365)

flup 05-15-2007 10:00 PM

Split ForumHome page - Custom Pagetitles!
 
Title: Custom Pagetitles for different pages
Add-on for: Split ForumHome Page in Multiple Pages
Template mod by: Joshua de Gier (flup)

What does it do?

I noticed a lot of people needed a custom title for their different pages, this template modification helps you to do this! It's just a little edit in the FORUMHOME template.

Here we go!

Go to your adminCP -> Style Manager -> Edit Templates
Select: Forum Home Templates and double click FORUMHOME

### Step 1: Search this line:

Quote:

<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
### Step 2: Replace this line with:

Quote:

<if condition="$_GET['page'] == 2">
<title>Your Custom Pagetitle</title>
<else />
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</if>
### Step 3: More pages? Simple add this line above all:

Quote:

<if condition="$_GET['page'] == 3">
<title>Your Custom Pagetitle 2</title>
</if>
### The total codeview would look like this in this case:

Quote:

<if condition="$_GET['page'] == 3">
<title>Your Custom Pagetitle 2</title>
</if>
<if condition="$_GET['page'] == 2">
<title>Your Custom Pagetitle</title>
<else />
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</if>

Good luck and Have fun!

Coleccromos 05-27-2007 02:58 PM

To forgive for my English and if this answer this in this thread

My idea is to make in my forum a second it paginates with several sub forums and several categories.

As I have to make it

flup 05-27-2007 09:41 PM

I'm not sure what you mean, but if you want to know how to split up your forums over various threads you have to take a loot at this mod:

https://vborg.vbsupport.ru/showthread.php?t=92201

this is just a template edit to have custom page titles for these pages.

Coleccromos 05-28-2007 05:18 PM

Quote:

Originally Posted by flup (Post 1255775)
I'm not sure what you mean, but if you want to know how to split up your forums over various threads you have to take a loot at this mod:

https://vborg.vbsupport.ru/showthread.php?t=92201

this is just a template edit to have custom page titles for these pages.


To see if I explain to myself better. the idea is to put it like it is here in this forum vbulletin.org in menus. Here we see that there are several accesses Mods,Articles,Forums,Home....
and inside these menus there are several categories with their sub forums

This is my idea and I believe that one can make with this mod, but alone it shows me a single category with their sub forums when I assign him so that it is seen in it paginates it 2 or other categories

Hornstar 06-01-2007 06:34 AM

thanks, including this fix now. look forward to seeing if you can fix some of the other problems you may find in it and posting them as well.

1 possible fix that would be great if you could fix is this:

My page 3 is here for example http://www.gamerzneeds.net/forums/gfx.html

when you click on the help request forum, it takes you to this:

http://www.gamerzneeds.net/forums/help-request/

When your inside that forum, the thingy in the navbar does not include the actual page, so users can not go back to the page 3 but instead have to go back to page 1.

example of what it looks like:

Gamerz Needs - For All Your Gaming Needs! > GfX - For All your Graphic Needs

but instead it should have this:

Gamerz Needs - For All Your Gaming Needs! > Page 3 title > GfX - For All your Graphic Needs



If you could fix this, you would be awesome ^^

Discussions 11-19-2007 04:45 PM

I agree with hornstar.

Is there any chance of getting an update on this?

Hornstar 11-07-2008 09:10 PM

bump. would be great for this to be continued.

flup 12-15-2008 11:40 PM

hmm.. in that case we should be passing values to the next page I guess,.. or getting the 'page' value from the DB and parse it on the page URL and parse the title in the breadcrumb which would be some more work I guess :$


All times are GMT. The time now is 05:45 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.00984 seconds
  • Memory Usage 1,731KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete