vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Thread Prefixes (https://vborg.vbsupport.ru/showthread.php?t=99925)

Mystics 03-15-2006 08:16 PM

Quote:

Originally Posted by rnmcd
Is it possible to sort a forum by prefixes, alphabetically.

Just click on the prefix table header.

rnmcd 03-15-2006 08:18 PM

Quote:

Originally Posted by Mystics
Just click on the prefix table header.

That's what it looked like from your image but I just wanted to make sure.

I look forward to your update to this hack.

alex905 03-17-2006 05:53 AM

i got a prob im on the code edits number 2

2. Edit the file: includes/class_dm_threadpost.php

and

$mods = explode(' ', $newpostemail);

isent anywere to be seen im useing vb 3.5.4 if that makes a difrence

will o have to wait for the next update or do i just edit another line

LaCN 03-17-2006 12:52 PM

I love this ;)

But I want to have colored prefixes.
Or be able to use images instead.

As a temporal sollution, I added it into the templates.
(dunno where to make it in php, since it all got very confusing now lol)

find in threadbit template
PHP Code:

<if condition="$show['threadprefix'] == 2">
  <
td class="alt1" align="$prefixalignnowrap="nowrap">
    <if 
condition="$thread['threadprefix']">
      
$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]
    </if>
  </
td>
</if> 

:bunny: If you want an image, do something like this:
PHP Code:

<if condition="$show['threadprefix'] == 2">
  <
td class="alt1" align="$prefixalignnowrap="nowrap">
    <if 
condition="$thread['threadprefix']">
      <if 
condition="$thread['threadprefix'] == '[GAME]'">
        <
img src="images/Casino_icon.gif" title="Win Win !! The game is open !" border=/>
      <else />
        
$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]
      </if>
    </if>
  </
td>
</if> 

:bunny: If you want colored prefixes:
PHP Code:

<if condition="$show['threadprefix'] == 2">
  <
td class="alt1" align="$prefixalignnowrap="nowrap">
    <if 
condition="$thread['threadprefix']">
      
$prefixmarkup[0]
      <
span style="color: 
        <if condition="
in_array($thread['threadprefix'], array('[GREEN]''[GREEN2]''[GREEN3]'))">green</if>
        <if condition="
$thread['threadprefix'] == '[SCHEDULED]'">orange</if>
        <if condition="
$thread['threadprefix'] == '[PACK]'">purple</if>
        <if condition="
$thread['threadprefix'] == '[PACI]'">blue</if>
        <if condition="
$thread['threadprefix'] == '[PROGRESS]'">gray</if>
        <if condition="
$thread['threadprefix'] == '[STOPPED]'">red</if>
      "
>
        
$thread[threadprefix]
      </
span>
      
$prefixmarkup[1]
    </if>
  </
td>
</if> 

:bunny: Or if you want it all...
PHP Code:

<if condition="$show['threadprefix'] == 2">
  <
td class="alt1" align="$prefixalignnowrap="nowrap">
    <if 
condition="$thread['threadprefix']">
      <if 
condition="$thread['threadprefix'] == '[GAME]'">
        <
img src="images/Casino_icon.gif" title="Win Win !! The game is open !" border=/>
      <else />
        
$prefixmarkup[0]
        <
span style="color: 
          <if condition="
in_array($thread['threadprefix'], array('[GREEN]''[GREEN2]''[GREEN3]'))">green</if>
          <if condition="
$thread['threadprefix'] == '[SCHEDULED]'">orange</if>
          <if condition="
$thread['threadprefix'] == '[PACK]'">purple</if>
          <if condition="
$thread['threadprefix'] == '[PACI]'">blue</if>
          <if condition="
$thread['threadprefix'] == '[PROGRESS]'">gray</if>
          <if condition="
$thread['threadprefix'] == '[STOPPED]'">red</if>
        "
>
          <else />
            
$thread[threadprefix]
          </if>
        </
span>
      </if>
      
$prefixmarkup[1]
    </if>
  </
td>
</if> 

Anyway, it would be nice if mods could select a color from a list, in the same form they create/edit the prefixes.
And optional select an image from a images/prefixes/ folder or soemthing.

I found out that once a prefix is in the database in the thread-table and it's wrapped with <span color... It shows it in color on the forum.

Xenon 03-17-2006 06:52 PM

search for a post by larrysw he psted the fix in this trhread already...

rnmcd 03-17-2006 07:01 PM

Here is larrsw's fix:
https://vborg.vbsupport.ru/showpost....&postcount=176

Mystics, what new things might be in your new version?

Mystics 03-19-2006 01:12 PM

v1.5.3 is now available. See the first post for details.

Remember: You don't have to do the file modifications as the product will work even though without them! Take a look at the thread to see what the file edits are used for.

rnmcd 03-19-2006 01:59 PM

Incredible! Thanks!

I am setting up a test board this week and this will be my first ever installed hack...wish me luck.

Thanks, Mystics!

rnmcd 03-19-2006 04:40 PM

Any idea what happens if I set up 100 prefixes? Will they display in one long column or is there a break after a certain number of prefixes and another column starts?

Mystics 03-19-2006 04:46 PM

Quote:

Originally Posted by rnmcd
Any idea what happens if I set up 100 prefixes? Will they display in one long column or is there a break after a certain number of prefixes and another column starts?

What do you mean with "column"? All prefixes will be displayed in the drop down list (in one column).


All times are GMT. The time now is 10:41 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.01574 seconds
  • Memory Usage 1,775KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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