vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Facebook Profiles (Released) (https://vborg.vbsupport.ru/showthread.php?t=184175)

Aeolian 07-04-2008 05:02 PM

Quote:

Originally Posted by christian8a (Post 1566443)
For my site I used the same style / mods but I sligthly modified it

possible to get the forum style/psd to be used with in different color scheme? remuneration!

christian8a 07-04-2008 05:19 PM

Quote:

Originally Posted by Aeolian (Post 1566828)
possible to get the forum style/psd to be used with in different color scheme? remuneration!

The way I do it is in photoshop:

Ctrl + U for Hue/saturation then check colorize and set values to 0, 25, 0 for a redish look.
But I could get some psd files for it, the only things you need is the logo, and the thead and tcat elements, the rest is only color set on the style manager

S7rik3R 07-04-2008 05:34 PM

I have Vba_Cmp installed so will it still works ?

fattony69 07-05-2008 06:11 AM

Installed the friends product, yet I get this when viewing all friends: Warning: Missing argument 1 for build_field_data() in [path]/includes/class_profileblock.php on line 618, plus the navbar doesn't show up.

christian8a 07-05-2008 06:46 AM

Quote:

Originally Posted by S7rik3R (Post 1566850)
I have Vba_Cmp installed so will it still works ?

You mean within the profiles only? should work normally. If you install the full style you might need to update some images paths on vbadvanced.

Quote:

Originally Posted by fattony69 (Post 1567153)
Installed the friends product, yet I get this when viewing all friends: Warning: Missing argument 1 for build_field_data() in [path]/includes/class_profileblock.php on line 618, plus the navbar doesn't show up.

I just uploaded new files for the navbar to show. It was intentionally made to not show as facebook does, but I see now most of us rather it to show.

The friends product there is nothing you are installing, except creating a template, so there shouldnt be any problem with anything. Now you can try something, to see if you did it right:

Re upload the new file of includes / class_profileblock.php and see if the problem still. If not, open the file and just change (on the whole line that you edited) memberinfo.php for myfriends.php dont change the whole line.
Try first

fattony69 07-05-2008 05:15 PM

Quote:

Originally Posted by christian8a (Post 1567180)
I just uploaded new files for the navbar to show. It was intentionally made to not show as facebook does, but I see now most of us rather it to show.

The friends product there is nothing you are installing, except creating a template, so there shouldnt be any problem with anything. Now you can try something, to see if you did it right:

Re upload the new file of includes / class_profileblock.php and see if the problem still. If not, open the file and just change (on the whole line that you edited) memberinfo.php for myfriends.php dont change the whole line.
Try first

I just did what you said and still the error: Warning: Missing argument 1 for build_field_data() in [path]/includes/class_profileblock.php on line 618

christian8a 07-05-2008 06:30 PM

Quote:

Originally Posted by fattony69 (Post 1567524)
I just did what you said and still the error: Warning: Missing argument 1 for build_field_data() in [path]/includes/class_profileblock.php on line 618

I mean, reupload the file class_profileblock.php that vb came with, the one unmodified. And load the friends page, the only thing that will not work is the page nav.
So the warning error should be gone, then use that same clean file that vb came with and open it and just change the memberinfo.php for myfriends.php not the full line.

If thats what you did, dont mind me, im just double checking.

fattony69 07-06-2008 12:45 AM

Quote:

Originally Posted by christian8a (Post 1567567)
I mean, reupload the file class_profileblock.php that vb came with, the one unmodified. And load the friends page, the only thing that will not work is the page nav.
So the warning error should be gone, then use that same clean file that vb came with and open it and just change the memberinfo.php for myfriends.php not the full line.

If thats what you did, dont mind me, im just double checking.

Yup, I did that. I always keep backups.

PixelFx 07-06-2008 10:53 AM

Quote:

Originally Posted by christian8a (Post 1567567)
I mean, reupload the file class_profileblock.php that vb came with, the one unmodified. And load the friends page, the only thing that will not work is the page nav.
So the warning error should be gone, then use that same clean file that vb came with and open it and just change the memberinfo.php for myfriends.php not the full line.

If thats what you did, dont mind me, im just double checking.

I'm getting this error too, but the way your wording it for setup not sure, could you explain this fix a bit better please.

Also side note, what currency are you using for the gift system, or is it someting I could plug vbcredits into?

christian8a 07-06-2008 11:50 AM

It might not be compatible with 3.7.2 then guys. As soon as I upgrade my software I will fix this.

R-D 07-06-2008 12:12 PM

Commenting out this chunk of code in myfriends.php fixes that error, seemingly with no adverse effects.
Code:

$profileblock =& $blockfactory->fetch('ProfileFields');
$profileblock->build_field_data();

foreach ($profileblock->locations AS $profilecategoryid => $location)
{
if ($location)
{
$blocklist["profile_cat$profilecategoryid"] = array(
'class' => 'ProfileFields',
'title' => $vbphrase["category{$profilecategoryid}_title"],
'options' => array('category' => $profilecategoryid),
'hook_location' => $location
);
}
}


R-D 07-06-2008 12:20 PM

The 3.7.2 member.php has changed that code to the following (see below), you should be able to replace the old code with the new stuff (untested), although just removing it as above works too.

Code:

$vbulletin->GPC['simple'] = ($prepared['myprofile'] ? $vbulletin->GPC['simple'] : false);

$profileblock =& $blockfactory->fetch('ProfileFields');
$profileblock->build_field_data($vbulletin->GPC['simple']);

foreach ($profileblock->locations AS $profilecategoryid => $location)
{
        if ($location)
        {
                $blocklist["profile_cat$profilecategoryid"] = array(
                        'class'        => 'ProfileFields',
                        'title'        => $vbphrase["category{$profilecategoryid}_title"],
                        'options'      => array(
                                'category' => $profilecategoryid,
                                'simple'  => $vbulletin->GPC['simple'],
                        ),
                        'hook_location' => $location
                );
        }
}


Out of interest, don't you have to have Jelsoft's permission to copy such a sizeable chunk of their work? Your myfriends.php file is exactly the same as Jelsoft's member.php.

christian8a 07-06-2008 02:41 PM

Quote:

Originally Posted by R-D (Post 1568110)
Out of interest, don't you have to have Jelsoft's permission to copy such a sizeable chunk of their work? Your myfriends.php file is exactly the same as Jelsoft's member.php.

The friends page is a copy of your memberinfo.php file, basically you are just using another profile page, with a different template and only using the friends block. Permission from jelsoft I dont need unless I am "selling" their product. As far as I know Im allowed to modify my own files and templates as I totally wish and here Im just sharing how I got it to work on my site after plenty of requests.

Glad you fixed it, I wish everybody could just do that and make their own page to work

==========
By the way the friends product that I was including in the pro version is totally different than this one and that one was made out of thin air, you can see it in action here (just to make things clear) ;)

http://www.myls1.com/friends.php?u=1

xxalexkimxx 07-06-2008 03:39 PM

Can we make our users to be able to change the background?

Booth 07-06-2008 05:02 PM

Quote:

Originally Posted by xxalexkimxx (Post 1565329)
I just bought pro version and installed it, but when I'm trying to view the profile it doesn't work. Database error, here's the message, please check.

Database error in vBulletin 3.7.1:

Invalid SQL:

SELECT
gifts.gifttypeid, gifts.giftid, gifts.comment, gifts.message,
gifts.private, gifts.recipient, gifts.recipientid, gifts.sender,
gifts.senderid, gift_type.image
FROM khmerroom_gifts AS gifts
LEFT JOIN mysite_gift_type AS gift_type ON(gifts.gifttypeid = gift_type.gifttypeid)
WHERE recipientid = 1
ORDER BY dateline DESC
LIMIT 4;

MySQL Error : Table 'mysitecom_gifts' doesn't exist
Error Number : 1146
Request Date : Wednesday, July 2nd 2008 @ 04:40:07 PM
Error Date : Wednesday, July 2nd 2008 @ 04:40:07 PM
Script : http://www.mysite.com/member.php?u=1
Referrer : http://www.mysite.com/index.php
IP Address : **.**.**.**
Username : xxAlexKimxx
Classname : vB_Database
MySQL Version : 5.0.27

I've purchased the gifts plug-in and I'm getting exactly the same error. When the product installs it doesn't appear to be installing the database tables.

Any chance of a fix so that I can get gifts working?

fattony69 07-06-2008 05:20 PM

Quote:

Originally Posted by PixelFx (Post 1568065)
I'm getting this error too, but the way your wording it for setup not sure, could you explain this fix a bit better please.

Also side note, what currency are you using for the gift system, or is it someting I could plug vbcredits into?

I would be very happy if you did that. I love vbcredits and this would just be awesome.

christian8a 07-06-2008 06:26 PM

