TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 282
  • Total: 282

[Discussion] Tabbed Block by Mouse Over

Started by Freddy, September 05, 2009, 05:31:46 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

lurkalot

Sounds excellent. The more flexible the better IMO.  8) O0

Quote from: Freddy on September 26, 2010, 01:22:37 PM
There's no mention of that variable in the external code, so I guess it must be a TP problem.

Bloc, do you have any ideas ?

This is code in an external file and uses TPortal_init(); to link up with TP.  Is it possible a variable is not getting set ?

Bloc, any Ideas on the above please?

bloc

Yes, "show_download" is the $context['TPortal']['show_download'] variable, which should also exist in tp_settings table as "show_download". It dictates whether Download manager is on or off.

Check if you got it in the tp_settings table first.

lurkalot

Quote from: Bloc on September 26, 2010, 06:18:10 PM

Check if you got it in the tp_settings table first.


Bloc, I have "show_download"  present in both my testsite databases.  one turned on =1 one turned off =0

agent47

Pretty awesome and just what I was looking for although now that I installed the tabbed menu my image slider which runs on ajax aswell is all messed up. Plz help me out here someone. Take a look at the site and you'll see what I'm talking about.

http://superherocomics.tk/index.php

IchBin

Well we have no idea what your image slider does or how it was written. Generally if some thing like this happens when you introduce new code to your site, it means there is something that conflicts between the two codes. There's no possible way we could tell what unless we wrote all the code.

agent47

#115
Hey guys I'm trying to make the tabs display the "recent 10 posts" from various boards on each tab. Can someone be kind enough to help me out here.

This is my site. I would like to display last 10 posts from like boards DC Movies, Marvel Movies etc.....

I would really appreciate the help guys. :)

Site info:
http://superherocomics.tk/index.php
SMF 2.0RC3
TinyPortal 1.0 beta 5.2
English
Noize

IchBin

It'd probably help if you showed what code you were using since this topic has a lot of different code snippets in it.

agent47

Quote from: IchBin on November 19, 2010, 03:29:51 PM
It'd probably help if you showed what code you were using since this topic has a lot of different code snippets in it.
Well currently i'm using the default code which is:

// Set which categories you want to pull recent articles from.  Comma separated ! 

$categories = '1,2,3,4';

global $boardurl;

echo '
<script type="text/javascript">
var cssNode = document.createElement("link");
cssNode.type = "text/css";
cssNode.rel = "stylesheet";
cssNode.href = "' , $boardurl , '/tabbed_block/tabbedBlockStyle.css";
cssNode.media = "screen";
cssNode.title = "dynamicLoadedSheet";
document.getElementsByTagName("head")[0].appendChild(cssNode);
</script>

<script src="tabbed_block/mouseovertabs.js" type="text/javascript">
/***********************************************
* Mouseover Tabs Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>


<div id="mytabsmenu" class="tabsmenuclass">
<ul>
<li><a href="#" rel="gotsubmenu[selected]">New Topics</a></li>
<li><a href="#" rel="gotsubmenu">Tools</a></li>
<li><a href="#" rel="gotsubmenu">New Articles</a></li>
<li><a href="#" rel="gotsubmenu">New Files</a></li>
<li><a href="#" rel="gotsubmenu">Statistics</a></li>
<li><a href="#" rel="gotsubmenu">Member</a></li>
<li><a href="#" rel="gotsubmenu">Search</a></li>
</ul>
</div>

<div id="mysubmenuarea" class="tabsmenucontentclass">
<!--1st link within submenu container should point to the external submenu contents file-->
<a href="tabbed_block/mouseoverTabContent.php?categories=' , $categories , '" style="visibility:hidden">Sub Menu contents</a>
</div>

<script type="text/javascript">
//mouseovertabsmenu.init("tabs_container_id", "submenu_container_id", "bool_hidecontentsmouseout")
mouseovertabsmenu.init("mytabsmenu", "mysubmenuarea", false)
</script>
';


I need to recode the whole thing as in I want each tab to display the most recent 10 posts of various boards. I hope you guys know what I mean. I'm really a noob at coding so I would really appreciate the help peepz...I really would :)

ZarPrime

Quote from: agent47 on November 18, 2010, 11:18:02 PM
Hey guys I'm trying to make the tabs display the "recent 10 posts" from various boards on each tab. Can someone be kind enough to help me out here.

If you just want to display the 10 most recent topics from a board in a particular tab, just use the code below for that tab (change "$include_boards = 3" to what ever board number you want the topics from).


ssi_recentTopics($num_recent = 10, $exclude_boards = null, $include_boards = 3, $output_method = 'echo');


Scroll to the very bottom of me test site to see what it looks like in a bottom panel block.  I't's not really formatted nicely but if you need some special formatting for it, I'm sure someone here could help.  Here's the link to my test site to see it at the bottom --> http://talesofthehavenexpanse.com/smf2test/index.php

ZarPrime

agent47

Quote from: ZarPrime on November 20, 2010, 01:37:10 PM
Quote from: agent47 on November 18, 2010, 11:18:02 PM
Hey guys I'm trying to make the tabs display the "recent 10 posts" from various boards on each tab. Can someone be kind enough to help me out here.

If you just want to display the 10 most recent topics from a board in a particular tab, just use the code below for that tab (change "$include_boards = 3" to what ever board number you want the topics from).


ssi_recentTopics($num_recent = 10, $exclude_boards = null, $include_boards = 3, $output_method = 'echo');


Scroll to the very bottom of me test site to see what it looks like in a bottom panel block.  I't's not really formatted nicely but if you need some special formatting for it, I'm sure someone here could help.  Here's the link to my test site to see it at the bottom --> http://talesofthehavenexpanse.com/smf2test/index.php

ZarPrime
ZarPrime, if you could be kind enough to tell me where exactly that piece of code goes?
In the "mouseoverTabContent.php" or the php block that I appended via TinyPortal?

This website is proudly hosted on Crocweb Cloud Website Hosting.