News:

Join the Facebook Fan Page.

Main Menu

SMF Gallery

Started by SMFHacks.com Team, September 16, 2006, 07:13:02 PM

Previous topic - Next topic

Biology Forums

Quote from: SMFHacks.com Team on May 24, 2012, 09:11:04 PM
That's it modifiy

// Redirect to the users image page.
if ($ID_MEMBER != 0)
redirectexit('action=gallery;sa=myimages;u=' . $ID_MEMBER);
else
redirectexit('action=gallery;cat=' . $cat);

To
redirectexit('action=gallery;sa=view;id=' . $gallery_pic_id);

Thanks, check it out: http://biology-forums.com/index.php?action=gallery;sa=view;id=464

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Biology Forums

Quote from: vbgamer45 on May 25, 2012, 07:39:25 PM
Awesome glad to help

vbgamer45, did you ever get around to creating a "related topics" block that displays topics related to the image?

vbgamer45

Probably not I think I did a related images block.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Biology Forums

Quote from: vbgamer45 on May 25, 2012, 07:55:16 PM
Probably not I think I did a related images block.

That was for me, but now I'm in need of the opposite. :(

vbgamer45

Don't have any time at the moment to write code for specific requests.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shambles

How can I prevent the Google Crawlers causing this error?



It's only ever Google IP addresses that cause this, but it's several times a day  :o

Platform Details:
SMF 2.0.2
Simple Portal 2.3.5
MySQL version: 5.0.95-community
eAccelerator: 0.9.6.1
PHP: 5.2.17

Modifications:

1. Countdown BBCode 2.0.1
2. SimplePortal 2.3.5
3. Aeva ~ Auto-Embed Video & Audio 7.2
4. SMF Gallery Lite 3.1.1a
5. PageDropdown 1.4
6. Highslide 4 SMF 0.8.1
7. Contact Form 1.1
8. Separate the sticky topics 1.0.0
9. Google Analytics Code 1.4
10. Google Translate for SMF 2.0 1.1
11. Email Template Editor 1.0
12. Float BBCODE 1.0.2
13. Moderator and Administrator Comment Tags 1.8.1
14. Tapatalk SMF 2.0 RC4/RC5/Final Plugin 3.0.1
15. SMF 2.0.2 Update 1.0
16. Tidy Child Boards 1.4
17. Member Color Link 3.1
18. Auto Purge Old Topics 1.2
19. Default Avatar 2.2
20. Double Check your Email in Registration by SmfSimple.com 1.0
21. Hide Signatures from Guests 2.0
22. Display Signatures Only Once Per Page 1.0.3
23. Hide Avatars from Guests 2.0
24. Auto Lock Old Topics 1.3
25. Copy Topics 1.6
26. Thank-o-matic 3.0
27. SMF 2.0.1 Update 1.0
28. BCC Messages 1.2
29. Happy Birthday 0.3
30. PNG Message Icons 1.3.1
31. Enable or Disable "« Last Edit: by »" for Administrators 1.3a
32. james bond avatars 1.0
33. Dog Avatars 1.0
34. Cat Avatars 1.0
35. Country_Flagatars 1.1
36. Welcome Topic Mod 2.1
37. Removes the post rank if a custom title is set 1.1
38. Hide User Names from Guests 1.1
39. Bookmarks 2.3
40. MessagePreviewOnHover 1.8
41. SMF Arcade 2.5 RC1
42. httpBL 2.5.1
43. Stop Spammer 2.3.9
44. [BBCode] Blink 1.0
45. Country Flags 1.1.2
46. Spoiler Tag 0.7.2a
47. Add Join Date to Post 1.0
48. [BBCode] Dotted Underline 1.0


