vForums Support > Programming & Coding :: Code Requests & Support :: > I need an IC

I need an IC - Posted By [.tR] ookie1 (ookie1) on 15th Aug 08 at 9:43am
Image
So, I need this coded to work with Wrighty's Avvy Anywhere code. It is pretty self explanatory and if you need anything clarified let me know.

BTW: Italics indicates a link.

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 20th Aug 08 at 12:50am
Bump!

Re: I need an IC - Posted By Alex Bailey (system) on 20th Aug 08 at 12:53am
There is templates for info centers, wont be hard to try yourself {Smile}

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 22nd Aug 08 at 8:20am
I don't know HTML.

Re: I need an IC - Posted By Ross (admin) on 26th Aug 08 at 8:42am
I'm not familiar with this "Avvy Anywhere code". Any chance you can post the link to it for me? And just to note, I have made a start on the rest of it so will finish it once I see what you mean about the avatar {Smile}

Also, is the "Your have made 20 posts in 10 topics" supposed to link in with an existing code?

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 26th Aug 08 at 10:01am
Hi Ross,
http://support.virtualforums.co.uk/board/database/action/view_topic/topic/12374

No, that info, is it possible to grab it somehow?

Re: I need an IC - Posted By Ross (admin) on 26th Aug 08 at 10:43am
The post count is easy enough to display but unfortunately the number of topics you've participated in isn't stored anywhere. And off the top of my head, I can't think of any way it could be done with a code in the header/footer {Unsure}

One final question, what is the color of your borders? For that layout of columns the borders will have to be manually added for some cells.

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 29th Aug 08 at 9:38am
The border colour is #000000.

Can you just change that line to :

You have contributed ** posts to Teen Revival.

Thanks!

Re: I need an IC - Posted By Ross (admin) on 30th Aug 08 at 7:48pm
Hi,

