Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom Forum Display Details »»
Custom Forum Display
Version: 2.00, by Eplexx Eplexx is offline
Developer Last Online: Apr 2013 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.8.7 Rating:
Released: 04-29-2011 Last Update: 06-22-2011 Installs: 5
Template Edits
Re-useable Code Code Changes Translations  
No support by the author.

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:


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.

Download Now

File Type: txt forumdisplay.txt (22.9 KB, 72 views)
File Type: txt threadbit.txt (5.2 KB, 39 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-05-2011, 05:39 PM
Q-v-n-s-Q Q-v-n-s-Q is offline
 
Join Date: Mar 2005
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool nice looking there, thank you
Reply With Quote
  #3  
Old 05-14-2011, 07:24 PM
asdfadrian asdfadrian is offline
 
Join Date: May 2011
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would I apply this to only one forum?
Reply With Quote
  #4  
Old 05-16-2011, 12:31 PM
Eplexx Eplexx is offline
 
Join Date: Nov 2010
Location: Toronto
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by asdfadrian View Post
How would I apply this to only one forum?
I highly doubt you'd be able to.
Reply With Quote
  #5  
Old 05-16-2011, 11:16 PM
asdfadrian asdfadrian is offline
 
Join Date: May 2011
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eplexx View Post
I highly doubt you'd be able to.
Edit, nvm got it working.
Reply With Quote
Благодарность от:
Eplexx
  #6  
Old 05-18-2011, 04:36 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by asdfadrian View Post
Edit, nvm got it working.
maybe not? you never shared with anyone else here how you did it

nice Eplexx thanks.
Reply With Quote
  #7  
Old 05-18-2011, 11:06 PM
asdfadrian asdfadrian is offline
 
Join Date: May 2011
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaycob View Post
maybe not? you never shared with anyone else here how you did it
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))">
Reply With Quote
  #8  
Old 11-25-2012, 06:58 PM
al2thero al2thero is offline
 
Join Date: Aug 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:07 PM.


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.08013 seconds
  • Memory Usage 2,316KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete