SMF Gallery

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

Previous topic - Next topic

DarkAngel612

I'm taking a look but the code I provied you is just a plain copy/paste from the default index.template.php file...nothing added nothing left out.

Now that said, I have noticed that some themes when adding something that seems to make the height a different size will do that but this one just added the button.

hang on
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

DarkAngel612

a;right since it won't let me edit I will just reply...lol


1. to remove the logo for smf I removed this code:

<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>


it was located on line approx. 191, where it lists the code for your header (name of site in the theme.

Now my question to you also is ...you duplicated the file---that is great---but did you duplicate the one from the server or one from your computer, say perhaps before you or someone else edited it?

I have attached the fixed file to get rid of the logo but the color of the font is probably able to be changed in the style.css file as well as maybe the  line...since I did not see anything about the line near the same area as the code was found.

I can do minor things like this so maybe someone else can tell us why the theme seems to have reverted...did you edit it prior to  wanting the button for the gallery?
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

mike s

I'll ask here in case anyone else has run into the same situation..

I am trying to install SMF Gallery Pro onto my SMF20RC1 site. It installed fine, configured no issue, and I Was able to create categories and batch upload files.  I see the thumbnails and it all looks good. But thats as far as it works. But I cant view the actual picture, or use any of the commands at the thumbnail (unapprove/edit/delete).. it just gives me a 501/505 This Page can not be displayed.

I have asked on the SMFHacks site but havent got to the issue yet, so I'd thought I'd post here for a wider audience. Any help is greatly appreciated.

regards, Mike.

DarkAngel612

is this with the default smf theme or another one
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

mike s

I'm using Anecdota theme for 20RC1 and I have switched back to default theme and get the same issue.

If I turn off friendly error messages in my IE, I get the following comment:

"Method Not Implemented
GET to /smf/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."



Jez

Hi DarkAnglel

Thanks for investigating, you help is appreciated. I removed the code, and that has worked. The smf logo is now gone. I took a duplicated from my server. I haven't made any changes to it in the past. (from what I can remember). I'll look into the CSS side off things like you said. Time to learn more!

mike s

Quote from: gofishont on March 20, 2009, 12:39:08 AM
I'm using Anecdota theme for 20RC1 and I have switched back to default theme and get the same issue.

If I turn off friendly error messages in my IE, I get the following comment:

"Method Not Implemented
GET to /smf/index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."


Problem solved.. thanks all!

DarkAngel612

@Jez
great and good luck in getting rid of the line and color changes in the .css file

@gofishont:

It is always great when the problem is resolved but it would be even better if you post what you did to fix it so any one else with the problem can find the answer too.

Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

mike s

Quote from: DarkAngel612 on March 20, 2009, 01:30:49 AM

@gofishont:

It is always great when the problem is resolved but it would be even better if you post what you did to fix it so any one else with the problem can find the answer too.

Yes, you're right DarkAngel612, you're right but it was quite late and I didnt want anyone spending more time on it.. here's the answer:

It is an issue with mod_security they do not like ;id= in the url for some reason

You can open Sources/Gallery2.php

Code:
;id=
And replace all with

Code:
&id=

And themes/default/Gallery2.template.php

Find

Code:
;id=
And replace all with

Code:
&id=





DarkAngel612

Thank you for that...people helping each other with this coding stuff makes it less work for the programmers so they can devote that extra time in developing more goodies for us...lol
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

XtremeBG

Hello.
A great modification but there seems to be a problem.
When there are no even numbers, e.g. 4, 8, 12, etc. pictures in a row, I get black parts.

Example:


Any suggestions or advice? :(
Thanks in advance.

vbgamer45

Image isn't loading for me at the moment.
Community Suite for SMF - Grow your forum with 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

DarkAngel612

I see the image but the only black I see is the end row...the image is kind of small so if it is in the wording under the pics then I can't see the black squares

maybe put the image as an attachment to be able to see it bigger---if it is bigger
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

Rex Zac

Quote from: DarkAngel612 on March 18, 2009, 04:42:16 PM
depending on the theme it is not hard to add that button....although I will admit some themes are not nice and have the button coding different...lol

what you do is open the index.template.php file in a text editor....a duplicate of it that is.

then find:


angel, could u hlp me add button of gallery on my theme, its the gothic theme, and i think i should add something around line 768, but am not into php , even i tryed, without success :(

DarkAngel612

hmm, i have not seen an index.template file like that one...it lists where to create the buttons but not showing the coding for it.

is it the original or did you edit it somehow...is it from the server ?

a link so I can see the forum would be helpful and which theme is it please
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

Rex Zac

am not yet useing it on my web, have to modify it and edit for mods wich i use, but here is the link for theme, its in dl section:
http://custom.simplemachines.org/themes/index.php?lemma=1328

i didnt edit nothing so far, exept removed search bar, but am sure i didnt remove any part of other coding.
if u  still need access to site or something, just yell ;)

-thx for ur time :)


Quote from: DarkAngel612 on March 21, 2009, 07:57:14 PM
hmm, i have not seen an index.template file like that one...it lists where to create the buttons but not showing the coding for it.

is it the original or did you edit it somehow...is it from the server ?

a link so I can see the forum would be helpful and which theme is it please

DarkAngel612

I am downloading the theme now so I can see the original file --- give me a few and I will see if I am blind or not...lol
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

DarkAngel612

Well sugar if I had a brain I would be real dangerous. It occured to me while trolling the file that you are using smf2 in order to have the smf2 theme...lol

that said, in the smf 1.18 I can get the button but I don't use that version 2 of either the forum software nor the tiny portal so I am afraid I can't help...sorry.

when opening up the two files I immediatlely saw the difference in them, that is when it hit me but...

what you can do is open the smf2 deault index.template.php and see where the code got put into it, then copy/paste it to the same place on your themes file...I would be real curious to see the defaults smf2 theme file too so I may go download it just to take a peek.
Fantasy Attic ::  Fantasies Realm Market :: SMF 2.1.4 with various mods and TinyPortal

Rex Zac

Quote from: DarkAngel612 on March 21, 2009, 09:27:28 PM

what you can do is open the smf2 deault index.template.php and see where the code got put into it, then copy/paste it to the same place on your themes file...I would be real curious to see the defaults smf2 theme file too so I may go download it just to take a peek.


i just wanted to go sleep, and throw an eye on ur post, and now i have to try it. will give u result in short.
btw, now i understand why u have tht nick  ;D    but i would call u Night Lady

Rex Zac

nop, no luck....

default theme:

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo '
<div id="main_menu">
<ul class="clearfix">';

foreach ($context['menu_buttons'] as $act => $button)
{
$classes = array();
if (!empty($button['active_button']))
$classes[] = 'active';
if (!empty($button['is_last']))
$classes[] = 'last';
$classes = implode(' ', $classes);

echo '
<li id="button_', $act, '"', !empty($classes) ? ' class="' . $classes . '"' : '', '>
<a title="', $act, '" href="', $button['href'], '">
<span>', ($button['active_button'] ? '<em>' : ''), $button['title'], ($button['active_button'] ? '</em>' : ''), '</span>
</a>
</li>';
}

echo '
</ul>
</div>';
}



tricky theme:

// Show the menu up top. Something like [home] [help] [profile] [logout]...

function template_menu()

{

global $context, $settings, $options, $scripturl, $txt;



echo '

<div id="topmenu">

<ul>';



foreach ($context['menu_buttons'] as $act => $button)

echo '<li><a ', $button['active_button'] ? ' class="current"' : '' , ' href="', $button['href'], '"><span>', $button['title'], '</span></a></li>';



echo '

</ul>

</div>';

}



i think thats the place for it, but i ll atach u all file, however, default theme had 6-7 mods, just to give a note :)
i tryed to copy from default to this one, but i get from default skin and buttons, but again one empty space for gallery ^^ 


Advertisement: