Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Custom Forum Legend - Perforum Basis
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Custom Forum Legend - Perforum Basis
Not an application, only a basic XThreads usage Biggrin

Basically, we can use template_prefix_forumbit_depth2_forum template to use different Forum Legend, per forum basis.

Default:

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


Replace the {$theme['imgdir']} with the path of our custom forum legend images:

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


We can still use the {$theme['imgdir']} variable if we want the forum legend custom per forum basis and per theme basis:

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


And maybe we need to change the template_prefix_forumbit_depth2_cat template too, if the forum has a sub forum.



Attached File(s) Thumbnail(s)
   

(This post was last modified: 09-06-2010 09:45 AM by RateU.)
09-06-2010 09:21 AM
Find all posts by this user Quote this message in a reply
Gypaete Offline
Member
***
Posts: 82
Joined: Aug 2010
Post: #2
RE: Custom Forum Legend - Perforum Basis
I do not understand what it does. And how do I do?I have no template named, template_prefix_forumbit_depth2_forum.

[Image: selenab.png]
(This post was last modified: 09-06-2010 09:40 PM by Gypaete.)
09-06-2010 09:12 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #3
RE: Custom Forum Legend - Perforum Basis
Forum Legend?

   

We can use different images (per forum basis) for our forum legend.

09-07-2010 02:40 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #4
RE: Custom Forum Legend - Perforum Basis
That looks nice Tongue
09-07-2010 02:40 AM
Find all posts by this user Quote this message in a reply
TriTop Offline
Member
***
Posts: 53
Joined: Apr 2008
Post: #5
RE: Custom Forum Legend - Perforum Basis
(09-06-2010 09:21 AM)RateU Wrote:  Not an application, only a basic XThreads usage Biggrin
...

The trick is to strike on an idea. Wink2 Thanks RateU!
09-07-2010 05:00 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: Custom Forum Legend - Perforum Basis
Simple and elegant Smile

My Blog
09-07-2010 08:59 AM
Find all posts by this user Quote this message in a reply
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #7
RE: Custom Forum Legend - Perforum Basis
It didn't work for me Frown

[Image: logo.png]

[Image: twitter.png]
09-16-2010 03:18 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #8
RE: Custom Forum Legend - Perforum Basis
You need to explain what you did and what happened.

My Blog
09-16-2010 03:29 PM
Find all posts by this user Quote this message in a reply
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #9
RE: Custom Forum Legend - Perforum Basis
(09-16-2010 03:29 PM)ZiNgA BuRgA Wrote:  You need to explain what you did and what happened.

Hi Yumi,

I copy images folder (which is named /imran/ and having .png images) in forum_root/images/ directory.

Then I go to ACP > Templates > ForumBit Templates > forumbit_depth2_forum > and change;

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


to;

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


It changes the legend column to this;

[Image: 28034errorrr.png]

Does I miss something ??


[Image: logo.png]

[Image: twitter.png]
09-16-2010 03:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #10
RE: Custom Forum Legend - Perforum Basis
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.


My Blog
09-16-2010 03:50 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: