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)

lazytown 03-12-2006 10:49 PM

I also wanted to add that if you made a full classifieds type system (with buyer/seller ratings, charges for bold/featured headings, etc) I would DEFINITELY be interested and probably be one of your first buyers.

-vissa

Gio~Logist 03-12-2006 11:01 PM

I am proud to announce that i am indeed planning on making an ads system.

Also, this hack will continue to be supported and any bugs (which i don't think there are any) will be fixed. Also, the premium version will not make it to where you loose any info. When/if you upgrade to premium, it will simply be a smooth upgrade for new features.

dakuda 03-13-2006 02:27 AM

One thing I noticed was multiple page threads displayed the pages under the extra fields. I preferred to keep them up with the thread titles.

So, I moved the $extrafields line from the two recommended locations in threadbit to one location (since it is immaterial if the thread is new or not).

After
Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
in the threadbit template, add
Code:

$extrafields
before the
Code:

</div>
tag that immediatly follows it.

This would replace the threadbit template modificatiosn that gio~logist suggests in the install instructions.

Just thought I would throw that out there, in case anyone would use it.

Here is a picture to help explain my madness. I hope this made sense.

Gio~Logist 03-13-2006 09:00 AM

Quote:

Originally Posted by dakuda
One thing I noticed was multiple page threads displayed the pages under the extra fields. I preferred to keep them up with the thread titles.

So, I moved the $extrafields line from the two recommended locations in threadbit to one location (since it is immaterial if the thread is new or not).

After
Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
in the threadbit template, add
Code:

$extrafields
before the
Code:

</div>
tag that immediatly follows it.

This would replace the threadbit template modificatiosn that gio~logist suggests in the install instructions.

Just thought I would throw that out there, in case anyone would use it.

Here is a picture to help explain my madness. I hope this made sense.

Yes it does. Good call, i will update instructions shortly.

Gio~Logist 03-13-2006 09:10 AM

Zip Updated!!!

Dennis B 03-13-2006 02:42 PM

Quote:

Originally Posted by gio~logist
I am proud to announce that i am indeed planning on making an ads system.

I'll watch this closely. :)
It might be a good idea to consider backwards compatibility with iTrader, since many of us use it already as a feedback system. ;)

BTW, in case someone else wants to space the options a little further apart in newthread, instead of messing with the plugin code just prefix the options with '&nbsp;' in the ACP options, like

option1
&nbsp;&nbsp;&nbsp;option2
&nbsp;&nbsp;&nbsp;option3

etc.

dakuda 03-13-2006 03:31 PM

Quote:

Originally Posted by Dennis B
I'll watch this closely. :)
It might be a good idea to consider backwards compatibility with iTrader, since many of us use it already as a feedback system. ;)

BTW, in case someone else wants to space the options a little further apart in newthread, instead of messing with the plugin code just prefix the options with '&nbsp;' in the ACP options, like

option1
&nbsp;&nbsp;&nbsp;option2
&nbsp;&nbsp;&nbsp;option3

etc.

I like that. I was siting around trying to find it elsewhere. :banana:

ricker 03-14-2006 04:43 PM

Would it be possible to have two sets of extra fields, where each set can be displayed independently?

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

Quote:

Originally Posted by ricker
Would it be possible to have two sets of extra fields, where each set can be displayed independently?

I'm not sure exactly what you mean? The amount of extra fields are unlimitted. Also, for future referance, support will only be given to those who click install :p

ricker 03-14-2006 07:56 PM

I understand that it's unlimited - but my question is, if I add 5 fields for example, can I choose 3 of the 5 to display for forumA, and the last 2 of 5 for forumB? Or do they ALL display no matter what?

Thanks, and I clicked install :P

ricker 03-14-2006 08:09 PM

My bad, I just decided to go for it and install ... and it seems like you can specify per field which forum it displays in. Neat feature!!

Gio~Logist 03-14-2006 10:19 PM

Quote:

Originally Posted by ricker
My bad, I just decided to go for it and install ... and it seems like you can specify per field which forum it displays in. Neat feature!!

:p Glad you like it.

ConKien 03-15-2006 11:07 PM

Hi gio~logist, instead creating an independant field to let user fill out, can we have option it to pull off fields from the member profile? Like birthday, locations & stuff?

I want to use a forum to post reviews, the members who post in this forum need to fill out some basic info that already filled out when he/she registered. That's why I need such option!

Thanks for a great hack gio~logist!

Gio~Logist 03-15-2006 11:09 PM

Quote:

Originally Posted by ConKien
Hi gio~logist, instead creating an independant field to let user fill out, can we have option it to pull off fields from the member profile? Like birthday, locations & stuff?

I want to use a forum to post reviews, the members who post in this forum need to fill out some basic info that already filled out when he/she registered. That's why I need such option!

Thanks for a great hack gio~logist!

What do you mean by "put fields in profile"?

lazytown 03-15-2006 11:25 PM

I'm not sure I understand. The problem is, I enable users only to edit their threads on our site for 1 week. VB only lets you set this on the entire site, not per subforum/forum. I would like to allow users to edit your "Extra Threadfields" for a longer period of time (or forever). I wouldn't mind if they could also edit their thread as long is it was on a specified forum/subforum. How exactly would I do that? By the way -- haven't installed it yet but will once I get this part figured out.

Thank You!
-vissa
Quote:

Originally Posted by Smiry Kin's
maybe just add the parshe to thread edit?..
Quote:

Originally Posted by vissa
GREAT GREAT GREAT
Haven't installed yet but will likely if this problem can be solved:
Question: Would it be possible to have these new fields editable by members even if the thread itself isn't editable?
My problem: Vbulletin lets you specify how long a thread/post can be edited, but it only does it on a global basis (not per forum). This causes real problems with for sale/wanted or other types of forums. So if these new fields could be edited even when the thread isn't editable, that could fix the problem. Or perhaps the fields can have an edit time-limit switch or setting themselves (just as threads/posts do).
thank you
-vissa



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

Quote:

Originally Posted by vissa
I'm not sure I understand. The problem is, I enable users only to edit their threads on our site for 1 week. VB only lets you set this on the entire site, not per subforum/forum. I would like to allow users to edit your "Extra Threadfields" for a longer period of time (or forever). I wouldn't mind if they could also edit their thread as long is it was on a specified forum/subforum. How exactly would I do that? By the way -- haven't installed it yet but will once I get this part figured out.

Thank You!
-vissa

Editing extra fields comes hand in hand with editing the thread.

lazytown 03-16-2006 12:10 AM

Quote:

Originally Posted by gio~logist
Editing extra fields comes hand in hand with editing the thread.

So does anyone know of any hack/mod or code changes I could apply that would let me control thread editing of a specific forum?

Thanks
-vissa

ConKien 03-16-2006 12:44 AM

Quote:

Originally Posted by gio~logist
What do you mean by "put fields in profile"?

I'm sorry for such confusion, I actually had some custom profile fields and wanted to use this hack to pull and display them in the thread!

Gio~Logist 03-16-2006 12:49 AM

Quote:

Originally Posted by ConKien
I'm sorry for such confusion, I actually had some custom profile fields and wanted to use this hack to pull and display them in the thread!

That wouldn't work just because of the fact that it will flood the profile with new fields and such. Also, there is no organized way to do this really.

Daniel 03-16-2006 01:06 AM

Quote:

Originally Posted by gio~logist
Thank you very much

Forgot to click install?:p

I know this is late and all but didn't see your reply :P

I personally have no use for this, that's why I didn't state I clicked install. Just mentioning you've done a good job with it. :)

Gio~Logist 03-16-2006 02:25 AM

Quote:

Originally Posted by Daniel
I know this is late and all but didn't see your reply :P

I personally have no use for this, that's why I didn't state I clicked install. Just mentioning you've done a good job with it. :)

Ah i see. Glad you like it :)!

ricker 03-20-2006 06:48 PM

Gio~logist, thanks again for a great hack. But, did I miss something somewhere? I haven't seen anyone else mention that the fields don't retain their values upon clicking the "preview" button.

Gio~Logist 03-20-2006 07:49 PM

Quote:

Originally Posted by ricker
Gio~logist, thanks again for a great hack. But, did I miss something somewhere? I haven't seen anyone else mention that the fields don't retain their values upon clicking the "preview" button.

Ah yes, thanks for warning me about that.
Zip Updated!!!

ubblite 03-20-2006 07:52 PM

Now that's what you call fast support. Good work, gio~logist!

Gio~Logist 03-20-2006 07:55 PM

Quote:

Originally Posted by ubblite
Now that's what you call fast support. Good work, gio~logist!

:p Thank you.

Glad i fixed that before relesing the Premium Version.

Oh and don't forget to click install ;].

ricker 03-20-2006 10:03 PM

Here's another thing, and thanks for the uber-fast service ... when you move (or copy) a thread from one forum to another, even if the same fields are activated in both forums, it doesn't bring them along.

EDIT: Let me clarify, it's only when COPYING threads, not moving them. THX
-Sarah

Gio~Logist 03-20-2006 10:36 PM

Quote:

Originally Posted by ricker
Here's another thing, and thanks for the uber-fast service ... when you move (or copy) a thread from one forum to another, even if the same fields are activated in both forums, it doesn't bring them along.

EDIT: Let me clarify, it's only when COPYING threads, not moving them. THX
-Sarah

That's because moving them moves ALL DATA. Copying them just makes a replica, i may need to add a plugin. I will look into this.

Trana 03-21-2006 01:23 PM

Quote:

Originally Posted by gio~logist
I am thinking about how to incporate it due to the fact that i'm not sure how i will display it. Also, don't forget to click install :p

Any update on getting this to work with CMPS?

blacklancer 03-21-2006 05:36 PM

very cool! thanks!

installed

one question though....once i make some fields, can i place them individually (i.e. $extrafield[xxxx] ) instead of having all of them show up??($extrafields) I am using another hack for the first post of my for sale section, and I want to put the price in one place, condition in another, etc.

thanks!

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

Quote:

Originally Posted by blacklancer
very cool! thanks!

installed

one question though....once i make some fields, can i place them individually (i.e. $extrafield[xxxx] ) instead of having all of them show up??($extrafields) I am using another hack for the first post of my for sale section, and I want to put the price in one place, condition in another, etc.

thanks!

Take a look at the first post.

blacklancer 03-21-2006 07:03 PM

i'm retarded! http://www.sclc.net/forum/images/smilies/lmao.gif

Gio~Logist 03-22-2006 01:18 AM

lol. It's ok. Hope all goes well.

Everyone, feel free to make suggestions via PM for the premium version.

Rankine 03-22-2006 06:40 AM

Hi John, great great work.... This hack is what i need for my forum. ;)
One question. I have a problem with admincp, if i click on extrafield's name this can be edit. Instead if i use button there is no action.
Perhaps it has had to the passage of parameters with the javascript function js_threadfields_jump (button edit/delete) however i have solved for the moment with this code :
Code:

$cell[2] .= "<a href=\"threadfields_admin.php?do=edit&fieldid=$threadfield[fieldid]\"><b>Edita</b></a> ";
          $cell[3] .= "<a href=\"threadfields_admin.php?do=delete&fieldid=$threadfield[fieldid]\"><b>Cancella</b></a>";
                       
      /*$cell[2] .= "\n\t<div style=\"float: right;\">
<select class=\"bginput\" name=\"f$threadfield[fieldid]\">
<option value=\"edit\">Edit</option>
<option value=\"delete\">Delete</option></select>
<input type=\"button\" class=\"button\" value=\"".$vbphrase['go']."\" onclick=\"js_threadfields_jump($threadfield[fieldid]);\" />
</div>";*/

As you can see i have commented button and used a direct link to edit and delete. You can control if it is a problem only mine ? Thanks
P.s. Excuse me for my bad english... I'm italian ;)
Clicked install obviously ;)

Jonathan22 03-22-2006 08:22 AM

Has anyone got any detailed installation instructions for this hack? Some of us need a bit more guidance with step 1 and 2.

Step 1. Import the following product: product-extra_threadfields.xml (How?)
Step 2. Upload the files in the upload folder. (How?)
Step 3. Do the edits located below
Step 4. Edit the newly added options in admincp as you please
Step 5. Enjoy the hack.

Thanks,

Rankine 03-22-2006 09:28 AM

@Jonathan :
Step1 : Import the following product : product-extra_threadfields.xml
Go into your Admin C.P. There is "Plugin System" open and you find the voice Manage Products. Click on this.
On the left there is a link Add/Import Product : Select from your hd the file product-extra_threadfields.xml and import ;)

Step 2 : You have to upload with a Ftp client into your forum dir.
You have 2 dir admincp and includes in file... Put this dir in same place on your forum dir. ;)

Gio~Logist 03-22-2006 09:28 AM

Quote:

Originally Posted by Rankine
Hi John, great great work.... This hack is what i need for my forum. ;)
One question. I have a problem with admincp, if i click on extrafield's name this can be edit. Instead if i use button there is no action.
Perhaps it has had to the passage of parameters with the javascript function js_threadfields_jump (button edit/delete) however i have solved for the moment with this code :
Code:

$cell[2] .= "<a href=\"threadfields_admin.php?do=edit&fieldid=$threadfield[fieldid]\"><b>Edita</b></a> ";
          $cell[3] .= "<a href=\"threadfields_admin.php?do=delete&fieldid=$threadfield[fieldid]\"><b>Cancella</b></a>";
                       
      /*$cell[2] .= "\n\t<div style=\"float: right;\">
<select class=\"bginput\" name=\"f$threadfield[fieldid]\">
<option value=\"edit\">Edit</option>
<option value=\"delete\">Delete</option></select>
<input type=\"button\" class=\"button\" value=\"".$vbphrase['go']."\" onclick=\"js_threadfields_jump($threadfield[fieldid]);\" />
</div>";*/

As you can see i have commented button and used a direct link to edit and delete. You can control if it is a problem only mine ? Thanks
P.s. Excuse me for my bad english... I'm italian ;)
Clicked install obviously ;)

Hm. That's strange. Well, atleast you got it to work :p. By the way, who's John?

Rankine 03-22-2006 10:22 AM

ehm.... gio... :D right... However john is near yuor real name Lol.... by the way excuse me for mistake :)
however It's not possible to use button? :)

Jonathan22 03-22-2006 12:39 PM

Quote:

Originally Posted by gio~logist
$threadfield[description] can be used in a template :p I just didn't automatically include it because i didn't think everyon would want it there.

How do I do this?

Jonathan22 03-22-2006 12:52 PM

Is it possible to set a default for Radio Sets? So that if for example, you had Yes and No, Yes was automatically selected.

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

Quote:

Originally Posted by Jonathan22
How do I do this?

Insert that in the template newthread_extra_fields


All times are GMT. The time now is 01:48 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.02476 seconds
  • Memory Usage 1,860KB
  • 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
  • (8)bbcode_code_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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