Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Category Image V1.0 for YaBB 2.1 (Read 5051 times)
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Category Image V1.0 for YaBB 2.1
Jan 9th, 2007 at 6:14pm
Print Post  
hello YaBBer   Cheesy

MF-B and I have make Category Image mod for YaBB 2.1

----------------------------------------------------------
Category Image V 1.0
----------------------------------------------------------


Description:
This mod allows to add an image into each category.

Demo:
YaBB World Support Forum

Installation:
1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server in ASCII mode.

Admin/ManageCats.pl (ASCII)
Admin/ModList.pl (ASCII)
Languages/English/Admin.lng (ASCII)
Sources/BoardIndex.pl (ASCII)
Templates/default/BoardIndex.template (ASCII)

Mod History:
Status Category Image V1.0
- First release
« Last Edit: Feb 29th, 2008 at 8:38am by Jeff »  

Category_Image_V1_0.zip ( 1 KB | Downloads )

greetings
Jeff
Back to top
WWW  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Category Image for YaBB 2.1
Reply #1 - Jan 12th, 2007 at 9:15pm
Print Post  
Installed it, without problems!
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [DONE] Category Image for YaBB 2.1
Reply #2 - Jan 12th, 2007 at 10:25pm
Print Post  
Hi
super.  Cheesy
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: [DONE] Category Image for YaBB 2.1
Reply #3 - Jan 13th, 2007 at 10:09am
Print Post  
Hello,

me too installation was free of errors
  
Back to top
WWW  
IP Logged
 
Becks
New Member
*
Offline


I love Becks H-D & Buell
Forum!

Posts: 8
Location: Paderborn
Joined: Jan 20th, 2006
Gender: Male
Re: [DONE] Category Image for YaBB 2.1
Reply #4 - Jan 13th, 2007 at 3:28pm
Print Post  
english mod version installation works fine!

But the german mod needs a little work:

instead of: Languages/German/Admin.lng
use: Languages/Deutsche_Du/Admin.lng
or: Languages/Deutsche/Admin.lng
  
Back to top
WWW  
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: [DONE] Category Image for YaBB 2.1
Reply #5 - Jan 13th, 2007 at 3:31pm
Print Post  
Becks wrote on Jan 13th, 2007 at 3:28pm:
english mod version installation works fine!

But the german mod needs a little work:

instead of: Languages/German/Admin.lng
use: Languages/Deutsche_Du/Admin.lng
or: Languages/Deutsche/Admin.lng


Hi
no problem, but official we use German and German_Du  Wink
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
gus
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 43
Joined: Aug 12th, 2005
Re: [DONE] Category Image for YaBB 2.1
Reply #6 - Jan 14th, 2007 at 7:35pm
Print Post  
Hello,

Great idea!  Love the mod!

I made one small change.  If no category picture is selected, it will use the default image (balloon2.gif).

Search for:
Code
Select All
		if ($catimage ne "") {
			if ($catimage =~ /\//i) { $catimage = qq~<img src="$catimage" alt="" border="0" style="vertical-align: middle;" />~; }
			else { $catimage = qq~<img src="$imagesdir/$catimage" alt="" border="0" style="vertical-align: middle;" />~; }
			$tmpcatimg = qq~$catimage~;
		} 



Replace with:
Code
Select All
		if ($catimage ne "") {
			if ($catimage =~ /\//i) { $catimage = qq~<img src="$catimage" alt="" border="0" style="vertical-align: middle;" />~; }
			else { $catimage = qq~<img src="$imagesdir/$catimage" alt="" border="0" style="vertical-align: middle;" />~; }
			$tmpcatimg = qq~$catimage~;
		} elsif ($catimage eq "") {
			$catimage = qq~<img src="$imagesdir/balloon2.gif" alt="" border="0" style="vertical-align: middle;" />~;
			$tmpcatimg = qq~$catimage~;
		} 

  
Back to top
 
IP Logged
 
MF-B
Senior Member
****
Offline



Posts: 410
Location: Moscow
Joined: Apr 11th, 2006
Gender: Male
Re: [DONE] Category Image for YaBB 2.1
Reply #7 - Jan 14th, 2007 at 9:24pm
Print Post  
@gus

I write this in first version... but Jet Li change this Grin

I change you code for speed up Wink

Code
Select All
		my $tmpcatimg = qq~<img src="$imagesdir/balloon2.gif" alt="" border="0" style="vertical-align: middle;" />~;
		if ($catimage ne '') {
			if ($catimage =~ /\//i) { $catimage = qq~<img src="$catimage" alt="" border="0" style="vertical-align: middle;" />~; }
			elsif ($catimage) { $catimage = qq~<img src="$imagesdir/$catimage" alt="" border="0" style="vertical-align: middle;" />~; }
			$tmpcatimg = qq~$catimage~;
		}
 



  
Back to top
WWW  
IP Logged
 
kpmpop
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 5
Joined: Mar 15th, 2007
Re: Category Image V1.0 for YaBB 2.1
Reply #8 - Feb 29th, 2008 at 3:15am
Print Post  
i cant download
  
Back to top
 
IP Logged
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Category Image V1.0 for YaBB 2.1
Reply #9 - Feb 29th, 2008 at 8:39am
Print Post  
Hi
ok, uploaded to boardmod here  Wink
  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint