[ABD] TS Photo Gallery Mod for phpBB3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER » Sun Jun 29, 2008 9:28 am

If you delete the gallery sql tables then you will not be able to put your images back into the gallery easily.

To try and keep your images safe while you re-install you will need to backup the albums, pics, comments and ratings tables.

as for the ACP error, if you have not altered the files then I'm not sure with this one either.
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.

User avatar
justhink
Registered User
Posts: 55
Joined: Fri Jun 29, 2007 10:26 pm
Name: Saugata Datta

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by justhink » Tue Jul 01, 2008 6:03 pm

Something wrong with my instalation, any one can tell me how to uninstall this mod from Database, so i can re install this mod..
Last edited by Paul on Tue Jul 01, 2008 6:24 pm, edited 1 time in total.
Reason: removed unneeded bbcode.

VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER » Tue Jul 01, 2008 7:09 pm

see the thread in the F.A.Q section of the preview board

(LINK BELOW)
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.

jazzking2001
Registered User
Posts: 424
Joined: Tue Jul 10, 2007 9:10 pm
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by jazzking2001 » Wed Jul 02, 2008 3:24 pm

um
i have no idea what version that i have of this mod
http://neocrisis.com/forum/gallery/menu.php
i do not know if i need to update it
i have not been working or caring for my forum in a long time
now i do and i need to know if i need to update the gallery lol
Neocrisis.com- What will you find next

hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by hp_solomon » Wed Jul 02, 2008 4:52 pm

how to delete picture? i can't find it.

please advice. thanks!

jazzking2001
Registered User
Posts: 424
Joined: Tue Jul 10, 2007 9:10 pm
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by jazzking2001 » Wed Jul 02, 2008 5:02 pm

hp_solomon wrote:how to delete picture? i can't find it.

please advice. thanks!
i think you do that in the admin control panal
Neocrisis.com- What will you find next

VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER » Wed Jul 02, 2008 5:15 pm

No not in the ACP

to delete an image

view the image (with comments) and click on the "Delete Image" link below the image itself.
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.

achievehigh.org
Registered User
Posts: 300
Joined: Sat Apr 01, 2006 3:08 am
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by achievehigh.org » Fri Jul 04, 2008 8:50 am

I looked at your gallery demo, read the features already available, the requested feature list, and also looked at the beta gallery version of Nickvergessen here and tsr's mod thread, and read the features at the bottom of that thread. I would like to ask you why you decided to make your gallery mod while there was another gallery mod? Was there some features that the other gallery mod I mentioned did not have? Please reply soon. Thanks.

VISIBLETHUNDER
Registered User
Posts: 463
Joined: Fri Mar 02, 2007 8:41 pm
Location: Bolton (UK)
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by VISIBLETHUNDER » Sat Jul 05, 2008 7:04 am

To answer your question achievehigh,

none of the gallery mods available had the features I have added. and I am sure that most of the features still to come will not be available either.
TS Gallery related FAQs, DOWNLOADS and LANG PACKS can be found @ the TS MOD PREVIEW BOARD

Because Version 3 is taking longer than anticipated, I have uploaded a few temporary tools/add-ons to the preview board.

jazzking2001
Registered User
Posts: 424
Joined: Tue Jul 10, 2007 9:10 pm
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by jazzking2001 » Sat Jul 05, 2008 7:37 am

VISIBLETHUNDER wrote:To answer your question achievehigh,

none of the gallery mods available had the features I have added. and I am sure that most of the features still to come will not be available either.
that is great
thats the reason i got this one over others
how is the next um update coming along
just wondering because its been a long time since i last psotsed here
Neocrisis.com- What will you find next

achievehigh.org
Registered User
Posts: 300
Joined: Sat Apr 01, 2006 3:08 am
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by achievehigh.org » Sat Jul 05, 2008 11:53 pm

VISIBLETHUNDER wrote:There are other gallery mods available for phpBB3, some are simply adaptations of this mod.
Of course I would like to think that this gallery mod is the best available, I wouldn't put so much effort into it if I thought otherwise but I suppose it depends on what you are looking for.

The best help I can offer here is the phpBB.com search function. Sorry

The TS Gallery mod is 3.0.1 compatible

VISIBLETHUNDER wrote:To answer your question achievehigh,

none of the gallery mods available had the features I have added. and I am sure that most of the features still to come will not be available either.

Visiblethunder, thanks for your reply. I will try to install your TS gallery mod and hope it works. I can't wait to see it on my forum.

Please add all of the features. They are useful. Photo gallery is really fun. I'll be thrilled when this mod is officially released.


Edit:

I just saw the install.php file! Thanks for making an install file.


jazzking2001 wrote: that is great
thats the reason i got this one over others
how is the next um update coming along
just wondering because its been a long time since i last psotsed here
Jazzking2001, also thanks for letting me know.

jazzking2001
Registered User
Posts: 424
Joined: Tue Jul 10, 2007 9:10 pm
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by jazzking2001 » Sun Jul 06, 2008 1:16 am

your welcome
Neocrisis.com- What will you find next

wiseman1161980
Registered User
Posts: 111
Joined: Wed Oct 04, 2006 5:58 am
Location: Missouri, USA
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by wiseman1161980 » Sun Jul 06, 2008 3:20 am

could you put the version of your mod in your topic title so we will know when you have updated it?

:P

jazzking2001
Registered User
Posts: 424
Joined: Tue Jul 10, 2007 9:10 pm
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by jazzking2001 » Sun Jul 06, 2008 3:21 am

wiseman1161980 wrote:could you put the version of your mod in your topic title so we will know when you have updated it?

:P
i think that would help use a lot
Neocrisis.com- What will you find next

User avatar
Kudlaty
Registered User
Posts: 62
Joined: Sat Feb 10, 2007 8:24 pm
Contact:

Re: [DEV] TS Photo Gallery Mod for phpBB3

Post by Kudlaty » Sun Jul 06, 2008 3:18 pm

I make some function to get recent, random or most viewed picture from gallery and put it on index page :)

it's how to make this:

create file includes/functions_gallery.php
with that:

Code: Select all

<?php

    function get_images($limit_def=5 , $ordine="recent")
    {

    switch ($ordine)
             {
                case "random":
                   $orderby = "RAND()";
                break;

                case "most_view":
                   $orderby = "pic_views";
                break;

                case "recent":
                   $orderby = "pic_time";
                break;
             }
    global $db , $template , $phpbb_root_path , $phpEx, $user;

    // for change images number from url
    if(@$_GET["image_limit"] != "") $image_limit = $_GET["image_limit"] ;
       else $image_limit = $limit_def ;

	$sql = 'SELECT p.*, a.*, r.rate_pic_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments
			FROM ' . GALLERY_PICS_TABLE . " AS p
			LEFT JOIN " . GALLERY_ALBUMS_TABLE . " AS a ON p.pic_album_id = a.album_id
			LEFT JOIN " . GALLERY_RATE_TABLE . " AS r ON p.pic_id = r.rate_pic_id 
			LEFT JOIN " . GALLERY_COMMENT_TABLE . " AS c ON p.pic_id = c.comment_pic_id
			WHERE a.album_password = '' AND a.album_show_gallery != 1
			GROUP BY p.pic_id
			ORDER BY $orderby DESC LIMIT $image_limit";
		$result = $db->sql_query($sql);

          while ($row = $db->sql_fetchrow($result))
          {
             $template->assign_block_vars("image_gallery", array(
             'VIEW'      => "./gallery/viewpic.php?pic_id=". $row['pic_id'] ,
             'U_LINK'   => $phpbb_root_path. "gallery/pic.{$phpEx}?mode=small&pic_id=". $row['pic_id'] ,
	     'PIC_UPLOADER_PROFILE'	=> $phpbb_root_path. "memberlist.{$phpEx}?mode=viewprofile&u=". $row['pic_user_id'] ,
             'PIC_OWNER'      => $row['pic_username'],
             'PIC_COMMENTS'      => $row['comments'],
             'PIC_RATING'      => ( $row['rating'] ? round($row['rating'], 2) : $user->lang['GALLERY_NOT_RATED']),//"Not rated"),
	     'PIC_VIEWS'	=> $row['pic_views'],
	     'PIC_TITLE'	=> $row['pic_title'],
             ));
          }
          $db->sql_freeresult($result);
    }

