News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Gallery

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

Previous topic - Next topic

puttputt

Quote from: vbgamer45 on February 02, 2007, 10:21:33 PM
On what files? If you have other mods installed it might conflict.
After looking at the error logs, I think I discovered why.  Error says "SAFE MODE Restriction" 

Is there any way to manually install?  

vbgamer45

Community Suite for SMF - Take your forum to the next level built for 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

puttputt

I did try to install (unsuccessfully) another mod prior to this one, but same "Modification parse errors" popped-up.

puttputt

#383
Greatly appreciate your time, vbgamer45. -puttput-

pIECEoFcAKE

#384
Awesome... Is good idea for a further release, I guess.

vbgamer45

Quote from: pIECEoFcAKE on February 03, 2007, 05:28:13 PM
Well, I followed all the steps, and don't works at all. The only thing that works very very well is the payment section. Awesome.

Is good idea for a further release, I guess.
??? Explain their is no payment section.
Community Suite for SMF - Take your forum to the next level built for 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

pIECEoFcAKE

Well, was needed set the permissions manually for installing it; but the link for access the Gallery don't appears, no thumbnails either; now I'm tripping out messing with the XML...

vbgamer45

Link to access the gallery only appears on the default theme.
Check your gallery folder if images are being uploaded and some are called thumb_ for thumbnails.  Thumbnails require GD to be installed.
Community Suite for SMF - Take your forum to the next level built for 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

pIECEoFcAKE

Ok, thanks I will try.

softtouch

Quote from: vbgamer45 on February 02, 2007, 10:38:08 AM
Quote from: softtouch on February 02, 2007, 10:28:02 AM
Something with this mod related to permissions is wrong.
I have set my global mods to manage the gallery. When they try to create a category, they are asked for the admin password...????? Their login password does not work. Anybody else has this problem? If they enter the password of an admin, they can create the categories. Why is that so?

Not sure I will look into it.

Any idea already?

jrallen01

Awesome mod. It installed with no errors. I can see all of the configuration options. I can upload and post photos. When I click on the photo, it displays correctly.

The only issue I have is when accessessing the gallery, it is not rendering the thumbnails. It shows only the small white frames with the X in the center.

I have accessesd with Firefox and IE6.0 and the same thing happens.

I am running  SMF 1.1.1 under Microsoft IIS.

Any suggestions?

vbgamer45

Do you have GD installed?

In your php.ini you need to uncomment extension=php_gd2.dll
Community Suite for SMF - Take your forum to the next level built for 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

jrallen01

Yep... duh, I read the documentation and was just coming back to say "never mind". I uncommented and it works beautifully.

Thanks for your prompt response.

hellmet

I'm sorry, I'm too lazy to go thru all 27 pages, but can someone tell me if I can
display the latest/random thumbnails on the Forum Home ??
Please.

vbgamer45

On all pages or just the board index?
Community Suite for SMF - Take your forum to the next level built for 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

hellmet


hellmet


vbgamer45

I only have the mod in the Pro edition not for the lite version currently.
Community Suite for SMF - Take your forum to the next level built for 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

softtouch

#398
Its not perfect, but it works.
It lists the last 12 added images from the gallery

I add in boardindex.template.php below this block:

// Here's where the "Info Center" starts...
   echo '<br />
   <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
      <div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
         <a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
         ', $txt[685], '
      </div>
      <div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
         <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';


the following code:

//gallery thumbs
// ********************************************
   if ($context['user']['is_logged'])
{
   echo'   <tr>
         <td class="titlebg" colspan="2">', 'Recent Gallery Images', '</td>
      </tr>
      <tr>
         <td class="windowbg" width="20" valign="middle" align="center">
            <img src="', $settings['images_url'], '/icons/bullet_grin.gif" alt="', 'Gallery Images', '" />
         </td>
         <td class="windowbg2">';


      $dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat ORDER BY roworder ASC", __FILE__, __LINE__);
      while ($row = mysql_fetch_assoc($dbresult))
      {
         $cat = $row['ID_CAT'];
         $dbresult2 = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_CAT = $cat AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
         while ($row2 = mysql_fetch_assoc($dbresult2))
         {
            $dataimg[]=$row2['ID_PICTURE'];
         }
         mysql_free_result($dbresult2);
      }
      mysql_free_result($dbresult);
      rsort($dataimg);



      $maxpictures = 12;
      $maxrowlevel = 4;
      echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%">
                  <tr><td align="center" colspan="' . $maxrowlevel . '">' . '</td>
                  </tr>';
      $rowlevel = 0;
      $pictures = 0;
      foreach ($dataimg as $img)
      {
         $dbresult2 = db_query("SELECT p.ID_PICTURE, p.commenttotal, p.filesize, p.views, p.thumbfilename, p.title, p.ID_MEMBER, p.ID_CAT, m.memberName, m.realName, p.date, p.description FROM {$db_prefix}gallery_pic as p, {$db_prefix}members AS m WHERE  p.ID_MEMBER = m.ID_MEMBER  AND p.ID_PICTURE = $img AND p.approved = 1 ORDER BY ID_PICTURE DESC", __FILE__, __LINE__);
         $row2 = mysql_fetch_assoc($dbresult2);

         $cat = $row2['ID_CAT'];

         $dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat WHERE ID_CAT = $cat ORDER BY roworder ASC", __FILE__, __LINE__);
         $row = mysql_fetch_assoc($dbresult);
         $category = $row['title'];
         $catnum = $row['ID_CAT'];
         mysql_free_result($dbresult);


         if($rowlevel == 0)
            echo '<tr>';
         echo '<td align="center"><a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row2['ID_PICTURE'] . '"><img src="' . $modSettings['gallery_url'] . $row2['thumbfilename']  . '" border="0" /></a><br />';
         echo '<span class="smalltext">' . 'In: ' . '<a href="' . $scripturl . '?action=gallery;cat=' . $catnum . '">' . $category.'</a><br />';
         echo 'Date: ' . timeformat($row2['date']) . '<br />';
         echo 'Comments:' . ' (<a href="' . $scripturl . '?action=gallery;sa=view;id=' . $row2['ID_PICTURE'] . '">' . $row2['commenttotal'] . '</a>)<br />';
         echo 'By:' . ' <a href="' . $scripturl . '?action=profile;u=' . $row2['ID_MEMBER'] . '">'  . $row2['realName'] . '</a><br />';
         echo '</span></td>';
         if($rowlevel < ($maxrowlevel-1))
            $rowlevel++;
         else
         {
            echo '</tr>';
            $rowlevel = 0;
         }
         mysql_free_result($dbresult2);
         $pictures++;
         if ($pictures == $maxpictures)
            break;
      }
      if($rowlevel !=0)
      {
         echo '</tr>';
      }

      echo '</table><br />';

// ********************************************

It works fine for me...

hellmet

ohh. thanks softouch..will try and let ya know. :-)

Advertisement: