vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   lynne help on prefix (https://vborg.vbsupport.ru/showthread.php?t=210148)

vidan 04-02-2009 04:56 PM

lynne help on prefix
 
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

PHP Code:

<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="$limitlower2="$limitupper3="$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

1 Attachment(s)
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


All times are GMT. The time now is 12:27 PM.

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.01042 seconds
  • Memory Usage 1,733KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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