Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Small Add-On (http://www.mysidiaadoptables.com/forum/showthread.php?t=1727)

Bloodrun 01-18-2011 03:53 PM

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:

http://i54.tinypic.com/2rpe0t3.png
Just ignore the 'Visit Reports' thats for something in the future.

Hall of Famer 01-18-2011 04:22 PM

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

Bloodrun 01-18-2011 04:35 PM

Quote:

Originally Posted by Hall of Famer (Post 12672)
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.

Hall of Famer 01-18-2011 04:37 PM

Alright, I will give you a change log soon.

Bloodrun 01-18-2011 04:48 PM

Quote:

Originally Posted by Hall of Famer (Post 12677)
Alright, I will give you a change log soon.

Alright, thank you very much.

Kaeliah 01-18-2011 04:55 PM

So does that mean you're here to stay? :ooo:

I've done this myself on my own sites but I never thought to post it as a script. *facepalm* Good script though. :usedusedused:

Bloodrun 01-18-2011 05:06 PM

Quote:

Originally Posted by Kaeliah (Post 12681)
So does that mean you're here to stay? :ooo:

I've done this myself on my own sites but I never thought to post it as a script. *facepalm* Good script though. :usedusedused:

Yessum, Im here to stay.
And I wouldn't call it a script lol, just a modification. =P


All times are GMT -5. The time now is 04:10 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.