$template->assign_vars(array(
	'PICS_ALBUM_NAME'	=> $user->lang['GALLERY_MOST_RECENT_PICS'],
	'L_PIC_UPLOADED_BY'	=> $user->lang['GALLERY_UPLOADED_BY'],
	'L_PIC_COMMENTS'	=> $user->lang['GALLERY_COMMENTS'],
	'L_PIC_VIEWS'	=> $user->lang['GALLERY_VIEWS'],
	'L_PIC_RATING'	=> $user->lang['GALLERY_RATING'],
	)
);

?>
next is to create styles/<your style>/template/function_gallery.html
with that:

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
<div class="panel bg3">
	<div class="inner">
		<span class="corners-top"><span></span></span>
		<div style="width: 100%;">
			<div class="ucp-main">

		<ul class="topiclist">
			<li class="header">
				<dl class="icon">
					<dt>{PICS_ALBUM_NAME}</dt>
				</dl>
			</li>
		</ul>

		<div>
			<table class="gallery-pics-table" cellspacing="2">
			<tbody>
				<tr>
					<!-- BEGIN image_gallery -->
					<td class="gallery-pics-td" align="center" valign="top" width="20%">
						<div class="gallery-pics-div"><a href="{image_gallery.VIEW}"><img src="{image_gallery.U_LINK}" alt="{image_gallery.PIC_TITLE}" /></a></div>
						<div class="gallery-pics-title"><!-- IF image_gallery.PIC_TITLE != "" --><b>{image_gallery.PIC_TITLE}</b><!-- ELSE -->&nbsp;<!-- ENDIF --></div>
						<div class="gallery-pics-nfoalt"><b>{L_PIC_UPLOADED_BY}: </b><a href="{PIC_UPLOADER_PROFILE}">{image_gallery.PIC_OWNER}</a></div>
						<div class="gallery-pics-nfo"><b>{L_PIC_COMMENTS}: </b>{image_gallery.PIC_COMMENTS}</div>
						<div class="gallery-pics-nfoalt"><b>{L_PIC_VIEWS}: </b>{image_gallery.PIC_VIEWS}</div>
						<div class="gallery-pics-nfo"><b>{L_PIC_RATING}: </b>{image_gallery.PIC_RATING}</div>
					</td>
					<!-- END image_gallery -->
				</tr>
				<tr> 
					<td colspan="5">&nbsp;</td>
				</tr>
			</tbody>
			</table>
		</div>

			</div>
			<div class="clear"></div>
		</div>
		<span class="corners-bottom"><span></span></span>
	</div>
</div>
<!-- ENDIF -->
and now edit index.php
after "$user->setup('viewforum');" add:

Code: Select all

$user->setup('mods/gallery');

include($phpbb_root_path . 'includes/functions_gallery.' . $phpEx);
get_images(5 , "recent");
in index you specify how it should be displayed... if u want most viewed u put get_images(5 , "most_view");
if u want random u put get_images(5 , "random"); and number of showing image is a number in that line get_images(5 , "most_view");

edit styles/<your style>/template/index_body.html
after "<!-- INCLUDE forumlist_body.html -->" add:

Code: Select all

<!-- INCLUDE function_gallery.html -->
how it look you can see on my site http://www.gatesofhell.pl/forum :)

Locked

Return to “[3.0.x] Abandoned MODs”