SMF Gallery

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

Previous topic - Next topic

Kenny01

users can't create their own gallery, but can only add there pics to the galery. It's only the admin who can do that.

godzirrraaaaa

Quote from: Tory on January 24, 2008, 07:31:47 PM
I am trying to reinstall the SMF Gallery Pro and it is giving me an error message

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I am using SMF 1.1.4 and have SMF Gallery Lite installed at the moment.  Do I need to unistall that to install the Pro?


I'm getting the same error but I don't have Lite installed.  The Package manager won't let me install it because it says it's an uncompatible / older version.  I'm user SMF 1.1.4.
Board X [nofollow]

Slushie

Quote from: Oga123 on February 15, 2008, 04:30:17 AM
users can't create their own gallery, but can only add there pics to the galery. It's only the admin who can do that.

Oh. Basically the whole reason I installed it was for User Galleries, because on the SMF Gallery Page here, under features it says.
"User Image galleries"
Why does it say that then? I'm just a little confused.

jamesk

User Galleries are part of the Pro version, I believe:

http://www.smfhacks.com/smf-gallery-pro.php

simon36

#1204
Hi, I have the Lite version and really like it.

Can someone tell me how to add forward and back buttons?

Thanks in advance.

ReneNF

#1205
Hi to all

I have a big problem. I can´t install the gallery lite. When I will execute the changes of the packages, I become shown this failure:
(see picture)

Who can help?

vdubbia

Quote from: simonb on February 16, 2008, 05:36:22 PM
Hi, I have the Lite version and really like it.

Can someone tell me how to add forward and back buttons?

Thanks in advance.

I believe that's on the pro version.

perplexed

vbgamer:

Two quick questions -

If I uninstall and reinstall gallery lite will all my images still be there (I'm thinking yes but I just want to check)
and
If I decided to go with pro, it is just a simple matter of uninstalling lite and then installing pro, and do I still retain all my images?

Thanks

vbgamer45

Yes to both questions.

Uninstalling the gallery does not remove the data/images.

Pro edition just uninstall lite then install the pro edition.
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

vdubbia

Quote from: vbgamer45 on February 18, 2008, 08:25:36 PM
Yes to both questions.

Uninstalling the gallery does not remove the data/images.

Pro edition just uninstall lite then install the pro edition.

and before/next navigation is included in PRO right?

vbgamer45

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

vdubbia

How can I change "Picture Not Approved" to "Picture Pending Approval"?

vbgamer45

You would need to change the text string found in Themes/default/languages/Gallery.english.php  do a search and find and replace.
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

vdubbia

Quote from: vbgamer45 on February 18, 2008, 09:00:43 PM
You would need to change the text string found in Themes/default/languages/Gallery.english.php  do a search and find and replace.

perfect, thanks.  For the official mod package I might suggest changing that to read 'Picture Not Yet Approved' as 'Picture Not Approved' tends to make uploaders think their picture was rejected.  For my purposes, Picture Pending Approval does the trick.

Thanks for the quick answer.

wjhdiz

Hi,

Just wondering if SMF Gallery can use lightbox features.

Thanks,
JImmy
Freedom of speech? It is freer if not speaking out.
Believing in God? Yes, talk with God every day through God creations.
Coding is poem and a way of keeping away from the troubled world.

vbgamer45

I have addon for the pro edition but it does not do to much just shows the picture in a lightbox when they click on the image when viewing the picture.
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

perplexed

Quote from: vbgamer45 on February 18, 2008, 08:25:36 PM
Yes to both questions.

Uninstalling the gallery does not remove the data/images.

Pro edition just uninstall lite then install the pro edition.

cool thank you

wjhdiz

With Integrate Lightbox installed, does this mean that I need to only modify gallery.php file a little bit?

Thanks.
Quote from: vbgamer45 on February 19, 2008, 08:00:22 PM
I have addon for the pro edition but it does not do to much just shows the picture in a lightbox when they click on the image when viewing the picture.
Freedom of speech? It is freer if not speaking out.
Believing in God? Yes, talk with God every day through God creations.
Coding is poem and a way of keeping away from the troubled world.

vbgamer45

No idea  haven't used that mod.
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

Hoochie Coochie Man

#1219
Hi,

SMF Seo Gallery home page has 34 XHTML errors!

and my gallery home page has 11 errors

Can you fix these errors please?  :-[

QuoteResult: 11 errors / 0 warnings

line 122 column 25 - Error: document type does not allow element "tr" here
line 122 column 560 - Error: document type does not allow element "tr" here
line 124 column 29 - Error: document type does not allow element "tr" here
line 124 column 408 - Error: document type does not allow element "tr" here
line 126 column 29 - Error: document type does not allow element "tr" here
line 126 column 410 - Error: document type does not allow element "tr" here
line 128 column 29 - Error: document type does not allow element "tr" here
line 128 column 451 - Error: document type does not allow element "tr" here
line 130 column 29 - Error: document type does not allow element "tr" here
line 130 column 447 - Error: document type does not allow element "tr" here
line 132 column 15 - Error: end tag for "tr" omitted, but OMITTAG NO was specified
line 118 column 4 - Info: start tag was here

Edit: and these 11 errors are in there...
// No Category is set.
if($g_add && !($context['user']['is_guest']))
echo '<div align="right"><a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=search">' . $txt['gallery_text_search'] . '</a></div>';

echo '<h1 align="center">' . $txt['gallery_text_title'] .'</h1>';

// List all the catagories
$dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat ORDER BY roworder ASC", __FILE__, __LINE__);


//Check which BBCode parser exists parse_bbc for 1.1 or doUBBC for 1.0.x
$parse_exist = function_exists('parse_bbc');

echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
<tr class="titlebg">
<td colspan="2">' . $txt['gallery_text_galleryname'] . '</td>
<td>' . $txt['gallery_text_gallerydescription'] .'</td>
<td>' . $txt['gallery_text_totalimages'] . '</td>
';
if($g_manage)
echo '
<td>' . $txt['gallery_text_reorder'] . '</td>
<td>' . $txt['gallery_text_options'] . '</td>
</tr>';


while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}gallery_pic WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totalpics = db_affected_rows();
echo '<tr class="windowbg2">';
if($parse_exist)
{
if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" alt="" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
}

}
else
{

if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
}


}
// Show total pictures in the category
echo '<td align="center">' . $totalpics . '</td>';

// Show Edit Delete and Order category
if($g_manage)
{
echo '<td><a href="' . $scripturl . '?action=gallery;sa=catup;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_up'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=catdown;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_down'] . '</a></td>
<td><a href="' . $scripturl . '?action=gallery;sa=editcat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_edit'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=deletecat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_delete'] . '</a></td>';
}


echo '</tr>';
if($g_manage)
{
echo '<tr class="titlebg">
<td colspan="6">&nbsp;</td>
</tr>';
}
else
echo '<tr class="titlebg">
<td colspan="4">&nbsp;</td>
</tr>';

mysql_free_result($dbresult2);

}
mysql_free_result($dbresult);
echo '</table><br /><br /><br />';


When I look at the codes, I couldn't find any errors?  :-\ interesting  ::)

Edit 2: Ok, I found the error!

This is wrong codding:

<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
            <tr class="titlebg">
            <td colspan="2">' . $txt['gallery_text_galleryname'] . '</td>
            <td>' . $txt['gallery_text_gallerydescription'] .'</td>
            <td>' . $txt['gallery_text_totalimages'] . '</td>
            ';
      if($g_manage)
      echo '

            <td>' . $txt['gallery_text_reorder'] . '</td>
            <td>' . $txt['gallery_text_options'] . '</td>
            </tr>';

Red area creates the error. I know what the red area means. I't is for admins.

I solved my own problem. But this is my own solution.
You must sacrifice some codes for valid XHTML. Anyway these codes shows up only admins.

// No Category is set.
if($g_add && !($context['user']['is_guest']))
echo '<div align="right"><a href="' . $scripturl . '?action=gallery;sa=myimages;u=' . $ID_MEMBER . '">' . $txt['gallery_text_myimages'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=search">' . $txt['gallery_text_search'] . '</a></div>';

echo '<h1 align="center">' . $txt['gallery_text_title'] .'</h1>';

// List all the catagories
$dbresult = db_query("SELECT ID_CAT, title, roworder, description, image FROM {$db_prefix}gallery_cat ORDER BY roworder ASC", __FILE__, __LINE__);


//Check which BBCode parser exists parse_bbc for 1.1 or doUBBC for 1.0.x
$parse_exist = function_exists('parse_bbc');

echo '<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
<tr class="titlebg">
<td colspan="2">' . $txt['gallery_text_galleryname'] . '</td>
<td>' . $txt['gallery_text_gallerydescription'] .'</td>
<td colspan="3">' . $txt['gallery_text_totalimages'] . '</td></tr>';



while($row = mysql_fetch_assoc($dbresult))
{
  $dbresult2 = db_query("SELECT title FROM {$db_prefix}gallery_pic WHERE ID_CAT = ". $row['ID_CAT'] . ' AND approved = 1', __FILE__, __LINE__);
$totalpics = db_affected_rows();
echo '<tr class="windowbg2">';
if($parse_exist)
{
if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" alt="" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td><td>' . parse_bbc($row['description']) . '</td>';
}

}
else
{

if($row['image'] == '')
echo '<td colspan="2"><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
else
{
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '"><img src="' . $row['image'] . '" border="0" /></a></td>';
echo '<td><a href="' . $scripturl . '?action=gallery;cat=' . $row['ID_CAT'] . '">' . doUBBC($row['title']) . '</a></td><td>' . doUBBC($row['description']) . '</td>';
}


}
// Show total pictures in the category
echo '<td align="center">' . $totalpics . '</td>';

// Show Edit Delete and Order category
if($g_manage)
{
echo '<td><a href="' . $scripturl . '?action=gallery;sa=catup;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_up'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=catdown;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_down'] . '</a></td>
<td><a href="' . $scripturl . '?action=gallery;sa=editcat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_edit'] . '</a>&nbsp;<a href="' . $scripturl . '?action=gallery;sa=deletecat;cat=' . $row['ID_CAT'] . '">' . $txt['gallery_text_delete'] . '</a></td>';
}


echo '</tr>';
if($g_manage)
{
echo '<tr class="titlebg">
<td colspan="6">&nbsp;</td>
</tr>';
}
else
echo '<tr class="titlebg">
<td colspan="4">&nbsp;</td>
</tr>';

mysql_free_result($dbresult2);

}
mysql_free_result($dbresult);
echo '</table><br /><br /><br />';

// See if they are allowed to add catagories Main Index only
if($g_manage)
{
echo '<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%" class="tborder">
<tr class="titlebg">
<td align="center">' . $txt['gallery_text_adminpanel'] . '</td>
</tr>
<tr class="windowbg2">
<td align="center"><a href="' . $scripturl . '?action=gallery;sa=addcat">' . $txt['gallery_text_addcategory'] . '</a>&nbsp
<a href="' . $scripturl . '?action=gallery;sa=adminset">' . $txt['gallery_text_settings'] . '</a>&nbsp';


if (allowedTo('manage_permissions'))
echo '<a href="' . $scripturl . '?action=permissions">' . $txt['gallery_text_permissions'] . '</a>';

$dbresult3 = db_query("SELECT title FROM {$db_prefix}gallery_pic WHERE approved = 0", __FILE__, __LINE__);
$totalpics = db_affected_rows();
mysql_free_result($dbresult3);
echo '<br />' . $txt['gallery_text_imgwaitapproval'] . '<b>' . $totalpics . '</b>&nbsp;&nbsp;<a href="' . $scripturl . '?action=gallery;sa=approvelist">' . $txt['gallery_text_imgcheckapproval'] . '</a>';
$dbresult4 = db_query("SELECT ID FROM {$db_prefix}gallery_report", __FILE__, __LINE__);
$totalreport = db_affected_rows();
mysql_free_result($dbresult4);
echo '<br />' . $txt['gallery_text_imgreported'] . '<b>' . $totalreport . '</b>&nbsp;&nbsp;<a href="' . $scripturl . '?action=gallery;sa=reportlist">' . $txt['gallery_text_imgcheckreported'] . '</a>';

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


And the Result
İnadına SMF 1.1.X

Advertisement: