The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#22
|
||||
|
||||
It doesn't work?
Make sure you change the field values correctly in the Functions.php AND all the templates. The defaults are listed in the readme. It should work fine if all of that's done. I haven't noticed that it slows down the browser at all, mine still works fine. |
#23
|
||||
|
||||
In fact, if you really want, PM me with the field IDs you want to use. I can change everything for you and then see if it works.
|
#24
|
||||
|
||||
I triple checked it, with each of the field ids two higher than in functions.php and in the templates (my IDs started at 8)
|
#25
|
||||
|
||||
And you're still having a problem? Check to make sure your fields match the ones that were the defaults (i.e., the text color field is field8, et cetera). If you're still getting a problem, show me your functions.php section.
|
#26
|
||||
|
||||
HERE'S THE PROBLEM PEOPLE
I knew I'd screw something up in my first hack. Template edit - postbit template REPLACE: $post[username] WITH: $post[namecolor] That should solve everything. |
#27
|
||||
|
||||
Just spent hours removing this hack, now I've got to install it again
|
#28
|
||||
|
||||
But thanks for the fix
|
#29
|
||||
|
||||
Nice hack. I like it.
|
#30
|
|||
|
|||
I like the looks of it but... when applied the user name doesn't show up at all? I've used the default profile fields and edited the additional file you posted. Here's what my "functions.php" looks like. Maybe you can tell me what's wrong? I hope cause this is a really cool hack. Thanks
Code:
<?php error_reporting(7); // start prep shutdown function $noshutdownfunc = 0; // #CHANGE ME IF YOU CAN'T USE register_shutdown_function $ourtimenow = time(); // Make this available to all files // Defined constants used for user field. // Hope to convert all user fields into one integer. define ("SHOWSIGNATURES", 1); define ("SHOWAVATARS", 2); define ("SHOWIMAGES", 4); define ("SHOWVBCODE", 8); unset($templatecache); // ###################### Start getpagenav ####################### // template-based page splitting system from 3dfrontier.com :) function getpagenav($results,$address) { global $perpage,$pagenumber,$pagenavpages; if ($results <= $perpage) { return ""; } $totalpages = ceil($results/$perpage); if ($pagenumber>1) { $prevpage = $pagenumber-1; eval("\$prevlink = \"".gettemplate("pagenav_prevlink")."\";"); } if ($pagenumber<$totalpages) { $nextpage = $pagenumber+1; eval("\$nextlink = \"".gettemplate("pagenav_nextlink")."\";"); } while ($curpage++<$totalpages) { if ( ( $curpage <= $pagenumber-$pagenavpages || $curpage >= $pagenumber+$pagenavpages ) && $pagenavpages!=0 ) { if ($curpage==1) { eval("\$firstlink = \"".gettemplate("pagenav_firstlink")."\";"); } if ($curpage==$totalpages) { eval("\$lastlink = \"".gettemplate("pagenav_lastlink")."\";"); } } else { if ($curpage==$pagenumber) { eval("\$pagenav .= \"".gettemplate("pagenav_curpage")."\";"); } else { eval("\$pagenav .= \"".gettemplate("pagenav_pagelink")."\";"); } } } eval("\$pagenav = \"".gettemplate("pagenav")."\";"); return $pagenav; } // ###################### Start buildpostbit ####################### $firstnew = 0; function getpostbit($post) { // sorts through all the stuff to return the postbit template // user global $bbuserinfo,$session,$ignore,$cookietimeout; // showthread global $counter,$firstnew,$sigcache,$highlight,$postid,$forum; // global options global $showdeficon,$displayemails,$enablepms,$allowsignatures,$wordwrap,$dateformat,$timeformat,$logip,$replacewords,$postsperday,$avatarenabled,$registereddateformat,$viewattachedimages; $datecut = time() - $cookietimeout; if ($counter%2==0) { $post[backcolor]="{firstaltcolor}"; $post[bgclass] = "alt1"; } else { $post[backcolor]="{secondaltcolor}"; $post[bgclass] = "alt2"; } // find first new post if (isset($bbuserinfo[lastvisit])) { if ($post[dateline]>$bbuserinfo[lastvisit] and $firstnew==0) { $firstnew=1; $post[firstnewinsert]="<a name=\"newpost\"></a>"; } else { $post[firstnewinsert]=""; } } $post[postdate]=vbdate($dateformat,$post[dateline]); $post[posttime]=vbdate($timeformat,$post[dateline]); if ($wordwrap!=0) { $post[title]=dowordwrap($post[title]); } if ($post[attachmentid]!=0 and $post[attachmentvisible]) { $post[attachmentextension]=strtolower(getextension($post[filename])); if ($post[attachmentextension]=="gif" or $post[attachmentextension]=="jpg" or $post[attachmentextension]=="jpeg" or $post[attachmentextension]=="jpe" or $post[attachmentextension]=="png") { if (($viewattachedimages) and ($bbuserinfo[userid]==0 or $bbuserinfo[showimages])) { eval("\$post[attachment] = \"".gettemplate("postbit_attachmentimage")."\";"); } else { eval("\$post[attachment] = \"".gettemplate("postbit_attachment")."\";"); } } else { eval("\$post[attachment] = \"".gettemplate("postbit_attachment")."\";"); } } else { $post[attachment]=""; } //AnkisethGallant's Username Edits if ($post[field6]!="" && $post[field9]=="1" && $post[field10]=="1") { eval("\$post[namecolor] = \"".gettemplate("postbit_nameciu")."\";"); } elseif ($post[field6]!="" && $post[field9]=="1" && $post[field10]=="2") { eval("\$post[namecolor] = \"".gettemplate("postbit_nameci")."\";"); } elseif ($post[field6]!="" && $post[field9]=="2" && $post[field10]=="2") { eval("\$post[namecolor] = \"".gettemplate("postbit_namec")."\";"); } elseif ($post[field6]!="" && $post[field9]=="2" && $post[field10]=="1") { eval("\$post[namecolor] = \"".gettemplate("postbit_namecu")."\";"); } elseif ($post[field6]=="" && $post[field9]=="1" && $post[field10]=="1") { eval("\$post[namecolor] = \"".gettemplate("postbit_nameiu")."\";"); } elseif ($post[field6]=="" && $post[field9]=="1" && $post[field10]=="2") { eval("\$post[namecolor] = \"".gettemplate("postbit_namei")."\";"); } elseif ($post[field6]=="" && $post[field9]=="2" && $post[field10]=="1") { eval("\$post[namecolor] = \"".gettemplate("postbit_nameu")."\";"); } else { eval("\$post[namecolor] = \"".gettemplate("postbit_namenothing")."\";"); } if ($post[edituserid]!=0) { if ($post['edituserid']!=$post['userid']) { $edituser=getuserinfo($post[edituserid]); } else { $edituser = $post; } $post[edittime]=vbdate($timeformat,$post[editdate]); $post[editdate]=vbdate($dateformat,$post[editdate]); eval("\$post[editedby] = \"".gettemplate("postbit_editedby")."\";"); } else { $post[editedby]=""; } |
#31
|
||||
|
||||
That functions.php section looks right from what I remember (I'm not at my comp). When you say you edited the file, you mean the postbit template, right?
MAKE SURE ALL your profile fields match the correct FIELD NUMBERS from what I specified in the readme. Also, make sure ALL the templates are done correctly. If you're still having problems I'll try and figure it out. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|