Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4291
Latest: Robertqt
New This Month: 5
New This Week: 1
New Today: 0
Stats
Total Posts: 43721
Total Topics: 7586
Most Online Today: 43
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 42
Total: 43

Author Topic: Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header  (Read 4014 times)

0 Members and 1 Guest are viewing this topic.

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Hello, I am just upgrading my Forum to 2.1.4 and the MOD for Gallery Pro - Recents Images to overall header is no longer working ?

Is there an update ?

I also have Problems with the Default Theme Curve2 on an Mobile Phone. The Gallerie does not fit with 3 Images besides, the Background is with the 3. Image wrong if you scroll right.
« Last Edit: March 29, 2024, 08:31:13 am by Michel68 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16643
    • View Profile
The mod should be working if you have the latest version.


I just viewed my site on mobile via iphone.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Ok, I renewed my Licence and its working now. I was on Gallery 9.0.5 and found another problem which was also with the Update fixed.  (IPV6 Edit Image)


Now I only have 2 problems left.

The gallery images with 3 of them next to each other do not fit in the view on the cell phone (Google Pixel Android 14, Firefox + Chrome), only when I look in landscape format does it work again. When I open the gallery, the images at the top of the view are the most recent. When I enter a category or just click on it to show all the latest ones, then the 3rd row on the right is completely outside the layout as in the 1st post.

I had a modification under SMF 2.0.19 that shows random images at the top of the forum. Where can I find the script?

I had to update SMF 2.0.19 because my provider wants me to switch to PHP 8.1 and then nothing works anymore. So I'm forced to update everything again. The board has been running since 2002 and is constantly being patched.

Thank you !
« Last Edit: March 30, 2024, 12:02:42 am by Michel68 »

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Ahh I found my Post from 2013, this I need for SMF 2.1.4 Default Theme - Curve2

https://www.smfhacks.com/index.php/topic,7904.msg35814.html

Or can you please provide a mod? I would like to have as little manual intervention in the code as possible in the future, I'm getting older.


Code: [Select]
// SMF Gallery Recent Images on Index
 if (allowedTo('smfgallery_view'))
 {
 global $boardurl;
 
 
 
 
 // Check if the gallery url has been set if not use the default
 if(empty($modSettings['gallery_url']))
 $modSettings['gallery_url'] = $boardurl . '/gallery/';
 
 echo '

 
 <table cellspacing="0" cellpadding="5" border="0" align="center" width="100%" class="tborder">
 
 ';
 $rowlevel = 0;
 $maxrowlevel = 4;
 foreach ($context['gallery_recent'] as $picture)
 {
 
 if ($rowlevel == 0)
 echo '<tr>';
 
 
 echo '
 <td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' .$picture['id_picture'] . '"><img src="' . $modSettings['gallery_url'] . $picture['thumbfilename']  . '" alt="" /></a><br />
 <span class="smalltext">';
 echo $picture['title'] . ' - ' . $picture['profilelink'] ;
 if (!empty($modSettings['gallery_set_t_filesize']))
 echo $txt['gallery_text_filesize'] . $picture['filesize'] . '<br />';
 if (!empty($modSettings['gallery_set_t_date']))
 echo $picture['date'] . '<br />';
 echo '</span></td>';
 
 
 
 if($rowlevel < ($maxrowlevel-1))
 $rowlevel++;
 else
 {
 echo '</tr>';
 $rowlevel = 0;
 }
 }
 if($rowlevel !=0)
 {
 echo '</tr>';
 }
 echo '</table>';
 }
 // End SMF Gallery Recent Images on Index


There is already something like this for the gallery, but I would like to see the random pictures above the forum.

« Last Edit: March 30, 2024, 01:58:01 am by Michel68 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16643
    • View Profile
All the addons are found under https://www.smfhacks.com/index.php/board,18.0.html
We could change the overall recent images in header to random instead of last four if you would like
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Yes, that would be wonderful. I tried to edit it manually like under SMF 2.0.19, but it doesn't work. The current Recent Script also causes problems with errors in the log.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16643
    • View Profile
Let me know the errors and can fix.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Check PM please.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16643
    • View Profile
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Ouch ! now I have a blank screen and didnt see anyhting, can not uninstall.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16643
    • View Profile
Attach your index.template.php
Or find
Code: [Select]
global $boardurl, scripturl;
And change to
Code: [Select]
global $boardurl, $scripturl;

Bah this is what I get trying to rush this morning.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Today I feel like I'm in the scene from Life of Brian where the man is hanging upside down in the dungeon.

Ok, I see the forum again.

https://www.youtube.com/watch?v=8EI7p2p1QJI
« Last Edit: March 30, 2024, 12:28:38 pm by Michel68 »
Like Like x 1 View List

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
Ok, there is no error anymore, now all I need is that I see 4 random pictures from the gallery in the forum index, that was actually my wish.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16643
    • View Profile
A quick thing would be change
Sources/Load.php
Code: [Select]
ORDER BY p.ID_PICTURE DESC LIMIT 4
To
Code: [Select]
ORDER BY RAND() LIMIT 4
That would do random
« Last Edit: March 30, 2024, 12:47:07 pm by SMFHacks »
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 176
    • View Profile
This script ohly shows pictures inside the Gallery but not in the Main SMF Forum at top.

Anyway I can not uninstall this script , send you a pm.

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
9599 Views
Last post January 18, 2008, 08:19:58 pm
by SMFHacks
11 Replies
9568 Views
Last post February 11, 2008, 01:12:55 pm
by lemontwist
1 Replies
3859 Views
Last post January 29, 2009, 09:30:15 pm
by SMFHacks
8 Replies
7015 Views
Last post July 04, 2013, 01:00:51 pm
by shuban
2 Replies
3300 Views
Last post February 18, 2014, 08:55:40 am
by amwebby

+- Recent Topics

ST Shop integration by SMFHacks
March 17, 2025, 08:28:26 pm

Contact Us by SMFHacks
March 16, 2025, 07:49:23 pm

HTTP 500 error during install by SMFHacks
March 13, 2025, 10:44:31 am

Site upgrade to 2.1 by SMFHacks
March 12, 2025, 09:29:43 pm

[Mod]WebP and AVIF File Support for SMF 2.1 by SMFHacks
March 10, 2025, 04:32:57 pm

Pretty URL's Pro support/help by [chrisB]
March 03, 2025, 10:18:09 am

More RSS feeds by melon
February 28, 2025, 08:23:21 am

SMF Shop / ST Shop Credits? by SMFHacks
February 22, 2025, 06:13:10 pm

Down_sendpm Error by Senkusha
February 22, 2025, 07:49:24 am

Additional Recommendations for SMF Store by SMFHacks
February 20, 2025, 03:40:50 pm

Powered by EzPortal