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)
-   -   Add-On Releases - vBadvanced CMPS ~ Zoints Random Members (https://vborg.vbsupport.ru/showthread.php?t=130947)

Tigga 11-06-2006 10:00 PM

vBadvanced CMPS ~ Zoints Random Members
 
For those running both vBadvanced CMPS and the new Zoints Local profile system, here is a CMPS module to show random Zoints profile's on your CMPS pages. Simply download the attached file, remove the ".php" extension from the end (that had to be added for vb.org to accept it as an attachment) and upload it using the "Download / Upload Module" link under the vBa CMPS section of your Admin CP.
Enjoy! :)

WritersBeat 11-07-2006 07:03 AM

Any way to add the avatar next to the user name?

edit: I found that you did, but there is a bug. You didn't include /z/ in the url.

Not only that, but is there a way we can display it horizontally instead of vertical?

edit again:

can we have it so that if there is no profile avatar, it shows a "no avatar image" no matter what?

edit again:

the profile links don't work, they link to http://www.writersbeat.com/?z-profile=Lee

instead of

http://www.writersbeat.com/z/Lee

vbreal 11-08-2006 07:55 PM

screen shot

KW802 11-10-2006 08:41 PM

Quote:

Originally Posted by WritersBeat
edit again:

the profile links don't work, they link to http://www.writersbeat.com/?z-profile=Lee

instead of

http://www.writersbeat.com/z/Lee

Try editing your /{forums}/modules/zoints_randmemb.php file and change instances (one at line 29 and another at line 33) of...
Code:

$config['site url']
... to:
Code:

$vbulletin->options['zointsprofile_zurl'] . '/'

vbreal 11-14-2006 10:18 PM

i was able to get mine working. only thing is i would like it to skip members who do not have avatars . if anyone can figure that out it would be great.

I was able to figure out what writers beat meant by the /z/. i also added the change KW mentioned. well u have to add the /z/ to his change. at least that is what i did and it works.

i added .'/z' to the url path and it showed the avatar and took me to the users profile.

don't forget to remove the .php

hope someone can make some more changes.

KW802 11-14-2006 10:29 PM

Ah... I see what's going on now.

vBRreal: Do you the /z folder off of your root folder or off of your /forums folder?

Neutral Singh 11-15-2006 12:18 AM

For me this produces a blank page. I tried reinstalling the templates. no use.

KW802 11-15-2006 01:52 AM

For those having issues, try this version instead (see attached). This version will attempt to display the Zoints Local avatar first if the user has uploaded and if they don't they it will attempt to display their vBulletin avatar if the user has selected one and finally it will default to a generic 'No Avatar' image as a last resort.

Just put the php file in your /forums/modules folder and put the attached gif file into your {style path}/misc folder.

Additional background info...

- The reason that $config['site url'] isn't working is apparently because that variable did exist at one time in the Zoints Local package but, at least as of RC2, it was removed. Since Tigga is a Zoints team member he gets to play with versions that we (the general public) wouldn't necessarily see. Because it was removed it's why using $vbulletin->options['zointsprofile_zurl'] worked instead for some people.

- The reason that $vbulletin->options['zointsprofile_zurl'] doesn't work for everybody is because when you install the vBulletin product that accompanies Zoints Local it creates the new options page in your ACP but... this is the part I overlooked before... you only need to specify a value if you put the /z folder somewhere other than in your /forums folder. That why for me it worked but not others. The revised code attached will use $vbulletin->options['zointsprofile_zurl'] if it has a value else it'll use '/z' if the value is blank.

- The gif file is the generic 'No Avatar' image that is normally distributed with CMPS. Because of that it shouldn't be redistributed with other hacks, etc, etc..

Suzie 11-15-2006 02:39 AM

Okay I give up. (After about 45 minutes of looking for XP info) How do you "remove the .php" from the file?

Neutral Singh 11-15-2006 12:18 PM

Dear KW802,

Although your code does not return a blank page but still i can not view the block...


All times are GMT. The time now is 10:22 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.01026 seconds
  • Memory Usage 1,739KB
  • 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_code_printable
  • (1)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
  • (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