11
marcionline
Re: CBB Icon question

Ok. My question was solved in XOOPS TOTAL, XOOPS Brasilian community support.

http://www.xoops.net.br/modules/newbb/viewtopic.php?topic_id=8043&post_id=45924#forumpost45924

Here is the code:

In the file modules/newbb/class/forum.php find the function getAllTopics.

Inside it, find this lines:
// topic_icon: priority: sticky -> digest -> regular
            
if ($myrow['icon'] && is_file(XOOPS_ROOT_PATH '/images/subject/' $myrow['icon'])) {
                
$topic_icon '<img src="' XOOPS_URL '/images/subject/' $myrow['icon'] . '" alt="" />';
                
$stick 1;
            } else {
                
$topic_icon '<img src="' XOOPS_URL '/images/icons/no_posticon.gif" alt="" />';
                
$stick 1;
            }


and change them by these:
$sql1 'SELECT * FROM '.$this->db->prefix('bb_posts').' WHERE topic_id='.$myrow['topic_id'].' ORDER BY pid ASC LIMIT 1';
            
$res $this->db->query($sql1);
            
$row $this->db->fetchArray($res);
            if (
$row['icon'] && is_file(XOOPS_ROOT_PATH '/images/subject/' $row['icon'])) {
                
$topic_icon '<img src="' XOOPS_URL '/images/subject/' $row['icon'] . '" alt="" />';
                
$stick 1;
            } else {
                
$topic_icon '<img src="' XOOPS_URL '/images/icons/no_posticon.gif" alt="" />';
                
$stick 1;
            }


Cheers!



12
marcionline
Re: CBB Icon question

Bump!



13
marcionline
CBB Icon question

How I get the link and the image icon from the firt post in topics?

For what? It's because I want to show the first post's icon from topics instead the last post's icon (image below).

Resized Image

I saw in the file modules/newbb/class/forum.php this lines

$last_post_icon '<a href="' XOOPS_URL '/modules/' $xoopsModule->dirname() . '/viewtopic.php?post_id=' $forum_data['forum_last_post_id'] . '&topic_id=' $forum_data['topic_id'] . '#forumpost' $forum_data['forum_last_post_id'] . '">';
//if ($forum_data['icon']) {
//if (!empty($forum_data['icon']) && is_file(XOOPS_ROOT_PATH . '/images/subject/' . $forum_data['icon'])) {
if (!empty($forum_data['icon']) ) {
$last_post_icon .= '<img src="' XOOPS_URL '/images/subject/' htmlspecialchars($forum_data['icon']) . '" alt="" />';
} else {
$last_post_icon .= '<img src="' XOOPS_URL '/images/subject/icon1.gif" alt="" />';
}
$last_post_icon .= '</a>';
$disp_array['forum_lastpost_icon'] = $last_post_icon;


but I don't know what function I could use to modify those lines... Any tip?

Thanks in advance



14
marcionline
Quote comment(s) button?

Is there a way to include a "quote comment" button to comments, like in many others CMS ??

Thanks



15
marcionline
Re: system_redirect.html like Invision Power Board (Xoops 2.2.4)?

Up!



16
marcionline
system_redirect.html like Invision Power Board (Xoops 2.2.4)?

I would like to modify my system_redirect.html template. I'm using Xoops 2.2.4.

I want to make something like this (redirect screen from a Invision Power Board site):

Resized Image

How can I make the page without header, footer, etc. ?


Thanks in advance.



17
marcionline
Re: NEW MEMBERS BLOCK

Quote:

davidtillyer wrote:
Hi All,

I have a "NEW MEMBERS" block on my site that is a module, its great however it's showing the DATE when they registered.

Q: How do I remove this date coloum and JUST have the name of the new members?

David


You can to edit the file modules/system/templates/blocks/system_block_newusers.html and remove this:

<td align="center"><{$user.joindate}></td>





18
marcionline
Re: Displaying total number of registered users

How about to add "Online Record: XXX on November, 7" to Xmmemberstats block.

Somebody could help me to do this?



19
marcionline
Re: News layout like on this site

Quote:

shedrock wrote:
How to I make it so that my news has the same layout as on this site. I can't seem to configure it this way.

Thanks
Shedrock


You must use Xmspotlight module. See this related post



20
marcionline
Re: Hack for image import in News DHTML editor

Quote:

littletern wrote:
Wait, WHERE I must put my css file? Or, from which file I must call them?


You need edit your style.css your theme (themes/your_theme_name/style.css).




TopTop
« 1 (2) 3 4 5 ... 9 »



Login

Who's Online

238 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 238


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits