Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4274
Latest: kellanphil
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43648
Total Topics: 7571
Most Online Today: 42
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 54
Total: 54

Author Topic: Change the position of the "latest pictures"?  (Read 12819 times)

0 Members and 1 Guest are viewing this topic.

Offline joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Change the position of the "latest pictures"?
« on: January 26, 2007, 05:35:13 pm »
Hi,

How to do so that the window that shows the "latest pictures" is before the categories. But the other windows like "best rated" and "most comented" have to be under the categories.

Cordially,
Johan

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16612
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #1 on: January 26, 2007, 05:41:03 pm »
That would require some code changes.


Open Gallery.template.php

Find
Code: [Select]
echo '<h1 align="center">', $txt['gallery_text_title'], '</h1>';
After it add
Code: [Select]
MainPageBlock($txt['gallery_main_recent'], 'recent');
After that make sure you turn off show gallery recent images. To avoid them being shown twice.
« Last Edit: January 26, 2007, 05:44: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 joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #2 on: January 26, 2007, 05:45:51 pm »
I entered so it looks this way, but it doesn't work.

Code: [Select]
echo '<h1 align="center">', $txt['gallery_text_title'], '</h1>';
MainPageBlock($txt['gallery_main_recent'], 'recent');

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16612
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #3 on: January 26, 2007, 05:51:52 pm »
Anything happen?
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 joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #4 on: January 26, 2007, 05:55:44 pm »
No, the "last pictures posted" is always after the category list at the gallery index.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16612
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #5 on: January 26, 2007, 05:56:43 pm »
Can you attach your Gallery.template.php so I can take a look.
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 joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #6 on: January 26, 2007, 06:02:43 pm »
Here it is.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16612
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #7 on: January 26, 2007, 06:06:31 pm »
File attached.
Upload it to your themes/default folder on your forum.
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 joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #8 on: January 26, 2007, 06:12:00 pm »
Nothing changed.

Offline joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #9 on: January 26, 2007, 06:14:34 pm »
Mabe it's why I'm not using the default theme?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16612
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #10 on: January 26, 2007, 06:21:42 pm »
Did you upload the updated file to the site over the old file?
Check your other theme folders on the site and see if they can contain gallery.template.php


Then uncheck Show the index blocks on top of gallery
Uncheck Show the most recent images on the main page - To avoid it showing twice.
And save the settings.
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 joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #11 on: January 26, 2007, 06:26:49 pm »
Yes! It worked, when I unchecked the "show the letest pics..." but how do you do the same thing on your boarder index?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16612
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #12 on: January 26, 2007, 06:32:50 pm »
I have a mod that adds it to the overall header for the default theme.
Found here
http://www.smfhacks.com/index.php/topic,163.0.html
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 joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #13 on: January 26, 2007, 06:45:08 pm »
Thx, but I just want it to be displayes on the index page of my forum, not when you enter a forum like "general discussion". How to do this?

Offline joh87swe

  • Jr. Member
  • **
  • Posts: 69
    • View Profile
Re: Change the position of the "latest pictures"?
« Reply #14 on: January 26, 2007, 07:12:34 pm »
When installing the package it works fine, even if I don't want the "latest images" to be displayed in other pages than the index forum.
But there's one big error in my joomla, big error message from the /Source/Subs.php very strange? Why?

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4742 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
1 Replies
9221 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
8507 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
11 Replies
15553 Views
Last post October 21, 2008, 07:43:10 pm
by Matt5L
2 Replies
5857 Views
Last post February 17, 2009, 10:36:44 am
by Nomi

+- Recent Topics

RESOLVED: Store Not Logging Transactions or Sending Emails by SMFHacks
January 23, 2025, 06:24:27 pm

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
January 22, 2025, 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Filesizes incorrect by SMFHacks
January 12, 2025, 02:02:47 pm

December 2024 Sale! by SMFHacks
December 02, 2024, 10:30:38 pm

Denying members some admin settings by rickk
November 17, 2024, 12:02:55 pm

Weird setup by SMFHacks
November 07, 2024, 06:37:41 am

Restoring a deleted photo by Monocero
November 01, 2024, 04:23:56 am

Gallery Pro reinstalation by Lirorobert
October 14, 2024, 01:43:43 am

Powered by EzPortal