Page Index Toggle Pages: [1] 2  Send TopicPrint
Very Hot Topic (More than 25 Replies) Advanced User Color V1.0b for YaBB 2.1 (Read 1066 times)
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Advanced User Color V1.0b for YaBB 2.1
Jul 27th, 2006 at 7:04pm
Print Post  
Hello

new Mod from Mf-B and me for YaBB 2.1

----------------------------------------------------------
Advanced Username Color V 1.0b
----------------------------------------------------------


Description:
This mod replace default Color to Membergroups Color in Username on BoardIndex, MessageIndex, Search Result, Topic Summary and 10 Most Recent Post.

Live Forum: http://www.support.grafix-world.nl

This Zip Package included:
- Advanced_Usercolor.mod (original)
- Advanced_Usercolor_for_Subboard.mod (Subboard compatible)
- Advanced_Usercolor_for_Thread_Start_Date.mod (Thread Start Date compatible)
- Advanced_Usercolor_for_Subboard_and_Thread_Start_Date.mod (Subboard and Thread Start Date compatible)

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

Admin/ModList.pl (ASCII)
Sources/BoardIndex.pl (ASCII)
Sources/MessageIndex.pl (ASCII)
Sources/Display.pl (ASCII)
Sources/Poll.pl (ASCII)
Sources/Notify.pl (ASCII)
Sources/Post.pl (ASCII)
Sources/Recent.pl (ASCII)
Sources/Search.pl (ASCII)


Mod History:
Status Advanced User Color V1.0b (January 13 2007)
- change code for Poll.pl for Showcase Poll if modified poll, as guest was no show usercolor.

If you dont want deinstall, replace 2x this code
search in Poll.pl
Code
Select All
		$displaydate = qq~<span class="small">&#171; $polltxt{'45a'}: $link{$poll_modname} $polltxt{'46'}: $poll_mod &#187;</span>~; 


replace with
Code
Select All
		if (!${$uid.$poll_modname}{'password'}) { &LoadUser($poll_modname); }
		$displaydate = qq~<span class="small">&#171; $polltxt{'45a'}: $link{$poll_modname} $polltxt{'46'}: $poll_mod &#187;</span>~; 



Status Advanced User Color V1.0a (Aug 23 2006) (15 Downloads)
- Add Advanced user color Steps for View Votes
- move addon for poll to all modfile, so you need only of these mod to install.

Status Advanced User Color V1.0 (Aug 22 2006) (12 Downloads)
- Add Advanced user color Addon for Vote Poll

Update information:
No need deinstall default/compatible mod.

Status Advanced User Color V1.0 (Aug 01 2006)
- Add modded RateIT.pl for RateIT V1.8

Update information:
no deinstall of this mod needed
- replace modded RateIT.pl with your unmodded RateIT.pl in /Sources and your username in Ratinglist will have color

Status Advanced User Color V1.0 (Jul 27 2006) (15 Downloads)
- First Release

Download:

Sorry! The Download Folder is full in this forum, so you can download the Advanced User Color Mod here ...

Advanced_Usercolor_v1_0b.zip
« Last Edit: Feb 20th, 2007 at 1:56pm by Administrator »  

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



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #1 - Jul 28th, 2006 at 6:12am
Print Post  
No problems at install and in my forum!
Later i will test if there are problems with "Board Index User Cache-Mod".

What's about speed? Does it slow down the forum (i found some notes, that usercolors slow down the forum) ?

LArian
  
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: Advanced User Color V1.0 for YaBB 2.1
Reply #2 - Jul 28th, 2006 at 6:16am
Print Post  
Hi
on my forum  YaBB 2.1 the speed on Startpage loaded 1.1 seconds. On MF-B's with YaBB 2.2/2.5 CVS is loading 0.4 - 1.0
  

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



Posts: 442
Location: Ipswich
Joined: Apr 5th, 2005
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #3 - Jul 28th, 2006 at 6:42am
Print Post  
What do i do if i have all three of the mod's installed
  
Back to top
WWWYIM  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #4 - Jul 28th, 2006 at 6:45am
Print Post  
I think you shou deinstall two of them if possible, because you need only one.

Larian
  
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: Advanced User Color V1.0 for YaBB 2.1
Reply #5 - Jul 28th, 2006 at 6:52am
Print Post  
Hi
if you have installed subboard, then install Advanced Username color for Subboard.

if Thread Start Date installed, then for Thread Startdate (only need if you have Thread Startdate installed,

if subboard/thradstart date installed, then the combi.
« Last Edit: Jul 28th, 2006 at 12:00pm by Jeff »  

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



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #6 - Jul 28th, 2006 at 6:56am
Print Post  
Yes, there are problems with "Board Index User Cache". At the first load everything is ok, after reloading there is shown nothing! (no moderators, no thread-starters, no last-replyer)

Maybee you should ask AK108, in the BIUC-Thread he wrote, that he made a modified Load-procedure and other mod-developer should ask him how to use it.
(See http://www.boardmod.org/yabb/YaBB.pl?board=beta_y2;action=display;num=1128736543...)

Larian
  
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: Advanced User Color V1.0 for YaBB 2.1
Reply #7 - Jul 28th, 2006 at 7:06am
Print Post  
ok, i have posted there.  Wink
  

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



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #8 - Jul 28th, 2006 at 7:13am
Print Post  
Thank's, i saw it already Smiley
For this time i deinstalled your mod on my forum with biuc (on the other one without this mod i let it run Smiley ), but if i get the modified version i will install it again!

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



Posts: 410
Location: Moscow
Joined: Apr 11th, 2006
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #9 - Jul 28th, 2006 at 9:03am
Print Post  
Larian wrote on Jul 28th, 2006 at 6:12am:
What's about speed? Does it slow down the forum (i found some notes, that usercolors slow down the forum) ?
Speed? Waht happened? Standart forum use default color for username link - mod replace standart color for color usergroup using standart function in YaBB, this function making color for username on the fly in Display view. We using this function everywhere.
Standart forum load user, mod adding color. Speed? This add loading time - 0.005sek
  
Back to top
WWW  
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #10 - Jul 28th, 2006 at 6:04pm
Print Post  
@Larian: Please try this.

In BoardIndex.pl, search for
Code
Select All
	\${\$uid.'$user'}{'userwasloadedfromcache'} = 1;~; 



add before
Code
Select All
	\$link{'$user'} = $link{$user};~; 



Then remove the BIUC cache file. You can do this in the Admin Center.
  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #11 - Jul 29th, 2006 at 1:37pm
Print Post  
Now i get


Untrapped Error:
Can't modify single ref constructor in scalar assignment at ./Sources/BoardIndex.pl line 1166, near "1;" syntax error at ./Sources/BoardIndex.pl line 1166, near "~;" Compilation failed in require at YaBB.cgi line 173.


if i remove the ~; behind your new line, this error doesn't appaer but now

Bareword found where operator expected at ./Variables/boardindexusers.cache line 7, near "/b>


Sad

Larian
  
Back to top
 
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #12 - Jul 29th, 2006 at 1:47pm
Print Post  
I changed the line to
Code
Select All
\$link{'$user'} = '$link{$user}';
 



and now it seems to work, or is there anything wrong at this line?

Larian
  
Back to top
 
IP Logged
 
AK108
God Member
*****
Offline



Posts: 942
Joined: Oct 1st, 2003
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #13 - Jul 30th, 2006 at 5:07am
Print Post  
Oops, you're right. It was untested, but that will work. It can break if there's a single quote mark in the user's name, so try this (from the stock modification):

Search for
Code
Select All
		$output .= qq~
	\${\$uid.'$user'}{'realname'} = '$filteredname';
	\${\$uid.'$user'}{'addgroups'} = '$filteredgroups';
	\${\$uid.'$user'}{'position'} = '$filteredpos';
	\${\$uid.'$user'}{'regtime'} = '${$uid.$user}{'regtime'}';
	\${\$uid.'$user'}{'regdate'} = '$filtereddate';
	\${\$uid.'$user'}{'userwasloadedfromcache'} = 1;~; 



replace with
Code
Select All
		my $filteredlink = quotemeta($link{$user});
		$output .= qq~
	\${\$uid.'$user'}{'realname'} = '$filteredname';
	\${\$uid.'$user'}{'addgroups'} = '$filteredgroups';
	\${\$uid.'$user'}{'position'} = '$filteredpos';
	\${\$uid.'$user'}{'regtime'} = '${$uid.$user}{'regtime'}';
	\${\$uid.'$user'}{'regdate'} = '$filtereddate';
	\$link{'$user'} = "$filteredlink";
	\${\$uid.'$user'}{'userwasloadedfromcache'} = 1;~; 

« Last Edit: Aug 1st, 2006 at 12:08am by AK108 »  

For my mods, check out my public notes.

You might be interested in my projects, or my forum, the Flying Kirby Pub.
Back to top
WWWAIM  
IP Logged
 
Larian
Senior Member
****
Offline



Posts: 316
Location: Leipzig
Joined: Oct 22nd, 2002
Gender: Male
Re: Advanced User Color V1.0 for YaBB 2.1
Reply #14 - Jul 30th, 2006 at 9:09am
Print Post  
Hi AK!

Good idea, but the quote of the Links doesn't work, because now i get Namestrings like:

\\J\.J\.\<\/b\>\<\/a\>, \\der_Sascha\<\/b\>\<\/a\>

Larian
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint