vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=123253)

adwade 02-08-2007 07:51 PM

Quote:

Originally Posted by Wired1 (Post 1173474)
Read the 3.5.x hack instructions. There's BETA search code in there (which is really just vB's search code w/ one minor change). Search for the new code in 3.6.x (they changed like 1 minor thing in it IIRC), and it should work fine.

OH, this sounds like what I need to do!? But for someone who's not a coder, could you say that one-more-time...a little slower? :confused:

Are you saying to find/copy the BETA code out of the 3.5.x version into the 3.6.x version -or- to locate the 'similar code' in the 3.6.x version and then tidy it up somehow to get it to work properly? If the latter, the 'somehow' part would stump me. :(

Has anyone installed this MOD on vB3.6x that could copy/paste their modified memberlist.php file into a CODE box perhaps?

I LOVE the idea of this MOD, but at present it's broken on my system. :o

afmarko99 02-19-2007 03:14 PM

Ok I installed this hack but like others I am having problems. I can go to my User CP and click on (Computer Specs) and it will bring me to the extra page. From there the only thing that is displayed is 'Save Changes' and 'Reset Fields'. Where do I go to add fields?

Did I miss something in the editing? The help file for this mod doesn't tell you how to add fields? The add-on does show you how to make certain fields display but I can't figure out this mod first.

afmarko99 02-19-2007 06:58 PM

Ok so I have this mod working on my forum and I will say that I like it a lot.

Thank you.

I have two questions.

How would I move it to the right side under: Join Date, Location, Etc.
Also I am trying to figure out how to remove the box placed around 'EaglezEye's Computer Specs'. I want it to just display the text.

Can anyone help me?

????

Wired1 02-19-2007 10:56 PM

Quote:

Originally Posted by EaglezEye (Post 1186224)
How would I move it to the right side under: Join Date, Location, Etc.

Example: http://www.thepublicenemy.net/member.php?u=1

What you have said is on the right, is on the left. What do you mean exactly?


Quote:

Also I am trying to figure out how to remove the box placed around 'EaglezEye's Computer Specs'. I want it to just display the text.
I don't see a box, which I'm assuming means you've fixed it? I'm assuming you were talking about a box created by a table or cell, or some vBulletin CSS code.

afmarko99 02-20-2007 06:12 PM

Doh....I meant to post this problem under the posbit hack. I will move the post over.

imranbaig 02-26-2007 08:01 AM

Hey man nice hack.
I tried installing this got an Error.
Did everything followed all steps, getting a blank page for user profile fields >> User Profile Field Manager

?? any suggestions?

Wired1 02-28-2007 12:26 PM

un/reinstall it, it's a typo somewhere.

RedGTiVR6 03-02-2007 11:16 PM

Can anyone tell me if this mod added any tables to the DB and if so, what are the names of those tables?

Perhaps I should ask for some assistance on this.

I have added Zoints to our web site.

One of the blocks that's avaliable out there will take the additional fields that are added to the normal profile (for lack of a better term) and port them over to your Zoints profile page.

It calls on table "cprofilefield" for this information.

I'm gathering that this mod uses the same table?

I'm trying to figure out how to tell this block to look at the fields for this mod rather than the fields that are under the normal profile area. I'm sure it's super easy (or maybe I'm just that ignorant), but I can't figure it out.

I've attached the code below.

Code:

# vBulletin Custom Profile Fields
# 1.0
# Soup (soup@zoints.com)
# http://dev.zoints.com/
#
# This block lets you display your custom profile fields
# from the old vBulletin profile
class user_vbulletin_custom_profile_fields extends z_module
{
        function contents()
        {
                $vbulletin = $this->_zoints->external->vbulletin;
                $languageid = intval($vbulletin->userinfo['languageid']);
               
                # get custom phrases used in this block
                $vbphrase = array();
                $phrases = $vbulletin->db->query_read("
                        SELECT * FROM " . TABLE_PREFIX . "phrase
                        WHERE fieldname = 'cprofilefield'
                                AND (languageid = $languageid OR languageid = -1)
                        ORDER BY languageid DESC
                ");
                while ($phrase = $vbulletin->db->fetch_array($phrases))
                {
                        $vbphrase[$phrase['varname']] = $phrase['text'];
                }
                unset($phrase);
                $vbulletin->db->free_result($phrases);

                # get data from usertextfield for this user
                $extended_info = $vbulletin->db->query_first("
                        SELECT * FROM " . TABLE_PREFIX . "userfield
                        WHERE userid = " . $this->zuser . "
                ");

                $profilefields = $vbulletin->db->query_read("
                        SELECT profilefieldid, required, type, data, def, height
                        FROM " . TABLE_PREFIX . "profilefield
                        WHERE form = 0
                                AND hidden = 0
                        ORDER BY displayorder
                ");

                $search = array(
                        '#(\r\n|\n|\r)#',
                        '#(<br />){3,}#', // Replace 3 or more <br /> with two <br />
                );
                $replace = array(
                        '<br />',
                        '<br /><br />',
                );
               
                $customfields = '';
                while ($profilefield = $vbulletin->db->fetch_array($profilefields))
                {
                        $profilefieldname = "field$profilefield[profilefieldid]";
                        $profilefield['title'] = $vbphrase[$profilefieldname . '_title'];
               
                        if ($profilefield['type'] == 'checkbox' OR $profilefield['type'] == 'select_multiple')
                        {
                                $data = unserialize($profilefield['data']);
                                foreach ($data AS $key => $val)
                                {
                                        if ($extended_info["$profilefieldname"] & pow(2, $key))
                                        {
                                                $profilefield['value'] .= iif($profilefield['value'], ', ') . $val;
                                        }
                                }
                        }
                        else if ($profilefield['type'] == 'textarea')
                        {
                                $profilefield['value'] = preg_replace($search, $replace, trim($extended_info["$profilefieldname"]));
                        }
                        else
                        {
                                $profilefield['value'] = $extended_info["$profilefieldname"];
                        }
                       
                        if ($profilefield['value'] != '')
                        {
                                $customfields .= '<div class="' . $this->style['phead'] . '">' . $profilefield['title'] . '</div>';
                                $customfields .= '<div class="' . $this->style['pmain1'] . '">' . $profilefield['value'] . '</div>';
                        }
               
                }
                $vbulletin->db->free_result($profilefields);
               
                return $customfields;
        }
}

Any help would be greatly appreciated!

Wired1 03-05-2007 01:39 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1194490)
Can anyone tell me if this mod added any tables to the DB and if so, what are the names of those tables?

At the top of all hacks it states if tables are added or not, or if any SQL changes have been made.

The answer is NO.


Quote:

One of the blocks that's avaliable out there will take the additional fields that are added to the normal profile (for lack of a better term) and port them over to your Zoints profile page.

It calls on table "cprofilefield" for this information.

I'm gathering that this mod uses the same table?
NO.

RedGTiVR6 03-05-2007 04:06 PM

wow - sorry dood - just looking for a bit of help....perhaps from someone else in the thread.

Sorry!


All times are GMT. The time now is 08:09 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.01365 seconds
  • Memory Usage 1,764KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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