vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Extra Threadfields Lite(Add Text, Radio, Drop Down, & Checkbox Fields To Threads!) (https://vborg.vbsupport.ru/showthread.php?t=108888)

ConKien 03-22-2006 09:00 PM

Hi Gio~logist, in newthread template, I want to use the if condition to display a certain custom field like

<if condition="$thread[field2]"> $thread[field2]</if>

but nothing show up, I wonder what's the right systax to display custom fields? I want to do it for 4 templates we hav to modify in the instructions as well.

One more thing, how do make the radio buton & multiple checked box display BEFORE the value? Like
[x] A
[ ] B
[ ] C

Instead of
A [x]
B [ ]
C [ ]
?

Thanks Gio~logist for a great hack!

ericgtr 03-22-2006 09:15 PM

Installed! Great hack, well put together and simple. :)

Gio~Logist 03-22-2006 09:22 PM

Quote:

Originally Posted by ConKien
Hi Gio~logist, in newthread template, I want to use the if condition to display a certain custom field like

<if condition="$thread[field2]"> $thread[field2]</if>

but nothing show up, I wonder what's the right systax to display custom fields? I want to do it for 4 templates we hav to modify in the instructions as well.

One more thing, how do make the radio buton & multiple checked box display BEFORE the value? Like
[x] A
[ ] B
[ ] C

Instead of
A [x]
B [ ]
C [ ]
?

Thanks Gio~logist for a great hack!


I do not understand what you want to do in the first part.

For the second part, you'd have to edit the plugin.

Gio~Logist 03-22-2006 09:23 PM

Quote:

Originally Posted by ericgtr
Installed! Great hack, well put together and simple. :)

Thank you :p

ConKien 03-23-2006 01:06 AM

Quote:

Originally Posted by gio~logist
I do not understand what you want to do in the first part.

For the second part, you'd have to edit the plugin.

Gio~logist, what I wanted was to display it manually without using $extrathreadfields in newthread template just like how you show it in FAQ how to put it in postbit & showthread template.

Thanks,
CK

Gio~Logist 03-23-2006 01:08 AM

Quote:

Originally Posted by ConKien
Gio~logist, what I wanted was to display it manually without using $extrathreadfields in newthread template just like how you show it in FAQ how to put it in postbit & showthread template.

Thanks,
CK

You want to insert the fileds in the newthread template manually? All that can be controlled in the admincp. You can control order and everything. What is it that you'd like to change?

ConKien 03-23-2006 01:29 AM

Thanks for a fast respond.

Yes, I want to insert the fields in the newthread template manually. I actually create another hardcode template to organize the fields, make it look different than the original "New Thread". I'm planing a support forum and use your hack to make a question form for members to submit!

Thanks,
CK

tommyxv 03-23-2006 05:01 AM

I don't allow users to be able to edit their threads, just thier posts, can this still work?

Gio~Logist 03-23-2006 10:10 AM

Quote:

Originally Posted by tommyxv
I don't allow users to be able to edit their threads, just thier posts, can this still work?


Just like the title of the thread, these fields can only be edited via edit thread. Perhaps i will see if i can somehow get it to show in edit post for the premium version.

tommyxv 03-23-2006 06:30 PM

That would be cool. The only way I see to let uses edit their threads is to allow then to delete their own threads via the user-group permissions.

Gio~Logist 03-23-2006 06:57 PM

Quote:

Originally Posted by tommyxv
That would be cool. The only way I see to let uses edit their threads is to allow then to delete their own threads via the user-group permissions.

I believe there is a permission setting titled "Can edit own threads".

ConKien 03-23-2006 11:05 PM

gio~logist, can I do such thing with your hack?

https://vborg.vbsupport.ru/showpost....&postcount=247

Gio~Logist 03-24-2006 02:01 AM

Quote:

Originally Posted by ConKien
gio~logist, can I do such thing with your hack?

https://vborg.vbsupport.ru/showpost....&postcount=247

Yes you can. However, it will be complicated unless you are a fairly novice coder. It would require you to understand the plugin, variables, etc.

photoboy 03-26-2006 08:08 AM

Hi Gio,
I had asked in post #116 about showing the extra threadfields in the threadbit (I think it's called the threadbit) - for some reason I can't manage to get the extra threadfields to show up there. can you take a look ?
Thanks!

photoboy 03-26-2006 08:10 AM

this thread is getting really long! sorry if I missed relevant answers...

re: post #122
Any way to pass the extra threadfields to
the message to they can be searchable like any regular message text?

Gio~Logist 03-26-2006 01:18 PM

Your first question - What variable are you trying to use and in what template?

Your second question - I do not believe that that will be available in the Lite version.

photoboy 03-26-2006 05:56 PM

Quote:

Originally Posted by gio~logist
Your first question - What variable are you trying to use and in what template?

This is the code:

Code:

<if condition="$show['gotonewpost']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>

$extrafields
<br>
Hello
        <else />
        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>

$extrafields
<br>
Hello
        </if>

And these images show the type of page it's in - I think it's threadbit - you can see your screenshot and a similar one of mine. I was able to edit the page ("Hello") but $extrafields doesn't seem to be doing anything...

https://vborg.vbsupport.ru/attachmen...6&d=1141294433

https://vborg.vbsupport.ru/attachmen...8&d=1141294620

Gio~Logist 03-26-2006 06:25 PM

That's not the way it sais to do it in the readme.txt. When you do it how it sais int he readme file, does it work?

photoboy 03-26-2006 07:14 PM

Quote:

Originally Posted by gio~logist
That's not the way it sais to do it in the readme.txt. When you do it how it sais int he readme file, does it work?

I thought I followed the instructions - here they are... I don't see what I did differently. The < br > and "Hello" are the only difference, no? I put that in there just to confirm I was able to effect the page. What am I missing?


Code:

// ############# Do The Following In The threadbit template ##############

Search for:
                                <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong

Add below:
                $extrafields


Search for:
<else />
                                <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>

Add below:
                $extrafields


Gio~Logist 03-26-2006 08:09 PM

Quote:

Originally Posted by photoboy
I thought I followed the instructions - here they are... I don't see what I did differently. The < br > and "Hello" are the only difference, no? I put that in there just to confirm I was able to effect the page. What am I missing?


Code:

// ############# Do The Following In The threadbit template ##############

Search for:
                                <strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong

Add below:
                $extrafields


Search for:
<else />
                                <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>

Add below:
                $extrafields


Are you sure that you uploaded the xml and that all of the options are enabled?

Feel free to PM me details to your site and such so that i can take a look.

Gio~Logist 03-28-2006 01:26 AM

[high]Changelog:[/high]
3-27-06
* There was a problem that made i so that if no forumid was specified, instead of showing the fields for all forums, it wouldn't show in any as far as forumdisplay is concerned. This problem has been fixed. Now, if you do not enter any forumid when adding a field, it shows in all forumdisplays like it's supposed to.

Zip Updated!!

Torqued 03-28-2006 03:07 AM

Can the extra text/fields added to the threads be HTML? This might be a good way to add Technorati tags!

Nutz 03-28-2006 11:57 AM

Works well, thanks.

Thanks,
Mat

lazyseller 03-28-2006 02:15 PM

I have a major bug....

Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming

I copied and paste this into the drop down menu options and it keeps cutting off at

Massachusetts


Any Ideas ?

amykhar 03-28-2006 02:39 PM

you don't need html to make it do technorati tags. Think outside the box ;)

Gio~Logist 03-28-2006 07:00 PM

Quote:

Originally Posted by lazyseller
I have a major bug....

Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming

I copied and paste this into the drop down menu options and it keeps cutting off at

Massachusetts


Any Ideas ?

That's not a bug. You just have to edit the database field to make it so that the field's maximum value is at more than what it is now. You can do this via phpmyadmin.

lazyseller 03-28-2006 10:27 PM

What do i look for ?

Gio~Logist 03-28-2006 10:41 PM

Quote:

Originally Posted by lazyseller
What do i look for ?

Go to the thread_fields_admin table and then look for the column that sais "options". Change the 250 (i believe that's what it is), to whatever you'd like.

lazyseller 03-28-2006 10:59 PM

#1074 - Too big column length for column 'options' (max = 255). Use BLOB instead

I got this... i tried to set it at 500

Gio~Logist 03-28-2006 11:41 PM

Try using Mediumint

Warrior 03-29-2006 02:46 PM

This works great! Awesome hack with a lot of potential... great job.

Azhrialilu 03-29-2006 07:03 PM

To upgrade, do we just overwrite the product or are there some more edits to be made?

Gio~Logist 03-29-2006 07:14 PM

Quote:

Originally Posted by Azhrialilu
To upgrade, do we just overwrite the product or are there some more edits to be made?

Just overwrite the product and files :p

Azhrialilu 03-29-2006 07:27 PM

Quote:

Originally Posted by gio~logist
Just overwrite the product and files :p

sweet, thanks Gio :D

Gio~Logist 03-29-2006 07:38 PM

Quote:

Originally Posted by Azhrialilu
sweet, thanks Gio :D

Anytime :p

ConKien 03-30-2006 02:49 AM

Quote:

Originally Posted by gio~logist
Yes you can. However, it will be complicated unless you are a fairly novice coder. It would require you to understand the plugin, variables, etc.

Gio~logist, I understand and can follow the instruction pretty well. I've made the MEMBERINFO template with every custom userfields completely manually (hard coded) and it's almost the same as your hack in this situation. Can you show me where should I begin?

Thanks gio~logist!

Gio~Logist 04-03-2006 08:48 PM

Quote:

Originally Posted by ConKien
Gio~logist, I understand and can follow the instruction pretty well. I've made the MEMBERINFO template with every custom userfields completely manually (hard coded) and it's almost the same as your hack in this situation. Can you show me where should I begin?

Thanks gio~logist!

It requires knowing a bit of php as well. I would do it, however, i am tight on time right now. Sorry about that.

Warrior 04-04-2006 06:33 PM

This hack is great - but what about showing it in the New Posts link?

Like when you search with this:
https://vborg.vbsupport.ru/search.php?do=getnew

Gio~Logist 04-04-2006 10:42 PM

Quote:

Originally Posted by Warrior
This hack is great - but what about showing it in the New Posts link?

Like when you search with this:
https://vborg.vbsupport.ru/search.php?do=getnew

Can we say premium version? :p

RyanC 04-05-2006 03:50 AM

when can we expect said premium version?


All times are GMT. The time now is 03:41 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.01935 seconds
  • Memory Usage 1,838KB
  • 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
  • (3)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete