The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Colorize cells when a new message is posted (script issue)

4 posters

Page 1 of 2 1, 2  Next

Go down

Solved Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 12:54 pm

Hello,

I have tried to follow the script from Ange Tuteur but this one doesn't work on my forum.

Please find this one here: https://help.forumotion.com/t136044-colorize-the-cells-when-a-new-message-is-posted#916950

I have added the script but I don't understand how and where shall I change the image url?

CSS is added too...

Thanks for your help,
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 1:05 pm

the image url is in the javascript page you made

https://2img.net/i/fa/empty.gif

replace that with your image url
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 1:09 pm

Which image url?
I don't want an image url but only a cell which is coloried.

If I need to change this image url, where is it cause I have several times the same URL under my CP...

Thanks,
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 1:12 pm

oh the color can be edited in your css

dl.newpost { background-color:#COLOR !important }

change "#COLOR" to "blue,green,white" or you can use a html color

#00ff00
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 1:14 pm

This is done but did you read my previous post regarding the images url?

In fact, I need to replace an image url but I did not understand this part, can you give me an example with what I have to change?

Thanks,
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 1:32 pm

ok you need a image to display on your forum for new post for this to work

i noticed you have icons on all of your post so to prevent i image beside them making your forum look ugly we will use a blank image witch is a 1px x 1px image

goto

acp>display>pictures&colors>pics management>advanced mode>

icons for the forum


replace

Category - New :
Forum - New :

with this image url

https://www.filepicker.io/api/file/c3y2vT71QpCQ5y0pEb06+empty1.png


then save


then goto

acp>modules>html&javascript>javascript managment

and click Edit button on the javascript page your made using the tutorial

replace both

https://2img.net/i/fa/empty.gif

with

https://www.filepicker.io/api/file/c3y2vT71QpCQ5y0pEb06+empty1.png

then save

now u should be all set
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 1:43 pm

Hello,

No change... Sad

Please find my images under my CP:

Colorize cells when a new message is posted (script issue) Captur19
The script which is added on the home page:

Colorize cells when a new message is posted (script issue) Captur20

This change my legend too see print screen but I will hide it if needed...

Colorize cells when a new message is posted (script issue) Captur21


Last edited by betclever on November 23rd 2014, 1:52 pm; edited 1 time in total
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 1:52 pm

ok im a lil confused so only way i will be able to help you is to look at your acp to make sure you put everything where its suppose to go its up to you tho if you want further help send me a pm with a test accout with admin rights ... else wait for ange and he will be able to help you more perhaps
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 1:54 pm

Thanks, I will wait Ange Tuteur's help cause he mades the script and I did everything wrote in the script but still the same problem.
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 1:57 pm

do you have javascript turned on?

acp>modules>javascript managment and right above the scripts is a on/off option
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 1:58 pm

Yes of course, I have 7 scripts running :wouhou:
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 2:10 pm

change your javascript from homepage to topics
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 2:17 pm

No change, I have tried on topics but no change.
I let on both.

However, the script asks us to check the box "index".

Very weird this issue. Sad
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 2:31 pm

i have looked threw all of your pages and cant seem to find that script running anywhere so maybe one of your other scripts is blocking it ... have u tried disabling them t see if it works?
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 2:32 pm

I can't cause I have a lot of scripts which running on the forum Sad
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 23rd 2014, 2:39 pm

well u can try running the script in all pages other then that idk hopfuly ange can help u
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 2:42 pm

No change even if I apply the script on all pages... Sad
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by RazielBach November 23rd 2014, 6:42 pm

The images that go into the script are the ones you have that show whether there is a new post or not.

For example: My forum uses Colorize cells when a new message is posted (script issue) Scroll10 and Colorize cells when a new message is posted (script issue) Scroll11

The first image is what represents a new post for a forum section and an entire category, so you have to insert those within the Javascript code. 

My code looks like 

Code:
$(function() {
  $('dl.icon[style*="http://i39.servimg.com/u/f39/18/96/09/29/scroll10.png"]').addClass('newpost');
  $('dl.icon[style*="http://i39.servimg.com/u/f39/18/96/09/29/scroll10.png"]').addClass('newpost');
});

That image is just what changes to represent that your sections have a new post. Then through the CSS, you use the 'newpost' added class to colorize the cell, in addition to that image.

Here is what my forum looks like with a NEW and OLD post as an example: 

Colorize cells when a new message is posted (script issue) Exampl10

However, the CSS code in Ange's Tuteur has makes the color you colorize too INCREDIBLY strong. On my forum, I was unable to read exactly what that section was when there was a new post. So I also made a change to fix that:

Code:
dl.newpost {
  background-color: rgba(244, 201, 107, 0.2) !important
}

Instead of using the hex HTML code for the color, I use RGB. The very last number is the opacity, and I was able to change it so that I can actually see what that section was when there was a new post.
avatar
RazielBach
Forumember

Posts : 25
Reputation : 1
Language : English

http://eriviyn.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 23rd 2014, 9:32 pm

I hope Ange Tuteur will participate on this topic cause I'm blocked.
However, I have another problem now even if I delete the script and restore the settings before the change.
I don't have any icon anymore under "private messages" but under topics it is fine...

Please find more details with this print screen:

This is the icon which is near the text of the message but this one doesn't appears anymore.

Colorize cells when a new message is posted (script issue) Captur22


Colorize cells when a new message is posted (script issue) Captur23
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by Ange Tuteur November 24th 2014, 12:23 am

Hello betclever,

Add this to JavaScript codes management ( or replace your current ) :
Modules > JavaScript codes management
Code:
$(function() {
  $('dl.icon[style*="http://2img.net/s/t/15/37/45/i_folder_new.png"]').addClass('newpost');
  $('dl.icon[style*="http://2img.net/s/t/15/37/45/i_folder_new.png"]').addClass('newpost');
});

and this to CSS :
Display > Colors > CSS stylesheet
Code:
dl.icon.newpost { background-color:#0CA !important }

I could see your "new" image : Colorize cells when a new message is posted (script issue) I_folder_new

Try clearing your cache, because there might have been an error in caching.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 24th 2014, 12:42 am

I saw a color green for new posts but I have changed the color to another color like orange and it doesn't work anymore. Shocked
It is strange cause I have copied the code once again to begin from zero and it doesn't work anymore...

I did not change anything a part making the script and added the code to my CSS sheet.

Any idea?

Thanks for the support Smile

EDIT:


I found the problem...

It was an extension (module) from firefox...
I have uninstalled this one and it is fine.

However, any idea for my second problem with "privates messages"?

The icon doesn't appaers see print screen


Last edited by betclever on November 24th 2014, 12:47 am; edited 1 time in total
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by Ange Tuteur November 24th 2014, 12:47 am

You just changed #0CA to Orange, correct ? Did you read the new topic before you made that change ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 24th 2014, 12:49 am

Yes yes but I had a problem or conflict with an extension...

Any solution for my second problem for "privates messages"?

Thanks,
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by Ange Tuteur November 24th 2014, 12:55 am

Are there any image missing here ?
Administration Panel > Display > Pics management > Advanced > Icons for topics
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 24th 2014, 1:16 am

The icons are there, I don't understand... Sad

Colorize cells when a new message is posted (script issue) Captur14
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 24th 2014, 1:24 am

dl.icon {background: none repeat scroll 0% 0% transparent !important;}

that code is in your csss blocking it
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 24th 2014, 1:31 am

Hello,

I don't have this in my CSS sheet.
I have checked 2 times to be sure Sad
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by _Twisted_Mods_ November 24th 2014, 1:34 am

.forabg dl.icon{


i think you used it to hide the icons on the index
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by betclever November 24th 2014, 1:35 am

This is what I have :

 .forabg dl.icon {
      background:none !important;
      position:relative;
    }

    .blocImg {
      width:50px;
      background-repeat:no-repeat;
      background-position:center;
      position:absolute;
      left:0;
      top:0;
      bottom:0;
    }
avatar
betclever
Forumember

Posts : 209
Reputation : 2
Language : english

http://www.betclever.net

Back to top Go down

Solved Re: Colorize cells when a new message is posted (script issue)

Post by Ange Tuteur November 24th 2014, 1:37 am

Try this :
Code:
 .forabg ul:not(.pmlist) dl.icon {
      background:none !important;
      position:relative;
    }

    .blocImg {
      width:50px;
      background-repeat:no-repeat;
      background-position:center;
      position:absolute;
      left:0;
      top:0;
      bottom:0;
    }
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Page 1 of 2 1, 2  Next

Back to top


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