PDA

View Full Version : Prefix in a own Column


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

anybody here can help me with modifaction some templates?

I need a own column for the Prefixes in combinate with Lynne's Mod (https://vborg.vbsupport.ru/showthread.php?t=228695&page=2)

Here is a Screenshot from 3.8

https://vborg.vbsupport.ru/attachment.php?attachmentid=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

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:<td class="thead" width="100%">F?ge jeweils dar?ber ein:<if condition="$prefix_options"><td class="thead">$vbphrase[prefix]</td></if>Suche im Template search_results:
<form action="inlinemod.php?forumid=$forumid" method="post" id="inlinemodform">F?ge dar?ber ein:<if condition="$threadcolspan = $threadcolspan + 1"></if>Suche dann:<td class="thead" width="75%">$vbphrase[thread] / $vbphrase[thread_starter]</td>F?ge dar?ber ein:<td class="thead">$vbphrase[prefix]</td>Suche im Template threadbit:<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">F?ge dar?ber ein:<if condition="(THIS_SCRIPT == 'forumdisplay' AND $prefix_options) OR THIS_SCRIPT == 'search'"><td class="alt1">$thread[prefix_rich]</td></if>Suche dann:$thread[prefix_rich]Ersetze es mit:<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:

<!-- title / author block -->

<div class="inner">

add below:

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

find:

<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:

<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:

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

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

Replace with:

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

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

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

.threadbit .threadinfo_withnotification {
width: 47%;
}

Replace with:

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

.threadbit .threadinfo_withnotification {
width: 37%;
}

and add this add the end of the template:

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


That should do it.

W!cKeD
03-08-2010, 04:22 PM
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
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.