[RC] phpBB Gallery 1.0.4 (including TS Gallery converter)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
nickvergessen
Former Team Member
Posts: 4397
Joined: Mon Apr 30, 2007 5:33 pm
Location: Stuttgart, Germany
Name: Joas Schilling
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by nickvergessen »

user_id 54
No Support via PM
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by DragonMaster1 »

nickvergessen wrote:user_id 54
hummmm.....Hate to ask but removing that goes beyond what I know how to do

I don’t see how to drop that one by itself

I have:

Rows user_id
1 1
1 54
1 56
1 61
1 70
1 78
1 100
1 278

-------------------

Is there an SQL to use to remove that or if not can you tell me how to do it? :oops:
tplowe
Registered User
Posts: 40
Joined: Mon May 09, 2005 3:50 am

Re: [Beta] phpBB Gallery 0.4.1

Post by tplowe »

Is there a way to eliminate the text displayed below the thumbnails in a gallery to just the "file.name". Or even display nothing?

If this is not an option what page would I edit in php. Would it be possible to comment out the code that dsplays the text.

I have searched this thread. Either this question has not been asked or search seems to not be working.

Thanks.
shahinavthal
Registered User
Posts: 277
Joined: Fri Sep 19, 2008 6:53 am

Re: [Beta] phpBB Gallery 0.4.1

Post by shahinavthal »

tplowe wrote:Is there a way to eliminate the text displayed below the thumbnails in a gallery to just the "file.name". Or even display nothing?

If this is not an option what page would I edit in php. Would it be possible to comment out the code that dsplays the text.

I have searched this thread. Either this question has not been asked or search seems to not be working.

Thanks.

Maybe you need to edit the code of styles/prosilver/gallery_page_body.html to

Code: Select all

<!-- INCLUDE overall_header.html -->

<script type="text/javascript">
<!--
function checkRateForm() {
	if (document.rateform.rate.value == -1)
	{
		return false;
	}
	else
	{
		return true;
	}
}
// -->
</script>
<h2><a href="{S_ALBUM_ACTION}">{IMAGE_NAME}</a></h2>

<p class="{S_CONTENT_FLOW_END} rightside"><!-- IF U_NEXT --><a href="{U_NEXT}">{L_NEXT}</a><!-- ENDIF --></p>
<p><!-- IF U_PREVIOUS --><a href="{U_PREVIOUS}">{L_PREVIOUS}</a><!-- ENDIF -->&nbsp;</p>
<div class="post bg2">
	<div class="inner">
		<span class="corners-top"><span></span></span>
		<div style="text-align: center; padding: 20px;">{UC_IMAGE}</div>
		<span class="corners-bottom"><span></span></span>
	</div>
</div>



<p></p><p><a href="{U_RETURN_LINK}" class="left-box {S_CONTENT_FLOW_BEGIN}" accesskey="r">{L_RETURN_TO} {S_RETURN_LINK}</a></p>
<form method="post" id="jumpbox" action="{S_JUMPBOX_ACTION}" onsubmit="if(document.jumpbox.album_id.value == -1){return false;}">
	<fieldset class="jumpbox">
		<label for="album_id" accesskey="album_id">{L_JUMP_TO}:</label>
		<select name="album_id" id="album_id" onchange="if(this.options[this.selectedIndex].value != -1){ document.forms['jumpbox'].submit() }">
			{ALBUM_JUMPBOX}
		</select>
		<input type="submit" value="{L_GO}" class="button2" />
	</fieldset>
</form>

<!-- Please keep this little notice visible -->
<div class="copyright">Powered by <!-- port started by tsr: http://phpbbgallery.ph.funpic.de --><a href="http://www.flying-bits.org/">nickvergessen</a></div>
<!-- INCLUDE overall_footer.html -->
Havent checked it out but you could just back the same file and replace it and check it out for yourself. Should work though ;)

but i feel this Mod should be showing all those data(which it beautifully does) as that is what makes it a Gallery Mod else we could have just posts or attachments of a pic and display these attachments in a colums :)

Edit : Or am i getting your question wrong? :?

Hope you are not looking for this?

Image
shahinavthal
Registered User
Posts: 277
Joined: Fri Sep 19, 2008 6:53 am

Re: [Beta] phpBB Gallery 0.4.1

Post by shahinavthal »

DragonMaster1 wrote:
nickvergessen wrote:user_id 54
hummmm.....Hate to ask but removing that goes beyond what I know how to do

I don’t see how to drop that one by itself

I have:

Rows user_id
1 1
1 54
1 56
1 61
1 70
1 78
1 100
1 278

-------------------

Is there an SQL to use to remove that or if not can you tell me how to do it? :oops:
Try this

Code: Select all

DELETE FROM `phpbb_gallery_users` WHERE `phpbb_gallery_users`.`user_id` = 54 LIMIT 1;
Please backup your tables before you do this
User avatar
novanilla
Registered User
Posts: 332
Joined: Wed Jul 02, 2008 1:08 pm
Location: Colorado
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by novanilla »

When viewing a member's profile, I realize you're only one click away from getting to the member's album. I'd like to improve the profile appearance itself with some images though. Can anybody suggest a good way to post a panel of recent member images into that member's profile?

I understand how it would be done in concept, but I'm not sure where to begin. I think the same edits can be done in memberlist.php as in index.php, i.e., these lines get added in near the top:

Code: Select all

    $gallery_root_path = GALLERY_ROOT_PATH;
    include($phpbb_root_path . $gallery_root_path . 'includes/functions_recent.' . $phpEx);$display = array(
	'name'		=> true,
	'poster'	=> true,
	'time'		=> true,
	'views'		=> true,
	'ratings'	=> false,
	'comments'	=> false,
	'album'		=> true,
and

Code: Select all

/**
* rows		numeric default 1,
* columns	numeric default 4,
* display	array,
* modes		string(random|recent|both),
*/
recent_gallery_images(1, 4, $display, 'recent');
Then (for prosilver in this example), in memberlist_view.html, find:

Code: Select all

<div class="panel bg2">
	<div class="inner"><span class="corners-top"><span></span></span>
	<div class="column1">

		<h3>{L_CONTACT_USER} {USERNAME}</h3>
and add before (or wherever appropriate):

Code: Select all

<!-- INCLUDE gallery_recent_body.html -->
Trouble is, doing this is going to pull up any recent images posted, just as it would in the index. SO, which file would have to be modified with a SELECT images WHERE user_id is ?, in order to pull up only this member's images for the profile page?

Anybody have any ideas how best to implement this? I think it would make a really great add-on.
Last edited by novanilla on Wed Jan 21, 2009 2:01 pm, edited 1 time in total.
User avatar
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by DragonMaster1 »

Code: Select all

DELETE FROM `phpbb_gallery_users` WHERE `phpbb_gallery_users`.`user_id` = 54 LIMIT 1;
^ I tried this on my test board and it appeared to work

But when I clicked the checkbox and entered submit for:
If you upload more than one file, you may include {NUM} into the Image Title and Image Description.
It counts through the images, starting on the value you entered. Example: "Image {NUM}" addes up to "Image 1", "Image 2", etc.

Take filename as Image-name (the insert-field has no function)

I got:

Code: Select all

General Error
SQL ERROR [ mysql4 ]

Duplicate entry '54' for key 1 [1062]

SQL

INSERT INTO phpbb_gallery_users (user_id, user_images) VALUES (54, 0)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal->sql_error()

FILE: includes/acp/acp_gallery.php
LINE: 396
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_gallery.php
LINE: 90
CALL: acp_gallery->import()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_gallery->main()

FILE: adm/index.php
LINE: 75
CALL: p_master->load_active()
However now in the users table I have :

54
1
56
61
78
100
70
278

But now they are in rows that I would be able to manually delete....strange???
kazango
Registered User
Posts: 50
Joined: Fri Jul 23, 2004 3:42 pm
Location: Holland
Contact:

Re: [Beta] phpBB Gallery 0.4.1

Post by kazango »

A small problem with "You can rate images in this album" and Rating: not rated"" I can't see both. But I can rate the picture and in the picture I see the ratings.
How can I solve this?

Solved by edit in database
Last edited by Kazango on Thu Jul 29, 2004 6:35 am; edited 458 times in total
~Merlin~
Registered User
Posts: 24
Joined: Wed Apr 19, 2006 7:33 pm

Re: [Beta] phpBB Gallery 0.4.1

Post by ~Merlin~ »

Mod working greate!

Do you plan (and if yes, in what time) to implement ability for users to create public sub-albums in categories with premoderation?

And for what the option "Resize bigger images" is used?
What difference between folders upload and medium?

Thanks!
mee-eain-shin
Registered User
Posts: 3
Joined: Thu Jan 22, 2009 11:37 pm

Re: [Beta] phpBB Gallery 0.4.1

Post by mee-eain-shin »

I have Image Gallery on my MK Portal. I don't know what kind of Gallery. Can I update my galley with Phpbb Gallery 0.4.1. If I can, how I can update it? I have tried to install in my phpbb3 forum, but it isn't work for me. So, I want to update my old gallery. Please help me, Thanks!!!
Papp
Registered User
Posts: 52
Joined: Tue Mar 20, 2007 9:46 am

Re: [Beta] phpBB Gallery 0.4.1

Post by Papp »

PhpBB 3.0.4 phpBB Gallery 0.4.1

Some of my users have questions about why they get "Error in page" down to the left in their browser when they are waiting for the image is uploaded. Some of them abandon the process, because it believes there is an error in page on the page, and that they think things are not working. Photo will be uploaded successful if those waiting, but some users react to error in page. Is this a browser problem, or has somebody an idea about how fix this? We are using Internet Explorer.

The error message says:
Line: 184
Character: 1
Error: Expected an object
Code: 0
URL: //mydomain.com/forum/gallery/posting.php?mode=image&submode=upload&album_id=50


Here is the line 184 in posting.php:

Code: Select all

180           if (!$user->data['is_registered'])
181          {
182            login_box($image_loginlink , $user->lang['LOGIN_INFO']);
183          }
184          else
185          {
186            meta_refresh(3, $image_backlink);
187            trigger_error('NOT_AUTHORISED');
188          }
189        }
190      break; 



flying-bits.org has the same error:

Image

Some ideas?

Thanks for a good job with this gallery. All are super happy.

I hope you understand my English translation.

Thank you.
I hope you understand my English :-)
shahinavthal
Registered User
Posts: 277
Joined: Fri Sep 19, 2008 6:53 am

Re: [Beta] phpBB Gallery 0.4.1

Post by shahinavthal »

the mod works perfectly with IE 7(on flying-bits as well) ... other earlier versions are not being supported

And moreover the excerpts from posting.php that you have shown looks like an older file and not the posting.php file of a 0.4.1 version...Please update the file from the MOD and check if it works again
Papp
Registered User
Posts: 52
Joined: Tue Mar 20, 2007 9:46 am

Re: [Beta] phpBB Gallery 0.4.1

Post by Papp »

I have the latest version 0.4.1

Yes, everything works as it should. It is only my browser alerts error Image and the details error message I described above. After I click OK to upload image.

But this does not mean very much, as long as it works anyway.

Thanks.
I hope you understand my English :-)
MydnyteSyn
Registered User
Posts: 383
Joined: Sun Oct 07, 2007 10:02 am

Re: [Beta] phpBB Gallery 0.4.1

Post by MydnyteSyn »

I love this mod :) Just a quick question and I'm hoping someone can help me correct a small layout issue. I've included 2 screenshots for reference. I need to know what file(s), where, and exactly what part in particular to edit so it looks good. You'll see exactly what I mean when you look at the screenshots.

http://www.evolution-rpg.com/SS1.jpg

http://www.evolution-rpg.com/SS2.jpg

I'm sorry for linking them. I don't know how to make them appear as clickable thumbnails in a post.
User avatar
TonyF80
Registered User
Posts: 23
Joined: Sun Aug 24, 2008 8:02 pm

Re: [Beta] phpBB Gallery 0.4.1

Post by TonyF80 »

Hi, I noticed that this mod works well with prosilver style, will it also work well with Black Pearl as it is a style based on prosilver? Anyone know?
Locked

Return to “[3.0.x] MODs in Development”