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 - vS-Interactive Profiles (https://vborg.vbsupport.ru/showthread.php?t=150028)

BBI-Ross 06-23-2007 01:16 PM

Have you set the usergroup permissions?

TheMilkCarton 06-23-2007 02:39 PM

Quote:

Originally Posted by skariko (Post 1274194)
I'm sorry but I found a bug..
A member is born on 23th October and he's Scorpio.

The zodiac sign that appear on his profile is Libra..

..why?
Can I modify it?

Thanks,

Actually a few of the dates don't match with the right zodiac sign. I'm looking through the dates right now and can edit this post with the correct code.

Blah.. looking into it more, the days vary a lot by where exactly you look.. :)
----------------------------------------------------

Go to Plugin Manager > Interactive Profiles -- System (the one at the "init_startup" hook location)

FIND:
PHP Code:

case '1':
            
$zodiacsign = ($birthday[1] <= 20)     ?     'capricorn'         :     'aquarius';
        break;
        case 
'2':
            
$zodiacsign = ($birthday[1] <= 19)     ?     'aquarius'             :     'pisces';
        break;
        case 
'3':
            
$zodiacsign = ($birthday[1] <= 20)     ?     'pisces'             :     'aries';
        break;
        case 
'4':
            
$zodiacsign = ($birthday[1] <= 20)     ?     'aries'             :     'taurus';
        break;
        case 
'5':
            
$zodiacsign = ($birthday[1] <= 21)     ?     'taurus'             :     'gemini';
        break;
        case 
'6':
            
$zodiacsign = ($birthday[1] <= 21)     ?     'gemini'             :     'cancer';
        break;    
        case 
'7':
            
$zodiacsign = ($birthday[1] <= 22)     ?     'cancer'             :     'leo';
        break;
        case 
'8':
            
$zodiacsign = ($birthday[1] <= 23)     ?     'leo'                 :     'virgo';
        break;
        case 
'9':
            
$zodiacsign = ($birthday[1] <= 21)     ?     'virgo'                 :     'libra';
        break;
        case 
'10':
            
$zodiacsign = ($birthday[1] <= 23)     ?     'libra'                 :     'scorpio';
        break;
        case 
'11':
            
$zodiacsign = ($birthday[1] <= 22)     ?     'scorpio'             :     'sagittarius';
        break;
        case 
'12':
            
$zodiacsign = ($birthday[1] <= 22)     ?     'sagittarius'        :     'capricorn';
        break; 

REPLACE WITH:
PHP Code:

case '1':
            
$zodiacsign = ($birthday[1] <= 19)     ?     'capricorn'         :     'aquarius';
        break;
        case 
'2':
            
$zodiacsign = ($birthday[1] <= 18)     ?     'aquarius'             :     'pisces';
        break;
        case 
'3':
            
$zodiacsign = ($birthday[1] <= 20)     ?     'pisces'             :     'aries';
        break;
        case 
'4':
            
$zodiacsign = ($birthday[1] <= 19)     ?     'aries'             :     'taurus';
        break;
        case 
'5':
            
$zodiacsign = ($birthday[1] <= 20)     ?     'taurus'             :     'gemini';
        break;
        case 
'6':
            
$zodiacsign = ($birthday[1] <= 21)     ?     'gemini'             :     'cancer';
        break;    
        case 
'7':
            
$zodiacsign = ($birthday[1] <= 22)     ?     'cancer'             :     'leo';
        break;
        case 
'8':
            
$zodiacsign = ($birthday[1] <= 22)     ?     'leo'                 :     'virgo';
        break;
        case 
'9':
            
$zodiacsign = ($birthday[1] <= 22)     ?     'virgo'                 :     'libra';
        break;
        case 
'10':
            
$zodiacsign = ($birthday[1] <= 22)     ?     'libra'                 :     'scorpio';
        break;
        case 
'11':
            
$zodiacsign = ($birthday[1] <= 21)     ?     'scorpio'             :     'sagittarius';
        break;
        case 
'12':
            
$zodiacsign = ($birthday[1] <= 21)     ?     'sagittarius'        :     'capricorn';
        break; 

Quote:

Originally Posted by skariko (Post 1274194)
Can I modify it?

It says this product is freely modifiable in the description, so I sure hope so. Otherwise, I'd have to undo a lot of changes. :)

Hope this works for you! :)


