Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12047
Latest: kipzonderkop
New This Month: 6
New This Week: 0
New Today: 0
Stats
Total Posts: 38459
Total Topics: 6778
Most Online Today: 42
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 44
Total: 44

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 - Boomslanger

Pages: [1] 2 3
1
Support / Re: Random Image in TinyPortal Block Broken after SMF update
« on: December 04, 2017, 09:41:20 pm »
Fantastic. The upper block is perfect now, looks good. Thanks.

2
Support / Re: Random Image in TinyPortal Block Broken after SMF update
« on: December 03, 2017, 10:03:01 pm »
A little off this topic, but I'm wondering if you can help with this minor gripe?

I have the random images working in a top block and have selected to display the category and how many views under each image. Problem is there's a big gap between each text line. E.g.

Photo

in

Category


Viewed "n" times

Is there a way of reducing the paragraph spacing?

3
Support / Re: Random Image in TinyPortal Block Broken after SMF update
« on: December 02, 2017, 06:27:03 pm »
Thanks heaps, fixed and working like a charm.

4
Support / Re: Random Image in TinyPortal Block Broken after SMF update
« on: December 02, 2017, 12:27:21 am »
Code: [Select]
////////////////////////////////////////////////////
// SMF Gallery Random Picture - ver. 1.7.1        //
////////////////////////////////////////////////////
//
// Developed by Thurnok
// Thurnok -AT- tinyportal .DOT. net
// November 30, 2006
//
// For list of all updates history, see the UPDATES.TXT attached file
// in the post where you got this code, or the .ZIP file if you downloaded it
//
// Used in a TinyPortal phpblock or Article.
// This block displays random picture(s) from
// the SMF Gallery mod along with other information
//
//////////////////////////////////////////////

global $scripturl, $db_prefix, $modSettings, $boardurl, $ID_MEMBER, $user_info, $context;

/*
****************************************
****************************************
***    !! Admin Config Section !!    ***
****************************************
****************************************
*/

//   *****   LAYOUT OPTIONS   *****
// how many pictures do you want to show?  0 = all!
$gal_numpics = 5;

// use random, or most recent pics?
// 0 = random, 1 = most recent, 2 = most viewed, 3 = most commented
$gal_showtype = 0;
// sort :: 0 = Descending, 1 = Ascending
$gal_sort = 0;

// enable profile pics display?
// 0 = disable, 1 = enable --- if enabled, and you are viewing a member profile, show pics from that member only
// other options still apply (showtype, sort order, etc)
$gal_profile = 1;

// only show pics from buddies?
// 0 = disable, 1 = enable --- if enabled, will only show pics posted by members in your buddy list
$gal_buddies = 0;

// use Normal Size Text, or Small Size Text? (0 = Normal Size, 1 = Small Size)
$gal_smalltext = 1;

// put pictures in how many columns?  (1 for left/right block, more for centerblock / article if you wish)
$gal_columns = 5;

// information display flags (0 = No, 1 = Yes)
// display picture title?
$gal_dispTitle = 1;
// display membername who posted pic?
$gal_dispMember = 0;
// display posted date?
$gal_dispDate = 0;
// display category the picture is in?
$gal_dispCategory = 0;
// display number of views?
$gal_dispViews = 1;
// display dimensions?
$gal_dispDimensions = 0;
// display filesize?
$gal_dispSize = 0;
// display picture description?
$gal_dispDescription = 0;


//   *****   SECURITY CONFIGURATION   *****
// do not allow the following category numbers to be displayed
// example: $gal_disallowCats = "4,2,7" - don't show categories 2, 4, or 7
$gal_disallowCats = "";
// select only from the following cats - leave empty for all - NOTE:($gal_disallowCats overrides)
// example: $gal_allowCats = "1,3,4" - show only categories 1, 3, and 4
$gal_allowCats = "";
// Require the user has allowedTo('smfgallery_view') permission to view random pics thumbnails in block?
$gal_viewPermission = 1;

/*
****************************************
****************************************
***  !! END Admin Config Section !!  ***
****************************************
****************************************
*/

//###############################################
//###############################################
//   You shouldn't change anything below here
//###############################################
//###############################################

if (empty($modSettings['gallery_url'])){
$modSettings['gallery_url'] = $boardurl . '/gallery/';
}

$gal_textclass = empty($gal_smalltext) ? "normaltext" : "smalltext";

// get this user's buddy list
$gal_buddylist = implode(",", $user_info['buddies']);

// prep for our switch routine
if (empty($gal_showtype))
$gal_showtype = 0;

// sort text
if (empty($gal_sort)){
$gal_sort_text = 'DESC';
} else {
$gal_sort_text = '';
}

// are we viewing a member profile and $gal_profile is enabled?
if (!empty($gal_profile) && strtolower($context['current_action']) == "profile"){
$gal_member = empty($_GET['u']) ? $ID_MEMBER : $_GET['u'];
}
// allow member to view random pic based on security settings
if (empty($gal_viewPermission) || allowedTo('smfgallery_view')){
$gal_query = '
SELECT
thumbfilename,
ID_PICTURE,
ID_MEMBER,
date,
title,
description,
views,
filesize,
height,
width,
commenttotal,
ID_CAT
FROM '.$db_prefix.'gallery_pic
WHERE approved = 1
'.(empty($gal_member) ? (empty($gal_buddies) ? "" : (empty($gal_buddylist) ? "AND ID_MEMBER = NULL " : "AND ID_MEMBER in ($gal_buddylist)")) : "AND ID_MEMBER = $gal_member" ).'
'.(empty($gal_disallowCats) ? "" : " AND ID_CAT NOT IN ($gal_disallowCats)").'
'.(empty($gal_allowCats) ? "" : " AND ID_CAT IN ($gal_allowCats)").'
GROUP BY thumbfilename ';

switch ($gal_showtype){
// most/least recent
case 1:
$gal_query .= '
ORDER BY date '.$gal_sort_text;
break;

// most/least viewed
case 2:
$gal_query .= '
ORDER BY views '.$gal_sort_text;
break;

// most/least commented
case 3:
$gal_query .= '
ORDER BY commenttotal '.$gal_sort_text;
break;

default:
$gal_query .= '
ORDER BY rand() '.$gal_sort_text;
break;
}
$gal_query .= (empty($_GET['gal_viewall']) && !empty($gal_numpics)) ? ' LIMIT '.$gal_numpics : '';
$gal_result = mysql_query($gal_query);
if (!$gal_result){
// error retrieving information from database
if (mysql_errno() == 1146){
echo '<p />Error, no database found!<p />';
} else {
echo '<p />MySQL error:'.mysql_error().'<p />';
}
} else {
echo "\n".'<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%">'."\n";

$gal_colcnt = 1;
echo " <tr>\n";
while ($row = mysql_fetch_assoc($gal_result)){
if ($gal_colcnt > $gal_columns){
// close out the row and start a new row
echo " </tr>\n <tr>\n".' <td colspan="'.$gal_columns.'"><hr /></td>'."\n </tr>\n <tr>\n";
// reset count to column 1
$gal_colcnt = 1;
}
echo ' <td class="'.$gal_textclass.'" align="center">'."\n";
// display title if enabled, make edit link if viewing user is picture poster
if (!empty($gal_dispTitle)){
echo " ".($ID_MEMBER == $row['ID_MEMBER'] ? ('<a href="'.$scripturl.'?action=gallery;sa=edit;id='.$row['ID_PICTURE'].'">'.$row['title'].'</a>') : $row['title'])."<br />\n";
}
// display the picture thumbnail and link it to gallery full picture
echo ' <a href="'.$scripturl.'?action=gallery;sa=view;id='.$row['ID_PICTURE'].'"><img src="'.$modSettings['gallery_url'].$row['thumbfilename'].'" /></a><br />'."\n";
// display poster's name and posted date if enabled
if (!empty($gal_dispMember) || !empty($gal_dispDate)){
echo 'Posted';
if (!empty($gal_dispMember)){
// display the membername who posted pic?  need to get name based on ID_MEMBER
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT memberName FROM ".$db_prefix."members WHERE ID_MEMBER = ".$row['ID_MEMBER']));
echo ' by <a href="'.$scripturl.'?action=profile;u='.$row['ID_MEMBER'].'">'.$gal_tmp['memberName'].'</a>';
}
if (!empty($gal_dispDate)){
// display the date it was posted
echo ' on '.date("d M Y", $row['date']);
}
echo "<br />\n";
}
// display category if enabled
if (!empty($gal_dispCategory)){
// get category name based on category id
$gal_tmp = mysql_fetch_assoc(mysql_query("SELECT title FROM ".$db_prefix."gallery_cat WHERE ID_CAT = ".$row['ID_CAT']));
echo '<br />in<br /><a href="'.$scripturl.'?action=gallery;cat='.$row['ID_CAT'].'">'.$gal_tmp['title']."</a><br /><br />\n";
}
// display number of views if enabled
if (!empty($gal_dispViews)){
echo "Viewed ".$row['views']." times<br />\n";
}
// display dimensions if enabled
if (!empty($gal_dispDimensions)){
echo $row['width']."w X ".$row['height']."h<br />\n";
}
// display filesize if enabled
if (!empty($gal_dispSize)){
echo $row['filesize']." bytes<br />\n";
}
// display description if enabled
if (!empty($gal_dispDescription)){
echo "<br />".$row['description']."<br />\n";
}
echo " </td>\n";
$gal_colcnt++;
}
mysql_free_result($gal_result);
echo " </tr>\n</table>\n";
if (!empty($gal_member) && empty($_GET['gal_viewall']))
echo '<br /><a href="'.$boardurl.'/index.php?action=profile;u='.$gal_member.';gal_viewall=1">View all pics from this member</a>';
if (!empty($gal_buddies) && empty($_GET['gal_viewall'])){
// build the link
$gal_querystring = $context['TPortal']['querystring'];
$gal_querystring .= empty($gal_querystring) ? 'gal_viewall=1' : ';gal_viewall=1';
echo '<br /><a href="'.$boardurl.'/index.php?'.$gal_querystring.'">View all pics of buddies</a>';
}
}
} else {
echo 'Sorry, you do not have permission to view pictures!';
}

5
Support / Re: Random Image in TinyPortal Block Broken after SMF update
« on: December 01, 2017, 11:57:35 pm »
I'm uploading a bunch of hi-res pictures to the gallery at the moment on a slow connection. Once that's complete I will get the code I've been using for a long time now, which I think is an SSI block I got from here.

6
Support / Random Image in TinyPortal Block Broken after SMF update
« on: December 01, 2017, 07:34:34 pm »
Wonder if you can help as I got the Random Image from Gallery PHP code from this site?

Since the SMF update to 2.0.14 the Block I generate the random image in returns the following message:

MySQL error:Access denied for user ''@'localhost' (using password: NO)

Updating to SMF 2.0.15 didn't fix it so I've disabled the block but would like to have this feature back.

7
Support / Re: Another Pictures Not Showing
« on: January 22, 2012, 12:09:53 am »
Sorry, I got that wrong.

CHMOD properties showed me that Writable for Group and Public are not writable but for Owner Writable is ticked.

8
Support / Re: Another Pictures Not Showing
« on: January 21, 2012, 11:44:13 pm »
I attempted to change them from 775 to 777 but it appears I don't have permission to do that.

Unless there is a work around I will have to pay the IT mob who setup the site to change it and will have to pay for that.

Bugger.

9
Support / Re: Another Pictures Not Showing
« on: January 21, 2012, 11:37:27 pm »
Attached is a screen cap of the error log if that helps.


10
Support / Another Pictures Not Showing
« on: January 21, 2012, 10:46:25 pm »
SMF 1.1.16
Gallery Pro 3.0.25

I have gone through the other posts on this problem but nothing has worked for me. I think this problem was occurring since my upgrade to 1.1.16 but I thought GP 3.0.25 might fix it, but it hasn't.

By the way GP 3.0.08 is showing a red icon and Upgrade since I updated to GP 3.0.25.

Looks like I might be having similar problems to this post: http://www.smfhacks.com/index.php/topic,6352.0.html

11
Support / Re: Newsletter Pro Update not appearing in Main Admin panel
« on: January 26, 2010, 01:33:18 am »
Thanks for your help and setting me in the right direction, I got it working.

Don't know if it was the permissions or changing a Windows Vista Properties setting that did it.

The properties stated that the zip file came from another computer and may be blocked to protect this computer.

I selected Unblock.

12
Support / Re: Newsletter Pro Update not appearing in Main Admin panel
« on: January 26, 2010, 12:44:14 am »
Sorry had to go away for a bit.

What option do you want me to select?

Only the standard files are writable.
All files are writable.
The minimum files are writable.

13
Support / Re: Newsletter Pro Update not appearing in Main Admin panel
« on: January 25, 2010, 11:05:48 pm »
I have a FTP client with access to the forum site if that helps. I use the FTP client to create entire backups to my home computer (except for the database) and to change the banner graphic and some icons.

That's about as far as my expertise goes.

14
Support / Re: Newsletter Pro Update not appearing in Main Admin panel
« on: January 25, 2010, 10:55:27 pm »
OK changing permissions is getting outside my small realm of expertise.

Apart from a continuous unknown index colour error coming up this is what I could find that applies to NewsLetter Pro:

59.101.39.51       30bb4aaa8d00c6d6358f7432542405bb
http://www.gollies.net.au/index.php?action=packages;sa=install2;package=NewsLetter_Pro2.0.5.zip

512: package_flush_cache(): some files are still not writable
File: /www/gollies.net.au/html/Sources/Subs-Package.php
Line: 1905


and

2: copy(/www/gollies.net.au/html/tiny_mce/plugins/wordcount/editor_plugin_src.js) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory
File: /www/gollies.net.au/html/Sources/Subs-Package.php
Line: 1280


and

2: copy(/www/gollies.net.au/html/tiny_mce/plugins/wordcount/editor_plugin.js) [<a href='function.copy'>function.copy</a>]: failed to open stream: No such file or directory
File: /www/gollies.net.au/html/Sources/Subs-Package.php
Line: 1280

15
Support / Re: Newsletter Pro Update not appearing in Main Admin panel
« on: January 25, 2010, 10:35:19 pm »
Just English.

Sorry I made a mistake on that URL. It just takes me to my Forum Home Page not to the Newspro settings page, which I suppose it's supposed to.

Pages: [1] 2 3

+- Recent Topics

Cannot select category by Dragon41673
January 15, 2018, 06:57:03 pm

Ayuda con SA_Facebook_Integration3.1.1 by plmmlp
January 09, 2018, 05:19:51 am

URLs by SMFHacks
January 03, 2018, 02:40:26 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
January 02, 2018, 08:25:59 am

SMF Store 3.0 Released by SMFHacks
January 01, 2018, 08:26:57 am

Russian Rouble (RUB) by SMFHacks
December 23, 2017, 08:06:16 pm

Google Search by SMFHacks
December 23, 2017, 08:39:36 am

Package Install Error - Clean SMF 2.0.15 by madfiddler
December 22, 2017, 07:33:40 am

Two questions about Menu Editor Pro by Dwev
December 18, 2017, 05:29:29 pm

phpBB Gallery 1.0.4 to SMF Gallery Pro by SMFHacks
December 18, 2017, 08:48:26 am

Powered by EzPortal