Guys the Gift product is not supported, is an external addon and we are not supposed to use vb.org to talk about that. It is a custom work somebody made for my site that I decided to share it for a small fee, but I didnt make. It has been working so perfectly in all of my sites that now that I see these errors some of you are getting I have no clue why or how to fix it :( sorry about that.

xxalexkimxx 07-06-2008 10:56 PM

Quote:

Originally Posted by Booth (Post 1568286)
I've purchased the gifts plug-in and I'm getting exactly the same error. When the product installs it doesn't appear to be installing the database tables.

Any chance of a fix so that I can get gifts working?

I know why's the error...it's because when you installed the vBulletin, you gave it a table prefix on your config.php so when u install the gift it couldn't find that table prefix.....
and I think the coder needs to take a look on that error too!

christian8a 07-06-2008 11:01 PM

Quote:

Originally Posted by xxalexkimxx (Post 1568524)
I know why's the error...it's because when you installed the vBulletin, you gave it a table prefix on your config.php so when u install the gift it couldn't find that table prefix.....
and I think the coder needs to take a look on that error too!

This makes more sense...
I will ask if he could take a look at that.

schlottkej 07-06-2008 11:17 PM

Works fine over here..

xxalexkimxx 07-06-2008 11:23 PM

Quote:

Originally Posted by christian8a (Post 1568528)
This makes more sense...
I will ask if he could take a look at that.


If you are going to ask, can you ask him to add another feature in it? It would be more fun if member can change their own background for themself.....

Booth 07-06-2008 11:32 PM

Quote:

Originally Posted by xxalexkimxx (Post 1568524)
I know why's the error...it's because when you installed the vBulletin, you gave it a table prefix on your config.php so when u install the gift it couldn't find that table prefix.....
and I think the coder needs to take a look on that error too!

Sometime's it doesn't see the prefix and sometimes it requires the prefix. So if you manually add your prefix to the tables, it fixes a lot of problems but creates another. I'm sure it can be fixed though.

fattony69 07-07-2008 04:24 AM

Quote:

Originally Posted by R-D (Post 1568106)
Commenting out this chunk of code in myfriends.php fixes that error, seemingly with no adverse effects.
Code:

$profileblock =& $blockfactory->fetch('ProfileFields');
$profileblock->build_field_data();

foreach ($profileblock->locations AS $profilecategoryid => $location)
{
if ($location)
{
$blocklist["profile_cat$profilecategoryid"] = array(
'class' => 'ProfileFields',
'title' => $vbphrase["category{$profilecategoryid}_title"],
'options' => array('category' => $profilecategoryid),
'hook_location' => $location
);
}
}


This works to solve the error!

Monja 07-08-2008 07:01 AM

@ fattony or christian - i´ve tried to find the files where i should copy and paste the info, i went to the stylemanager but all i found are the two files, the default file & the facebook style... can you describe a bit more detailed what my next step is?

sorry to be so blond - i know about css but i couldn´t finde the memberinfo, memberinfo_css and the third on my server.

thanks for your help

DannyITR 07-08-2008 08:46 PM

Quote:

Originally Posted by Monja (Post 1569878)
@ fattony or christian - i?ve tried to find the files where i should copy and paste the info, i went to the stylemanager but all i found are the two files, the default file & the facebook style... can you describe a bit more detailed what my next step is?

sorry to be so blond - i know about css but i couldn?t finde the memberinfo, memberinfo_css and the third on my server.

thanks for your help


In the dropdown menu next to those style choose "edit templates". This shows you a list of templates. Scroll down and expand memberinfo templates. In there you will find 3 templates that match the filenames in the zipfile you downloaded. Copy and paste.

Now for my problem. I copy and pasted and the profile looks no different other than a larger profile pic area. What did I miss? Is there a product that comes with this?

DannyITR 07-08-2008 10:01 PM

If I use the entire facebook style then it works. You can't have just the profile re-styled?

Lift for Life 07-09-2008 01:35 AM

Other than the "Missing argument" error on the friends link, this mod (including the Gifts attachement) is working great for me on 3.7.2

I love this style!

Thanks

fattony69 07-09-2008 06:19 AM

Quote:

Originally Posted by Lift for Life (Post 1570593)
Other than the "Missing argument" error on the friends link, this mod (including the Gifts attachement) is working great for me on 3.7.2

I love this style!

Thanks

How did you get the gifts to work>

christian8a 07-09-2008 11:18 AM

Quote:

Originally Posted by DannyITR (Post 1570478)
If I use the entire facebook style then it works. You can't have just the profile re-styled?

The reason why it works with facebook is because the style is fixed and on the right size. If you want you can just use the facebook style templates that you like on your main style.

christian8a 07-09-2008 11:41 AM

Quote:

Originally Posted by Lift for Life (Post 1570593)
Other than the "Missing argument" error on the friends link, this mod (including the Gifts attachement) is working great for me on 3.7.2

I love this style!

Thanks

I see on the profile pics you are missing /forums/ to display the question mark, the same on the memberlist.

Go to memberinfo template and find

PHP Code:

<!-- ##### PROFILE PIC ##### -->
<if condition="$prepared['profilepicurl']">
<
td id="profilepic_cell" class="tborder alt2" align="center"><img src="$prepared[profilepicurl]$prepared[profilepicsizealt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td><else /><td id="profilepic_cell" class="tborder alt2" align="center" height="200"><img src="/images/misc/no_profilepic.gif" alt="" border="0"/></td>

<if 
condition="$prepared['myprofile']"><tr><td class="explanation" nowrap="nowrap" align="center"><class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr></if>
</if>
<!-- 
##### /PROFILE PIC ##### --> 

and replace for this

PHP Code:

<!-- ##### PROFILE PIC ##### -->
<if condition="$prepared['profilepicurl']">
<
td id="profilepic_cell" class="tborder alt2" align="center"><img src="$prepared[profilepicurl]$prepared[profilepicsizealt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" /></td><else /><td id="profilepic_cell" class="tborder alt2" align="center" height="200"><img src="/forums/images/misc/no_profilepic.gif" alt="" border="0"/></td>

<if 
condition="$prepared['myprofile']"><tr><td class="explanation" nowrap="nowrap" align="center"><class="smallfont" href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a></td></tr></if>
</if>
<!-- 
##### /PROFILE PIC ##### --> 

Then go to memberlist templates and on memberlist_resultbit

Find

PHP Code:

<if condition="$show['avatarcol'] AND exec_switch_bg()"><td class="$bgclass">
<if 
condition="$show['avatar']"><img src="$avatarurlborder="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" class="whiteborder"/><else /><img src="/images/misc/unknown.gif" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="24" /></if></td>
</if> 

Replace with

PHP Code:

<if condition="$show['avatarcol'] AND exec_switch_bg()"><td class="$bgclass">
<if 
condition="$show['avatar']"><img src="$avatarurlborder="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="4" class="whiteborder"/><else /><img src="/forums/images/misc/unknown.gif" border="0" $avwidth $avheight alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" hspace="4" vspace="24" /></if></td>
</if> 

I will have an updated copy of the red style you see on demos hopefully tonight and have the friends page fixed ;)