I've just realized that the code I've done for this so far is still saved on my PC in the office (at least I hope it's still saved there {Shocked} ). Anyway, I'll be able to finish this for you first thing on Monday morning {Smile}

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 1st Sep 08 at 9:14am
Thanksies!

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 12th Sep 08 at 10:55pm
Have you got your computer back yet?

Re: I need an IC - Posted By Ross (admin) on 14th Sep 08 at 9:47pm
Sorry, I had completely forgotten about this. Things have been a bit manic since I've been back up and running. I'll do this for you in the morning.

And if you want to PM me the forum URL I'll apply some ad-free credits as way of an apology for my own forgetfulness {Smile}

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 16th Sep 08 at 8:45am
Thanks, and the url is in my sig.

Re: I need an IC - Posted By Ross (admin) on 16th Sep 08 at 11:28am
Code:
 
  1. <table id="info_center" align="center" cellpadding="0" cellspacing="1" class="border" width="760">
  2. <thead>
  3. <tr>
  4. <td class="title1" align="center" colspan="5" style="padding: 3px;">
  5. <span class="title">
  6. Information Centre
  7. </span>
  8. </td>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. <tr>
  13. <td>
  14. <table cellpadding="3" cellspacing="0" border="0">
  15. <tr>
  16. <td width="339" class="window1" rowspan="2" style="border-right: 1px solid #3575A5;">
  17. <div style="float: left; width: 220px; font-size: 12px;">
  18. Welcome to Teen Revival, <script>document.write(vf_displayname);</script>.<br />
  19. {if:guest}Please <a href="/action/login">Login</a> or <a href="/action/register">Register</a>{/if:guest}{if:member}You have {total_pms} private messages, {new_pms} is new<br /><a href="/action/pm_send">Click Here to check your pms</a>.<br /><br />You have contributed <script type="text/javascript">document.write(vf_posts);</script> posts to Teen Revival.{/if:member}
  20. </div>
  21. <div style="float: right; width: 100px;" id="av_hold">
  22. </div>
  23. </td>
  24. <td width="513" class="window1" colspan="3" style="border-right: 1px solid #3575A5; border-bottom: 1px solid #3575A5;">
  25. <span class="title">Users Online</span>
  26. </td>
  27. <td width="106" class="window1" style="border-bottom: 1px solid #3575A5;">
  28. <span class="title">Useful Links</span>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td width="313" class="window1" colspan="3" valign="top" style="border-right: 1px solid #3575A5;position:relative;">
  33. {online_str}
  34. <br />
  35. <br />
  36. <div style="position: absolute;bottom:0px;font-size:12px;width:313px;text-align:center;">User Legend Here</div>
  37. </td>
  38. <td width="106" class="window1" valign="top">
  39. <a href="/action/recent">Recent Posts</a><br />
  40. <a href="#">TR Shop</a><br />
  41. <a href="/action/members/">Members</a><br />
  42. <a href="#" onclick="if(get('extra_info', ID).style.display==''){get('extra_info', ID).style.display='none';}else{get('extra_info', ID).style.display='';}return false;">Extra Info</a>
  43. </td>
  44. </tr>
  45. </table>
  46. <table cellpadding="3" cellspacing="0" border="0" style="border-top: 1px solid #3575A5; display: none;" id="extra_info">
  47. <tr>
  48. <td width="430" class="window1" colspan="2" style="border-right: 1px solid #3575A5; border-bottom: 1px solid #3575A5;">
  49. <span class="title">Users Online in the past 24 hours</span>
  50. </td>
  51. <td width="125" class="window1" style="border-right: 1px solid #3575A5; border-bottom: 1px solid #3575A5;">
  52. <span class="title">General Stats</span>
  53. </td>
  54. <td width="205" class="window1" colspan="2" style="border-bottom: 1px solid #3575A5;">
  55. <span class="title">About Us</span>
  56. </td>
  57. </tr>
  58. <tr>
  59. <td width="430" class="window1" colspan="2" valign="top" style="border-right: 1px solid #3575A5;position: relative;">
  60. {today_str}
  61. <br />
  62. <br />
  63. <div style="position: absolute;bottom:0px;width:430px;font-size:12px;text-align:center;">User Legend Here</div>
  64. </td>
  65. <td width="125" class="window1" style="border-right: 1px solid #3575A5;">
  66. Teen Revival has:<br />
  67. {total_posts} posts<br />
  68. {total_topics} topics<br />
  69. {total_boards} boards<br />
  70. {total_categories} categories<br />
  71. {total_members} members
  72. </td>
  73. <td width="205" class="window1" colspan="2" valign="top">
  74. Teen Revival is a forum for
  75. Christian teens to meet new
  76. friends and grow in our Lord
  77. Jesus Christ. It also contains
  78. Shout It Out! as unique
  79. ministry using graphics to spread
  80. the good news.
  81. </td>
  82. </tr>
  83. </table>
  84. </td>
  85. </tr>
  86. </tbody>
  87. </table>
 


Use that in "Admin -> Manage Templates -> Info Center Templates" {Smile}

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 16th Sep 08 at 8:27pm
Thanks very much, Ross!

+5rep

Edit: Just a couple of things...

The Extra Info doesn't hide itself when you click the link again....

and...

Do you just use valign to get the legen to the bottom of the cell?

and...

the avatar anywhere doesn't work.

Re: I need an IC - Posted By Ross (admin) on 17th Sep 08 at 7:13pm
I've updated the code in my above to post so the extra info can be hidden again and to vertically align the legends. For the avatar anywhere, I believe the code doesn't take effect until you've modified your profile once.

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 18th Sep 08 at 10:05am
Thanks, and the avatar anywhere isn't working 'coz I forgot to put the code in the footers. lol {Tongue Out} early mornings ftw!

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 19th Sep 08 at 10:37am
Now, the User Legend is half way up the page. {Tongue Out}

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 22nd Sep 08 at 10:19am
Bump!

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 24th Sep 08 at 8:21am
Bump!

Re: I need an IC - Posted By Ross (admin) on 24th Sep 08 at 9:28am
Why does firefox fail? {Sad}

I've modified the code on your forum to fix it.

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 25th Sep 08 at 1:52am
Now all the bars on the slide out bit aren't aligned. I think I'll just change the User Legend back to where it was... it isn't that bad where it was.

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 26th Sep 08 at 11:08am
Bumpy!

Re: I need an IC - Posted By Ross (admin) on 26th Sep 08 at 12:17pm
Is it OK now?

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 26th Sep 08 at 9:35pm
Thanks, Ross! {Kiss}

Re: I need an IC - Posted By Ross (admin) on 28th Sep 08 at 5:19pm
Glad we got there in the end {Smile}

Re: I need an IC - Posted By [.tR] ookie1 (ookie1) on 28th Sep 08 at 10:24pm
Yeah, and thanks for your patience! {Tongue Out}