sweet22
08-27-2003, 03:41 PM
is it possible to devise a hack that you would place a code like say "$groupsig" in the signature template and it would generate the designated image for that users group they are located in because i want to make it so my staff has banners but i dont have to put the code in their sig everytime. so is this possible at all?
sweet22
08-30-2003, 02:08 PM
no one can do this?=( :cry:
assassingod
08-30-2003, 02:51 PM
Try this:
Run this query:
ALTER TABLE usergroup ADD sigimg char(100)
Open admin/usergroup.php, find:
makeyesnocode("Viewable on <a href=\"../showgroups.php?s=$session[sessionhash]\" target=\"_blank\">Show Groups</a>?","showgroup",1);
Under Add:
makeinputcode("Signature Image<br>file name and extension only","sigimg");
find:
showgroup,
replace with
showgroup,sigimg,
find
$showgroup,
replace with
$showgroup,'".addslashes($sigimg)."'
Find:
makehiddencode("showgroup",0);
}
under add
makeinputcode("Signature Image<br>file name and extension only","sigimg",$usergroup[sigimg]);
find
showgroup=".intval($showgroup).",
replace with
showgroup=".intval($showgroup).",sigimg='".addslashes($sigimg)."',
Open admin/functions.php
find:
eval("\$post[buddy] = \"".gettemplate("postbit_buddy")."\";");
under add
eval("\$post[ugsig] = \"".gettemplate("postbit_ugsig"). "\";");
Create a new template 'postbit_ussig' with the the following contents:
<img src="{imagesfolder}/$usergroup[sigimg]">
Open template 'postbit_signature' and add anywhere you want
$post[ugsig]
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.