Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 67
Total: 67

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

0 Members and 1 Guest are viewing this topic.

Offline Michel68

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 165
    • 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: 16452
    • 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: 165
    • 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: 165
    • 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: 16452
    • 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: 165
    • 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: 16452
    • 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: 165
    • View Profile
Check PM please.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • 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: 165
    • View Profile
Ouch ! now I have a blank screen and didnt see anyhting, can not uninstall.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • 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: 165
    • 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: 165
    • 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: 16452
    • 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: 165
    • 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
8985 Views
Last post January 18, 2008, 08:19:58 pm
by SMFHacks
11 Replies
8886 Views
Last post February 11, 2008, 01:12:55 pm
by lemontwist
1 Replies
3595 Views
Last post January 29, 2009, 09:30:15 pm
by SMFHacks
8 Replies
6290 Views
Last post July 04, 2013, 01:00:51 pm
by shuban
2 Replies
3072 Views
Last post February 18, 2014, 08:55:40 am
by amwebby

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal