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)
-   -   Major Additions - Zoints LOCAL. Social networking, enhanced profiles, blogs and MUCH more (https://vborg.vbsupport.ru/showthread.php?t=130946)

kcsniper 03-09-2007 07:18 PM

I'm a newbie to vB too...but I would say I really support your points like #2,4,5.
I wish my members could do that, too. so.....looking forward on updates later.

btw, does Zoints using phrase? I think i'm going to translate them into Traditional Chinese (HK) if permission from author is given so my members can really enjoy it. Some members don't really enjoy reading English instruction :)
If permission is given, the "Trad. Chinese translated" version can also be posted on vbulletin-china.cn which is an official vB site having Chinese as targeted customer.

Anyway this can only be done after the crazy sat @ TMR :(

Hv a gr8 day,
~kcsniper

Quote:

Originally Posted by Juju Man (Post 1199633)
Kind of cool. Kind of scary.

I am a complete newbie so help me out with the following questions:

1.Can you set it up so that it dosen't need to link with Zoints.com and elimnate the gloabal search?

2.Will members be able to upload backgrounds, music, etc. to their profiles?

3.Will this affect the security of the board?

4.Can you set it up so that it links directly t the vb buddy list?

5.Is it fairly easy to make it look like the rest of your board and not part of a completely different forum?

6.What are blocks anyways (told you I was a newbie)?:o


John Diver 03-10-2007 09:40 AM

Hey,

Could I use this script to create something like a networking site for poker players?

I got a design created for a different script but I would rather use something integrated with vbulletin.

You can see the design at http://www.floporfold.com/temp/gambl...gesites3-1.jpg just to get an idea of what Im thinking - The design could be edited to fit vb/zoints :)

Thanks
John

Follie Folli 03-11-2007 02:57 PM

Is it possible to display random profile or Newest Blog Entries ?
I haven't a CMPS . Only my vbulletin forum and Zoint Local Social Netwroking.

djjeffa 03-13-2007 01:20 AM

if i wanted to add a html block for a feilds on the vb how would i code it so it works right
ex:
Code:

<strong>Location:</strong> $userinfo[field2]
if i use somthing like that i get
Code:

Location $userinfo[field2]
any advise on a code that would work? im asumming it has someting to do with the fact that its ran out of the /z/ folder

RedGTiVR6 03-13-2007 01:32 AM

djjeffa - I've been trying to figure out the same thing for a few weeks now....only to effectively be stone walled...I still can't log into the Dev area of Zoints to download any blocks....


This is the block that the developer wrote to pull the normal profile information. I'm trying to pull fields 18-32 instead of fields 1-5 like this block seems to pull. No dice on my end, but it might help you seeing as how it pulls location, etc on our board.
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 = 18
                                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;
        }
}


djjeffa 03-13-2007 01:51 AM

Quote:

Originally Posted by RedGTiVR6 (Post 1202168)
djjeffa - I've been trying to figure out the same thing for a few weeks now....only to effectively be stone walled...I still can't log into the Dev area of Zoints to download any blocks....


This is the block that the developer wrote to pull the normal profile information. I'm trying to pull fields 18-32 instead of fields 1-5 like this block seems to pull. No dice on my end, but it might help you seeing as how it pulls location, etc on our board.

thanks ill give it a shot but im bad with codes if i figer anything out ill post it.

djjeffa 03-13-2007 02:50 AM

it seems to pull all my feilds that are public but it just comes up with the contents of each feild but not the title?

|Jordan| 03-13-2007 06:51 PM

How do you get the zoints system to use your VB styles?

djjeffa 03-13-2007 11:07 PM

Quote:

Originally Posted by |Jordan| (Post 1202721)
How do you get the zoints system to use your VB styles?

In the zoint admin panel ther is an option to use your header and footer

|Jordan| 03-14-2007 04:43 AM

I dont mean the header and footer, i mean the color schemes. I want my vb style to be consistent across zoints.


All times are GMT. The time now is 09:31 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.03708 seconds
  • Memory Usage 1,765KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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