Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2011, 04:53 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,809
Bloodrun
Send a message via Yahoo to Bloodrun
Default Small Add-On

Okay, so while I wait for a list of what was changed from the old script, here is two additions that were not added on the new update.

They are both easy fixes are go in the sidebar function in your functions.php file.

So you will need to open up your functions.php file and locate your

function getsidebar(){

Right below where it says:

if($isloggedin == "yes") {

Put this:

Code:
$msgctr = "<a href='messages.php'>Visit Message Center</a>(Unread: 0 | Total: 0)<br>";



$query = "SELECT * FROM ".$prefix."messages WHERE touser='".$loggedinname."'";

$result = mysql_query($query);

$num2 = mysql_numrows($result);



if($num2 > 0){

$msgctr = "<a href='messages.php'>Visit Message Center</a>(Unread: 0 | Total: ".$num2.")<br>";

}



$query = "SELECT * FROM ".$prefix."messages WHERE touser='".$loggedinname."' and status='unread'";

$result = mysql_query($query);

$num = mysql_numrows($result);



if($num > 0){

$msgctr = "<a href='messages.php'>Visit Message Center</a>(Unread: <b>".$num."</b> | Total: ".$num2.")<br>";

}







$group = getgroup();

$cancp = cancp($group);



if($cancp == "yes"){

$admin = "<a href='admin.php'><b>ACP</b></a><br>";
And then below that, locate where it says:

$sidebar = "

And where ever you want your Private Message notification to show place this:
".$msgctr."

And where ever you want your admins to see the link to the Admin Control Panel, place this:
".$admin."

And where ever you want a Member List to show up, place this:
<a href='profile.php?'>Member List</a><br>

This is what it will look like:


Just ignore the 'Visit Reports' thats for something in the future.
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #2  
Old 01-18-2011, 05:22 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 488,814
Hall of Famer is on a distinguished road
Default

This looks interesting, seems that you have lots of custom modifications made on your test site. I am sure members will find them helpful.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 01-18-2011, 05:35 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,809
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Hall of Famer View Post
This looks interesting, seems that you have lots of custom modifications made on your test site. I am sure members will find them helpful.
I don't have that many yet, I don't wont to incorporate any of the big ones until I know what was changed on the old files.
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #4  
Old 01-18-2011, 05:37 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 488,814
Hall of Famer is on a distinguished road
Default

Alright, I will give you a change log soon.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 01-18-2011, 05:48 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,809
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Hall of Famer View Post
Alright, I will give you a change log soon.
Alright, thank you very much.
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
Reply With Quote
  #6  
Old 01-18-2011, 05:55 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 38,477
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

So does that mean you're here to stay?

I've done this myself on my own sites but I never thought to post it as a script. *facepalm* Good script though.
Reply With Quote
  #7  
Old 01-18-2011, 06:06 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,809
Bloodrun
Send a message via Yahoo to Bloodrun
Default

Quote:
Originally Posted by Kaeliah View Post
So does that mean you're here to stay?

I've done this myself on my own sites but I never thought to post it as a script. *facepalm* Good script though.
Yessum, Im here to stay.
And I wouldn't call it a script lol, just a modification. =P
__________________
Have any questions?
Feel Free to PM Me! =D
What you could get with a Premium Member account.
The Forum has been released!
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
small (probably) stupid question Lavaheart Questions and Supports 3 10-07-2013 12:48 AM
Small Help jcga Questions and Supports 2 01-22-2010 10:44 PM
small problem Roconza Questions and Supports 12 01-21-2010 04:20 PM
Small Problem SJC Questions and Supports 0 07-02-2009 10:40 AM
Small PHP Question snowman01 Other Chat 2 02-19-2009 08:06 PM


All times are GMT -5. The time now is 02:34 AM.

Currently Active Users: 783 (0 members and 783 guests)
Threads: 4,081, Posts: 32,031, 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