The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

"multi forums in one tutorial" addition

View previous topic View next topic Go down

Solved "multi forums in one tutorial" addition

Post by Daniel Z on May 18th 2014, 9:11 pm

I followed this tutorial on my forum successfully: http://help.forumotion.com/t21989-multi-forums-in-one

However, i need to know if it is possible edit to show the new message in both.

models:

current:


intended:

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Pizza Boi on May 19th 2014, 11:11 am

Hi Very Happy

Try digging in your index_body templates for the forum icons enclosed in { and } to see if it can be compatible to be added in your forums.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 20th 2014, 2:52 am

I checked this topic and got something close: http://help.forumotion.com/t131130-is-it-possible-to-grid-it#880527

However, it had no effect on my forum on new messages.



Code:

$(document).ready(function() {    
    $('td a[href^="http://rpg-players.forumbrasil.net/f"]').after('<div class="check-post">No new posts</div>');
    $('.check-post').each(function() {
        var href = $(this).prev().attr('href');
        $(this).load(href + ' .row1.centered',function() {
            if ($(this).find('img[alt^="New posts"]').length) { $(this).html('<font color="red">New posts</font>') }
            else { $(this).html('No new posts') }
        });
    });
});

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Pizza Boi on May 20th 2014, 3:09 pm

Hi Very Happy

Can you please provide a link to your forum? I will try to see if it's in just selectors and whatnot;however, I cannot provide anything more than minor modifications since I lack the time for extemporaneous (JSscript, JQuery, etc.) coding.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 20th 2014, 3:15 pm

hi, pizza boi.
my forum: http://rpg-players.forumbrasil.net

punbb

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Pizza Boi on May 20th 2014, 4:04 pm

Hi Very Happy

Alright, I'll continue testing the code later. I just noticed that one was coded for Invision, let me see if I can grab some luck with it.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 20th 2014, 5:43 pm

thanks, pizza boi.

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 22nd 2014, 6:05 am

Hello, Pizza boi.
My question still remains, but I would put something that I noticed when checking the admin panel:



I activated the subforums with the image option, and it repeats in the main page, but bringing the icons of new post and normal post:





We can remove the text of subforums and apply a distance between them?

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Pizza Boi on May 22nd 2014, 11:35 am

Hi Very Happy

I am very, very sorry my friend but I will not be able to do this request anymore. I'm filled with work right now so please let others do this.

I'm really sorry Sad .

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by @Mark on May 22nd 2014, 3:12 pm

This is possible, provide me the code you use on the category. I'll give this a try. Wink

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 22nd 2014, 10:44 pm

No problem, Pizza boi. Thank you for you help.




Hi, @Mark.

This is the code for the forum of the picture:
Code:
<span style="float: left; width: 50%;"><a class="forumtitle" href="http://rpg-players.forumbrasil.net/f7-rpgs-em-geral"><img align="middle" src="http://i.imgur.com/vUwqlVA.png" />  RPGs em geral</a></span><span style="float: right; width: 50%;"><a class="forumtitle" href="http://rpg-players.forumbrasil.net/f8-outros-generos"><img align="middle" src="http://i.imgur.com/R8FCGlo.png" />  Outros Gêneros</a></span>


http://rpg-players.forumbrasil.net/

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by @Mark on May 23rd 2014, 11:52 pm

Hi, just saw your reply right now, and i checked your forum and i see some progress. Any thing i can help more? Smile

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 24th 2014, 12:46 am

hi, @Mark.

I managed to finish the code:



However, it was not possible to hide the comma, and the cell height increased after the change.
Can you help me?

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by @Mark on May 24th 2014, 12:52 am

Go to your index_box template and find this part:
Code:
{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}

Now replace it with this:
Code:
<div class="sub-catcolor">{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</div>

Now add this to your CSS:
Code:
.sub-catcolor {
color: white;
}

For the cell height, can you please put the images again so i can check it.

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 24th 2014, 1:00 am

Thank you, Mark. The comma issue was resolved.

The image is in the cell, but it is transparent for the distance between the two columns.

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by @Mark on May 24th 2014, 1:09 am

Ok, uhm... Sorry but, i really don't get the last problem, can you explain it more? Smile

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 24th 2014, 1:18 am

I would like to reduce the height:


The subforum image remains in the homepage, but it is transparent: http://i.imgur.com/HW7vlaX.png

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by @Mark on May 24th 2014, 1:30 am

Ok, so you want to remove the subforum image the is transparent? And you want to reduce the height of the table row? Am i getting it right?

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 24th 2014, 1:36 am

Only the height, mark.

10px would be nice.

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by @Mark on May 24th 2014, 1:40 am

Ok. Here, add this to your CSS:
Code:
tbody.statused tr td {
height: 73px !important;
}

@Mark
Forumember

Male Posts : 187
Reputation : 37
Language : HTML | CSS | Javascript | C | Java
Location : Republic of the Philippines

http://help.forumotion.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 24th 2014, 1:44 am

thank you, @mark  Wink 

Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Neptune- on May 25th 2014, 8:06 am

@Daniel Z wrote:I checked this topic and got something close: http://help.forumotion.com/t131130-is-it-possible-to-grid-it#880527

However, it had no effect on my forum on new messages.



Code:

$(document).ready(function() {    
    $('td a[href^="http://rpg-players.forumbrasil.net/f"]').after('<div class="check-post">No new posts</div>');
    $('.check-post').each(function() {
        var href = $(this).prev().attr('href');
        $(this).load(href + ' .row1.centered',function() {
            if ($(this).find('img[alt^="New posts"]').length) { $(this).html('<font color="red">New posts</font>') }
            else { $(this).html('No new posts') }
        });
    });
});

Hello ^^

The script you tried, contained this :
if ($(this).find('img[alt^="New posts"]')

Do you think it will find something on a board obviously set up in another language ?

You should try to setup english within your profil preferences page to check that it works.
Then just change :
Code:
if ($(this).find('img[alt^="New posts"]')
with
Code:
if ($(this).find('img[alt^="Novas mensagens"]')




Additionally, code was given for an Invision forum.
I made it work with the following code for PunBB

Code:
$(document).ready(function() {    
    $('td a.gensmall[href^="/f"]').after('<div class="check-post">No new posts</div>');
    $('.check-post').each(function() {
        var href = $(this).prev().attr('href');
        $(this).load(href + ' .tcl',function() {
            if ($(this).find('img[alt^="New posts"]').length) { $(this).html('<font color="red">New posts</font>') }
            else { $(this).html('No new posts') }
        });
    });
});

Neptune-
Forumember

Male Posts : 187
Reputation : 21
Language : French (10), English (8), CSS (5), HTML (4), Javascript (1)
Location : France

http://www.planet-series.com/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by Daniel Z on May 25th 2014, 9:18 pm

Thank you for providing this option, Neptune.
Both, @mark and your options are functional for me.
Thank you all.

Topic solved.




Daniel Z
New Member

Posts : 23
Reputation : 1
Language : Portuguese

http://rpg-players.forumbrasil.net/

Back to top Go down

Solved Re: "multi forums in one tutorial" addition

Post by SLGray on May 25th 2014, 9:54 pm

Problem solved & topic archived.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35661
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum