Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2013, 03:08:03 pm

Login with username, password and session length
Members
Total Members: 10768
Latest: tuberose
Stats
Total Posts: 32392
Total Topics: 5480
Online Today: 69
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 3
Guests: 52
Total: 55
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] 3 Go Down Print
Author Topic: Question about Features before buying  (Read 5940 times)
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #15 on: August 12, 2012, 06:20:05 pm »

You're great! That worked just fine! I'm trying to learn some php language so I don't bother you with this questions but until then, I really appreciate your help.

Btw, I found out that this mod:

Profile Images - Lists Recent Uploaded Images: http://www.smfhacks.com/index.php/topic,691.0.html

has a working version posted on that topic here: http://www.smfhacks.com/index.php/topic,691.msg26826.html#msg26826
Is not the best as I liked the images on the side and here they appear at the bottom. Still, it's still pretty good. You might wanna post a direct a link on the first post the there as a SMF2.0.2 working version.

I'm only missing now this one: Recent Images on overall theme header: http://www.smfhacks.com/index.php/topic,163.0.html

As it would really promote the gallery on the entering page of the site. Would be great if you could adapt it to SMF2.0.2.

Thanks once again.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11002


View Profile
« Reply #16 on: August 13, 2012, 11:14:05 pm »

You're great! That worked just fine! I'm trying to learn some php language so I don't bother you with this questions but until then, I really appreciate your help.

Btw, I found out that this mod:

Profile Images - Lists Recent Uploaded Images: http://www.smfhacks.com/index.php/topic,691.0.html

has a working version posted on that topic here: http://www.smfhacks.com/index.php/topic,691.msg26826.html#msg26826
Is not the best as I liked the images on the side and here they appear at the bottom. Still, it's still pretty good. You might wanna post a direct a link on the first post the there as a SMF2.0.2 working version.

I'm only missing now this one: Recent Images on overall theme header: http://www.smfhacks.com/index.php/topic,163.0.html

As it would really promote the gallery on the entering page of the site. Would be great if you could adapt it to SMF2.0.2.

Thanks once again.
Posted versions that should install cleanly for SMF 2.0.2
Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #17 on: August 14, 2012, 03:42:45 am »

Posted versions that should install cleanly for SMF 2.0.2
Thanks a million!

First, seems that you mistaken uploaded the wrong file here: http://www.smfhacks.com/index.php/topic,468.0.html

Now, I wanted to test this but I can't uninstall:

SMF Gallery Pro Recent Profile Images
SMF Gallery Pro Recent Comments Board Index

That I already had installed before...  Gives a "Test Failed" when I try to uninstall so I didn't go further with this.   Undecided

I assume that I shouldn't try to install these over the ones installed.

I have compared the code of the Recent Profile Images mod and seems to be exactly the same I have installed so I don't need to make changes. I might be able to change manually the code for the Recent Comments Board Index mod and avoid having to uninstall.

As for the:

SMF Gallery Pro Recent Images - It shows incompatible to my Current Theme but ok for the default one
SMF Gallery Pro Gallery Information Header - It shows incompatible to my Current Theme but ok for the remaining ones

If it's difficult to make it compatible with other themes, I might try to manually add this (it doesn't hurt to try).


Btw, not sure if it's important but on the package-info.xml file of recentimagesprofile.zip, there is no mention to profileimages2.xml or profileimages08.xml and the same applies to package-info.xml file of recentimages2.0.zip to profileimages2.xml and I think there is an error here
Code:
<uninstall for="2.0 - 2.0.99,2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
<modification type="file" reverse="true">recentimages2c2.xml</modification>
</uninstall>
as it's missing an "r".
« Last Edit: August 14, 2012, 04:58:16 am by Jonas1975 » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11002


View Profile
« Reply #18 on: August 14, 2012, 07:39:42 am »

Fixed for recent comments wrong file uploaded
And fixed uninstall for  recentimages2.0.zip
Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #19 on: August 14, 2012, 08:08:29 am »

Thanks once again. Since I was unable to uninstall the Recent Comments mod, I managed to fix the one I had installed with the help of the code that you posted on your update.

I will try now to add the the Recent Images mod. I might need your assistance to understand where I should put the code since the "// The main content should go here." statement doesn't exist on the theme I'm using and I'm not understanding where it should go on the index.template.php.

This is the part of the code where I think it should be added but not sure where:
Code:
function template_body_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   echo '
<div id="bodybg">
    <div id="wrapper">
        <div id="header">
            <div id="head-l">
                <div id="head-r">
                    <div id="userarea" class="smalltext">';
                   if (!empty($context['user']['avatar']))
                   echo '<div id="my-avatar" class="clearfix">'.$context['user']['avatar']['image'].'</div>';
                  if ($context['user']['is_logged'])
  {
                  echo '
            <ul class="reset">
              <li><b>', $txt['hello_member'], ' ', $context['user']['name'], '</b></li>';
         echo '
             <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
             <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
             <li>', $context['current_time'],'</li>
         </ul>';
  }

   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
      else
     {
        echo sprintf($txt['welcome_guest'], $txt['guest_title']);
      echo '<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
      <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
            <input type="text" name="user"  size="10" class="input_text" />
            <input type="password" name="passwrd"  size="10" class="input_password" />
            <input type="submit" value="', $txt['login'], '" class="button_submit" />
            <input type="hidden" name="hash_passwrd" value="" />
         </form>', $context['current_time'],'<br />';
     }
   echo '
     </div>
                     <div id="searcharea">
                        <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
                           <input class="inputbox" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" /> ';

                           // Search within current topic?
                           if (!empty($context['current_topic']))
                           echo '
                              <input type="hidden" name="topic" value="', $context['current_topic'], '" />';

                           // If we're on a certain board, limit it to this board ;).
                           elseif (!empty($context['current_board']))
                           echo '
                              <input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

                     echo '
                        </form>
                     </div>';

                    // Show a random news item? (or you could pick one from news_lines...)
                    if (!empty($settings['enable_news'])){
                      echo '<div id="news">
                     <br /><b>', $txt['news'], ':</b> ', $context['random_news_line'], '</div>';}

               echo '
                      <a href="'.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>';
               echo '
                 </div>
              </div>
          </div>
        <div id="toolbar">
        ',template_menu(),'
      </div>
     <div id="top">
         <div id="top-r">
              <div id="top-l">
            </div>
        </div>
    </div>
            <div class="border-l">
               <div class="border-r">
                  <div id="bodyarea">';

      // Show the navigation tree.
      theme_linktree();

}
Or it might be on somewhere else...  Sorry...  I'm not comfortable yet with php language...
« Last Edit: August 14, 2012, 08:10:27 am by Jonas1975 » Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #20 on: August 14, 2012, 08:05:15 pm »

Managed to install the Recent Images mod, so you don't have to worry about that. Smiley

I see that this installs on every single part of the forum. Is there a way to just make it appear on the Main (entering) page? Or to choose where it can be seen?
Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #21 on: August 15, 2012, 06:32:48 am »

Managed to install the Recent Images mod, so you don't have to worry about that. Smiley

I see that this installs on every single part of the forum. Is there a way to just make it appear on the Main (entering) page? Or to choose where it can be seen?
I'm a fast learner...  I managed to add them only to the first page by adding the code to BoardIndex.template.php instead of the Index.template.php.
Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #22 on: August 20, 2012, 02:42:44 pm »

I'm a fast learner...  I managed to add them only to the first page by adding the code to BoardIndex.template.php instead of the Index.template.php.
I getting this error with no visual impact on the Forum:
Code:
http://themobilephotographyblog.com/index.php?
8: Undefined variable: gallerySettings
File: /home/sites/themobilephotographyblog.com/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 56
Is there something I should do about it?

