SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 10:25:11 am

Login with username, password and session length
Members
Total Members: 10073
Latest: makablue
Stats
Total Posts: 28690
Total Topics: 4979
Online Today: 85
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 59
Total: 60
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: 1.7.5.1 to 1.7.6  (Read 7175 times)
DarkWolf
Newbie
*
Offline Offline

Posts: 9



View Profile WWW
« on: July 02, 2007, 09:45:47 pm »

Hi!
Now I have rel. 1.7.5.1 but today i have see the new rel. 1.7.6!
Do you have a changelog of this new release (maybe you can insert a changelog with release download?)
How i can upgrade to last version?
PS i have found same bug with W3C! (alt attribute, bad table etc) please can you repair for next release?
Last questions.
I have see that guest not see search option in gallery but work fine if write manually in address bar "/index.php?action=gallery;sa=search" maybe is possible to fix search option for guest?
Thanks for this best work (and sorry for my bad english) Smiley
Regards, DarkWolf
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #1 on: July 02, 2007, 09:49:34 pm »

The new release mainly added image linking codes settings.
To upgrade unistall the old gallery then install the new gallery.
Logged
DarkWolf
Newbie
*
Offline Offline

Posts: 9



View Profile WWW
« Reply #2 on: July 02, 2007, 09:51:51 pm »

The new release mainly added image linking codes settings.
To upgrade unistall the old gallery then install the new gallery.
Ok thanks!
PS how i can repair search option for guest?  Embarrassed
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: July 02, 2007, 09:54:28 pm »

That would require to alter Gallery.template.php and remove the check for guest
Logged
DarkWolf
Newbie
*
Offline Offline

Posts: 9



View Profile WWW
« Reply #4 on: July 02, 2007, 09:58:01 pm »

That would require to alter Gallery.template.php and remove the check for guest
Ok Thanks. maybe tomorrow i test (now i go to sleep)   Wink
Logged

DarkWolf
Newbie
*
Offline Offline

Posts: 9



View Profile WWW
« Reply #5 on: July 02, 2007, 10:21:46 pm »

PS the link option work fine!
http://darkwolf.altervista.org/forum/index.php?action=gallery;sa=view;id=17  Grin
Logged

DarkWolf
Newbie
*
Offline Offline

Posts: 9



View Profile WWW
« Reply #6 on: July 03, 2007, 03:58:32 am »

PPS for next release can you integrate thumbnail code (like imageshack)?  Undecided
Edit!
I have integrate thumbnail code!
Open gallery.template.php
Search
Code:
// 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="[img]' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '[/img]" 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>';

}
and replace with
Code:
// 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="[img]' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '[/img]" size="50" /></td></tr>';
}
if ($modSettings['gallery_set_showcode_bbc_image'])
{
echo '<tr><td width="30%">', $txt['gallery_txt_bbcimage_thumb'], '</td><td> <input type="text" value="[url=' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . "][img]" . $modSettings['gallery_url'] . 'thumb_' . $context['gallery_pic']['filename']  . '[/img][/url]" 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_txt_htmllink'], '</td><td> <input type="text" value="&lt;img src=&#34;' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . '&#34; />" size="50" /></td></tr>';
}
if ($modSettings['gallery_set_showcode_htmllink'])
{
echo '<tr><td width="30%">', $txt['gallery_txt_htmllink_thumb'], '</td><td> <input type="text" value="&lt;a href=&#34;' . $modSettings['gallery_url'] . $context['gallery_pic']['filename']  . "&#34;&nbsp;target=&#34;_blank&#34;>&lt;img src=&#34;" . $modSettings['gallery_url'] . 'thumb_' . $context['gallery_pic']['filename']  . '&#34; border=&#34;0&#34;/>&lt;/a>" size="50" /></td></tr>';
}

echo '</table>';

}
Now open gallery.english.php,
search
Code:
$txt['gallery_txt_bbcimage'] = 'BB Code';
$txt['gallery_txt_directlink'] = 'Direct Link';
$txt['gallery_txt_htmllink'] = 'Html Link';
and replace with
Code:
$txt['gallery_txt_bbcimage'] = 'BB Code';
$txt['gallery_txt_bbcimage_thumb'] = 'Thumb BB Code';
$txt['gallery_txt_directlink'] = 'Direct Link';
$txt['gallery_txt_htmllink'] = 'Html Link';
$txt['gallery_txt_htmllink_thumb'] = 'Thumb Html Link';
See result!
http://darkwolf.altervista.org/forum/index.php?action=gallery;sa=view;id=17  Cool
« Last Edit: July 04, 2007, 11:57:36 pm by DarkWolf » Logged

DarkWolf
Newbie
*
Offline Offline

Posts: 9



View Profile WWW
« Reply #7 on: July 05, 2007, 01:27:29 pm »

Is possible to integrate function for edit comment?
And also notify on comment  Roll Eyes
Logged

DarkWolf
Newbie
*
Offline Offline

Posts: 9



View Profile WWW
« Reply #8 on: June 03, 2008, 07:13:26 pm »

To fix search for guest you can use this code:
Search:
Code:
// 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
Replace:
Code:
// 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>';
}
else { //Mostra ricerca ai visitatori
echo '<div align="right"><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
Logged

Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 10:10:32 am]

[Today at 09:42:09 am]

[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
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 0.246 seconds with 19 queries.