vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Profile Fields in a Postbit Dropdown (https://vborg.vbsupport.ru/showthread.php?t=248651)

Wired1 08-14-2010 10:00 PM

Profile Fields in a Postbit Dropdown
 
1 Attachment(s)
If you use this mod please hit INSTALL!

NOTE: This mod will be considered in BETA until the following items are cleaned up / added:
1. The CSS for the dropdown. Not horrible, but not pretty.
2. The Automated plugin is not working.
3. Alignment issues with the dropdown itself.


If you ask when the afforementioned items will be fixed - you will be ignored, as I don't have a fix currently. If I did... I'd have fixed it before now! If you have a fix, please PM me and I'll integrate it into the mod and give you proper credit in the version history.


With this mod you can allow profile fields to show up in a dropdown below a user's name and user's title under each post. NOTE: The dropdown's title shows up as [username]'s [dropdown_title]. Yes, the 's is hardcoded into the mod. Figured if I didn't hardcode it, someone wouldn't be able to figure out how to add it :)

To edit the title:

Go to AdminCP -> Languages & Phrases -> Search in Phrases. Search for the phrase's title: [dropdown_title] (no brackets). Edit and save! Note: The default is "Profile Fields".


The dropdown is dependent on Profile Field 5 being filled. If the user does not have this profile field filled out, then the dropdown will not show. To edit or remove this restriction:

Go to the "Dropdown Information - Manual" Template. Find and edit: (so that the dropdown will always show):

Remove the FIRST:
Code:

<vb:if condition="$post['field5']">
and the LAST
Code:

</vb:if>

The "Dropdown Information - Manual" template allows you to manually create the dropdown. Some examples of how to do this are already provided within the template. This template is the default. The "Dropdown Information - Automated" templateand plugin are included as well, but the automated plugin is turned off by default as it isn't working just yet :)


To edit it, go to AdminCP -> Styles & Templates -> Style Manager -> [STYLE NAME]
Edit Style: Dropdown Information - Manual.


New to this version from the previous versions is the epfp.css template.

NOTE: Support will only be given to those who have hit install.

If you use this mod please hit INSTALL!

Wired1 08-15-2010 05:10 AM

Version History:
3.0.0 - Initial Release
3.0.1 - Added plugin to cache templates, courtesy of ssslippy.
3.1.0 - Updated for 3.8.x, no code changes made.
4.0.0 - Updated Dropdown - Manual for vB 4.0.x. Automatic is still being worked on.

Wired1 08-15-2010 05:15 AM

Reserved for future use.

CvP 08-15-2010 04:04 PM

super cool! will install as soon as I upgrade to 4.0.6.

Dutch_Boy 08-15-2010 09:30 PM

Tagged. Waiting for code clean up.

Wired1 08-15-2010 11:10 PM

Seriously, WTF does tagging do.

CvP 08-16-2010 02:48 AM

tagging is like "bookmarking".
I tagged it too. When I upgrade to 4.0.6 this week, i will install it and mark as installed :D

strudinox 08-16-2010 09:10 PM

I've been looking for something like this for a while. I can confirm that it is working fine on v4.0.6.

Thanks!

Dave-M 08-20-2010 12:04 AM

Hi Wired1,

Thanks for this.

I have the dropdown and it is displaying some old info from the old version on 3.8.x. What's even weirder is that I've got no fields to fill in, there's no new fields in my profile at all. Have I missed something fundamental here?

I'm on 4.0.5.

Thanks :)

Wired1 08-20-2010 01:36 AM

What type of old info? Did you revert the templates first (backing up whatever info in the manual template you did)?

Dave-M 08-20-2010 09:56 AM

1 Attachment(s)
Motherboard, CPU details were still there, we had about 10 fields as I remember.

Which templates should I have reverted? I can't remember which ones held that info to be honest. :)

Edit: Also, the phrase edits that I made for the old version to read "System Specs" was still there too. All old plugins were uninstalled.

Fixed one alignment issue with a little workaround, search phrases for whatever your dropdown is called, mine is "System Specs" and just add alt+0160 twice after it, save and that should align the text. It's not very scientific, I know, but it works. I've added an attachment to show it.

Dave-M 08-20-2010 11:40 AM

Got it working thanks mate :)

Just in case anyone else gets stuck in the same way I did. Grab Wired1's extra profile field plugin and use the numbered fields in that to create the sections in your dropdown box, that made it much easier for me.

What would be great is if we could add longer lines of text, because what seems to happen is that it forces the line below to the line below that, if that makes sense?

Wired1 08-24-2010 03:20 AM

What did it look like for you with the alignment issue?

You don't need that mod for this one to work. If you look at the profile fields in the AdminCP you can find out the profile field IDs.

No, that doesn't make sense lol. Mind posting a pic of what you're talking about?

Dave-M 08-24-2010 03:17 PM

1 Attachment(s)
The alignment issue I was referring to, was the text inside the box (see the attachment I posted earlier in the thread) was forced to the right and there was a larger gap (2 extra spaces on the left of the text).

I know you don't need the other plugin, but if, like me, you already had it installed previously for 3.8.x, all your custom fields are still there when you install the new version, so all you need to do is fill in the numbers on your dropdown manual template and you're done.

I've added another attachment to show what I meant about the text being pushed down. For example, if you look at the RAM specs, they are slightly too long to fit in the box, so instead of creating themselves an extra line underneath and moving the other items down one, they are just forcing themselves onto the next line, you can see the "C8" which was the last part of the RAM specs has been forced onto the power supply line, and then all subsequent lines are also forced down one position. Make sense now? :)

LuisManson 08-28-2010 03:38 PM

mmm where is this inserted? it is superposed with the vbexperience bards :(

Wired1 08-30-2010 05:11 AM

Dave-M: That's just wierd! I'll have to check it out tomorrow.

LuisManson: Could you be MUCH more specific? No idea what you're talking about or asking. The dropdown itself shows right below a poster's name in each of their posts.

LuisManson 08-30-2010 05:43 PM

sorry, im using vbexperiencie, and it shows three progress bars, but after instaling your mod one of them (the first) is covered with the dropdown link, i have no idea on how to fix it. i linked a screenshot

sample
http://awesomescreenshot.com/096tov3e

CvP 09-04-2010 06:52 PM

hi wired1.

i just installed it. works fine but manual template is a PITA :(
it is also displaying html entities (for username and for data in profile field).

anyways, i think there used to be some options for this add-on which I can't find on vb4. is it not included?

also, the css looks really messed up. I will style it properly and post a better version in here.
for now, you should do this:
Code:

.memberaction_body.popupbody.epfp_list li.right {
        background-color: {vb:stylevar formrow_background.backgroundColor};
        float: left;
        clear: none;

}


CvP 09-06-2010 12:59 AM

profile fields that contain multiple predefined items (check boxes) only show numbers.

Dr.osamA 09-06-2010 11:03 PM

installed

5 stars

thanxxx

Wired1 09-09-2010 03:06 AM

LuisManson: Possible CSS issue. Not sure how to fix.

CvP: That's ASCII. My mod never had any tweaks or add ons concerning ASCII. Never seen that before. Sounds like something isn't parsing the names right. Unfortunately, the javascript being called are vB calls, so that's out of my hands. Try disabling the following plugin, see what happens:
Quote:

Add epfp.css reference to showthread
MIGHT be the language call in that plugin, but it just grabs it from the vB settings.

As for check boxes not showing up, that's WAY out of my hands. It's due to how vB stores those profile fields (e.g. not like the other fields). It's been like that for years.

Diehardshorty 11-14-2010 11:42 PM

Yea needs alot of work but im glad your working on it. There isn't a mod like this for vb4 yet.

dtorreci 11-26-2010 04:35 PM

Hi

I having some issues displaying dates (is displaying UNIX timestamp format) or IM Icons (which are not displayed) any ideas?

The code I have insert at Dropdown manual is:

Code:

<vb:if condition="$post['joindate']">
        <li class="left">{vb:rawphrase join_date}</li>
        <li class="right"><span class"date">{vb:raw post.joindate}</span></li>
</vb:if>
<li class="left">IM</li>                                       
<li class="right">
                <div class="imlinks2">
                    {vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
                </div>
</li>


LVGgebruiker 01-18-2011 06:35 PM

Quote:

Originally Posted by CvP (Post 2094370)
profile fields that contain multiple predefined items (check boxes) only show numbers.

I also have this problem, is there any fix for this?

Wired1 01-18-2011 07:52 PM

dtorreci: no idea.

LVGgebruiker: Limitation of vBulletin's implementation of profile fields.

LVGgebruiker 01-19-2011 07:00 PM

Quote:

Originally Posted by Wired1 (Post 2151121)
LVGgebruiker: Limitation of vBulletin's implementation of profile fields.

Ok thank you, will look for other solution then.

Dave-M 02-13-2011 04:26 AM

Does anyone know if this works OK on 4.1.1? Seems very quiet in here compared to the last version threads, are people using something else instead?

Dave-M 02-13-2011 07:42 PM

Seems to be broken in 4.1.1.

The dropdown works and is displaying what was previously in the custom fields, and the extra options link is there, but the page is blank with no fields in it.

Edit: Fixed. Just needed to be reinstalled, both this and the profile fields mod.

Cheers :)

Dave-M 03-04-2011 08:32 PM

Found an odd issue. If I create a new user field, it only displays in the user profile and not in the extra options page.

Shouldn't there be something in the dropdown on display on page page, to tell it where to show the new fields?

kisanjong 03-05-2011 12:12 PM

great mod :) - but can you tell me if this works with Multiple-Selection Checkbox fields?

Thanks

Saviour 03-05-2011 09:48 PM

Wired,

I absolutely loved this mod in the 3.x.x versions of vb. I'm currently running 4.1.2. I'm going to give this a shot, even though it's only a Beta version.

Here's hoping it works without a "glitch"...pardon the pun.

I have a free computer help website, I just re-vamped...and want to bring this mod back. It's a "must" on our board.

Anyway...I'll mark as "Installed" for now...

Here's to a stable release for 4.1.2. ;)

Saviour 03-06-2011 07:01 AM

Wired,

Having the same issue Dave-M was having in this post: https://vborg.vbsupport.ru/showpost....9&postcount=14

Sorry, bud. "Uninstalled"...for now. Still "Tagged", though.

Dave-M 03-06-2011 01:44 PM

I have also uninstalled. Shame, cause it's been one of the most useful mods for a long time. :)

CvP 03-07-2011 05:52 AM

@Saviour and Dave-M
Please check out my site: http://banglagamer.com/forums and see if the "glitch" you are mentioning happens in there too.

If I remember correctly, I fixed this on my site. If you can't reproduce, I'll dig up what I changed to fix it.

Dave-M 03-07-2011 03:34 PM

Thanks for the help CvP :)

Yes, you do seem to have it nailed on your site, but unfortunately, after updating to 4.1.1, any time I add a new user profile, for some reason it was adding them to the main profile page under location and the other stock fields.

I have now found a really nice alternative, it goes in the bottom of the postbit and then the specs are shown in the sig area, looks great and very neat. Not sure it would be right to post it here, but if you want to PM me, I can send the link for it on here.

Saviour 03-08-2011 02:40 PM

Wired,

Okay...I've "un-tagged" this mod. What the hell does "tagged" do, anyway? ;)

Anyway...I've installed all three mods...the epfp mod, the tab mod, now this one. All seems to be working fine except for the way the dropdown looks...after you click on it.

Just like I mentioned in my last post...referring to Dave-M's post here: https://vborg.vbsupport.ru/showpost....9&postcount=14

This is the same issue I'm currently having.

Are you in the process of fixing this...or is it not on your list of "top priorities"?

I hope I'm not sounding a bit obtuse...however, I could use this mod on my site. I used it before, without a hitch, when I was using vb 3.x.x. I absolutely loved it! Now my members want it back... Well, I have it back but, except for the above mentioned glitch and appearance...everything else is working fine.

Thanks for a great mod!

CvP 03-08-2011 10:52 PM

If you want the fix for that issue, it is given in #18 post (by myself)
https://vborg.vbsupport.ru/showpost....1&postcount=18

Saviour 03-08-2011 11:52 PM

Honestly, CvP...I took a look at the mod on your forum. No offense, but to me...it looks no better than mine. There was a post in an earlier version of this mod...for 3.x.x...not sure. Anyhow, I think this individual took a different route with it...and it looked much better. However, Wired never responded to it. I guess I'll just hang loose and wait and see what happens with this one.

CvP 03-10-2011 01:13 AM

Quote:

Originally Posted by Saviour (Post 2171163)
Honestly, CvP...I took a look at the mod on your forum. No offense, but to me...it looks no better than mine. There was a post in an earlier version of this mod...for 3.x.x...not sure. Anyhow, I think this individual took a different route with it...and it looked much better. However, Wired never responded to it. I guess I'll just hang loose and wait and see what happens with this one.

If you are referring to the "text overflows in next line causing table row mismatch", I think it is indeed fixed in my site.

I never got the time to "fix up" this mod. Wired is extremely "busy". As far as I understand, I need to fix it up myself and I will do it soon (just going thru some real life problems such as setting up a new office).

Za4a Tuner 04-01-2011 07:47 AM

Installed at my vB4.1.2 and works fine!
Thanks for the release!


All times are GMT. The time now is 06:19 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.01492 seconds
  • Memory Usage 1,831KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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