Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Recent News on Index
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • 4
  • 5
[SC] Recent News on Index
Tweet Topic Started: Jan 4 2009, 04:21 PM (2,613 Views)
HolySavior Jan 9 2009, 02:04 PM Post #21
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
Quote:
 
<script type="text/javascript">
/* Recent News Topics on Index Page
Created by HolySavior of ZBCode and Javascriptin.com */
if(location.href.match(/index/i)) {
iurl = main_url+"forum/109018/",

$(".c_forum a:contains('News')").parent().parent().append("<div>Recent News: <span id='recentnews'></span></div>")
$.get(iurl,function(response) {
$(".c_cat-mark ",response).next().children("a").slice(0, 5).each(function(){
var ilinks = $(this).html();
var linkhref = $(this).attr("href");
$("#recentnews").append("[ <a href='"+linkhref +"'>" + ilinks +"</a> ] ");
});
});
}
</script>


ok try that tell me if that works
Edited by HolySavior, Jan 9 2009, 03:41 PM.
Offline Profile Goto Top
 
PIWYRCOM Jan 9 2009, 02:25 PM Post #22
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
No not with Chrome on our forum.
It fact the words (Recent News) showed on the first one but not the topics.
Nothing shows with this one.

Just checked IE7 and this one not working in it.
It did with the first one in IE7.

Edited by PIWYRCOM, Jan 9 2009, 02:28 PM.
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
HolySavior Jan 9 2009, 02:34 PM Post #23
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
oh sorry i meant does that work for the users online thing haha. :P

i till try working on it for chrome and that later.
Offline Profile Goto Top
 
lirts Jan 9 2009, 03:37 PM Post #24


Posts:
204
Group:
Member
Member
#207
Joined:
Jul 22, 2008
Coding language
HTML/CSS
It gives me this error and doesn't work at all.

Line: 838
Character: 34
Error: Expected ')'
Code: 0
"We fear that which we do not see."

"Our minds are limited by what we know, not what we believe."
Posted Image
Legion of Shadows! Join The Community! Join The RP! Join the Legion!! Click the pic to view!

Offline Profile Goto Top
 
HolySavior Jan 9 2009, 03:41 PM Post #25
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
oops sorry fixed it. i edited my post :P
Offline Profile Goto Top
 
PIWYRCOM Jan 9 2009, 03:41 PM Post #26
Member Avatar
PrideInWhatYouRide

Posts:
368
Group:
Member
Member
#53
Joined:
Jul 17, 2008
Coding language
None
Quote:
 
Just checked IE7 and this one not working in it.
It did with the first one in IE7.


Sorry meant to say this includeds everything... members online still show in that forum plus this one does not show the topics..

EDIT:
Checking the update now.

I think it has fixed the on line issue, still hard to tell until more members show up.
(It did not change all of them showing up there in the past.)
Edited by PIWYRCOM, Jan 9 2009, 03:48 PM.
» TEST FORUM »
FIND IT HERE !
Spoiler: click to toggle

→ Infinite Results (themes)
→ ZBThemeZone (themes)

→ Big Boards (codes/themes)
→ ZBCodes (codes/themes)
→ The Coding Zone (codes/themes)

→ Code Index ('Official')
→ ZetaDoc's ('Official - How To Info')

Posted Image

Offline Profile Goto Top
 
lirts Jan 9 2009, 04:00 PM Post #27


Posts:
204
Group:
Member
Member
#207
Joined:
Jul 22, 2008
Coding language
HTML/CSS
Okay, it works but when people are viewing the index page it still says they are in the news forum.
"We fear that which we do not see."

"Our minds are limited by what we know, not what we believe."
Posted Image
Legion of Shadows! Join The Community! Join The RP! Join the Legion!! Click the pic to view!

Offline Profile Goto Top
 
HolySavior Jan 9 2009, 04:01 PM Post #28
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
oh well hmm... idk than
Offline Profile Goto Top
 
lirts Jan 9 2009, 04:07 PM Post #29


Posts:
204
Group:
Member
Member
#207
Joined:
Jul 22, 2008
Coding language
HTML/CSS
Is there another way you could do it, like with JQuery or something?
"We fear that which we do not see."

"Our minds are limited by what we know, not what we believe."
Posted Image
Legion of Shadows! Join The Community! Join The RP! Join the Legion!! Click the pic to view!

Offline Profile Goto Top
 
HolySavior Jan 9 2009, 04:09 PM Post #30
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
that is jQuery :(
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2
  • 3
  • 4
  • 5

Track Topic · E-mail Topic Time: 7:49 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy