Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12332
Latest: amarstudios01
New This Month: 19
New This Week: 9
New Today: 3
Stats
Total Posts: 39713
Total Topics: 6995
Most Online Today: 55
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 66
Total: 67

Recent Posts

Pages: [1] 2 3 ... 10
1
Support / Re: About Layout Options
« Last post by SMFHacks on Today at 07:33:47 am »
It starts on line 569 in that file.
2
Support / Re: About Layout Options
« Last post by ajac63 on Today at 03:05:15 am »
Once again many thanks for your help.  Thing is I can find a section of code beginning with:

while($row = $smcFunc['db_fetch_assoc']($dbresult))
      {

         $totallistings  = Classifieds_GetListingTotals($row['ID_CAT']);
but not ending with:
<tr class="windowbg3">
            <td colspan="',$num_cols , '">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? '<b>' . $txt['class_sub_cats'] . '</b>' . $subcats_linktree : ''),'</span></td>
         </tr>';
         }


      }

So, I didn't replace it just inn case.
3
Support / Re: About Layout Options
« Last post by SMFHacks on May 21, 2019, 09:21:59 pm »
Change these in classifieds2.template.php
Find
Code: [Select]

while($row = $smcFunc['db_fetch_assoc']($dbresult))
{

$totallistings  = Classifieds_GetListingTotals($row['ID_CAT']);

echo '<tr>';

if($row['imageurl'] == '' && $row['imagefilename'] == '')
echo '<td colspan="2" class="windowbg"><a href="' . $scripturl . '?action=classifieds;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a> ' . (!empty($modSettings['class_showrss_bycat']) ? '<a href="' . $scripturl . '?action=classifieds;sa=rss;cat=' . $row['ID_CAT'] . ';type=recent"><img src="' . $modSettings['class_url'] . 'rss.png" alt="rss" /></a>' : '') . '</td>
<td class="windowbg2">' . parse_bbc($row['description']) . '</td>';
else
{
if($row['imagefilename'] == '')
echo '<td class="windowbg2"><a href="' . $scripturl . '?action=classifieds;cat=' . $row['ID_CAT'] . '"><img src="' . $row['imageurl'] . '" border="0" alt=""  /></a></td>';
else
echo '<td class="windowbg2"><a href="' . $scripturl . '?action=classifieds;cat=' . $row['ID_CAT'] . '"><img src="' . $modSettings['class_url'] . 'catimgs/' . $row['imagefilename'] . '" border="0" alt=""  /></a></td>';


echo '<td class="windowbg"><a href="' . $scripturl . '?action=classifieds;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a> ' . (!empty($modSettings['class_showrss_bycat']) ? '<a href="' . $scripturl . '?action=classifieds;sa=rss;cat=' . $row['ID_CAT'] . ';type=recent"><img src="' . $modSettings['class_url'] . 'rss.png" alt="rss" /></a>' : '') . '</td>
<td class="windowbg2">' . parse_bbc($row['description']) . '</td>';
}



// Show total listings in the category
echo '<td align="center" class="windowbg">', $totallistings, '</td>';

// Show Last Post
if (!empty($modSettings['class_set_show_cat_latest_listings']))
{
echo '<td class="windowbg">';
if (!empty($row['ID_LISTING']))
{

echo '<span class="smalltext">' .  $txt['class_last_post'], ' <a href="',$scripturl,'?action=profile;u=',$row['ID_MEMBER'],'"' . (!empty($row['online_color']) ? ' style="color: ' . $row['online_color'] . ';" ' :'' ) . '>',$row['real_name'],'</a><br />',

'<a href="' . $scripturl . '?action=classifieds;sa=view;id=',$row['ID_LISTING'],'">',shorten_subject($row['listingtitle'], 24) . '</a><br />',$txt['class_txt_on'],timeformat($row['datelisted']) . '</span>';
}

echo '</td>';
}


// Show Edit Delete and Order category
if ($g_manage)
{
echo '
<td class="windowbg2"><a href="' . $scripturl . '?action=classifieds;sa=catup;cat=' . $row['ID_CAT'] . '">' . $txt['class_text_up'] . '</a>&nbsp;<a href="' . $scripturl . '?action=classifieds;sa=catdown;cat=' . $row['ID_CAT'] . '">' . $txt['class_text_down'] . '</a></td>
<td class="windowbg"><a href="' . $scripturl . '?action=classifieds;sa=editcat;cat=' . $row['ID_CAT'] . '">' . $txt['class_text_edit'] . '</a>&nbsp;<a href="' . $scripturl . '?action=classifieds;sa=deletecat;cat=' . $row['ID_CAT'] . '">' . $txt['class_text_delete'] . '</a>
<br />
<a href="' . $scripturl . '?action=classifieds;sa=catperm;cat=' . $row['ID_CAT'] . '">',$txt['class_text_cat_permisisons'],'</a>

</td>';

}


echo '</tr>';

if ($subcats_linktree != '')
{
echo '
<tr class="windowbg3">
<td colspan="',$num_cols , '">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? '<b>' . $txt['class_sub_cats'] . '</b>' . $subcats_linktree : ''),'</span></td>
</tr>';
}


}

change to
Code: [Select]
$maxrowlevel = 4;

$rowlevel = 0;
while($row = $smcFunc['db_fetch_assoc']($dbresult))
{

$totallistings  = Classifieds_GetListingTotals($row['ID_CAT']);
if ($rowlevel == 0)
echo '<tr>';


echo '<td class="windowbg"><a href="' . $scripturl . '?action=classifieds;cat=' . $row['ID_CAT'] . '">' . parse_bbc($row['title']) . '</a></td>';


if($rowlevel < ($maxrowlevel-1))
$rowlevel++;
else
{
echo '</tr>';
$rowlevel = 0;
}
}

if($rowlevel !=0)
{
echo '</tr>';
}
4
Support / Re: About Layout Options
« Last post by ajac63 on May 21, 2019, 06:41:50 pm »
Thanks, that seemed to work.  After a browser refresh anyway...  So, what are the lines of html I need to use.
5
Support / Re: About Layout Options
« Last post by SMFHacks on May 21, 2019, 04:33:45 pm »
To access downloads/attachments enter your license key under https://www.smfhacks.com/index.php?action=license
6
Support / Re: Error message in Gallery Pro
« Last post by SMFHacks on May 21, 2019, 03:56:20 pm »
Glad to help.
7
Support / Re: Error message in Gallery Pro
« Last post by HAL9000 on May 21, 2019, 03:54:44 pm »
Great! thanks, that's fixed it. Cheers.

When I've got a bit more dosh I'll upgrade the gallery.

Cheers again,

Chas
8
Support / Re: Error message in Gallery Pro
« Last post by SMFHacks on May 21, 2019, 03:28:39 pm »
Do you have a VPS/Server?

If so this might work
https://help.whmcs.com/m/installation/l/678317-disabling-mysql-strict-mode
Then restart the mysql service
9
Support / Re: About Layout Options
« Last post by ajac63 on May 21, 2019, 03:14:56 pm »
Many thanks.  I have 'simple layout settings...' deselected and then after that I also deselected any option to do with auctions as I only want straight listings.
See attached image showing one large column on the left. [ Guests cannot view attachments ]
-
BTW - why am I not authorised to view attachments? [ Guests cannot view attachments ]
10
Support / Re: Category images not showing
« Last post by ajac63 on May 21, 2019, 03:00:33 pm »
Okay, thank you :)
Pages: [1] 2 3 ... 10

+- Recent Topics

About Layout Options by SMFHacks
Today at 07:33:47 am

Error message in Gallery Pro by SMFHacks
May 21, 2019, 03:56:20 pm

Category images not showing by ajac63
May 21, 2019, 03:00:33 pm

Which Options To Disable If I Don't Want Auction Listings by ajac63
May 19, 2019, 11:03:42 pm

Lost images by pete
May 17, 2019, 04:41:51 am

Q's on Integrating SMF Classifieds with current theme by ajac63
May 08, 2019, 01:46:06 pm

Just a hello by SMFHacks
May 06, 2019, 10:30:20 pm

Contact Page Problem by Acans
May 06, 2019, 01:54:08 am

Trying to install 8.0.5a after upgrade to RC2 by SMFHacks
April 30, 2019, 06:04:34 am

Classified Ads Mod by SMFHacks
April 29, 2019, 07:44:44 pm

Powered by EzPortal