Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vbBux / vbPlaza
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Only display Ribbon Comments in Postbit. Details »»
Only display Ribbon Comments in Postbit.
Version: , by The Ottoman The Ottoman is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-14-2006 Last Update: Never Installs: 0
 
No support by the author.

Currently when you mouseover a ribbon in the postbit, it shows the ribbon description, and then who donated it. How would I change it so that when you mouseover, you get only who gave the ribbon and any message associated with it?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-18-2006, 05:24 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll have to edit the plugin file:
plugins/vbplaza_postbit_imicons.php

Find:
Code:
$userinfo['ribbonsdisplay'] .= "<a href=\"vbplaza.php?$session[sessionurl]do=giveribbon&amp;userid=" . $userinfo['userid'] . "\"><img src=\"images/ribbons/" . $ribbon['ribbonname'] . ".gif\" title=\"" . $ribbon['cause'] . " - " . $ribbon['username'] . "\" border=\"0\"></a> ";
Where it says title=, you'll need to change it to ur liking here.

-CMX
Reply With Quote
  #3  
Old 04-20-2006, 02:44 PM
MysticMoon's Avatar
MysticMoon MysticMoon is offline
 
Join Date: Aug 2004
Location: Michigan, USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed the title part to this

Code:
title=\"" . $ribbon['message'] . "\"
and now when you put your mouse over the ribbon nothing shows @ all.
I grabbed that info from above on same page, for showing message reason on the profile page assuming it would work.

Should it be something different?
Reply With Quote
  #4  
Old 04-30-2006, 06:25 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing I could think of to try, is to try putting addslashes there.

Code:
title=\"" . addslashes($ribbon['message']) . "\"
-CMX
Reply With Quote
  #5  
Old 04-30-2006, 08:25 PM
MysticMoon's Avatar
MysticMoon MysticMoon is offline
 
Join Date: Aug 2004
Location: Michigan, USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope still nothing "pops up" :\
Reply With Quote
  #6  
Old 04-30-2006, 08:34 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can u view the HTML source code and pasted here what it says, or send me to a thread on ur forums so I can view the html source?

-CMX
Reply With Quote
  #7  
Old 05-01-2006, 12:44 AM
MysticMoon's Avatar
MysticMoon MysticMoon is offline
 
Join Date: Aug 2004
Location: Michigan, USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CMX_CMGSCCC
Can u view the HTML source code and pasted here what it says, or send me to a thread on ur forums so I can view the html source?

-CMX
HTML Code:
<img src="images/ribbons/darkblue.gif" title="" border="0">
See for some reason it's not picking up the title part of it :ermm:
Reply With Quote
  #8  
Old 05-01-2006, 01:32 AM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Because its not storing the message inside the users table.

Inside includes/functions_vbplaza.php...

Find:
Code:
				// add this ribbon into the array
				$curribbons[$ribbon['ribbonid']] = array(
					'ribbonid'	=>	$ribbon['ribbonid'],
					'ribbonname'	=>	$ribbon['ribbonname'],
					'userid'	=>	$ribbon['fromuserid'],
					'username'	=>	$ribbon['fromusername'],
					'cause'		=>	$ribbon['cause']
				);
Replace that with:
Code:
				// add this ribbon into the array
				$curribbons[$ribbon['ribbonid']] = array(
					'ribbonid'	=>	$ribbon['ribbonid'],
					'ribbonname'	=>	$ribbon['ribbonname'],
					'userid'	=>	$ribbon['fromuserid'],
					'username'	=>	$ribbon['fromusername'],
					'cause'		=>	$ribbon['cause'],
					'message'	=>	$ribbon['message']
				);
Then ur hack should work after you rebuild all ribbon postbits in the Admin CP.

-CMX
Reply With Quote
  #9  
Old 05-01-2006, 02:21 AM
MysticMoon's Avatar
MysticMoon MysticMoon is offline
 
Join Date: Aug 2004
Location: Michigan, USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope still no go
Reply With Quote
  #10  
Old 05-07-2006, 03:35 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After u do the edit, you have to rebuild all ribbon postbits from the Admin CP, then the $ribbon['message'] should be in the database.

-CMX
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 10:16 AM.


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.05056 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
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
  • (5)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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