Code reported in error message:
Sources/Gallery2.php around line 579


    $dbresult = $smcFunc['db_query']('', "
SELECT
c.id_picture, c.id_comment, c.date, c.comment, c.id_member, m.posts, m.member_name, m.real_name
FROM {db_prefix}gallery_comment as c
LEFT JOIN {db_prefix}members AS m ON (c.id_member = m.id_member)
579 WHERE c.id_picture = " . $context['gallery_pic']['id_picture'] . " ORDER BY c.id_comment DESC" );

$context['gallery_comment_count'] = $smcFunc['db_affected_rows']();
$context['gallery_comment_list'] = array();


The error is not caused by anyone else viewing or updating our gallery (which is splendid I have to say :))

SMFHacks.com Team

Quote from: Shambles on May 29, 2012, 02:51:24 PM
How can I prevent the Google Crawlers causing this error?



It's only ever Google IP addresses that cause this, but it's several times a day  :o

Platform Details:
SMF 2.0.2
Simple Portal 2.3.5
MySQL version: 5.0.95-community
eAccelerator: 0.9.6.1
PHP: 5.2.17

Modifications:

1. Countdown BBCode 2.0.1
2. SimplePortal 2.3.5
3. Aeva ~ Auto-Embed Video & Audio 7.2
4. SMF Gallery Lite 3.1.1a
5. PageDropdown 1.4
6. Highslide 4 SMF 0.8.1
7. Contact Form 1.1
8. Separate the sticky topics 1.0.0
9. Google Analytics Code 1.4
10. Google Translate for SMF 2.0 1.1
11. Email Template Editor 1.0
12. Float BBCODE 1.0.2
13. Moderator and Administrator Comment Tags 1.8.1
14. Tapatalk SMF 2.0 RC4/RC5/Final Plugin 3.0.1
15. SMF 2.0.2 Update 1.0
16. Tidy Child Boards 1.4
17. Member Color Link 3.1
18. Auto Purge Old Topics 1.2
19. Default Avatar 2.2
20. Double Check your Email in Registration by SmfSimple.com 1.0
21. Hide Signatures from Guests 2.0
22. Display Signatures Only Once Per Page 1.0.3
23. Hide Avatars from Guests 2.0
24. Auto Lock Old Topics 1.3
25. Copy Topics 1.6
26. Thank-o-matic 3.0
27. SMF 2.0.1 Update 1.0
28. BCC Messages 1.2
29. Happy Birthday 0.3
30. PNG Message Icons 1.3.1
31. Enable or Disable "« Last Edit: by »" for Administrators 1.3a
32. james bond avatars 1.0
33. Dog Avatars 1.0
34. Cat Avatars 1.0
35. Country_Flagatars 1.1
36. Welcome Topic Mod 2.1
37. Removes the post rank if a custom title is set 1.1
38. Hide User Names from Guests 1.1
39. Bookmarks 2.3
40. MessagePreviewOnHover 1.8
41. SMF Arcade 2.5 RC1
42. httpBL 2.5.1
43. Stop Spammer 2.3.9
44. [BBCode] Blink 1.0
45. Country Flags 1.1.2
46. Spoiler Tag 0.7.2a
47. Add Join Date to Post 1.0
48. [BBCode] Dotted Underline 1.0


Code reported in error message:
Sources/Gallery2.php around line 579


    $dbresult = $smcFunc['db_query']('', "
SELECT
c.id_picture, c.id_comment, c.date, c.comment, c.id_member, m.posts, m.member_name, m.real_name
FROM {db_prefix}gallery_comment as c
LEFT JOIN {db_prefix}members AS m ON (c.id_member = m.id_member)
579 WHERE c.id_picture = " . $context['gallery_pic']['id_picture'] . " ORDER BY c.id_comment DESC" );

$context['gallery_comment_count'] = $smcFunc['db_affected_rows']();
$context['gallery_comment_list'] = array();


The error is not caused by anyone else viewing or updating our gallery (which is splendid I have to say :))
Fixed
Update posted
3.1.2
!Fixed database error if viewing a link of a delete picture. Normally occurred by search engines
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Shambles

Quote from: SMFHacks.com Team on May 29, 2012, 07:53:50 PM
Quote from: Shambles on May 29, 2012, 02:51:24 PM
How can I prevent the Google Crawlers causing this error?