Lift for Life 07-09-2008 11:34 PM

Thanks for the info on the ? Profile pic. I've made the correction and its working.

Lift

Lift for Life 07-09-2008 11:37 PM

Quote:

Originally Posted by fattony69 (Post 1570751)
How did you get the gifts to work>

Basically I just followed the instructions and made sure that the network path was correct. My forum is in a sub-directory and the gifts feature did not work until I corrected the path.

Lift

fattony69 07-10-2008 12:49 AM

Quote:

Originally Posted by Lift for Life (Post 1571486)
Basically I just followed the instructions and made sure that the network path was correct. My forum is in a sub-directory and the gifts feature did not work until I corrected the path.

Lift

Ahh...no wonder. I thought I was missing something. I don't have the instructions. It wasn't smart to reformat my computer the same time I bought this and was moving files. :(

DannyITR 07-10-2008 05:13 PM

What do we do about the change to usercp_shell in the latest version of VB? Its so mods have moderated items visible.

fattony69 07-12-2008 11:16 PM

If any one has the instructions for the gift system, I would appreciate if they can send it to me.

christian8a 07-16-2008 02:54 AM

I sent it on a PM already

halliday06 07-21-2008 10:10 AM

this works great... the only problem i am having is... when i click edit profile picture link, it says i dont have permission

triff 07-23-2008 07:53 AM

Looks great! I'll install it after its updated to 3.7.2.

SGL.

DannyITR 07-23-2008 08:32 PM

I've been trying to get a dropdown menu to work in the header but for some reason it wont. I know whats involved in terms of the code but its just not working. I'm able to put the usercp dropdown in the leftcol and it works but the header never displays the arrow. Any ideas why?

Edit: seems I need to have a <td> tag in order for it to work.

Also the dropdown for notifications in the leftcol shows the arrow but never drops down? Is this a flaw?

christian8a 07-23-2008 11:56 PM

Quote:

Originally Posted by DannyITR (Post 1582546)
I've been trying to get a dropdown menu to work in the header but for some reason it wont. I know whats involved in terms of the code but its just not working. I'm able to put the usercp dropdown in the leftcol and it works but the header never displays the arrow. Any ideas why?

Edit: seems I need to have a <td> tag in order for it to work.

Also the dropdown for notifications in the leftcol shows the arrow but never drops down? Is this a flaw?

First of all looks like for what you display on the forums the fixed style on facebook is 700 width, it wont be enough for your site, you better use the fluid one or expand it more

- The arrow will be a conditional issue or if you didnt upload the images to the facebook style folder? the ones provided are extra, so you still need to use the default vb comes with.

- On the notification drop down, you are right, they will not drop down if there are no notifications, but it leaves the arrow there so people will click and it wont do anything. Really I didnt find a good place for the notifications except for putting them back on the navbar


All times are GMT. The time now is 01:31 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.01719 seconds
  • Memory Usage 1,895KB
  • 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
  • (4)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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