P.S. - I got all the dates from one source -- Wikipedia -- so if you disagree with any of the other dates (or any of your members do) then go ahead and change them.

katie hunter 06-23-2007 03:17 PM

I have it on my defaul skin but it looks way messed up on greenfox and element skin =/ so i took them out but i like to have them though

akanevsky 06-23-2007 07:34 PM

Quote:

Originally Posted by skariko (Post 1274194)
I'm sorry but I found a bug..
A member is born on 23th October and he's Scorpio.

The zodiac sign that appear on his profile is Libra..

..why?
Can I modify it?

Thanks,

That's not true. A person born on the 23rd of October is a Libra, according to some horoscopes.

fpouk 06-23-2007 09:13 PM

I have edited all the templates and files that was supposed to be edited but when i install the product it gets stuck at the screen where it is installing. It doesnt import anything

any suggestions?

MDK-Indy 06-24-2007 11:19 AM

Sal?,

have an Error...

PHP Code:

Parse errorsyntax errorunexpected T_ENCAPSED_AND_WHITESPACEexpecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/de/forum.gwars/docs/member.php(819) : eval()'d code on line 385 


Code in member.php...

PHP Code:

// AVATAR
$avatarurl fetch_avatar_url($userinfo['userid']);
 
if (
$avatarurl == '' OR !$vbulletin->options['avatarenabled'] OR ($avatarurl['hascustom'] AND !($userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canuseavatar']) AND !$userinfo['adminavatar']))
{
    
$show['avatar'] = false;
}
else
{
    
$show['avatar'] = true;
    
$userinfo['avatarsize'] = $avatarurl[1];
    
$userinfo['avatarurl'] = $avatarurl[0];


// AVATAR is line 385

Can anyone help me please?

Greeting Indy

soletrader 06-24-2007 08:06 PM

Quote:

Originally Posted by Psionic Vision (Post 1271695)
Please download the package again and use the new memberinfo modification for zodiac sign... There was a little fix. To summarize, the fix is as follows:

REPLACE A VBULLETIN 3.6.5-AND-BELOW VERSION...

HTML Code:

                                <if condition="$userinfo['zodiac_sign']">
                                <tr>
                                        <td>
                                                <strong>$vbphrase[iprof_zodiac_sign]</strong>:<br />
                                                $userinfo[zodiac_sign]
                                        </td>
                                </tr>
                                </if>

WITH A VB 3.6.6+ VERSION...

HTML Code:

                                <if condition="$userinfo['zodiac_sign']">
                                        <dt class="smallfont"><strong>$vbphrase[iprof_zodiac_sign]</strong>:</dt>
                                        <dd class="smallfont">$userinfo[zodiac_sign]</dd>
                                </if>


Hi, I made the changes but the layout did not change. Could you help me out? Thanks

skariko 06-24-2007 08:59 PM

Quote:

Originally Posted by TheMilkCarton (Post 1274650)
Actually a few of the dates don't match with the right zodiac sign. I'm looking through the dates right now and can edit this post with the correct code.

Blah.. looking into it more, the days vary a lot by where exactly you look.. :)
----------------------------------------------------

Hope this works for you! :)


P.S. - I got all the dates from one source -- Wikipedia -- so if you disagree with any of the other dates (or any of your members do) then go ahead and change them.

Thank you, it works.

Wonderful ;)

dope15gd 06-25-2007 03:04 AM

I have a strange problem now. When I make a new post it comes up with the error that it is a duplicate post, but when i return to the thread there is only the one post. It seems to go away when I disable the product so I assume it is doing something fishy. It doesn't seem to matter what style i use since even my unmodified style is giving me issues. Can you think of anything that could give me this problem?

It ended up being the thread prefix hack. for some reason it makes things a double post when an admin/supermod posts

Exitilus 06-25-2007 05:14 AM

Hmm Getting the same error when importing the script
Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /includes/class_core.php on line 665

Seems to work fine. I may look to see what causes this error *shrug* Too dang tired now to do it.

Also for those having problems importing the product. Do NOT use the "Add/Import Product" that is under Plugins and Products. Go to Manage Products, Scroll down to the bottom and click the Add/Import Products there.

If you are running vbseo you may need to add rel="novbseo" in some of the links such as the supress customization link.


All times are GMT. The time now is 08:57 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.01616 seconds
  • Memory Usage 1,815KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_php_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