It's only ever Google IP addresses that cause this, but it's several times a day  :o

Fixed
Update posted
3.1.2
!Fixed database error if viewing a link of a delete picture. Normally occurred by search engines
Thank you - I'll get this update put in right away  8)

Inti31

thx - seems like the error messages are gone - btw: people which have 3.1.1a installed need just to change Gallery2.php...

good job!
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

vbgamer45

Quote from: Inti31 on May 30, 2012, 11:25:36 AM
thx - seems like the error messages are gone - btw: people which have 3.1.1a installed need just to change Gallery2.php...

good job!
Glad to help! Yeah just a change to the core Gallery.php files.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Shambles

Quote from: vbgamer45 on May 30, 2012, 12:07:08 PM
Glad to help! Yeah just a change to the core Gallery.php files.

Confirmed: no further errors - many thanks  :D

I looked at the changed .php files and the installation process and decided that no harm would come if I uninstalled 3.1.1a then installed the fixed version. No problems whatsoever.

Thanks again for the rapid fix  8)

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Inti31

@Shambles - I fully agree - in general, I do the same - but I've to check some more files because english is not my forum language.
I modified this mod so that it includes just my german language, also I throwed out every 1.x part.
I've to check if there are new translation strings every time a new version is released.

@vbgamer45 - I am thinking of the pro version - is there a German translation available - or is this not the place to ask for...?
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

vbgamer45

Quote from: Inti31 on May 30, 2012, 04:23:27 PM
@Shambles - I fully agree - in general, I do the same - but I've to check some more files because english is not my forum language.
I modified this mod so that it includes just my german language, also I throwed out every 1.x part.
I've to check if there are new translation strings every time a new version is released.

@vbgamer45 - I am thinking of the pro version - is there a German translation available - or is this not the place to ask for...?
Someone did a translation for german for the lite edition long ago http://www.smfhacks.com/index.php/topic,115.0.html

All the pro language strings are kept in gallery.english.php and is easy to translate.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

DMR123

Hi,

If I enter restrictions i.e. max width and height in the gallery most images wont upload as they are too big, and if I take the restrictions off, if am image is too big it will go of the screen.

Is there anything which can be done so that the gallery automatically resizes the image to fit the screen?

Cheers

Shambles

Quote from: vbgamer45 on May 30, 2012, 12:07:08 PM
Glad to help! Yeah just a change to the core Gallery.php files.
The original issue I reported is well and truly gone, however a different one has now surfaced (only with crawlers)

Any clues?


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

SMFHacks.com Team

Quote from: Shambles™ on June 08, 2012, 12:04:06 PM
Quote from: vbgamer45 on May 30, 2012, 12:07:08 PM
Glad to help! Yeah just a change to the core Gallery.php files.
The original issue I reported is well and truly gone, however a different one has now surfaced (only with crawlers)

Any clues?


Fixed


New update posted:
3.1.3
+Added support for Badge Awards http://www.smfhacks.com/badgeawards.php  checking on add picture/comments
!Fixed possible undefined error on search page that can be caused by search engine spiders
Disclaimer: SMFHacks.com Team is not affiliated with the SMF Team or the SimpleMachines NPO.
SMFHacks.com -  Paid Modifications for SMF
Latest Mods:
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Inti31

just info - the uninstall for 2.0.x in package-info needs to be corrected:

that is how it looks
<uninstall for="2.0 - 2.0.99,2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<modification type="file" reverse="true">smfgallery2.xml</modification>
<remove-file name="$sourcedir/Gallery2.php" />
<remove-file name="$themedir/Gallery2.template.php" />
<remove-file name="$themedir/languages/Gallery.english.php" />
<require-file name="Gallery.english-utf8.php" destination="$themedir/languages" />
<code>GalleryUnInstall.php</code>
</uninstall>


the require- file name need to be replaced by a remove-file name...

cheers inti31

btw: people which have 3.1.1a/3.1.2 installed need just to change Gallery2.php...

good job!
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Advertisement: