- 贡献
- 0 点
- 最后登录
- 2011-9-18
- 阅读权限
- 30
- 精华
- 0
- 积分
- 438
- 帖子
- 325
- 威望
- 11
- 注册时间
- 2007-12-17
 
- UID
- 869484
- 帖子
- 325
- 威望
- 11
- 在线时间
- 1 小时
- 注册时间
- 2007-12-17
|
发表于 2008-4-27 14:44:53
|显示全部楼层
pree view avatar on formdisplay from ucenter avatar
support for discuz 6.1.0 GBK . UTF8
I finished this post, the post才被people to the very top of the original posts: http://www.discuz.net/thread-794704-1-1.html
I am Thai support discuz thai community : http://www.cazdesign.com/forums/index.php
screen shot :
demo : http://www.buachompoox.com/forum-2-1.html
skin preemod v. 1.0 for dz6.1.0 : http://www.discuz.net/thread-907430-1-1.html
modify list
1. templates/default/forumdisplay.htm view- <td class="author">
- <cite>
- <!--{if $thread['authorid'] && $thread['author']}-->
- <a href="space.php?uid=$thread[authorid]">$thread[author]</a>
- <!--{else}-->
- <!--{if $forum['ismoderator']}-->
- <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>
- <!--{else}-->
- {lang anonymous}
- <!--{/if}-->
- <!--{/if}-->
- </cite>
- <em>$thread[dateline]</em>
- </td>
复制代码 replace with- <td class="author">
-
- <div style="float:left;width:26px;padding-top:5px;">
- <a href="space.php?action=viewpro&uid=$thread[authorid]" style="float: left"><img src="http://youdomain/ucenter/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="24px" height="24px" style="border: 1px solid #C0C0C0" alt="<img src='http://youdomain/ucenter/avatar.php?uid=$thread[authorid]&size=middle' border='0' hspace='2' vspace='2' class='ava_border' width='100px' height='100px'>
- name : $thread[author].
- date : $thread[dateline]"/></a></div>
- <div style="float:left;padding:5px 0 0 10px;">
- <cite>
- <div style="width:73px;height:18px;overflow:hidden;">
- <!--{if $thread['authorid'] && $thread['author']}-->
- <a href="space.php?action=viewpro&uid=$thread[authorid]">$thread[author]</a>
- <!--{else}-->
- <!--{if $forum['ismoderator']}-->
- <a href="space.php?action=viewpro&uid=$thread[authorid]">{lang anonymous}</a>
- <!--{else}-->
- {lang anonymous}
- <!--{/if}-->
- <!--{/if}-->
- </div><p style="margin:-5px 0 0 0;font-family:Tahoma;font-size: 8pt">$thread[dateline]</p></cite>
- </div>
- </td>
复制代码 change http://youdomain/ucenter/ for your ucenter
2. include/javascript/common.js put the code under last line- //www.chenhailm.comALT
- var sPop = null;
- var postSubmited = false;
- document.write("<style type='text/css'id='defaultPopStyle'>");
- document.write(".cPopText { font-family: Verdana, Tahoma; background-color: #DDEEFF; border: 1px #8899AA dashed; font-size: 12px; padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; visibility: hidden; filter: Alpha(Opacity=80)}");
- document.write("</style>");
- document.write("<div id='popLayer' style='position:absolute;z-index:1000;' class='cPopText'></div>");
- function showPopupText(event) {
- if(event.srcElement) o = event.srcElement; else o = event.target;
- if(!o) {
- return;
- }
- MouseX = event.clientX;
- MouseY = event.clientY;
- if(o.alt != null && o.alt != '') {
- o.pop = o.alt;
- o.alt = '';
- }
- if(o.title != null && o.title != '') {
- o.pop = o.title;
- o.title = '';
- }
- if(o.pop != sPop) {
- sPop = o.pop;
- if(sPop == null || sPop == '') {
- $('popLayer').style.visibility = "hidden";
- } else {
- popStyle = o.dyclass != null ? o.dyclass : 'popupmenu_popup';
- $('popLayer').style.visibility = "visible";
- showIt();
- }
- }
- }
- function showIt() {
- $('popLayer').className = popStyle;
- $('popLayer').innerHTML = sPop.replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>");
-
- var bodySL, bodyST;
- if(window.pageXOffset){
- bodySL=window.pageXOffset;
- }else if(document.documentElement&&document.documentElement.scrollLeft){
- bodySL=document.documentElement.scrollLeft;
- }else if(document.body){
- bodySL=document.body.scrollLeft; //author: meizz
- }
-
- if(window.pageYOffset){
- bodyST=window.pageYOffset;
- }else if(document.documentElement&&document.documentElement.scrollTop){
- bodyST=document.documentElement.scrollTop;
- }else if(document.body){
- bodyST=document.body.scrollTop;
- }
-
- var bodyCW, bodyCH;
- if(window.innerWidth){
- bodyCW=window.innerWidth;
- }else if(document.documentElement&&document.documentElement.clientWidth){
- bodyCW=document.documentElement.clientWidth;
- }else if(document.body){
- bodyCW=document.body.clientWidth; //author: meizz
- }
-
- if(window.innerHeight){
- bodyCH=window.innerHeight;
- }else if(document.documentElement&&document.documentElement.clientHeight){
- bodyCH=document.documentElement.clientHeight;
- }else if(document.body){
- bodyCH=document.body.clientHeight;
- }
- if($('popLayer').clientWidth>300){
- var popWidth = 300;
- }else{
- var popWidth = $('popLayer').clientWidth;
- }
-
- var popWidth = $('popLayer').clientWidth;
- var popHeight = $('popLayer').clientHeight;
- var popLeftAdjust = MouseX + 12 + popWidth > bodyCW ? -popWidth - 24 : 0;
- var popTopAdjust = MouseY + 12 + popHeight > bodyCH ? -popHeight - 24 : 0;
- $('popLayer').style.left = (MouseX + 12 + bodySL + popLeftAdjust) + 'px';
- $('popLayer').style.top = (MouseY + 12 + bodyST + popTopAdjust) + 'px';
- }
- if(!document.onmouseover) {
- document.onmouseover = function(e) {
- var event = e ? e : window.event;
- showPopupText(event);
- };
- }
- //www.chenhailm.comALT
复制代码 3. templates/default/css_common.htm input code to last under line- img.show_border, a img.show_border {padding: 4px; background: #fff; border: 1px solid #bebebe}
- a:hover img.img_border {border-color: #FF9900}
- img.img_border, a img.img_border {border: 5px solid #FFFFFF}
- a:hover img.ava_border {border-color: #FF9900}
- img.ava_border, a img.ava_border {border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;}
复制代码 4. update cache to finish
[ 本帖最后由 buachompoox 于 2008-4-27 15:29 编辑 ] |
-
总评分: 金币 + 1
查看全部评分
|