Page 1 of 1

Menalto Gallery 2

PostPosted: Wed Jun 07, 2006 6:09 am
Author: Dragonsys
I have had several requests for this, after people have viewed my site. So here it is. This mod will allow you to integrate Menalto's Gallery 2 into your IM Website.

Demo - [url=http]http://www.dragonsys.org/portal/gallery2.php[/url]

Original Mod - [url=http]http://www.nukedgallery.net[/url]

<img> [url=http]Download - 376KB[/url]

Re: Menalto Gallery 2

PostPosted: Wed Jun 07, 2006 7:49 am
Author: Dragonsys
I have yet to find where to put the following code, but everything has been working just fine, so I kinda stopped looking <img>

Code: Select all
##-----[ OPEN ]------------------------------------------# includes/usercp_register.php  ##-----[ FIND ]------------------------------------------#             $sql = "UPDATE " . USERS_TABLE . "                 SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("'", "''", $email) ."', user_icq = '" . str_replace("'", "''", $icq) . "', user_website = '" . str_replace("'", "''", $website) . "', user_occ = '" . str_replace("'", "''", $occupation) . "', user_from = '" . str_replace("'", "''", $location) . "', user_interests = '" . str_replace("'", "''", $interests) . "', user_sig = '" . str_replace("'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("'", "''", $yim) . "', user_msnm = '" . str_replace("'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("'", "''", $user_dateformat) . "', user_lang = '" . str_replace("'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("'", "''", $user_actkey) . "'" . $avatar_sql . "                 WHERE user_id = $user_id";  ##-----[ BEFORE, ADD ]------------------------------------------#             // Update user in gallery             require($phpbb_root_path . 'g2helper.inc');             $g2h = new g2helper($db);             $g2h->updateUser($user_id, $username, $password, $email);

Re: Menalto Gallery 2

PostPosted: Mon Jun 12, 2006 3:57 pm
Author: Threat009
I keep getting these

[code]Undefined class name 'galleryembed' in C]

There was another file doing this too, but haven't gotten it again from that one yet. I'm soo confused <img>

Re: Menalto Gallery 2

PostPosted: Tue Jun 13, 2006 4:33 am
Author: Dragonsys
Check your settings in the ACP for Gallery. It looks like your paths are not correct.

Re: Menalto Gallery 2

PostPosted: Tue Jun 13, 2006 11:22 am
Author: Threat009
"Dragonsys";p="9343" wrote:Check your settings in the ACP for Gallery. It looks like your paths are not correct.

You were right. Thanks for that tip, I don't know how, but I missed this part "The next 2 values will be automatically generated and managed by the integration package. Do not alter them. They will not contain any information until after you've saved the config settings and run the user integration at least once. This is normal" and I kept entering information in the areas mentioned. Appears functional now. I may need to bug you again for support :mrgreen:

Re: Menalto Gallery 2

PostPosted: Tue Jun 13, 2006 11:42 am
Author: Dragonsys
"Threat009";p="9358" wrote:I may need to bug you again for support :mrgreen:


Anytime <img>

Re: Menalto Gallery 2

PostPosted: Tue Jun 13, 2006 12:25 pm
Author: Threat009
stoopid question here. I don't see the option to add block in IM Portal. Maybe I put the tpl/s in the wrong place? Should I just place gallery2.php in a custom block? How exactly do I add the block to my portal? Thanks <img>

Re: Menalto Gallery 2

PostPosted: Tue Jun 13, 2006 12:58 pm
Author: Dragonsys
it's not a block... just put a link in the QBAR to gallery2.php.

on a side note, I just tried to go to the site in your sig ( http://integramod-tw.net/ )
and I'm getting a message that you have been hacked??

Re: Menalto Gallery 2

PostPosted: Tue Jun 13, 2006 1:13 pm
Author: Threat009
"Dragonsys";p="9369" wrote:it's not a block... just put a link in the QBAR to gallery2.php.

on a side note, I just tried to go to the site in your sig ( http://integramod-tw.net/ )
and I'm getting a message that you have been hacked??

Your gallery appears in a block, doesn't it? You have a border around it and it looks like your blocks. Is that just a frame or something?

-tw wasn't mine. That was ganbei's site, I just gave it a plug b/c I got some great mods & stuff there. Wow! I can't believe someone hacked it though. Doesn't make sense, it was only a dev site of sorts to help people :grin:

Re: Menalto Gallery 2

PostPosted: Wed Jun 14, 2006 2:03 pm
Author: Dragonsys
No, that border is just part of the Template I use for IM

Re: Menalto Gallery 2

PostPosted: Wed Jun 14, 2006 2:55 pm
Author: Threat009
"Dragonsys";p="9448" wrote:No, that border is just part of the Template I use for IM

When you get a chance, can you tell me a little more about this. Love the g2 integration, but I think it looks far better when it loads into a border that matches the rest of the site. <img>

Re: Menalto Gallery 2

PostPosted: Thu Jun 15, 2006 6:24 am
Author: Dragonsys
Here is what is in the theme to create the border:

in the .tpl file:
Code: Select all
{TPL_HDR} {TPL_HDR1}  {TPL_FTR}


In the .cfg file]$current_template_images = $current_template_path . "/images";$template_dir = $current_template_path;if((strlen($phpbb_root_path) > 0) && (substr($template_dir, 0, strlen($phpbb_root_path)) !== $phpbb_root_path)){     $template_dir = $phpbb_root_path . $template_dir;}$imageset = $template_dir . '/images';$imageset_dir = $template_dir . '/images/' . $color;$imageset_lang_dir = $template_dir . '/images/{LANG}';$imageset_lang_dir_color = $template_dir . '/images/{LANG}/' . $color;  //// header/footer//  $tpl_hdr = '<TABLE><TBODY><TR><TD><TABLE><TBODY><TR><TD><IMG></TD><TD><strong>';$tpl_hdr1 = '</strong></TD><TD><IMG></TD></TR></TBODY></TABLE></TD></TR><TR><TD><TABLE><TBODY><TR><TD><IMG></TD><TD>';  $tpl_ftr = '</TD><TD><IMG></TD></TR></TBODY></TABLE></TD></TR><TR><TD><TABLE><TBODY><TR><TD><IMG></TD><TD><IMG></TD><TD><IMG></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>';$tpl_ftr1 = '</td><td> </td><td></td></tr><tr><td><img></td><td></td><td><img></td></tr></table><br>';    //// adding custom template variables//$template->assign_vars(array(     // imageset     'T_TEMPLATE_PATH'    => $template_dir,     'TPL_IMAGESET'       => $imageset,     // header     'TPL_HDR'             => $tpl_hdr,     'TPL_HDR1'           => $tpl_hdr1,     // footer     'TPL_FTR'             => $tpl_ftr,     'TPL_FTR1'           => $tpl_ftr1,     ));[/code]

just change the image to what you want to use

Re: Menalto Gallery 2

PostPosted: Thu Jun 15, 2006 9:12 pm
Author: Threat009
Got It! Thanks for that tip :D