|
Author | Topic: Did you know this? (Read 4,408 times) |
SubDevo Co-Admin Code Support member is offline
![[avatar] [avatar]](http://i486.photobucket.com/albums/rr230/FridayFiles/598px-Lunar_libration_109.gif)
Creator of LSD...
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2009 Gender: Male  Posts: 2,594 Location: MI, USA Karma: 102 |  | Did you know this? « Thread Started on Jan 29, 2011, 7:19pm » | |
You can still use the PB feature to list your latest topics that you participated in without switching to the new rectangle ad. Just like you'll see at PBS, but without the advertisement.
Put this code in your Global Footer.
<span id="latesttopics" style="display:none;"><!-- pb participated_topics --></span>
<script type="text/javascript"> // Move 'Latest topics participated in' var n=document.getElementById("mylatestthreads"); var m=document.getElementById("latesttopics"); if(n&&m&&pb_username!="Guest"){n.appendChild(m);m.style.display="";} </script>
Now, give an element an ID of "mylatestthreads" where you want the list of latest threads to appear.
Example: <span id="mylatestthreads"></span>
If the above does not work, and you KNOW that you did it right, do the following. Go into your forum "General Settings". Select "Rectangle (300x250 pixels)" in the banner preference section. Enable the "Info Box". In the dropdown under that section, select how many threads you want displayed. (NOT 0)
IMPORTANT! You must also remove [login_box] from the info box text area. If this is not done, the "Forgot Password" function will not work! Thanks to Eton Bones for this workaround!
Now save the settings. Go back to your "General Settings" and change it back to the Leaderboard banner and save. If after doing that, and the latest threads still don't show, then you have indeed got something wrong somewhere...
Any questions? Ask away...
Regards, SubDevo
EDIT: Since it seems a lot of folks are having issues trying to get this to work, I'll post a "sure fire" method. Make sure that you have enabled the "Latest Posts" (explained above). Remove all the code that you already tried (remove any IDs that you added to any elements too) and do the following:
Put this in your Global Header:Code:<table id="latestThreadTable" style="display:none;" align="center" width="92%" cellpadding="0" cellspacing="0"> <tr><td> <table class="bordercolor" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> <table class="bordercolor" width="100%" border="0" cellpadding="4" cellspacing="1"> <tr><td class="titlebg" align="center" width="100%"> Your Latest Topics </td></tr> <tr><td id="mylatestthreads" class="windowbg" align="center" width="100%"> </td></tr></table></td></tr></table></td></tr></table> |
|
Then put this in your Global Footer:Code:<span id="latesttopics" style="display:none;"><!-- pb participated_topics --></span> <script type="text/javascript"> // Move 'Latest topics participated in'
var m=document.getElementById("latesttopics"); var n=document.getElementById("mylatestthreads"); var b=document.getElementById("latestThreadTable"); var e=document.getElementById("rectangle_recent_topics_list"); if(n&&m&&e&&b&&pb_username!="Guest"){ m.style.display="";n.appendChild(m); b.style.display=""; e.innerHTML=e.innerHTML.replace(/<br(\s)?(\/)?>/gi," - "); } </script> |
|
The table I made (for the Header part), will be completely hidden from guests. And it will resize automatically with a forum resize code. It will also automatically get head/base images if you are using my Head/Base Images Everywhere or Proboard Forum Customize v1.0 code (or similar). The script (footer code) now also removes the line breaks, so each post is on it's own line (like we have here at IOD).
Add the "Latest topics participated in" to your news fader:
Location: Main FooterCode:<span id="latesttopics" style="display:none;"><!-- pb participated_topics --></span> <script type="text/javascript"> // Move 'Latest topics participated in' to News Fader by SubDevo
var n=document.getElementById("fscroller"),b,e,m; m=document.getElementById("latesttopics"); e=document.getElementById("rectangle_recent_topics_list"); if(n&&m&&e&&pb_username!="Guest"){ n=n.parentNode; b=n.cloneNode(false); b.id="mylatestthreads"; n.parentNode.parentNode.insertRow(-1).appendChild(b); m.style.display=""; b.appendChild(m); e.innerHTML=e.innerHTML.replace(/<br(\s)?(\/)?>/gi," - "); } </script> |
|
By default, the list will be centered. If you want it to be similar to IOD's list, add this CSS to your header CSS or put it just above the code. Adjust the width to taste. You may use percent instead of px if you wish.
<style type="text/css"> <!-- #rectangle_recent_topics {width: 500px;} #rectangle_recent_topics_list {text-align: left;} --> </style>
UPDATE 20/08/12: Due to a change at Proboards this code now only works if you're ad-free or using the rectangle advert option.
|
![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6left_off.gif) ![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6right_off.gif)
![[image] [image]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/IOD-MB-SubDevo-3.png) Why are you looking at my signature, [ME]? |
|
Paige Senior Member IOD's Music/Drama Queen member is offline
![[avatar] [avatar]](http://i1103.photobucket.com/albums/g462/hjllovespaige/ForeverinMyHeartAV.jpg)
On Hiatus, to RPG world
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
Joined: Apr 2009 Gender: Female  Posts: 547 Location: Malaysia Karma: 6 |  | Re: Did you know this? « Reply #1 on Jan 31, 2011, 9:22am » | |
Sub,about the ID,how can I know what to use or what not to use? And if I wanna put it on my table,can I know where and how to put?
|
|
|
SubDevo Co-Admin Code Support member is offline
![[avatar] [avatar]](http://i486.photobucket.com/albums/rr230/FridayFiles/598px-Lunar_libration_109.gif)
Creator of LSD...
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2009 Gender: Male  Posts: 2,594 Location: MI, USA Karma: 102 |  | Re: Did you know this? « Reply #2 on Jan 31, 2011, 1:01pm » | |
Heck, use anything. How about "mylatestthreads" for the ID? If you are putting it in a table, give a td an ID. <td id="mylatestthreads"></td>
Then put this in your footer:
<!-- pb participated_topics -->
<script type="text/javascript"> // Move 'Latest topics participated in' document.getElementById("mylatestthreads").appendChild (document.getElementById("rectangle_recent_topics")); </script>
The code will put the Latest Topics into the table cell with the ID of "mylatestthreads".
|
![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6left_off.gif) ![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6right_off.gif)
![[image] [image]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/IOD-MB-SubDevo-3.png) Why are you looking at my signature, [ME]? |
|
Paige Senior Member IOD's Music/Drama Queen member is offline
![[avatar] [avatar]](http://i1103.photobucket.com/albums/g462/hjllovespaige/ForeverinMyHeartAV.jpg)
On Hiatus, to RPG world
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
Joined: Apr 2009 Gender: Female  Posts: 547 Location: Malaysia Karma: 6 |  | Re: Did you know this? « Reply #3 on Feb 1, 2011, 9:01am » | |
Put the code into testing. If I when I put it in,the topics appeared in the top and the bottom of the board... HERE
PS : Btw,it's a bit outta topic,but your customize coding area for my Global Header Footer is not working well..
|
|
|
SubDevo Co-Admin Code Support member is offline
![[avatar] [avatar]](http://i486.photobucket.com/albums/rr230/FridayFiles/598px-Lunar_libration_109.gif)
Creator of LSD...
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2009 Gender: Male  Posts: 2,594 Location: MI, USA Karma: 102 |  | Re: Did you know this? « Reply #4 on Feb 1, 2011, 3:36pm » | |
Paige. I don't see this "<!-- pb participated_topics -->" in your code.
And I also don't see any element the the ID of "mylatestthreads"... It needs both.
Ok. Do this. Make SURE you have a cell in your table with an ID of "mylatestthreads". Then put this in the same footer as your table (global or main)
<span id="latesttopics" style="display:none;"><!-- pb participated_topics --></span>
<script type="text/javascript"> // Move 'Latest topics participated in' var n=document.getElementById("mylatestthreads"); var m=document.getElementById("latesttopics"); if(n&&m&&pb_username!="Guest"){n.appendChild(m);m.style.display="";} </script>
As far as the Jump to Code not working right. It is because your hitstats code doesn't have a title for it.
Replace this:
<!-- Histats.com START (standard)--> <script type="text/javascript">document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E"));</script>
With this:
<!-- Histats.com START (standard)--> <script type="text/javascript"> // Hitstats code document.write(unescape("%3Cscript src=%27http://s10.histats.com/js15.js%27 type=%27text/javascript%27%3E%3C/script%3E")); </script>
Regards, SubDevo
|
![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6left_off.gif) ![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6right_off.gif)
![[image] [image]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/IOD-MB-SubDevo-3.png) Why are you looking at my signature, [ME]? |
|
OJ Moderator member is offline
![[avatar] [avatar]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/GOTS-OjMod-Avvy.png)
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Nov 2010 Gender: Male  Posts: 976 Location: California Karma: 53 |  | Re: Did you know this? « Reply #5 on Feb 1, 2011, 11:02pm » | |
How can I put this above my NewsFader Sub? I already tried just putting the <!-- pb participated_topics --> part both in my global and main footers but it doesn't work. Any suggestions
|
|
|
SubDevo Co-Admin Code Support member is offline
![[avatar] [avatar]](http://i486.photobucket.com/albums/rr230/FridayFiles/598px-Lunar_libration_109.gif)
Creator of LSD...
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2009 Gender: Male  Posts: 2,594 Location: MI, USA Karma: 102 |  | Re: Did you know this? « Reply #6 on Feb 1, 2011, 11:38pm » | |
Why have it in another box? How about adding it your welcome tab in your tabbed table? Your welcome message is basically for guests getting them to join. If they are already a member the latest threads would look nice in that spot.
Remove the code you already put in. I already added a span to your table.
You just need to put this in your Main Footer. 
Code:<span id="latesttopics" style="display:none;"><!-- pb participated_topics --></span>
<script type="text/javascript"> // Move 'Latest topics participated in' var n=document.getElementById("mylatestthreads"); var m=document.getElementById("latesttopics"); if(n&&pb_username!="Guest"){n.appendChild(m);m.style.display="";} </script> |
|
|
![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6left_off.gif) ![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6right_off.gif)
![[image] [image]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/IOD-MB-SubDevo-3.png) Why are you looking at my signature, [ME]? |
|
OJ Moderator member is offline
![[avatar] [avatar]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/GOTS-OjMod-Avvy.png)
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Nov 2010 Gender: Male  Posts: 976 Location: California Karma: 53 |  | Re: Did you know this? « Reply #7 on Feb 1, 2011, 11:56pm » | |
Ok, I tried it but nothing happened Sub. Am I doing something wrong?
|
|
|
Paige Senior Member IOD's Music/Drama Queen member is offline
![[avatar] [avatar]](http://i1103.photobucket.com/albums/g462/hjllovespaige/ForeverinMyHeartAV.jpg)
On Hiatus, to RPG world
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
Joined: Apr 2009 Gender: Female  Posts: 547 Location: Malaysia Karma: 6 |  | Re: Did you know this? « Reply #8 on Feb 2, 2011, 12:43am » | |
OK,Subbed,I tried,now it works. But I just wonder can I kind of combining it to the Welcome Table I made?Like put the topics below the 3 rows? [SAMPLE]
Sorry for being troublesome,Ideas just comes right after it works..
And thanks a lot. ^^
PS: The Coding Area Customize code still not working after I put in.I shall ask you on that topic.
|
|
|
SubDevo Co-Admin Code Support member is offline
![[avatar] [avatar]](http://i486.photobucket.com/albums/rr230/FridayFiles/598px-Lunar_libration_109.gif)
Creator of LSD...
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2009 Gender: Male  Posts: 2,594 Location: MI, USA Karma: 102 |  | Re: Did you know this? « Reply #9 on Feb 2, 2011, 1:27am » | |
Feb 1, 2011, 11:56pm, OJ wrote:Ok, I tried it but nothing happened Sub. Am I doing something wrong?  |
|
Well, I don't think so. Here is the strange thing. I put your table code and the move latest threads code in one of my test forums. It worked perfectly. For the life of me, I can't get it to show in your forum. Can you give me "general settings" access on your forum? I have an idea...
|
![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6left_off.gif) ![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6right_off.gif)
![[image] [image]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/IOD-MB-SubDevo-3.png) Why are you looking at my signature, [ME]? |
|
OJ Moderator member is offline
![[avatar] [avatar]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/GOTS-OjMod-Avvy.png)
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Nov 2010 Gender: Male  Posts: 976 Location: California Karma: 53 |  | Re: Did you know this? « Reply #10 on Feb 2, 2011, 1:32am » | |
Ok, man you gottem
|
|
|
SubDevo Co-Admin Code Support member is offline
![[avatar] [avatar]](http://i486.photobucket.com/albums/rr230/FridayFiles/598px-Lunar_libration_109.gif)
Creator of LSD...
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2009 Gender: Male  Posts: 2,594 Location: MI, USA Karma: 102 |  | Re: Did you know this? « Reply #11 on Feb 2, 2011, 1:37am » | |
Fixed! Just what I thought. You changed it to show 0 latest threads in the new rectangle ad. Check your forum bro.
|
![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6left_off.gif) ![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6right_off.gif)
![[image] [image]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/IOD-MB-SubDevo-3.png) Why are you looking at my signature, [ME]? |
|
OJ Moderator member is offline
![[avatar] [avatar]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/GOTS-OjMod-Avvy.png)
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Nov 2010 Gender: Male  Posts: 976 Location: California Karma: 53 |  | Re: Did you know this? « Reply #12 on Feb 2, 2011, 1:42am » | |
Haha! Very cool man! But hey, will you ever be releasing that code to put it in the news fader?
|
|
|
SubDevo Co-Admin Code Support member is offline
![[avatar] [avatar]](http://i486.photobucket.com/albums/rr230/FridayFiles/598px-Lunar_libration_109.gif)
Creator of LSD...
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Mar 2009 Gender: Male  Posts: 2,594 Location: MI, USA Karma: 102 |  | Re: Did you know this? « Reply #13 on Feb 2, 2011, 1:46am » | |
We have a different newsfader here. Not the PB one. I MAY release the newsfader rebuild code later. Not sure when though. And why the heck did you change it to the rectangle ad? It's looks like crap.
|
![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6left_off.gif) ![[image] [image]](http://i486.photobucket.com/albums/rr230/FridayFiles/siganimation6right_off.gif)
![[image] [image]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/IOD-MB-SubDevo-3.png) Why are you looking at my signature, [ME]? |
|
OJ Moderator member is offline
![[avatar] [avatar]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Sigs/GOTS-OjMod-Avvy.png)
![[msn] [msn]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-msn_off.png)
![[homepage] [homepage]](http://vegasfoxxgfx.com/IOD/GOTS-Images/Misc/MP-ContactIcons/GOTS-Homepage_off.png) Joined: Nov 2010 Gender: Male  Posts: 976 Location: California Karma: 53 |  | Re: Did you know this? « Reply #14 on Feb 2, 2011, 1:50am » | |
Oh man I changed it accidentaly. My bad, but fixed.
|
|
|
|