Home arrow Forum Latest posts of: LukaszP
  Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 07:26:20 PM
Home New Posts Search Calendar


Login with username, password and session length
  Show Posts
Pages: [1]
1  Joomla Hacks / Joomla-SMF 1.0.x / Change Mod Joomla-SMF Recent Topics 1.6.1 on: January 13, 2006, 11:18:59 AM
I do a small change to this modul so You can do some think like on images... For egzample like newest news, or most popular.

File: mod_smf_recent_topics.xml
Find:
Code:
<param name="namedisplay" type="radio" default="0" label="Display Real Name Instead" description="Display real name instead of login name?">
<option value="0">No</option>
<option value="1">Yes</option>
</param>

Add:
Code:
/* LukaszP - All */
<param name="smf_show_all" type="radio" default="1" label="Display All" description="Display all">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
File: mod_smf_recent_topics.php
Find:
Code:
/*1.6.1 Use our own smf prefix*/
$smf_tprefix =                $params->get( 'smf_tprefix', '' );
Add:
Code:
/* LukaszP  - show all */
$smf_show_all = $params->get( 'smf_show_all',1 );

Find:
Code:
/* 1.6 post['href'] contains the link to a new post as well, use it (-Wolverine) */
echo ($numchar != '' ? substr($post['subject'],0,$numchar).(strlen($post['subject']) > $numchar ? '...' : '') : $post['subject']) , '</a> (',
$post['replies'], ') ', $txt[525], ' ', ($mosConfig_sef == '1' ? str_replace(";","/",$post['member']['link']) : $post['member']['link']) , '
', ($post['new'] ? '<a href="' . $post['href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '');
Replace:
Code:
/* 1.6 post['href'] contains the link to a new post as well, use it (-Wolverine) */
echo ($numchar != '' ? substr($post['subject'],0,$numchar).(strlen($post['subject']) > $numchar ? '...' : '') : $post['subject']) , '</a>';
/* LukaszP Display all*/
if ( $smf_show_all == 1)
{
echo ' (',
$post['replies'], ') ', $txt[525], ' ', ($mosConfig_sef == '1' ? str_replace(";","/",$post['member']['link']) : $post['member']['link']) , ' ';
}
echo ''. ($post['new'] ? '<a href="' . $post['href'] . '"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a>' : '');

No You must go to Your SQL table and add
Code:
smf_show_all=1
{mambo/jomla_prefix]_menu , your modul  Joomla-SMF Recent Topics in to
Code:
params

Or simply copy this files in to Your server.
Thats all.
2  Joomla Hacks / Joomla-SMF 1.0.x / Re: SMF Has changed the RC. on: January 13, 2006, 03:58:41 AM
i've got this problem...
after login it goes to:
www.mydomain.com/index.php?option=com_smf&action=login2&hash_passwrd=0&user=admin&passwrd=**************&cookielength=33.3333333333

I'm using smf 1.1RC2 and mambo 4.5.2
3  Joomla Core Discussion / Joomla 1.0.x / Re: My link was changed on: November 16, 2005, 04:35:47 PM
I find it...
Just change url from:
Code:
http://www.mysite.com
to
Code:
http://mysite.com

4  Joomla Core Discussion / Joomla 1.0.x / My link was changed on: November 15, 2005, 09:20:25 AM
When I change my template files and write ther:

Code:
http://www.mysite.com/forum/index.php?action=.xml;sa=recent;type=rss2;c=2

On site I get some think like that:
Code:
http://www.mysite.com/index.php?option=com_smf&Itemid=121&action=.xml;sa=recent;type=rss2;c=2

It's good but my RSS dont work white this... so how can I put url white no change?

PS. sorry for my bad english
Pages: [1]


Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login