vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Thread Listing Background Colors Like vBulletin.org (https://vborg.vbsupport.ru/showthread.php?t=174973)

beduino 06-21-2008 02:37 PM

hello,
a question:
how we can change the default options AFTER install?

a suggestion:
Include in readme how we can change forumdisplay to build a forumdisplay_bgcolors. A lot of people have forumdisplay already changed and maybe is useful some instruction how we can change the template.

But - tks a lot :D
joao barroca
aka beduino

puertoblack2003 08-01-2008 03:51 PM

Quote:

Originally Posted by PGAmerica (Post 1550337)
Well, it seems that all are agreed that we need to allow for the users to have this option set to "yes" be default. And there are ways to do an sql query to set all current users to "yes", but this does not solve the problem with new users.

OK, I figured it out. If you want to make all the options set to "yes" by default. That is,
  • Enable for this forum category thread listing background colors? (Forum Manager)
  • Can this Usergroup Use the Forumdisplay Thread Listing Background Color? (Usergroup Manager)
  • Thread Listing Background Color Legend (UserCP)
All you have to do is the following:
Step 1:
Edit the "product-thread_listing_bgcolors_english.xml" file
Step 2:
Look for
Code:

$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '0 NOT NULL"); 
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD COLUMN bgcolorspermissions INT( 10 ) UNSIGNED DEFAULT '0' NOT NULL");

and replace it with
Code:

$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL");
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "user ADD bgcolors INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL"); 
$vbulletin->db->query_write("ALTER TABLE " . TABLE_PREFIX . "usergroup ADD COLUMN bgcolorspermissions INT( 10 ) UNSIGNED DEFAULT '1' NOT NULL");

Step 3:
Upload the new product via the "Manage Products" link in your ACP
Step 4:
Enter the "Usergroup Manager" and edit any of the usergroups. This will rebuild the BitFields.

If you have already done this, just uninstall it, make the changes and then reinstall it.

It just worked for me perfectly.



thanks that worked

puertoblack2003 08-01-2008 04:22 PM

had security token issues but fixed it from this post #55

thecricketzone 08-04-2008 08:13 PM

^agree its a nice hack but its a hassle to get it to work. i think ive followed every step but it still doesnt show up and there should be a way to set this for all users from ACP in any single usergroup. So I am uninstalling :(

mcyates 08-04-2008 08:21 PM

Not showing for me either.

Deadly Assassin 08-09-2008 08:02 AM

Uninstalled, could not get this to sit right. It keeps messing up my footer etc.

Nice idea though

akonze 08-10-2008 08:35 AM

This is a very interesting hack. I have two questions:

1. Is it possible to only color a some thread? Lets say only sticky and new threads, or do I always have to color all threads?

2. I saw the settings in the user cp. Can it be turned off, that the user can switch this on/off on his own?

Zimbru 08-13-2008 02:29 PM

Quote:

Originally Posted by akonze (Post 1595286)
This is a very interesting hack. I have two questions:

1. Is it possible to only color a some thread? Lets say only sticky and new threads, or do I always have to color all threads?

2. I saw the settings in the user cp. Can it be turned off, that the user can switch this on/off on his own?

That will be very nice.
Im looking for something wich change colors only for new posts.

There is one only for sticky here: https://vborg.vbsupport.ru/showthrea...60#post1596860

If anyone can help me with newposts , let me know please. Thanks

ssslippy 08-16-2008 09:39 PM

I have fixed the security and footer issue waiting for authors permission to post a fix in this thread. Also updated the other code in the moderation drop down as it was wrong.

Basically if anyone wants to fix the footer issue the whole area between
<!-- controls below thread list --> and <!-- / controls below thread list --> should be copy and pasted and then reinsert the code where ever you wish.
Code:

<if condition="$vbulletin->options['enable_thread_listing_color_legend_box'] == 1">
<td align="$stylevar[left]">
<table class="tborder" cellpadding="3" cellspacing="$stylevar[cellspacing]" border="0">
<tr>

<td class="newpost" align="center"><span class="smallfont">$vbphrase[hasann_new_post]</span></td>

<td class="stickythread" align="center"><span class="smallfont">$vbphrase[hasann_sticky_thread]</span></td>

<td class="pollthread" align="center"><span class="smallfont">$vbphrase[hasann_poll_thread]</span></td>

<td class="postedthread" align="center"><span class="smallfont">$vbphrase[hasann_posted_thread]</span></td>

<td class="popularthread" align="center"><span class="smallfont">$vbphrase[hasann_popular_thread]</span></td>

<td class="closedthread" align="center"><span class="smallfont">$vbphrase[hasann_closed_thread]</span></td>

<td class="announcement" align="center"><span class="smallfont">$vbphrase[hasann_announcement_thread]</span></td>

</tr>
</table>
</td>
</if>


ssslippy 08-17-2008 02:34 PM

Here is the fixed version with the security update. Please note I had to relocate the bottom legend to down a block to avoid the footer issue.


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

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.01399 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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