The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Admin Signatures Parsed for vB Variables: by Logician Details »» | |||||||||||||||||||||||||||
Admin Signatures Parsed for vB Variables: by Logician
Developer Last Online: Feb 2016
Logician Hack : Admin signatures parsed for vb variables
Version 1.01 changes explained in the End of this post. As the thread name suggests, credit for this cute little modification belongs to Logician, the gr8 vB Magician, who distributes hacks without even taking a credit for them. Requested by: Myself :devious: --> here Context Searched through all vb.org website for this nature of hack and anything that visually comes near to this modification is /you /me hack but that hack did not suit my requirement. I wanted to show any vb variable of my liking in the signatures and this little modification by Logician does exactly the same and is much more dynamic... Any resemblance to my other hack is surely coincidental. What this hack does ? Pretty simple, this modification is only for Admin's signatures, which parses the admin signatures for all vb variables and presents it into a readable information. Utility: For example: i, as an admin, want my signatures to a show personalised message for members as follows: Dear [Aman Singh], if you like spending your time at these forums then please consider making a donation. [more details here...] Now, here the [membername] is dynamic and should change accordingly to every user who is reading the message in my signatures. After the modification, to achieve the above signatures, i enter the following information in my signatures: Dear $bbuserinfo[username], if you like spending your time at these forums then please consider making a donation. [more details here...] This mod makes the vb variable $bbuserinfo[username] dynamically change for each username to make the message a lot more personalised and more appealing. (and who knows someone might get encouraged to shell out a buck or two ) Some of useful vB variables are listed below: Code:
$bbuserinfo[username] : Username of the visitor $bbuserinfo[email] : email of the visitor $bbuserinfo[icq] : icq number of the visitor $bbuserinfo[aim] : aim nick of the visitor $bbuserinfo[yahoo] : yahoo id of the visitor $bbuserinfo[posts] : Post count of the visitor $bbuserinfo[homepage] : Home page of the visitor $bbuserinfo[field1] : Value of user profile 1 of the visitor $bbuserinfo[field2] : Value of user profile 2 of the visitor $bbuserinfo[field3] : Value of user profile 3 of the visitor $bbuserinfo[joindate] $bbuserinfo[lastvisit] $bbuserinfo[lastactivity] $bbuserinfo[lastpost] $bbuserinfo[reputation] $bbuserinfo[pmtotal] $bbuserinfo[pmunread] $bbuserinfo[lastvisitdate] File Edits : Two Files to Edit : i) forum_root/includes/functions_showthread.php ii) forum_root/member.php Difficulty : Still, one of the easiest hacks ever. Installation Time : Now it takes less than 3 mintues to apply the hack. Instructions : Code:
Edit includes/functions_showthread.php FIND -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= $post['signature'] = parse_bbcode($post['signature'], 'nonforum', $vboptions['allowsmilies']); -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ADD BELOW: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // Logician Hack : Admin signatures parsed for vb variables if ($post['usergroupid']==6) { @eval('$post[signature] = "' . addslashes($post['signature']) . '";'); $post['signature'] = stripslashes($post['signature']); } // Logician Hack : Admin signatures parsed for vb variables -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= That's all. ;) Logician \\=^)) Modificaton done by Aurous --> here This mod helps in parsing the signatures properly in member profiles. Code:
In member.php: Search for: // signature if ($userinfo['signature']) { require_once('./includes/functions_bbcodeparse.php'); Below, add this code: // Logician Hack : Admin signatures parsed for vb variables if ($userinfo['usergroupid']==6) { @eval('$userinfo[signature] = "' . addslashes($userinfo['signature']) . '";'); $userinfo['signature'] = stripslashes($userinfo['signature']); } // Logician Hack : Admin signatures parsed for vb variables 1.01 : Added modification by Aurous at post#8, this helps properly parsing the signatures in member profiles as well. Thanks Aurous. 1.00 : Released Instructions are attached herewith. The snapshot is attached herewith. Hey You!! Dont Forget to hit INSTALL !! Enjoy !! Aman Singh Show Your Support
|
Comments |
#22
|
||||
|
||||
can this be ported to vb3.5?
|
#23
|
||||
|
||||
Quote:
|
#24
|
||||
|
||||
can this be done for posts??
|
#25
|
||||
|
||||
one request can we get it so when you preview your sig you can see it as it should be seen by the users?
|
#26
|
||||
|
||||
this
Hey $bbuserinfo[username] i see you havent been on since $bbuserinfo[lastactivity] , have you read the Rules Lately. returns this... any ideas? Hey sketch42 i see you havent been on since 1123269876 , have you read the Rules Lately. |
#27
|
|||
|
|||
thanks, it worked like a charm!
|
#28
|
||||
|
||||
Quote:
|
#29
|
|||
|
|||
Is this going to be ported? *looks hopefully*
|
#30
|
|||
|
|||
I would also love if this was ported. It really increased the number of donations I got.
stacy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|