Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2009, 05:53 PM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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



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

Thanks in Advance, i hope anyhere can help me
Reply With Quote
  #2  
Old 12-28-2009, 12:43 PM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump!

No one can help?
Reply With Quote
  #3  
Old 12-28-2009, 01:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried anything at all? Perhaps if you post what you tried and what is wrong then someone can suggest another approach.
Reply With Quote
  #4  
Old 12-28-2009, 11:15 PM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is for 3.8

Quote:
Originally Posted by Mystics View Post
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.
Reply With Quote
  #5  
Old 12-29-2009, 06:28 AM
ps2wiz ps2wiz is offline
 
Join Date: Apr 2005
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am also interesting in this, can anyone help?

Thanks in advance.
Reply With Quote
  #6  
Old 01-06-2010, 12:17 AM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump

Please no designer here?
Reply With Quote
  #7  
Old 02-06-2010, 05:49 PM
Way2Fonky Way2Fonky is offline
 
Join Date: Dec 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help us with this please?
Reply With Quote
  #8  
Old 03-08-2010, 12:44 PM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump it

Its so sad that no one can help us.
Reply With Quote
  #9  
Old 03-08-2010, 01:28 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 03-08-2010, 04:22 PM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Attached Images
File Type: png dcee302cc90cec1a4d0658ac8d7cfb39.png (14.9 KB, 0 views)
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:59 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.04085 seconds
  • Memory Usage 2,282KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (19)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete