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

Pages: [1] 2
1
Discussion & Troubleshooting / Re: Cannot change image table rows
« on: June 14, 2017, 01:39:15 PM »
Yes i have!
style.css......
Code: [Select]
.imagerow1 {
  background-color: #F9F0B3;
  color: #000000;
}

.imagerow2 {
  background-color: #F9F0B3;
  color: #000000;
}

this setting is normally changed within the admon control panel not within css.

2
Discussion & Troubleshooting / Cannot change image table rows
« on: June 13, 2017, 12:05:54 AM »
i can change image table cells no problem but image table rows seems to be stuck on just one.
i am using 1.8 version but before i updated from 1.6 i was using a 4 x 4 configuration.
i have checked and repaired db.

3
Ah! I guess i shall have to find a new set of templates for that site so.
I believe those dp_yellow templates were installed in 2006/7, the old desktop their folder was on, went into recycling around 8yrs ago.
I cant remember who made that set and cant find them on the templates list here, even googled "dp_yellow" but nothing!

Update:
Discovered the site had been hacked by something called "Masrer". Now eliminated!
The dp_yellow template was by Decopix, buut they no longer exist http://decopix.de/
The chances of someone having a copy of that template is slim, and i just cannot find a similar one to replace it!

4
Cant open the website today, just this error message at top of screen...

Quote
Template Error: Couldn't open Template ./templates/dp_yellow01t3/header.html

the template header.html exists within the folder

5
Discussion & Troubleshooting / upgrade 1.6 - 1.8 now i have a bug!
« on: February 27, 2017, 08:56:57 PM »
downloaded 1.8 onto laptop, uploaded updates onto server (Hostgator) everything ok for just 3 days, then i get this...

Quote
During a scan of our servers we identified malicious content in accounts under your control. We have quarantined the files listed below to prevent abuse. Please note that no services have been disabled and no legitimate content has been affected by this action. However, it is possible that other malicious activity may have disrupted your services.
 
The most important things you can do to ensure the security of your account are to make sure your software (e.g WordPress) is up-to-date, and that your passwords are strong. We strongly encourage you to change all of your account passwords and update all software as soon as possible to prevent any further compromises or abuse.

Quarantined files:
/home/avs/public_html/index.php

The site is built on the 4images platform and is now in server index mode.

6
Absolutely Perfect!
Thanks!

7
Thanks Rembrandt it works alright but......
I had 8 images showing to fill the homepage, now i am reduced to 4 again.

8
Does not work with 1.7.10

Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM (4images_images i, 4images_categories c) LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY random_no DESC, RAND(), i.image_date DESC LIMIT 8
Unknown column 'random_no' in 'order clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/irishavs/public_html/includes/db_mysql.php on line 116

9
Mods & Plugins (Requests & Discussions) / Re: Would this work?
« on: October 29, 2011, 05:15:51 PM »
No i have not done it yet, just wondering has anyone tried it, and should it work?

I have installed 4images onto a subdomain to try as experiment.
------------------------------------------------------------------------------------------------------------

UPDATE:
Just installing on same db does not link the 2 logins.
Apparently it needs a bridge to connect them both, does'nt matter if smf is installed as wrapped or unwrapped within 4images.

But bridges for smf 2.x are rare and i may be looking at adapting one to suit. possibly smf_2-0_mambo_4-6_bridge_2-0b1.
------------------------------------------------------------------------------------------------------------

UPDATE: 2
No need to adapt anything, i have aquired an smf 2 api and smf 2 integration hooks files.
These will allow login integration between 4images 1.7.10 and smf 2.x. using the 4images member files.

Now all i need is the time to post the installation instructions, perhaps someone can assist here!


10
Mods & Plugins (Requests & Discussions) / Would this work?
« on: October 29, 2011, 02:36:00 PM »
My old 4image gallery had smf 1.1.10 as a forum integrated using an api for single login.

I am wondering if i just install gallery 1.7.10 & smf 2.0.1 in the same database would just one login do both without any api?

11
Programming / Structure went wrong after upgrade
« on: October 28, 2011, 12:24:03 AM »
I upgraded to 2.0.1, now my forum page is stretched out of proportion.

http://irishavsites.com/index.php?template=forum

UPDATE>>>> Problem Solved!

12
Installation, Update & Configuration / Re: install 2 galleries
« on: October 26, 2011, 02:53:42 AM »
So, is the code on the first post all i need to do? (Up to date)

and...

Does the second gallery appear beside or under the first on Homepage?

Brez

13
Mods & Plugins (Requests & Discussions) / Re: [MOD] SMF integration
« on: October 01, 2009, 01:23:15 AM »
OUCH!
I have a major problem!

Spam was posted on the smf forum by someone NOT registered on the Gallery site.

I believe every visitor to smf is open to posting

14
Mods & Plugins (Requests & Discussions) / Re: [MOD] SMF integration
« on: September 30, 2009, 03:21:27 AM »
@bud
Because of the /for/ i could not login. 
I used the repair_settings.  php to correct the errors (There seemed to be a lot of them)

I now have it up and running, but must find a way to logout admin. 
Maybe load the smf on a new tab (target="_blank")  with just a logout button on the forum index page!
OR
Would it be easier to set auto logout by time?

15
Mods & Plugins (Requests & Discussions) / Re: [MOD] SMF integration
« on: September 29, 2009, 12:56:36 AM »
@ bud

Where exactly did you get the "/for/"?  Yes it should be forum.  Dont know where that came from.  i will search.

1.  1.  10 has its own themes/login_template. php

Code: [Select]
<?php
// Version: 1.1; Login

// This is just the basic "login" form.
function template_login()
{
global $context$settings$options$scripturl$modSettings$txt;

echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" name="frmLogin" id="frmLogin" style="margin-top: 4ex;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<table border="0" width="400" cellspacing="0" cellpadding="4" class="tborder" align="center">
<tr class="titlebg">
<td colspan="2">
<img src="'
$settings['images_url'], '/icons/login_sm.gif" alt="" align="top" /> '$txt[34], '
</td>'
;

// Did they make a mistake last time?
if (isset($context['login_error']))
echo '
</tr><tr class="windowbg">
<td align="center" colspan="2" style="padding: 1ex;">
<b style="color: red;">'
$context['login_error'], '</b>
</td>'
;

// Or perhaps there's some special description for this time?
if (isset($context['description']))
echo '
</tr><tr class="windowbg">
<td align="center" colspan="2">
<b>'
$context['description'], '</b><br />
<br />
</td>'
;

// Now just get the basic information - username, password, etc.
echo '
</tr><tr class="windowbg">
<td width="50%" align="right"><b>'
$txt[35], ':</b></td>
<td><input type="text" name="user" size="20" value="'
$context['default_username'], '" /></td>
</tr><tr class="windowbg">
<td align="right"><b>'
$txt[36], ':</b></td>
<td><input type="password" name="passwrd" value="'
$context['default_password'], '" size="20" /></td>
</tr><tr class="windowbg">
<td align="right"><b>'
$txt[497], ':</b></td>
<td><input type="text" name="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '"'$context['never_expire'] ? ' disabled="disabled"' ''' /></td>
</tr><tr class="windowbg">
<td align="right"><b>'
$txt[508], ':</b></td>
<td><input type="checkbox" name="cookieneverexp"'
$context['never_expire'] ? ' checked="checked"' ''' class="check" onclick="this.form.cookielength.disabled = this.checked;" /></td>
</tr><tr class="windowbg">'
;
// If they have deleted their account, give them a chance to change their mind.
if (isset($context['login_show_undelete']))
echo '
<td align="right"><b style="color: red;">'
$txt['undelete_account'], ':</b></td>
<td><input type="checkbox" name="undelete" class="check" /></td>
</tr><tr class="windowbg">'
;
echo '
<td align="center" colspan="2"><input type="submit" value="'
$txt[34], '" style="margin-top: 2ex;" /></td>
</tr><tr class="windowbg">
<td align="center" colspan="2" class="smalltext"><a href="'
$scripturl'?action=reminder">'$txt[315], '</a><br /><br /></td>
</tr>
</table>

<input type="hidden" name="hash_passwrd" value="" />
</form>'
;

// Focus on the correct input - username or password.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.forms.frmLogin.'
, isset($context['default_username']) && $context['default_username'] != '' 'passwrd' 'user''.focus();
// ]]></script>'
;
}

// Tell a guest to get lost or login!
function template_kick_guest()
{
global $context$settings$options$scripturl$modSettings$txt;

// This isn't that much... just like normal login but with a message at the top.
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" name="frmLogin" id="frmLogin"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<table border="0" cellspacing="0" cellpadding="3" class="tborder" align="center">
<tr class="catbg">
<td>'
$txt[633], '</td>
</tr><tr>'
;

// Show the message or default message.
echo '
<td class="windowbg" style="padding-top: 2ex; padding-bottom: 2ex;">
'
, empty($context['kick_message']) ? $txt[634] : $context['kick_message'], '<br />
'
$txt[635], ' <a href="'$scripturl'?action=register">'$txt[636], '</a> '$txt[637], '
</td>'
;

// And now the login information.
echo '
</tr><tr class="titlebg">
<td><img src="'
$settings['images_url'], '/icons/login_sm.gif" alt="" align="top" /> '$txt[34], '</td>
</tr><tr>
<td class="windowbg">
<table border="0" cellpadding="3" cellspacing="0" align="center">
<tr>
<td align="right"><b>'
$txt[35], ':</b></td>
<td><input type="text" name="user" size="20" /></td>
</tr><tr>
<td align="right"><b>'
$txt[36], ':</b></td>
<td><input type="password" name="passwrd" size="20" /></td>
</tr><tr>
<td align="right"><b>'
$txt[497], ':</b></td>
<td><input type="text" name="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></td>
</tr><tr>
<td align="right"><b>'
$txt[508], ':</b></td>
<td><input type="checkbox" name="cookieneverexp" class="check" onclick="this.form.cookielength.disabled = this.checked;" /></td>
</tr><tr>
<td align="center" colspan="2"><input type="submit" value="'
$txt[34], '" style="margin-top: 2ex;" /></td>
</tr><tr>
<td align="center" colspan="2" class="smalltext"><a href="'
$scripturl'?action=reminder">'$txt[315], '</a><br /><br /></td>
</tr>
</table>
</td>
</tr>
</table>

<input type="hidden" name="hash_passwrd" value="" />
</form>'
;

// Do the focus thing...
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.forms.frmLogin.user.focus();
// ]]></script>'
;
}

// This is for maintenance mode.
function template_maintenance()
{
global $context$settings$options$scripturl$txt$modSettings;

// Display the administrator's message at the top.
echo '
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '">
<table border="0" width="86%" cellspacing="0" cellpadding="3" class="tborder" align="center">
<tr class="titlebg">
<td colspan="2">'
$context['title'], '</td>
</tr><tr>
<td class="windowbg" width="44" align="center" style="padding: 1ex;">
<img src="'
$settings['images_url'], '/construction.gif" width="40" height="40" alt="'$txt['maintenance3'], '" />
</td>
<td class="windowbg">'
$context['description'], '</td>
</tr><tr class="titlebg">
<td colspan="2">'
$txt[114], '</td>
</tr><tr>'
;

// And now all the same basic login stuff from before.
echo '
<td colspan="2" class="windowbg">
<table border="0" width="90%" align="center">
<tr>
<td><b>'
$txt[35], ':</b></td>
<td><input type="text" name="user" size="15" /></td>
<td><b>'
$txt[36], ':</b></td>
<td><input type="password" name="passwrd" size="10" /> &nbsp;</td>
</tr><tr>
<td><b>'
$txt[497], ':</b></td>
<td><input type="text" name="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /> &nbsp;</td>
<td><b>'
$txt[508], ':</b></td>
<td><input type="checkbox" name="cookieneverexp" class="check" /></td>
</tr><tr>
<td align="center" colspan="4"><input type="submit" value="'
$txt[34], '" style="margin-top: 1ex; margin-bottom: 1ex;" /></td>
</tr>
</table>
</td>
</tr>
</table>
</form>'
;
}

// This is for the security stuff - makes administrators login every so often.
function template_admin_login()
{
global $context$settings$options$scripturl$txt;

// Since this should redirect to whatever they were doing, send all the get data.
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl$context['get_data'], '" method="post" accept-charset="'$context['character_set'], '" name="frmLogin" id="frmLogin" onsubmit="hashAdminPassword(this, \''$context['user']['username'], '\', \''$context['session_id'], '\');">
<table border="0" width="400" cellspacing="0" cellpadding="3" class="tborder" align="center">
<tr class="titlebg">
<td align="left">
<img src="'
$settings['images_url'], '/icons/login_sm.gif" alt="" align="top" /> '$txt[34], '
</td>
</tr>'
;

// We just need the password.
echo '
<tr class="windowbg">
<td align="center" style="padding: 1ex 0;">
<b>'
$txt[36], ':</b> <input type="password" name="admin_pass" size="24" /> <a href="'$scripturl'?action=helpadmin;help=securityDisable_why" onclick="return reqWin(this.href);" class="help"><img src="'$settings['images_url'], '/helptopics.gif" alt="'$txt[119], '" align="middle" /></a><br />
<input type="submit" value="'
$txt[34], '" style="margin-top: 2ex;" />
</td>
</tr>
</table>'
;

// Make sure to output all the old post data.
echo $context['post_data'], '

<input type="hidden" name="admin_hash_pass" value="" />
</form>'
;

// Focus on the password box.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.forms.frmLogin.admin_pass.focus();
// ]]></script>'
;
}

// Activate your account manually?
function template_retry_activate()
{
global $context$settings$options$txt$scripturl;

// Just ask them for their code so they can try it again...
echo '
<br />
<form action="'
$scripturl'?action=activate;u='$context['member_id'], '" method="post" accept-charset="'$context['character_set'], '">
<table border="0" width="600" cellpadding="4" cellspacing="0" class="tborder" align="center">
<tr class="titlebg">
<td colspan="2">'
$context['page_title'], '</td>';

// You didn't even have an ID?
if (empty($context['member_id']))
echo '
</tr><tr class="windowbg">
<td align="right" width="40%">'
$txt['invalid_activation_username'], ':</td>
<td><input type="text" name="user" size="30" /></td>'
;

echo '
</tr><tr class="windowbg">
<td align="right" width="40%">'
$txt['invalid_activation_retry'], ':</td>
<td><input type="text" name="code" size="30" /></td>
</tr><tr class="windowbg">
<td colspan="2" align="center" style="padding: 1ex;"><input type="submit" value="'
$txt['invalid_activation_submit'], '" /></td>
</tr>
</table>
</form>'
;
}

// Activate your account manually?
function template_resend()
{
global $context$settings$options$txt$scripturl;

// Just ask them for their code so they can try it again...
echo '
<br />
<form action="'
$scripturl'?action=activate;sa=resend" method="post" accept-charset="'$context['character_set'], '">
<table border="0" width="600" cellpadding="4" cellspacing="0" class="tborder" align="center">
<tr class="titlebg">
<td colspan="2">'
$context['page_title'], '</td>
</tr><tr class="windowbg">
<td align="right" width="40%">'
$txt['invalid_activation_username'], ':</td>
<td><input type="text" name="user" size="40" value="'
$context['default_username'], '" /></td>
</tr><tr class="windowbg">
<td colspan="2" style="padding-top: 3ex; padding-left: 3ex;">'
$txt['invalid_activation_new'], '</td>
</tr><tr class="windowbg">
<td align="right" width="40%">'
$txt['invalid_activation_new_email'], ':</td>
<td><input type="text" name="new_email" size="40" /></td>
</tr><tr class="windowbg">
<td align="right" width="40%">'
$txt['invalid_activation_password'], ':</td>
<td><input type="password" name="passwd" size="30" /></td>
</tr><tr class="windowbg">'
;

if ($context['can_activate'])
echo '
<td colspan="2" style="padding-top: 3ex; padding-left: 3ex;">'
$txt['invalid_activation_known'], '</td>
</tr><tr class="windowbg">
<td align="right" width="40%">'
$txt['invalid_activation_retry'], ':</td>
<td><input type="text" name="code" size="30" /></td>
</tr><tr class="windowbg">'
;

echo '
<td colspan="2" align="center" style="padding: 1ex;"><input type="submit" value="'
$txt['invalid_activation_resend'], '" /></td>
</tr>
</table>
</form>'
;
}

?>

Pages: [1] 2