Welcome to Geeklog, Anonymous Friday, May 03 2024 @ 04:10 am EDT

Geeklog Forums

Can anyone take a few moments to .......


Status: offline

trenchteam

Forum User
Regular Poster
Registered: 06/08/04
Posts: 89
Can someone take the time and highlight exactly what needs to be changed by putting it in red. Im still very lost with this plugin. What am I not foward slashing? Where do I actually put the paths?

###################################################################################
# Insert the following code in lib-custom.php
# and edit $image_dir to your image directory
# I.E 'images' ( dont add forward slash )
# $memo_send = ''; //Location of memo_send.php ( i.e memosystem/memo_send.php )
# $memo_read = ''; //Location of memo_send.php ( i.e memosystem/memo_read.php )


// lib-custom.php

function phpblock_getmemos ( )
{
global $_USER, $_CONF;

$image_dir = '';
$memo_send = '';
$memo_read = '';

$result = mysql_query ( "select * from gl_memo where username = '{$_USER['username']}'" );

if( mysql_num_rows( $result )
{
$count = 0;
$count2 = 0;
}

while ( $memos = mysql_fetch_array ( $result ))
{
if( $memos['rd'] != r )
{
$count += count ( $memos['username'] );
$image = "";

}else{

$count = 0;
$count2 += count ( $memos['username'] );
$image = '';
}
}

$memourl = "Memo: Send |
Read";

return $memourl . "(" . $count . "/" . $count2 . ")" . $image;
}

####################################################################################
# In memo.function.php edit
# $smileys_dir = ''; // Smyley Image Directory
# $image_dir = ''; //Image Directory
# $memo_send = ''; //Location of memo_send.php ( i.e memosystem/memo_send.php )
# $memo_read = ''; //Location of memo_send.php ( i.e memosystem/memo_read.php )


// memo.function.php

-> memosystem/memo.function.php

-> memo.css ( add css to your style.css theme file, and change to fit your needs )

Now all you have to do is just upload the files and the image directory.
After that now what you need to do is add a new phpblock with the following function

-> phpblock_getmemos ( please make sure that there are no spaces after the end of the function
or at the beginning )

Last dump Memosystem.sql in to your database
 Quote

Status: offline

trenchteam

Forum User
Regular Poster
Registered: 06/08/04
Posts: 89
nm, messed with it and figured it out.
 Quote

All times are EDT. The time is now 04:10 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content