Menalto Gallery 2

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

Menalto Gallery 2

PostAuthor: Dragonsys » Wed Jun 07, 2006 5:09 am

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]
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Menalto Gallery 2

PostAuthor: Dragonsys » Wed Jun 07, 2006 6:49 am

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);
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Menalto Gallery 2

PostAuthor: Threat009 » Mon Jun 12, 2006 2:57 pm

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>
Last edited by Threat009 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 11:48 pm
Cash on hand: 0.00

Re: Menalto Gallery 2

PostAuthor: Dragonsys » Tue Jun 13, 2006 3:33 am

Check your settings in the ACP for Gallery. It looks like your paths are not correct.
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Menalto Gallery 2

PostAuthor: Threat009 » Tue Jun 13, 2006 10:22 am

"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:
Last edited by Threat009 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 11:48 pm
Cash on hand: 0.00

Re: Menalto Gallery 2

PostAuthor: Dragonsys » Tue Jun 13, 2006 10:42 am

"Threat009";p="9358" wrote:I may need to bug you again for support :mrgreen:


Anytime <img>
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Menalto Gallery 2

PostAuthor: Threat009 » Tue Jun 13, 2006 11:25 am

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>
Last edited by Threat009 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 11:48 pm
Cash on hand: 0.00

Re: Menalto Gallery 2

PostAuthor: Dragonsys » Tue Jun 13, 2006 11:58 am

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??
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Menalto Gallery 2

PostAuthor: Threat009 » Tue Jun 13, 2006 12:13 pm

"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:
Last edited by Threat009 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 11:48 pm
Cash on hand: 0.00

Re: Menalto Gallery 2

PostAuthor: Dragonsys » Wed Jun 14, 2006 1:03 pm

No, that border is just part of the Template I use for IM
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Menalto Gallery 2

PostAuthor: Threat009 » Wed Jun 14, 2006 1:55 pm

"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>
Last edited by Threat009 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 11:48 pm
Cash on hand: 0.00

Re: Menalto Gallery 2

PostAuthor: Dragonsys » Thu Jun 15, 2006 5:24 am

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
Last edited by Dragonsys on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 6:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: Menalto Gallery 2

PostAuthor: Threat009 » Thu Jun 15, 2006 8:12 pm

Got It! Thanks for that tip :D
Last edited by Threat009 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Sun Apr 09, 2006 11:48 pm
Cash on hand: 0.00


Return to Mods/Hacks

Who is online

Registered users: Google [Bot], Helter, Majestic-12 [Bot]