vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Event Attendance 2.0 (https://vborg.vbsupport.ru/showthread.php?t=93782)

Webmist 05-12-2006 03:55 AM

Quote:

Originally Posted by Mighty Mojo
Ok I'm begging now-

How do I get data from specific profile fields to show up next to the username?

I want to be able to take the username, put my custom profile field, say... city next to it, i.e:

Code:
$username, $field10

Try:
$bbuserinfo[username], $bbuserinfo[fieldxx]

|oR|Greg 05-14-2006 02:35 PM

So the 2 are now working together with DR's fix?

I'm desperately hoping someone codes a piece where an admin can remove people that have signed up to an event and you don't want them to have attenedance for whatever reason. Anyone?

sickboy6ths 05-15-2006 10:30 AM

Quote:

Originally Posted by |oR|Greg
So the 2 are now working together with DR's fix?

For me it works, except the html formatting error that I get, (read few posts back).

dodgechargerfan 05-15-2006 03:32 PM

Getting a similar html problem here - but otherwise things seem to be working so far on my test board..

Right after the text of the event, I get this:

*Event text here*<p><strong></strong></p>

<ul>
<li><a href="member.php?u=331">dodgechargerfan</a></li>
</ul>

Edit: If I click the "unattend" link in the calendar event, this gets left in the thread:

<p><strong></strong></p>

<p><i></i></p>


Hopefully, this helps steer someone towards a resolution. I'll keep digging to see what I can figure out, but I'm no expert.

BTW, Thanks for everyone's work on these plug-ins and the plug-in for the plug-ins. :)

dodgechargerfan 05-15-2006 04:21 PM

Also, this:
"Works: You can Attend or UnAttend in either view, showthread or Calendar.
"

Does not work for me. I don't see a link for the attend/unattend in the showthread.

While viewing the thread, I don't see any link to the calendar entry at all..

dodgechargerfan 05-15-2006 04:38 PM

Well, the code that's doing that is in the "calendar_roll" template.
Not sure why it's not working though..

Dewain27 05-16-2006 10:56 PM

Quote:

Originally Posted by sickboy6ths
OK I tried disabling all plugins related to showthread (except the event ones) and still the same problem, tried it with a default style (everything reverted) still no luck... WEIRD :) Maybe you can export your combined products as vbEventForums Attendance or sth like that and attach it? Maybe if I then uninstall mine and reinstall that one it could work?

I agree... I desperatly want these to work together.... :D

Gooses 05-17-2006 04:27 AM

This is a great hack. I am looking forard to implementing it on my site. Thanks!:)

Mighty Mojo 05-19-2006 06:13 AM

Quote:

Originally Posted by Webmist
Try:
$bbuserinfo[username], $bbuserinfo[fieldxx]

Naw that just returns the field of the user that is logged in....

But I've made some progress! If I replace username with say field14 in this part of the plugin:

Code:

if ($_REQUEST['ea'] == "attend")
                {
                        if ($vbulletin->userinfo[userid])
                        {
                        $roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'];       
                        }
                        else

Then it returns the field14 info (but not the username of course)...trouble is, I can't get it to pass both the field14 info AND the username info ;(

How do I get both variables to show up!?!?!

|oR|Greg 05-19-2006 11:23 AM

What about something like this?

Code:


if ($_REQUEST['ea'] == "attend")
                {
                        if ($vbulletin->userinfo[userid])
                        {
                        $roll[$vbulletin->userinfo['field14']] = $vbulletin->userinfo['field14'];
$roll[$vbulletin->userinfo['field15']] = $vbulletin->userinfo['field15'];
$roll[$vbulletin->userinfo['userid']] = $vbulletin->userinfo['username'];       
                        }
                        else



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