Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 07-09-2013, 10:13 PM
SwalyAaron SwalyAaron is offline
 
Join Date: Jan 2013
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #12  
Old 07-10-2013, 08:08 AM
exel exel is offline
 
Join Date: Jan 2008
Location: Southern California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 07-10-2013, 10:22 PM
SwalyAaron SwalyAaron is offline
 
Join Date: Jan 2013
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by exel View Post
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.
The thread icon:
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>';}
The product itself works its adding HTML mark up but I want it to be a blue color not my HTML mark up and I only want it to work for USER ID = 1, I'm trying to mess with the PHP I will try and reply before you do if I find anything that will work.
Reply With Quote
  #14  
Old 07-11-2013, 03:01 AM
exel exel is offline
 
Join Date: Jan 2008
Location: Southern California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>';

}
Reply With Quote
  #15  
Old 07-11-2013, 04:21 AM
SwalyAaron SwalyAaron is offline
 
Join Date: Jan 2013
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 07-11-2013, 06:48 AM
exel exel is offline
 
Join Date: Jan 2008
Location: Southern California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 07-11-2013, 08:58 AM
SwalyAaron SwalyAaron is offline
 
Join Date: Jan 2013
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure will work it out with you tomorrow, will give you an account to work on
Reply With Quote
  #18  
Old 07-11-2013, 07:02 PM
exel exel is offline
 
Join Date: Jan 2008
Location: Southern California
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SwalyAaron View Post
Sure will work it out with you tomorrow, will give you an account to work on
Sounds good.
Reply With Quote
  #19  
Old 07-24-2013, 07:36 AM
SwalyAaron SwalyAaron is offline
 
Join Date: Jan 2013
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Incredible thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04706 seconds
  • Memory Usage 2,244KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete