Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 159
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 135
Total: 135

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - reyver

Pages: [1]
1
SMF Gallery Lite / Re: Gallery photos on index (first page)
« on: June 06, 2011, 08:24:27 pm »
I used TP for this

2
SMF Gallery Lite / Re: Facebook like button
« on: May 30, 2011, 11:40:50 pm »
Hope you dont mind asking this.

This is the Template_view_ Picture code

Quote

function template_view_picture()
{
   global $scripturl, $context, $txt,  $id_member, $modSettings, $memberContext;

   // Load permissions
   $g_manage = allowedTo('smfgallery_manage');
   $g_edit_own = allowedTo('smfgallery_edit');
   $g_delete_own = allowedTo('smfgallery_delete');

   // Keywords
   $keywords = explode(' ',$context['gallery_pic']['keywords']);
    $keywordscount = count($keywords);


   ShowTopGalleryBar();
   


   echo '<br /><table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
         <tr class="catbg">
            <td align="center">' . $context['gallery_pic']['title'] . '</td>
         </tr>
         <tr class="windowbg2">
            <td align="center"><img height="' . $context['gallery_pic']['height']  . '" width="' . $context['gallery_pic']['width']  . '" src="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" alt="" /></td>
         </tr>
         <tr class="windowbg2">

            <td>
            <b>' . $txt['gallery_form_description'] . ' </b>' . (parse_bbc($context['gallery_pic']['description'])  ). '
            <hr />
            ' . $txt['gallery_text_picstats'] . '<br />

            ' . $txt['gallery_text_views'] . $context['gallery_pic']['views'] . '<br />
            ' . $txt['gallery_text_filesize']  . gallery_format_size($context['gallery_pic']['filesize'],2) . '<br />
            '  . $txt['gallery_text_height'] . ' ' . $context['gallery_pic']['height']  . '  ' . $txt['gallery_text_width'] . ' ' . $context['gallery_pic']['width'] . '<br />
            ';
   
            if (!empty($context['gallery_pic']['keywords']))
            {
            
               echo $txt['gallery_form_keywords'] . ' ';
               for($i = 0; $i < $keywordscount;$i++)
               {
                  echo '<a href="' . $scripturl . '?action=gallery;sa=search2;key=' . $keywords[$i] . '">' . $keywords[$i] . '</a>&nbsp;';
               }
               echo '<br />';
               
            }


            

            if ($context['gallery_pic']['real_name'] != '')
               echo$txt['gallery_text_postedby'] . '<a href="' . $scripturl . '?action=profile;u=' . $context['gallery_pic']['id_member'] . '">'  . $context['gallery_pic']['real_name'] . '</a>' . $txt['gallery_at'] . $context['gallery_pic']['date'] . '<br /><br />';
            else
               echo $txt['gallery_text_postedby'] . $txt['gallery_guest']  . $txt['gallery_at'] . $context['gallery_pic']['date'] . '<br /><br />';
            
            
            
            // Show image linking codes
            if ($modSettings['gallery_set_showcode_bbc_image']  || $modSettings['gallery_set_showcode_directlink'] || $modSettings['gallery_set_showcode_htmllink'])
            {
               echo '<b>',$txt['gallery_txt_image_linking'],'</b><br />
               <table border="0">
               ';
               
               if ($modSettings['gallery_set_showcode_bbc_image'])
               {
                  echo '<tr><td width="30%">', $txt['gallery_txt_bbcimage'], '</td><td> <input type="text" value="" size="50" /></td></tr>';
               }
               if ($modSettings['gallery_set_showcode_directlink'])
               {
                  echo '<tr><td width="30%">', $txt['gallery_txt_directlink'], '</td><td> <input type="text" value="' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '" size="50" /></td></tr>';
               }
               if ($modSettings['gallery_set_showcode_htmllink'])
               {
                  echo '<tr><td width="30%">', $txt['gallery_set_showcode_htmllink'], '</td><td> <input type="text" value="<img src=&#34;' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '&#34; />" size="50" /></td></tr>';
               }
               
               echo '</table>';
               
            }      

            // Show edit picture links if allowed
            if ($g_manage)
               echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=unapprove;pic=' . $context['gallery_pic']['id_picture'] . '">' . $txt['gallery_text_unapprove'] . '</a>';
            if ($g_manage || $g_edit_own && $context['gallery_pic']['id_member'] == $id_member)
               echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=edit;pic=' . $context['gallery_pic']['id_picture']. '">' . $txt['gallery_text_edit'] . '</a>';
            if ($g_manage || $g_delete_own && $context['gallery_pic']['id_member'] == $id_member)
               echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=delete;pic=' . $context['gallery_pic']['id_picture'] . '">' . $txt['gallery_text_delete'] . '</a>';


            // Show report picture link
            if (allowedTo('smfgallery_report'))
               echo '&nbsp;<a href="' . $scripturl . '?action=gallery;sa=report;id=' . $context['gallery_pic']['id_picture'] . '">' . $txt['gallery_text_reportpicture'] . '</a>';
      

            echo '
            </td>
         </tr>';

      // Display who is viewing the picture.
      if (!empty($modSettings['gallery_who_viewing']))
      {
         echo '<tr>
         <td align="center" class="windowbg2"><span class="smalltext">';

         // Show just numbers...?
         // show the actual people viewing the topic?
         echo empty($context['view_members_list']) ? '0 ' . $txt['gallery_who_members'] : implode(', ', $context['view_members_list']) . (empty($context['view_num_hidden']) || $context['can_moderate_forum'] ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['gallery_who_hidden'] . ')');

         // Now show how many guests are here too.
         echo $txt['who_and'], @$context['view_num_guests'], ' ', @$context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['gallery_who_viewpicture'], '</span></td></tr>';
      }

echo '
      </table><br />';
   //Check if allowed to display comments for this picture
   if ($context['gallery_pic']['allowcomments'])
   {
      //Show comments
      echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
            <tr class="catbg">
               <td align="center" colspan="2">' . $txt['gallery_text_comments'] . '</td>
            </tr>';

      if (allowedTo('smfgallery_comment'))
      {
         //Show Add Comment
         echo '
            <tr class="titlebg"><td colspan="2">
            <a href="' . $scripturl . '?action=gallery;sa=comment;id=' . $context['gallery_pic']['id_picture'] . '">' . $txt['gallery_text_addcomment']  . '</a></td>
            </tr>';
      }

      // Display all user comments
   
      $comment_count = $context['gallery_comment_count'];

      foreach($context['gallery_comment_list'] as $row)
      {
         echo '<tr class="windowbg">';
         // Display member info
         echo '<td width="10%" valign="top">
         <a href="' . $scripturl . '?action=profile;u=' . $row['id_member'] . '">'  . $row['real_name'] . '</a><br />
         <span class="smalltext">' . $txt['gallery_text_posts'] . $row['posts'] . '</span><br />';
         // Display the users avatar
            $memCommID = $row['id_member'];
            loadMemberData($memCommID);
         loadMemberContext($memCommID);

         
         echo $memberContext[$memCommID]['avatar']['image'];
         
         echo '
         </td>';
         // Display the comment
         echo '<td width="90%"><span class="smalltext">' . timeformat($row['date']) . '</span><hr />';

         echo   parse_bbc($row['comment']);

         // Check if the user is allowed to delete the comment.
         if($g_manage)
            echo '<br /><a href="' . $scripturl . '?action=gallery;sa=delcomment;id=' . $row['id_comment'] . '">' . $txt['gallery_text_delcomment'] .'</a>';


         echo '</td>';
         echo '</tr>';
      }



      // Show Add Comment link again if there are more than one comment
      if( allowedTo('smfgallery_comment') && $comment_count != 0)
      {
       // Show Add Comment
         echo '
            <tr class="titlebg">
               <td colspan="2">
               <a href="' . $scripturl . '?action=gallery;sa=comment;id=' . $context['gallery_pic']['id_picture'] . '">' . $txt['gallery_text_addcomment'] . '</a>
               </td>
            </tr>';
      }

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

   // Link back to the gallery index
   echo '<div align="center"><a href="', $scripturl, '?action=gallery">' . $txt['gallery_text_returngallery'] . '</a></div><br />';



   GalleryCopyright();
}

and this the code from facebook plugins

Quote
<iframe src="http://www.facebook.com/plugins/like.php?app_id=170685896314252&amp;href=http%3A%2F%2Fedwinloyola.com%2Findex.php%3Faction%3Dgallery&amp;send=false&amp;layout=standard&amp;width=400&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:35px;" allowTransparency="true"></iframe>

can you teach me how to do it?

thanks in advance,

Regards,

Rey

3
SMF Gallery Lite / Re: Facebook like button
« on: May 30, 2011, 08:36:13 pm »
ok im on the file, is the code from facebook plugin needs to be insert or need to replace some code in the template_view_picture?

thanks

reyver

4
SMF Gallery Lite / Re: Facebook like button
« on: May 30, 2011, 07:44:20 pm »
i found this  "gallery_theme.php" in /public_html/gallery/modules/gallery/helpers

and when i open the file i cant find template_view_picture

thanks

reyver

5
SMF Gallery Lite / Re: Facebook like button
« on: May 30, 2011, 06:49:47 pm »
Good day again,

i cant find the view_picture function is it inside the gallery.template.php? cause when i open the it i didnt find the view_picture

thanks

reyver

6
SMF Gallery Lite / Re: Facebook like button
« on: May 30, 2011, 12:17:56 pm »
i will put the code from the facebook plugin in gallery.template.php ?

7
SMF Gallery Lite / Facebook like button
« on: May 30, 2011, 11:29:02 am »
is it possible to put a like button every photos uploaded in the gallery?

thanks

reyver

8
Support / Re: Method Not Implemented
« on: May 27, 2011, 05:15:05 am »
im using

SMF Gallery Lite    3.0.3b

9
Support / Method Not Implemented
« on: May 27, 2011, 04:55:36 am »
I got this error when i approve an image.

Quote
Method Not Implemented

GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Hope you can help me

thanks

reyver

Pages: [1]

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal