The Arcive of vBulletin Modifications Site. |
|
Only display Ribbon Comments in Postbit. Details »»
|
|||||||||||||||||||||||||
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
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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&userid=" . $userinfo['userid'] . "\"><img src=\"images/ribbons/" . $ribbon['ribbonname'] . ".gif\" title=\"" . $ribbon['cause'] . " - " . $ribbon['username'] . "\" border=\"0\"></a> "; -CMX |
|
#3
|
||||
|
||||
|
I changed the title part to this
Code:
title=\"" . $ribbon['message'] . "\" 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? |
|
#4
|
|||
|
|||
|
The only thing I could think of to try, is to try putting addslashes there.
Code:
title=\"" . addslashes($ribbon['message']) . "\" |
|
#5
|
||||
|
||||
|
Nope still nothing "pops up" :\
|
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
Quote:
HTML Code:
<img src="images/ribbons/darkblue.gif" title="" border="0">
|
|
#8
|
|||
|
|||
|
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'] ); 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'] ); -CMX |
|
#9
|
||||
|
||||
|
nope still no go
|
|
#10
|
|||
|
|||
|
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 |
![]() |
|
|