It's clearly the segment of code that I added to the BoardIndex.template.php that seemed to be working just fine. Still, I checked the Error Log and I have this for each access to the main page.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11002


View Profile
« Reply #23 on: August 20, 2012, 03:03:04 pm »

Attach that whole file.
Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #24 on: August 21, 2012, 04:20:29 am »

Attach that whole file.
You mean the BoardIndex.template.php? Attached. If it's other file, please tell me which one.

Another question related with the ratings on the Gallery. On the main gallery http://themobilephotographyblog.com/gallery/ the Top Rated photos are not sort the right way as I have photos with 1 rate of 5 stars on top of photos with 2 rate of 5 stars. On this part http://themobilephotographyblog.com/gallery/?sa=listall;type=toprated they are in a "better" sort but still I have a picture of 4.5 stars ahead of the one with 5 stars (because one has 9 stars and other has 5, I understand that). I would like to have the ones with 5 stars ahead of the ones with 4.5 and the ones with higher number of rates ahead of the ones with less.  Any way to do this?  If not, I would still like to "fix" the main gallery view to have the same sort of the view with the detail of Top Rated.
« Last Edit: August 21, 2012, 04:27:18 am by Jonas1975 » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11002


View Profile
« Reply #25 on: August 21, 2012, 08:19:36 pm »

I'm a fast learner...  I managed to add them only to the first page by adding the code to BoardIndex.template.php instead of the Index.template.php.
I getting this error with no visual impact on the Forum:
Code:
http://themobilephotographyblog.com/index.php?
8: Undefined variable: gallerySettings
File: /home/sites/themobilephotographyblog.com/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 56
Is there something I should do about it?

It's clearly the segment of code that I added to the BoardIndex.template.php that seemed to be working just fine. Still, I checked the Error Log and I have this for each access to the main page.

Hmm didn't find any gallery code in that file.

We need to find the true error file and line
Check out this post on disabling eval to find it out
http://www.catskilltech.com/freeSW/SMF/faqs/#eval
Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #26 on: August 22, 2012, 04:58:39 am »

Hmm didn't find any gallery code in that file.

We need to find the true error file and line
Check out this post on disabling eval to find it out
http://www.catskilltech.com/freeSW/SMF/faqs/#eval

Sorry...  Uploaded the wrong file (maybe my backup file). Now is the one I have changed to have the Recent Images header only on the Main page.

I will explore that link to see if I can find the source of the error.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11002


View Profile
« Reply #27 on: August 22, 2012, 07:45:32 am »

Fixed file attached
Logged
Jonas1975
SMF Gallery Pro Customer
Full Member
*****
Offline Offline

Posts: 157


View Profile WWW
« Reply #28 on: August 22, 2012, 01:32:49 pm »

Fixed file attached
Thank you!

I will try it and report it here to see if it fixed the error.

How about this?
Quote
Another question related with the ratings on the Gallery. On the main gallery http://themobilephotographyblog.com/gallery/ the Top Rated photos are not sort the right way as I have photos with 1 rate of 5 stars on top of photos with 2 rate of 5 stars. On this part http://themobilephotographyblog.com/gallery/?sa=listall;type=toprated they are in a "better" sort but still I have a picture of 4.5 stars ahead of the one with 5 stars (because one has 9 stars and other has 5, I understand that). I would like to have the ones with 5 stars ahead of the ones with 4.5 and the ones with higher number of rates ahead of the ones with less.  Any way to do this?  If not, I would still like to "fix" the main gallery view to have the same sort of the view with the detail of Top Rated.

Should I post it on the Bugs section?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11002


View Profile
« Reply #29 on: August 22, 2012, 01:41:51 pm »

I am not sure I originally changde since people thought it would be far. Otherwise it will just be a list of images with one five star rating as being in the top images.
Logged
Pages: 1 [2] 3 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 02:50:52 pm]

[Today at 04:50:21 am]

[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.206 seconds with 21 queries.