Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Custom Forum Legend - Perforum Basis
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #11
RE: Custom Forum Legend - Perforum Basis
Excellent Yumi Smile it is now working.
Thank You very much.

[Image: logo.png]

[Image: twitter.png]
09-16-2010 04:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #12
RE: Custom Forum Legend - Perforum Basis
(09-16-2010 03:50 PM)ZiNgA BuRgA Wrote:  Then you should check the URL that is being put in (right-click -> Copy Image Location in Firefox) and track the issue there.

But I think you've somewhat got the wrong idea.  All you're doing is changing the path of the image.  If you want what the first post is talking about (different images per forum), you'll need separate templates for each forum, with a forum template prefix set up for each forum.
Alternatively, you could use something like this:

HTML Code
<img src="{$theme['imgdir']}/forum{$forum['fid']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

And have your images in:
images/forum1/on.gif
images/forum1/off.gif
images/forum2/on.gif
etc
...where the numbers refer to the forum ID.  If you do this, you'll need an image for every single forum and don't need XThreads.


Alright, I did your technique, and it works, however the AJAX mark read feature doesn't work. And this seems to be the case on Imran's forum as well.
What's the issue? I have to refresh the page before the icon changes.
05-21-2011 04:30 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #13
RE: Custom Forum Legend - Perforum Basis
What's your forum url?

05-21-2011 05:22 AM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #14
RE: Custom Forum Legend - Perforum Basis
If I post it, it won't do any good as this theme isn't available to be used by the public yet Wink
However, you may try going over to Imran's forum which has the same issue.
(This post was last modified: 05-21-2011 05:24 AM by lucasbytegenius.)
05-21-2011 05:24 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #15
RE: Custom Forum Legend - Perforum Basis
(05-21-2011 04:30 AM)lucasbytegenius Wrote:  Alright, I did your technique, and it works, however the AJAX mark read feature doesn't work. And this seems to be the case on Imran's forum as well.
What's the issue? I have to refresh the page before the icon changes.
I imagined it would, if you did exactly what I said.
Imran uses "images/custom/forum{$fid}.png" instead of my suggested "images/forum{$fid}/on.gif"

If you want to use a different scheme, you'll need to modify jscripts/general.js appropriately.  Just do a search for "off.gif" and edit them to suit your needs.

My Blog
05-21-2011 10:02 AM
Find all posts by this user Quote this message in a reply
lucasbytegenius Offline
Junior Member
**
Posts: 18
Joined: Apr 2011
Post: #16
RE: Custom Forum Legend - Perforum Basis
(05-21-2011 10:02 AM)ZiNgA BuRgA Wrote:  
(05-21-2011 04:30 AM)lucasbytegenius Wrote:  Alright, I did your technique, and it works, however the AJAX mark read feature doesn't work. And this seems to be the case on Imran's forum as well.
What's the issue? I have to refresh the page before the icon changes.
I imagined it would, if you did exactly what I said.
Imran uses "images/custom/forum{$fid}.png" instead of my suggested "images/forum{$fid}/on.gif"

If you want to use a different scheme, you'll need to modify jscripts/general.js appropriately.  Just do a search for "off.gif" and edit them to suit your needs.
I did images/icon/fid/on.png. But I suppose it was the file type change Erf
I'll try your suggestion Smile
05-21-2011 02:02 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #17
RE: Custom Forum Legend - Perforum Basis
Yes, png is not gif - the code looks specifically for ".gif" (so to change, just replace appropriate).

My Blog
05-21-2011 06:29 PM
Find all posts by this user Quote this message in a reply
brad-t Offline
Member
***
Posts: 120
Joined: Apr 2011
Post: #18
RE: Custom Forum Legend - Perforum Basis
Wow, I was looking for something just like this. Very simple and clever solution!
05-11-2012 12:12 AM
Find all posts by this user Quote this message in a reply
zero Offline
Junior Member
**
Posts: 7
Joined: May 2012
Post: #19
RE: Custom Forum Legend - Perforum Basis
Does this bascically set a different ON/OFF image per forum? I've been looking for this,  Don't really understood what to doo, do I need a folder per each forum?
05-23-2012 11:18 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #20
RE: Custom Forum Legend - Perforum Basis
(05-23-2012 11:18 AM)zero Wrote:  Does this bascically set a different ON/OFF image per forum?
Yes.

(05-23-2012 11:18 AM)zero Wrote:  do I need a folder per each forum?
Unfortunately, yes.

If you don't want to that, maybe you can try this way (the lightbulb image tag):
forumbit_depth2_forum

HTML Code
<img src="{$theme['imgdir']}/{$forum['fid']}_{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

Then upload forumid_on.gif, forumid_off.gif and forumid_offlock.gif to your theme's images folder.
For example for forum id = 2:
2_on.gif, 2_off.gif and 2_offlock.gif


05-24-2012 07:18 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: