PDA

View Full Version : Mini Mods - Usergroups Usernames in Forumdisplay Highlighting


Hasann
28 Feb 2008, 06:43
Username HTML Markup in FORUMHOME + FORUMDISPLAY + SUBFORUMS by Hasann

This Product brought to you by
www.vbulletin-turkey.com (http://www.vbulletin-turkey.com/)

Description:

This mini Add-On will showing the Usergroups Username HTML Markup in
FORUMHOME
FORUMDISPLAY
SUBFORUMS

Installation:

1. step: upload the hooks_username_html_markup.xml file to your forumroot/includes/xml folder


2. step: find in forumroot/includes/functions_forumlist.php file this code

$lastpostinfo = (empty($lastpostarray[$forumid]) ? array() : $vbulletin->forumcache["$lastpostarray[$forumid]"]);

than add below this code

($hook = vBulletinHook::fetch_hook('forumbit_lastpostby')) ? eval($hook) : false;

Save and reupload.

3. step:

And at least import the product-username_html_markup.xml product file via admincp -> product manager -> import/export products

Tested on:


vBulletin 3.7.x
vBulletin 3.8.x


Demo: www.vbulletin-turkey.com/forum (http://www.vbulletin-turkey.com/forum)

7lanet
28 Feb 2008, 07:20
thanks

^_^

7lanet
28 Feb 2008, 07:32
Another problem
Another shows a response is the same as another of a topic
Despite of it is not a subject

Hasann
28 Feb 2008, 08:37
Another problem
Another shows a response is the same as another of a topic
Despite of it is not a subject

sorry brother updated! :erm:

codershark
28 Feb 2008, 10:49
What does the Hack do ? I dont see any changes after install....

Mrquarter
28 Feb 2008, 12:04
What does it do???

katilkuzu
28 Feb 2008, 12:07
what does it do too?
ne işe yarar bu beyler

NeuroLancer
28 Feb 2008, 14:24
from reading the xml it looks like it displays the username with the html tags like how you can set it to show admins as red and bold and then in WOL the admin name is like this. I think thats what it does but for forum display... could be wrong tho lol

Edit: Yep! I was right, it makes it look like musername, this is actually a very cool mod, perhaps a better description is needed.

Mrquarter
28 Feb 2008, 14:34
Yes, a better description is needed.

Hasann
28 Feb 2008, 17:14
Yes, a better description is needed.

Usergroups colour highlighting in forumdisplay threadstarter

Kaleem
28 Feb 2008, 20:22
Excellent work nice :)

Just a demo the usernames have htmlmarks up in Forumdisplay http://www.friendskorner.com/forum/f16/

Spermy
28 Feb 2008, 23:36
How can I use this for new posts and forumhome?

deafluckyirish
29 Feb 2008, 02:36
How did you add image on html markup?

cajunboy2208
29 Feb 2008, 03:01
Yes, I would like this to work in the Today's Posts, New Posts, as well as Last Post.
If it is possible.
I would really appriciate it!
Thank you.

Droptop
01 Mar 2008, 18:43
Works great for 3.6.8 PL 2....**clicks install** Thank you for this. :D

toucan42
09 Apr 2008, 17:33
Any way to get this working on homepage as well?

asj
10 Apr 2008, 02:10
Not be lifted file has been found to a local file ? :down:

KURTZ
10 Apr 2008, 11:45
wow superb Hasann!!! :)

Charlie98902
01 May 2008, 00:20
Installed and a very nice mod indeed. Is there a way to use this mod and make the forum home show the same. Like on forum home is a admin posted last it would show it in red?

fourat
01 May 2008, 00:47
salam alekom

thank my brother jazak allah khayeran

KURTZ
14 May 2008, 11:55
hasann, 'i've found a little glitch ... it doesn't colorize the nick below the Announces ... check the shot attached ... :)

reesev
27 May 2008, 23:08
members cannot access peoples profiles by clicking there names any more

Captain Tycoon
16 Jun 2008, 14:40
Working Perfectly! Marked as Installed!

term_
18 Jun 2008, 18:36
Thanks Hasann.

I'm using it on my forum.

War_force
18 Jun 2008, 21:05
nice work and installed

thanks a lot

GaiLoan
19 Jun 2008, 04:46
this very nice, thank you

rolfw1
20 Jun 2008, 21:49
Thanks, nice mod. :)

srkrocks
21 Jun 2008, 11:43
Installed..Thanks

KURTZ
21 Jun 2008, 11:47
i forgot this hack ... :) pls Hasann can you fix the 'announce issue'? TIA :)

PS. congrats for the yesterday's game vs. Croatia ... at what time the party was over? :p

dadoc
14 Aug 2008, 09:01
Another great simple but effective mod thanks Hasann

Fırtına
15 Aug 2008, 11:20
Installed*


Teşekkürler hocam.

fahl
30 Aug 2008, 17:58
All installed,,But where do you actually set this up.

apiasto
31 Aug 2008, 01:36
nice,it will be more fun if it was on forumhome.thnx

M.A.F.
18 Sep 2008, 12:24
Nice ^^
Installed ... but we need another one for forumhome plz ^^"

TilkiBey
20 Sep 2008, 13:55
thx,installed

exel
20 Sep 2008, 22:33
Installed!

dengbej
20 Sep 2008, 22:43
nice hack.thanks Hasann

HemoOo Nana
21 Sep 2008, 11:36
Thanks

EuK
21 Sep 2008, 12:18
thanks ....

rizelim
24 Sep 2008, 22:22
thanks

crackers
24 Nov 2008, 02:59
Very bad optimization, this mod generates big load! This mod should go to trash...

nakedzero
24 Nov 2008, 11:41
Nice hack. Btw, may i have the theme of your forum?

2L8
24 Nov 2008, 16:43
it works fine for 3.7.4 thx ;)

Hasann
25 Nov 2008, 00:34
Very bad optimization, this mod generates big load! This mod should go to trash...

who are you?

if not working please uninstall it

NikosN
03 Dec 2008, 14:54
Thank you!

crackers
03 Dec 2008, 14:55
People should know that installing this mod can cause high load and lay off from shared hosting... You ignored my pm so how can I have enough respect for you...

arauf
23 Dec 2008, 13:14
Database error in vBulletin 3.8.0 Beta 2:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, replycount, IF(views<=replycount, replycount+1, views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason

, threadredirect.expires
, hasannuser.displaygroupid AS hasanndisplaygid, hasannuser.usergroupid AS hasannusergid, huseyinuser.displaygroupid AS huseyindisplaygid, huseyinuser.usergroupid AS huseyinusergid
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)

LEFT JOIN post AS post ON(post.postid = thread.firstpostid)

LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
LEFT JOIN user AS hasannuser ON (thread.lastposter = hasannuser.username)
LEFT JOIN user AS huseyinuser ON (thread.postuserid = huseyinuser.userid)
WHERE thread.threadid IN (0,6853,6583,4837,1441,3393,2797,1219,1459,1112,1510,1111,1107,856,913,931,948)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Column 'votenum' in field list is ambiguous
Error Number : 1052
Request Date : Tuesday, December 23rd 2008 @ 06:12:43 PM
Error Date : Tuesday, December 23rd 2008 @ 06:12:43 PM
Script : http://xxx/voiceforums/forumdisplay.php?f=9
Referrer : http://xxx/voiceforums/index.php
IP Address : 77.31.9.228
Username : Kareem
Classname : vB_Database
MySQL Version : 5.0.51a-community



Hassann :o

arauf
23 Dec 2008, 13:17
when i click on my forums Database errors shows up :s
i have removed all files and uninstalled the ( product-username_html_markup.xml )

but No Gain same error :o

can you please tell whats wrong :(

something's wrong with ( functions_forumlist.php )

digicom
23 Dec 2008, 20:22
Working on 3.7.4 with no problems,apprciated:up:

Hasann
23 Dec 2008, 21:17
Database error in vBulletin 3.8.0 Beta 2:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, replycount, IF(views<=replycount, replycount+1, views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason

, threadredirect.expires
, hasannuser.displaygroupid AS hasanndisplaygid, hasannuser.usergroupid AS hasannusergid, huseyinuser.displaygroupid AS huseyindisplaygid, huseyinuser.usergroupid AS huseyinusergid
FROM thread AS thread
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)

LEFT JOIN post AS post ON(post.postid = thread.firstpostid)

LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
LEFT JOIN user AS hasannuser ON (thread.lastposter = hasannuser.username)
LEFT JOIN user AS huseyinuser ON (thread.postuserid = huseyinuser.userid)
WHERE thread.threadid IN (0,6853,6583,4837,1441,3393,2797,1219,1459,1112,1510,1111,1107,856,913,931,948)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Column 'votenum' in field list is ambiguous
Error Number : 1052
Request Date : Tuesday, December 23rd 2008 @ 06:12:43 PM
Error Date : Tuesday, December 23rd 2008 @ 06:12:43 PM
Script : http://xxx/voiceforums/forumdisplay.php?f=9
Referrer : http://xxx/voiceforums/index.php
IP Address : 77.31.9.228
Username : Kareem
Classname : vB_Database
MySQL Version : 5.0.51a-community



Hassann :o

did you installed this hack ?
http://www.vbulletin.org/forum/showthread.php?t=199568

rjayXD
19 Jan 2009, 09:40
Reserved

MAD-DOG
17 Feb 2009, 23:23
is there a way to have it work on vBa CMPS..??
thank you..

Das UndergrounD
07 Mar 2009, 19:52
I would like to appear colored nicks in the results of the search

TaMpE
14 Mar 2009, 05:49
I have vBExperience installed and in the statistic list, can this be added too?

oxblood12
15 Mar 2009, 05:16
thanks jejeje

Stratto
20 Mar 2009, 00:00
Worked perfectly without problems, thank you ^^

amjadz4
06 Apr 2009, 18:51
thanks...great mod

starplatinum
14 Apr 2009, 01:05
Great for readibility thx :)

AkBilge
01 Mar 2010, 00:11
Works great for 3.6.8 PL 2....**clicks install** Thank you for this.
Süper. Teşekkürler hasann. Sorunsuz çalıştı.