The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
I made a postbit icon that says "DEV", I want it to be used automatically when I post a thread so it stands out from other threads, I also want it to be changed to that when ever I post on a thread so it stands out as a "DEV" posted on it. Also trying to get this recolored:
I want "Scorch" and "Hello" to be recolored to BLUE ONLY if its a Dev post, I used the plugin above to do it for sections like here: And this is the postbit icon that I want changed automatically: |
#12
|
|||
|
|||
For the dev icon, you can probably do something like..
threadbit_display again. if ($thread['postuserid'] == 1) { $thread[threadiconpath] = "images/misc/DEVICON.PNG"; } ^ Confirmed it works just fine. --------------- Added [DATE]1373488952[/DATE] at [TIME]1373488952[/TIME] --------------- As for your forumhome edit request, there's no hook before the calling of lastpostby So you might look into: https://vborg.vbsupport.ru/showthrea...ighlight=color As that adds a hook before it, all you'd have to do is edit the php code. |
#13
|
|||
|
|||
Quote:
It's working perfectly when I make a thread, thank you so much for that. But I also want it to change on ANY thread that I post on (really just to notify that I have posted on said thread) The forumhome recoloring: Now that I have a hook, what would my code be? I tried running this: Code:
if ($thread['postuserid'] == 1) {$thread['lastposter'] = '<span style="color: #0099FF;">' . $thread['lastposter'] . '</span>';} |
#14
|
|||
|
|||
For the thread icon, try doing..
if ($thread['postuserid'] == 1 || $thread[lastposter] == 1) { $thread[threadiconpath] = "images/misc/DEVICON.PNG"; } As for the other mod, find the plugin colorname And replace all with: if($lastpostinfo['lastposter'] == YOURUSERNAME) { $lastpostinfo['lastposter'] = '<span style="color:#8B0000;">".$lastpostinfo['lastposter']."</span>'; } |
#15
|
|||
|
|||
It still doesn't change, its not showing any errors but I don't see what its doing
Color username plugin error when enabled : Parse error: syntax error, unexpected T_STRING in /home/vanquish/public_html/forums/includes/functions_forumlist.php(268) : eval()'d code on line 3 |
#16
|
|||
|
|||
Erm, if you want to PM me an admin account on your site with settings, template and plugin permissions, I can have a look. Kind of working blinded here.
|
#17
|
|||
|
|||
Sure will work it out with you tomorrow, will give you an account to work on
|
#18
|
|||
|
|||
Sounds good.
|
#19
|
|||
|
|||
Incredible thank you
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|