vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Display Enhancements - Custom Forum Display (https://vborg.vbsupport.ru/showthread.php?t=262903)

Eplexx 04-29-2011 10:00 PM

Custom Forum Display
 
1 Attachment(s)
I was a bit lazy today so I'll update the code with a better version later on.

Updates: I've updated the threadbit code so it's not perfect, if not post your issue and I'll try my best to help :). (Redownload the threadbit.txt)

Picture:
http://screensnapr.com/e/g3Cj2V.png

1. Go to Forumdisplay and replace all the code with the txt I've provided in the forumdisplay.txt.

2. Go to threadbit and replace all the code with the txt I've provided in the threadbit.txt.

And that's it!

I'll update this mod way more later on when I have more time, I just thought to share this and see if others would like to customize it and see my concept and do their own thing.

Q-v-n-s-Q 05-05-2011 05:39 PM

cool nice looking there, thank you

asdfadrian 05-14-2011 07:24 PM

How would I apply this to only one forum?

Eplexx 05-16-2011 12:31 PM

Quote:

Originally Posted by asdfadrian (Post 2195724)
How would I apply this to only one forum?

I highly doubt you'd be able to.

asdfadrian 05-16-2011 11:16 PM

Quote:

Originally Posted by Eplexx (Post 2196320)
I highly doubt you'd be able to.

Edit, nvm got it working.

ShawneyJ 05-18-2011 04:36 AM

Quote:

Originally Posted by asdfadrian (Post 2196540)
Edit, nvm got it working.

maybe not? you never shared with anyone else here how you did it :mad:

nice Eplexx thanks.

asdfadrian 05-18-2011 11:06 PM

Quote:

Originally Posted by jaycob (Post 2197045)
maybe not? you never shared with anyone else here how you did it :mad:

1. Simple, first we make a custom template and lets title it "customized_displayforum" go to you styles manager and go to Forum Display Templates>FORUM DISPLAY, copy and paste the default (unmodified) code and paste it into our newly made "customized_displayforum".

2. Now we add the lines below at the beginning of our code. Make sure that the forumid you want to have a customized view to be 1.

PHP Code:

$stylevar[htmldoctype]
<
html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<if 
condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</
head>
<
body>
$header
$navbar

[COLOR="DarkGreen"]<if condition="$forumid == 1">
<else />
... (
Template)

</if>[/
COLOR]
$footer 

3. Go into the Plugin manager, create a new product then create a forumdisplay_complete hook like so:
PHP Code:

eval('$customized_displayforum = "' fetch_template('customized_displayforum') . '";'); 

4. Go back into Forum Display Templates>FORUM DISPLAY from the styles manager and place the variable we defined in the hook $customized_displayforum at the very top like so:

PHP Code:

$stylevar[htmldoctype]
<
html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<if 
condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</
head>
<
body>
$header
$navbar


<if condition="$forumid == 1">
[
COLOR="rgb(0, 100, 0)"]$displayresources[/COLOR]
<else />

....
</if>

$footer 


Customize your customized_displayforum template to your liking, then view forum 1 for results. I hope this helps for others!

PS: If you want the custom display to view in multiple forums you can do so like this:
PHP Code:

<if condition="in_array($foruminfo['forumid'], array(a,b,c,x,y,z))"

Just replace the a,b,c,x,y,z with the forumids. So if you want the customized forumdisplay to be viewed in forum 1, 5 and 6 you would place this code.
<if condition="in_array($foruminfo['forumid'], array(1,5,6))">

al2thero 11-25-2012 06:58 PM

thank you


All times are GMT. The time now is 04:59 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.01098 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_php_printable
  • (4)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