Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4200
Latest: [chrisB]
New This Month: 4
New This Week: 1
New Today: 1
Stats
Total Posts: 42599
Total Topics: 7433
Most Online Today: 103
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 50
Total: 52

Author Topic: Change the position of the "latest pictures"?  (Read 11126 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: 16155
    • 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: 16155
    • 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: 16155
    • 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: 16155
    • 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: 16155
    • 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: 16155
    • 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
3979 Views
Last post May 21, 2007, 06:37:59 pm
by SMFHacks
1 Replies
7063 Views
Last post September 28, 2007, 11:46:07 am
by smalldonkey
2 Replies
6343 Views
Last post November 06, 2007, 08:55:18 pm
by dry3210
11 Replies
12613 Views
Last post October 21, 2008, 07:43:10 pm
by Matt5L
2 Replies
4101 Views
Last post February 17, 2009, 10:36:44 am
by Nomi

+- Recent Topics

Errors with SMF2WPBridge by [chrisB]
Today at 10:16:59 am

Undefined index: id by SMFHacks
Today at 09:41:30 am

Permissions query by davejo
Today at 01:31:46 am

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by Michael Vail
Today at 01:02:34 am

Additional Recommendations for SMF Store by Michael Vail
November 26, 2022, 12:49:58 pm

SMF Store 5.0 Beta Errors - Trying to access array offset on value of type null by Michael Vail
November 26, 2022, 12:07:42 pm

Modification: Subcategories total in main gallery view by VisiGod
November 26, 2022, 11:27:34 am

Change log for Downloads Pro 6.13 and 6.14 by Nicole
November 20, 2022, 08:24:34 am

Release date? by SMFHacks
November 20, 2022, 08:09:10 am

Can't install due to missing file? by SMFHacks
November 18, 2022, 06:55:45 pm

Powered by EzPortal