Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Luang

Pages: [1]
1
Mods & Plugins (Releases & Support) / Re: [Mod] Avatar v2.01
« on: April 19, 2003, 05:09:25 PM »
This one can't be too hard to integrate in phpBB I think. Here's a guess by using some code of V@no.

open details.php

repeat this step

Find code:

Code: [Select]
$comment_user_id = $comment_row[$i]['user_id'];

add after

Code: [Select]
$user_row_comment = get_user_info($comment_user_id);


then find

Code: [Select]
$comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_comments']])) ? "<br />".$lang['comments']." ".$comment_row[$i][$user_table_fields['user_comments']] : "";

add after

Code: [Select]
$comment_user_avatar = $user_row_comment['user_avatar'];

then find

Code: [Select]
"comment_user_id" => $comment_user_id,

add after

Code: [Select]
"comment_user_avatar" => $comment_user_avatar,

open the comment_bit.html of your template, then add this wherever you like in your user field. For example find

Code: [Select]
{comment_user_info}<br />

add after

Code: [Select]
<img src="{comment_user_avatar}">


Save and close all files. I'm not sure if this works with vbb, but if you know a bit of mysql look up the avatar field in your user table copy the table name and replace the user_avatar string with your avatar field you found in your usertable.

Code: [Select]
$comment_user_avatar = $user_row_comment['user_avatar'];

You could use this trick to add various information from the user table if you understand what I've just written

2
Mods & Plugins (Releases & Support) / Integration 4images 1.7 / phpBB
« on: March 13, 2003, 12:12:38 PM »
For those of you who like to give their mods administrator access to the gallery too, follow these instructions open up includes/contestants.php and find:

Code: [Select]
define('GUEST', -1);
define('USER_AWAITING', -1);
define('USER', 0);
define('ADMIN', 1);


after add

Code: [Select]
define('MOD', 2);

Close includes/contestants.php

Open up includes/auth.php and find

Code: [Select]
if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == ADMIN) {
    return true;
  }


after add

Code: [Select]
 if ($cat_cache[$cat_id][$type] == AUTH_ALL || $user_info['user_level'] == MOD) {
    return true;
  }


close includes/auth.php

open includes/page_header.php

find

Code: [Select]
"cp_link" => ($user_info['user_level'] != ADMIN) ? "" : "\n<p align=\"center\">[<a href=\"".ROOT_PATH."admin/index.php\">Control Panel</a>]</p>\n",

replace with

Code: [Select]
"cp_link" => ($user_info['user_level'] != ADMIN && $user_info['user_level'] != MOD) ? "" : "\n<p align=\"center\">[<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php")."\">Control Panel</a>]</p>\n",

close includes/page_header.php

open admin/admin_global.php and then find

Code: [Select]
if ($user_info['user_level'] != ADMIN

immediatly after that add

Code: [Select]
 && $user_info['user_level'] != MOD

close and save all files

All mods should have admin access to the gallery now, this is my first time writing some coding instructions so I might have overlooked something, please let me know if it works!

Pages: [1]