vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Prefix in a own Column (https://vborg.vbsupport.ru/showthread.php?t=231094)

W!cKeD 12-24-2009 05:53 PM

Prefix in a own Column
 
Hello,

anybody here can help me with modifaction some templates?

I need a own column for the Prefixes in combinate with Lynne's Mod

Here is a Screenshot from 3.8

https://vborg.vbsupport.ru/attachmen...d=107952&stc=1

In the vB 3.8, the templates are "FORUMDISPLAY", "threadbit" and "search_results"

Thanks in Advance, i hope anyhere can help me :)

W!cKeD 12-28-2009 12:43 PM

Bump!

No one can help?

Lynne 12-28-2009 01:42 PM

Have you tried anything at all? Perhaps if you post what you tried and what is wrong then someone can suggest another approach.

W!cKeD 12-28-2009 11:15 PM

This is for 3.8

Quote:

Originally Posted by Mystics (Post 225298)
Hier mal eine (hoffentlich) komplette Anleitung, um die Pr?fixe in der Forenansicht und den Suchergebnissen in einer eigenen Spalte darzustellen:

Suche zweimal im Template FORUMDISPLAY:
Code:

<td class="thead" width="100%">
F?ge jeweils dar?ber ein:
Code:

<if condition="$prefix_options"><td class="thead">$vbphrase[prefix]</td></if>
Suche im Template search_results:
Code:

<form action="inlinemod.php?forumid=$forumid" method="post" id="inlinemodform">
F?ge dar?ber ein:
Code:

<if condition="$threadcolspan = $threadcolspan + 1"></if>
Suche dann:
Code:

<td class="thead" width="75%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
F?ge dar?ber ein:
Code:

<td class="thead">$vbphrase[prefix]</td>
Suche im Template threadbit:
Code:

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
F?ge dar?ber ein:
Code:

<if condition="(THIS_SCRIPT == 'forumdisplay' AND $prefix_options) OR THIS_SCRIPT == 'search'"><td class="alt1">$thread[prefix_rich]</td></if>
Suche dann:
Code:

$thread[prefix_rich]
Ersetze es mit:
Code:

<if condition="THIS_SCRIPT != 'forumdisplay' AND THIS_SCRIPT != 'search'">$thread[prefix_rich]</if>

But in German, hope its no problem.

ps2wiz 12-29-2009 06:28 AM

I am also interesting in this, can anyone help?

Thanks in advance.

W!cKeD 01-06-2010 12:17 AM

Bump :)

Please :) no designer here? :)

Way2Fonky 02-06-2010 05:49 PM

Can anyone help us with this please?

W!cKeD 03-08-2010 12:44 PM

Bump it :)

Its so sad that no one can help us.

Ziki 03-08-2010 01:28 PM

Open template threadbit and find:

Code:

<!-- title / author block -->

                        <div class="inner">

add below:

Code:

<div class="threadprefix">
<vb:if condition="!empty($thread['prefixid'])"> {vb:raw thread.prefix_rich} <vb:else /> None </vb:if>
</div>

find:

Code:

<vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich'] ">

                                                <span class="prefix understate">
                                                        {vb:raw thread.movedprefix}
                                                        {vb:raw thread.typeprefix}
                                                        {vb:raw thread.moderatedprefix}
                                                        {vb:raw thread.prefix_rich}
                                                </span>
                                        </vb:if>

replace with:

Code:

<vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix']">
<!-- OR $thread['prefix_rich'] -->
                                                <span class="prefix understate">
                                                        {vb:raw thread.movedprefix}
                                                        {vb:raw thread.typeprefix}
                                                        {vb:raw thread.moderatedprefix}
                                                <!-- {vb:raw thread.prefix_rich} -->
                                                </span>
                                        </vb:if>

Save and open template threadlist.css and find:

Code:

.threadlisthead span.threadinfo {
        width: 62%;
}

.threadlisthead span.threadinfo_withnotification {
        width: 47%;
}

Replace with:

Code:

.threadlisthead span.threadinfo {
        width: 52%;
}

.threadlisthead span.threadinfo_withnotification {
        width: 37%;
}

Find:
Code:

.threadbit .threadinfo {
        width: 62%;
        min-width: 350px;
}

.threadbit .threadinfo_withnotification {
        width: 47%;
}

Replace with:

Code:

.threadbit .threadinfo {
        width: 52%;
        min-width: 350px;
}

.threadbit .threadinfo_withnotification {
        width: 37%;
}

and add this add the end of the template:

Code:

.threadbit .threadprefix {
float: {vb:stylevar left};
width: 10%;
margin: {vb:stylevar padding};
}


That should do it.

W!cKeD 03-08-2010 04:22 PM

1 Attachment(s)
Thank you very much ;)

But dont work for me, its not a own column.
And "search_results" and "Forumdisplay" are missing.

See attach please :) this is from 3.8

Lynne 03-08-2010 08:12 PM

Quote:

Originally Posted by W!cKeD (Post 1999903)
Thank you very much ;)

But dont work for me, its not a own column.
And "search_results" and "Forumdisplay" are missing.

See attach please :) this is from 3.8

Show us the results from after making the changes above. In fact, post a link. No one can help when they can't see what is going on.


All times are GMT. The time now is 07:02 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.04358 seconds
  • Memory Usage 1,749KB
  • 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
  • (19)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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