SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 21, 2012, 09:40:53 am

Login with username, password and session length
Members
Total Members: 10065
Latest: yaser1984
Stats
Total Posts: 28682
Total Topics: 4975
Online Today: 58
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 57
Total: 57
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 4 5 [6] 7 Go Down Print
Author Topic: SMF Gallery Lite Help Information  (Read 79464 times)
Ken.
Jr. Member
**
Offline Offline

Posts: 74

TP Rules!


View Profile
« Reply #75 on: May 12, 2008, 06:17:59 pm »

problematic that code should work OK if you have everything set up correctly.
Your best bet for support for the code and how to get it to work in a TinyPortal block would be to post your question or issue in the topic where you got the code.
If you don't have TinyPortal installed I'm not so sure that you would be able to get that code to work the way that you wish to.
Logged
drj126
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #76 on: August 16, 2008, 08:36:45 am »

Gallery path...

Something has happened to our gallery. We're now getting a path error. Can someone show me a sample path? I thought ours was:

http://ftp://fotographicks.com/SDO/forum/gallery

But the error says it isn't.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #77 on: August 16, 2008, 09:06:02 am »

That isn't it.
Check under Server Settings copy the sources path
And change Sources to gallery/
Logged
drj126
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #78 on: August 16, 2008, 09:23:03 am »

Now THAT I can do!!

Worked, thank you very much!!!
Logged
drj126
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #79 on: August 16, 2008, 11:41:57 am »

Well... maybe NOT!!

I'm getting reports from the users that they can upload, but only SEE the dreaded red x box.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #80 on: August 16, 2008, 12:36:41 pm »

Change gallery url to
http://www.fotographicks.com/SDO/forum/gallery/
Logged
drj126
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #81 on: August 16, 2008, 05:00:29 pm »

Still the x box...
Logged
drj126
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #82 on: August 19, 2008, 08:22:52 pm »

The error message is gone, but those people uploading upload successfully, but then get the red x...
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #83 on: August 19, 2008, 08:49:26 pm »

Means something wrong with the gallery url not right! need to be http://www.yoursite.com/gallery/
Logged
Aspharanx
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #84 on: September 01, 2008, 06:08:27 am »

Anybody can help? I installed this gallery mod but I can't find anywhere to adjust the settings. I've saw some screenshots where there was a link in the configuration part but there's no link in my menu. It shows that it's installed via the package manager but it's like it's not there. I've checked and it has made all the tables in db, the files seem at the right location.

I've even tried going via mysite/?action=gallery but it's just the main page of my forum I get then. I've been searching for hours now trying to use older versions, reinstalling, ... I can't find what's wrong so I hope you guys can help?

Forum is 1.1.5 and the version of the mod is 1.8.3

Kind regards.
Logged
mashby
Jr. Member
**
Offline Offline

Posts: 81



View Profile WWW
« Reply #85 on: September 01, 2008, 09:17:02 am »

I'll guess that you are using a custom theme. What is the URL to your site, too? You're likely going to have to edit your index.template.php file.
Logged
Aspharanx
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #86 on: September 01, 2008, 01:49:27 pm »

Yeah, I'm using a custom theme.

The site is www.dendermondeleeft.be.

If you'd be so kind to tell me what I have to edit in my index.template.php file?
Logged
mashby
Jr. Member
**
Offline Offline

Posts: 81



View Profile WWW
« Reply #87 on: September 01, 2008, 04:29:37 pm »

Depending on the mods you have installed this may or may not work.
Look for something like this:
Code:
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];

Add 'gallery', to the list, something like this:
Code:
if (in_array($context['current_action'], array('gallery', 'search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];

The add this code to the place where you want the Gallery link to appear (slightly below where the above code is):
Code:
// The [gallery]!
echo '<li><a class="gallery' , $current_action == 'gallery' ? ' active' : '', '" href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu'] , '</a></li>';

Hope that works.
Logged
Matt5L
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #88 on: October 11, 2008, 02:30:21 pm »

BTW Thanks to all who have created this wonderful addon!

Ok I have read thru here and still cant get my button to work, I erased the code I put in so we can start from scratch.
Im using the Black Rain V2 script. SMF 1.1.6 and Simple Portal 2.0.4.

Here is my index.template file attached.  PLEASE NOTE its in UTF-8 my laptop broke and im only using wordpad so can someone please convert it for me to the right format!?

Thank You in advance,
Matt

* index_template.php (25.86 KB - downloaded 388 times.)
« Last Edit: October 11, 2008, 02:55:57 pm by Matt5L » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #89 on: October 12, 2008, 09:50:07 am »

Here is the update template_menu function

Code:
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Work out where we currently are.
$current_action = 'home';
if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
$current_action = 'admin';
if (in_array($context['current_action'], array('gallery','search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action = 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first = 'last';
$last = 'first';
}
else
{
$first = 'first';
$last = 'last';
}
  echo '<div id="tabs6">';

// How about the [home] button?
echo '<ul><li><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';

// How about the [forum] button?
echo '<li><a href="', $scripturl, '?action=forum" ><span>', $txt['sp-forum'], '</span></a></li>';

// How about the [help] button?
echo '<li><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a href="', $scripturl, '?action=search"><span>', $txt[182] , '</span></a></li>';

// How about the [arcade] button?
echo '<li><a href="', $scripturl, '?action=arcade"><span>', $txt['arcade'] , '</span></a></li>';

// Is the user allowed to administrate at all? ([admin])
  if ($context['allow_admin'])
echo '<li><a href="', $scripturl, '?action=admin"><span>', $txt[2], '</span></a></li>';
 
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a href="', $scripturl, '?action=profile"><span>', $txt[467], '</span></a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a href="', $scripturl, '?action=calendar"><span>', $txt['calendar24'], '</span></a></li>';

// Gallery
if ($context['allow_smfgallery_view'])
echo '<li><a href="', $scripturl, '?action=gallery"><span>', $txt['smfgallery_menu'] , '</span></a></li>';



// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '<li><a href="', $scripturl, '?action=login"><span>', $txt[34], '</span></a></li>
  <li><a href="', $scripturl, '?action=join"><span>', $txt[97], '</span></a></li>';
}
// Otherwise, they might want to [logout]...
else
echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>', $txt[108], '</span></a></li>';
  echo '</ul></div>';
}
Logged
Pages: 1 ... 4 5 [6] 7 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 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]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]

[May 15, 2012, 09:32:27 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 4.965 seconds with 21 queries.