PDA

View Full Version : lynne help on prefix


vidan
04-02-2009, 04:56 PM
Hi Lynne, i need some help *again* regarding prefix.

i know $prefix_options will display all prefix in forumdisplay
but can i make it clickable?

ex: $prefix_options = prefixa prefixb prefixc prefixb

can i make every prefix on forumdisplay when it click display all prefix in prefix$

i know modification, and i search through vb.com and vb.org but i want to have one clickable not dropdown

by looking on this modification

<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="pp" value="$perpage" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
</tr>
<tr valign="top">
<td class="alt1">
<table cellpadding="3" cellspacing="0" border="0" align="center">
<tr>
<if condition="$prefix_options">
<td><select name="prefixid" id="sel_prefixid">
<option value=""$prefix_selected[any]>$vbphrase[any_prefix_meta]</option>
<option value="-1"$prefix_selected[none]>$vbphrase[no_prefix_meta]</option>
$prefix_options
</select></td>
</if>

it is dropdown, can i display all but clickable not dropdown? prefixa prefixb prefixc

Lynne
04-02-2009, 05:35 PM
There is a clickable one in the mods area. It may be by Milad? I'm not sure. But I know there is one. You click on the prefix in front of the thread, and all threads with that prefix appear. If you need a list like you wrote, you'll have to modify that mod or write your own.

vidan
04-02-2009, 06:01 PM
thanks for fast reply, yes i know milad made one, but its under forumdisplay, i thought that its only template change right? can you help me modify this?
thanks Lynne

Lynne
04-02-2009, 07:53 PM
I thought you wanted it for forumdisplay? I would not use that one if all you want is for users to click a link to get all prefixes of that type. You don't need a form for that. You jsut need to add to the end of the forum link - http://yoursite.com/forumdisplay.php?f=x&prefixid=prefixname Change the bold variables to fix your forum and prefixname.

vidan
04-02-2009, 08:37 PM
nah i want this kind of prefix, above newtopic, and have view all
just like this, $prefix_options will display same like this, but not clickable, only show prefix but not click able, this one is clickable
thanks so much Lynne