TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 824
  • Total: 824

Events sign-up on Calendar

Started by jayemsee283, November 19, 2007, 07:33:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

confuzed

#40
I didnt want to register at another site, but I have now and it seems to be working on yours.  I wonder why it isn't working on mine. 

I will start over


edited:  ok it seems to be working now, I don't know what I did different, but it is showing the correct events for each member.  But if you are an Admin it shows all events even if you have signed up for none.  That was what was confusing me, as I logged in under another account to look and it showed all events, but that was an admin account too.  I logged in as a regular member and saw only the events I signed up for.

thanks again

JPDeni

The code is written to search for the person who is viewing the block. It wouldn't do any good to use it as it stands in the profile summary.

For example, if you looked at my profile summary, you would not be able to see the events that I had signed up for. You would see the events that you signed up for. In order for you to see the events that I had signed up for, the query would have to be different.

Not sure why it's not working on your site, though. Maybe a start-over will help.

confuzed

sorry, I edited the above post before I realised you had replied

But if you are an Admin it shows all events even if you have signed up for none.  That was what was confusing me, as I logged in under another account to look and it showed all events, but that was an admin account too.  I logged in as a regular member and saw only the events I signed up for.

JPDeni

QuoteBut if you are an Admin it shows all events even if you have signed up for none.
It doesn't on mine. I don't know why it does on yours.

Can you access your database directly, through phpMyAdmin? If you can, take a look at the calendar table and see if your user number is in all of the "attendees" field. That's the only way it would do what you're saying. The code doesn't look at the admin status of the user, but only looks at the "attendees" field in the calendar.

confuzed

ok I'll take a look after work :)

confuzed

ok it is working now :)

now I wanted to put it on another part of the site, like in profiles, is that possible or do you have to change the code?  As an admin I would like to see other people's lists of events and I thought putting it in profiles would be a way to do it.   

JPDeni

You would have to change the code. The code looks at the current user's ID and uses that for the query. That's what the variable $ID_MEMBER is. You'd have to look at the profile script to know what variable is used for the queries on the profile and then substitute that for $ID_MEMBER.

confuzed

ok thanks, I'll have a look but I don't know anything about coding.  Maybe something will pop out at me lol

JPDeni

It's just that altering the profile isn't part of TP and we're supposed to focus on TP here. Maybe you can get help from the mod creator or someone at SMF.

confuzed

#49
thanks, understood.  I looked at it myself but it's all greek to me.   

Alternately would it be possible to have an admin only block with the data in it, as I really want to see by member, who is attending events, as we want to keep stats.  It doesnt matter really where it is when I think about it, I could have a block for just Admin to view showing all members which might work out better, as it would be all in one place rather than having to check profiles :)

This website is proudly hosted on Crocweb Cloud Website Hosting.