Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 06-18-2014, 07:27 AM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,381
IntoRain is on a distinguished road
Default

Quote:
Originally Posted by Kyttias View Post
Ah, what if I just wanted the number of pending friend requests, but not a list of names? Is that simpler? (Is exploding supposed to sound dangerous, because it does.) I'll take a closer look in a few minutes, but I really can't thank you enough for all this help. ovo~

I could probably make a tooltip with a fun combination of Smarty conditionals and Javascript, that if the 'pending requests' are 'greater than 0', hovering over the notification would pull down a notification with, if I knew how to get this information, the pending friend(s) names and links to confirm or deny them without the need to travel to a new page. But that sounds more ambitious than I want to trouble myself with for tonight.

On a similar vein, if the messages in the inbox were 'greater than zero', to hover over the number and show some basic information, like the message titles (wherein clicking a specific title would take you to that specific message as well) and the senders, of about the first three messages, sort of like you had originally given.

I'll probably accumulate the things I've learned here into a nice convenient post for others eventually. My intention is, of course, to give people a way to easily install something like this, to go under a header image of their choosing:
Number of pending friend requests should be similar to the PM number:

$req = $mysidia->db->select("friend_requests", array(), "touser='{$mysidia->user->username}' and status='pending'")->rowCount();
$this->assign("req",$req);

I think, untested though!

The rest I can help out with whatever you need later tomorrow. I managed to do the message one on my test site the way I showed you, but not javascript, ending up like this:

__________________


asp.net stole my soul.
Reply With Quote
  #12  
Old 06-18-2014, 12:29 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,448
Kyttias is on a distinguished road
Default

@IntoRain - Nice~ I figured it could be done with some simple css, too, but my mind's on fancy things.

Right now I'm deep in thought over how/where I'd like a friend notification to display. I might just make it a surprise modal pop up (not a new window sort of popup, different sort entirely) whenever a new page loaded, sort of like how I want surprise promo codes to pop up. I might even include a promo code with the friend request... in an achievement sort of way?

Actually that could be very cool, the more I think on it. Having one friend will reward you with a promo code, then again at five friends. I don't think I want too much more than that, because I want people having real friends, not just friends for promo codes. Just enough to encourage some social activity!

In addition, if you are a new person's first, second or third friend, I think you should also earn a promo code. Rare creatures based on friendship~ I like the sound of this. ovo

Hey, HoF, is there a referral reward system in place or in the works?

Last edited by Kyttias; 06-18-2014 at 12:31 PM.
Reply With Quote
  #13  
Old 06-20-2014, 10:41 PM
IntoRain's Avatar
IntoRain IntoRain is offline
Moderator
 
Join Date: Jul 2013
Location: Portugal
Posts: 461
Gender: Female
Credits: 19,381
IntoRain is on a distinguished road
Default

Sounds like a cool system, Kyttias, would for sure encourage people to add friends and help out newbies as well :)
__________________


asp.net stole my soul.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Smarty Tips: Things you can do with Templates Kyttias Tutorials and Tips 5 04-03-2015 10:53 AM
Assigning array to smarty variables IntoRain Questions and Supports 3 06-03-2014 02:06 PM
Smarty errors and WAMPP Kesstryl Questions and Supports 15 01-29-2014 09:07 PM
Problem: smarty class 1.3.4 draugluin Questions and Supports 8 11-15-2013 02:29 AM


All times are GMT -5. The time now is 12:38 PM.

Currently Active Users: 9808 (0 members and 9808 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636