vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Module CMPS: AJAX Tabbed Content (https://vborg.vbsupport.ru/showthread.php?t=154653)

albn 08-12-2007 05:23 PM

This is an excellent mod. I am wondering, does the tabs support bb code? I am guessing it does not, but of that is the case, that is fine, I'll just use regular html/css.

*installed

Lost Heaven 08-13-2007 03:26 AM

Quote:

Hi,
Thanks for your mod.

I got a problem.
I have it all loaded but 'makeactive' contents is not auto loading.
Just display Tab1, Tab2, Tab3 and blank box.
But I can see this error when I clicked Tab1.
Quote:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/vba_cmps_include_template.php on line 47
Congrats, Insert Dynamic or Static Code here for Tab 1
I didn't customised any files, Just uploaded attached files.
I think I followed all the steps perfectly.

what am i doing wrong?

Please help....

Thanks
I have same this error too.

bobster65 08-13-2007 12:10 PM

Quote:

Originally Posted by rainyleaves (Post 1315916)
Hi,
Thanks for your mod.

I got a problem.
I have it all loaded but 'makeactive' contents is not auto loading.
Just display Tab1, Tab2, Tab3 and blank box.
But I can see this error when I clicked Tab1.


I didn't customised any files, Just uploaded attached files.
I think I followed all the steps perfectly.

what am i doing wrong?

Please help....

Thanks :)

Quote:

Originally Posted by Lost Heaven (Post 1316298)
I have same this error too.

Do you guys have any other custom CMPS Modules (ones that don't come with CMPS) that call custom java scripts? ... its odd that its echoing the content as well as the error.. also, what version of CMPS are you using?

rainyleaves 08-13-2007 12:36 PM

Quote:

Originally Posted by bobster65 (Post 1316488)
Do you guys have any other custom CMPS Modules (ones that don't come with CMPS) that call custom java scripts? ... its odd that its echoing the content as well as the error.. also, what version of CMPS are you using?

Thanks for your reply.
Use CMPS 3.0. + Many Module.

bobster65 08-13-2007 12:53 PM

Quote:

Originally Posted by rainyleaves (Post 1316502)
Thanks for your reply.
Use CMPS 3.0. + Many Module.

You can either post your code or PM it to me.. post both the template and php file..

rainyleaves 08-13-2007 01:43 PM

Quote:

Originally Posted by bobster65 (Post 1316513)
You can either post your code or PM it to me.. post both the template and php file..

Do you mean 'AJAX Tabbed Content''s template and php file?
I didn't customised.

Thanks :)

bobster65 08-13-2007 01:56 PM

Quote:

Originally Posted by rainyleaves (Post 1316543)
Do you mean 'AJAX Tabbed Content''s template and php file?
I didn't customised.

Thanks :)

yes

Lost Heaven 08-13-2007 02:33 PM

i think i didn't customised any template and php file :(
BTW,can you tell me how to create a tab with recent posts?I confused when look the code in recentpost.php :(

bobster65 08-13-2007 03:19 PM

Quote:

Originally Posted by Lost Heaven (Post 1316577)
i think i didn't customised any template and php file :(
BTW,can you tell me how to create a tab with recent posts?I confused when look the code in recentpost.php :(

Well, I've had a few peeps that when editing the template and php file to change the paths to fit their site, make a simple syntax error... the only thing that I can think of without taking a look at it is there might be a possible conflict with another Custom Module that is using a custom java script. What the link to your site?

bobster65 08-15-2007 04:44 PM

AJAX TABS version 2.0 is now available as the primary option of this thread.... please review the new information as released today.

Version 1.0 information has been moved into the 2nd post of this thread for historical purposes as well as reference for those that have installed.

Thanks.. Bobster

radarhunter 08-15-2007 05:02 PM

the one u`ve updated now i`ve been using this script for a very long time.....

Anyways nice to see it here too :D


But what i`m not able to figure out is how to embeb latest posts module codes into this ...........

bobster65 08-15-2007 05:23 PM

Quote:

Originally Posted by radarhunter (Post 1318258)
the one u`ve updated now i`ve been using this script for a very long time.....

Anyways nice to see it here too :D


But what i`m not able to figure out is how to embeb latest posts module codes into this ...........

download the zip file and check out the sample php files (read the instructions.txt file as well) .. this should get you what you are after ;)

efil 08-16-2007 04:43 AM

Hi,
Thank you for the useful mod.:up:

I have some problems with version 2.

1. The tabexterna does not fit the screen. (see attach pic).

2. My site is in hebrew, i need the tabs from right to left.

It's not working good with rtl? (see attach pic in explorer and in firefox).

2. How can i force open a specific tab as default?

bobster65 08-16-2007 12:53 PM

Quote:

Originally Posted by efil (Post 1318656)
Hi,
Thank you for the useful mod.:up:

I have some problems with version 2.

1. The tabexterna does not fit the screen. (see attach pic).

2. My site is in hebrew, i need the tabs from right to left.

It's not working good with rtl? (see attach pic in explorer and in firefox).

2. How can i force open a specific tab as default?

That is a CSS issue. Looks like you need to right justify. Just play around with the CSS file a little. I'll try and simulate it and see if I can come up with a solution for ya..

rainyleaves 08-17-2007 03:55 AM

You didn't upload 'AJAX Tabs - Version 2.0' zip file.
Please upload...

bobster65 08-17-2007 02:21 PM

Quote:

Originally Posted by rainyleaves (Post 1319408)
You didn't upload 'AJAX Tabs - Version 2.0' zip file.
Please upload...

:eek: weird.. I uploaded it, then took it off to upload a new one with a few more examples and uploaded it again.. it was on before I left last night lol.... anywho, its there now :up:

rainyleaves 08-17-2007 05:09 PM

Quote:

Originally Posted by bobster65 (Post 1319667)
:eek: weird.. I uploaded it, then took it off to upload a new one with a few more examples and uploaded it again.. it was on before I left last night lol.... anywho, its there now :up:

Thanks :)

bobster65 08-17-2007 05:35 PM

I fixed a small problem in the .js file that was causing the "selected" tab not to preload with session persistance on (worked with it off).. it now preloads correctly... attached is the new .js file (which I will add to the zip file as well)..

Thanks... Bobster

bobster65 08-17-2007 05:47 PM

Quote:

Originally Posted by efil (Post 1318656)
2. How can i force open a specific tab as default?

add class="selected" to the li tag of the Tab you wish to force open.

Code:

<li class="selected"><a href="http://www.domain.com/forums/tabexternal.php" rel="ajaxcontentarea">Tab 1</a></li>
THEN

either edit the .js file from this

Code:

var enabletabpersistence=1
to this

Code:

var enabletabpersistence=0
OR

download the new .js file that I attached in the above post or grab it from the attached zip file from the main post of this thread....

The issue was a bug with persistence which has been fixed now. They both work together as long as you use the new .js file.

Thanks.. Bobster

bobster65 08-17-2007 06:51 PM

Quote:

Originally Posted by efil (Post 1318656)
Hi,
Thank you for the useful mod.:up:

I have some problems with version 2.

1. The tabexterna does not fit the screen. (see attach pic).

2. My site is in hebrew, i need the tabs from right to left.

It's not working good with rtl? (see attach pic in explorer and in firefox).

To right align the tabs, just find this line in the CSS file:

Code:

text-align: right; /*set to left, center, or right to align the menu as desired*/
A value of "right" like above should do it.

y2krazy 08-17-2007 10:08 PM

Very nice mod I must say! I do have one question, though...

Is there anything like this available for the MEMBERINFO page? I would like to allow my members to add their own personal 'tabs' specifically for, let's say, and individual character they play in a role-playing game (up to X amount of tabs). It would be really nice to have a feature like you have made for CMPS made available for use on the main forums. Thanks for your time!

bobster65 08-17-2007 10:36 PM

Quote:

Originally Posted by y2krazy (Post 1319912)
Very nice mod I must say! I do have one question, though...

Is there anything like this available for the MEMBERINFO page? I would like to allow my members to add their own personal 'tabs' specifically for, let's say, and individual character they play in a role-playing game (up to X amount of tabs). It would be really nice to have a feature like you have made for CMPS made available for use on the main forums. Thanks for your time!

Actually, the Tabs technology can be used within the forums as well.... its not just limited to CMPS.. I think you could accomplish what you are after fairly easy by using additional profile fields and a few template edits.... (don't hold me to do it for ya tho ;) ) I'll do a little playing around and see if I can come up with something that might work for ya.

y2krazy 08-17-2007 11:02 PM

Quote:

Originally Posted by bobster65 (Post 1319923)
Actually, the Tabs technology can be used within the forums as well.... its not just limited to CMPS.. I think you could accomplish what you are after fairly easy by using additional profile fields and a few template edits.... (don't hold me to do it for ya tho ;) ) I'll do a little playing around and see if I can come up with something that might work for ya.

That would be sooo good to see. If you decide to release it, it will surely help more than just me out. ;)

jasculs 08-27-2007 05:44 AM

I keep trying to figure it out, but I can't seem to get my recent posts in the tabs to look like how you have it or how it would like in a vbadvanced center module

bobster65 08-27-2007 01:49 PM

Quote:

Originally Posted by jasculs (Post 1326504)
I keep trying to figure it out, but I can't seem to get my recent posts in the tabs to look like how you have it or how it would like in a vbadvanced center module

PM me when you get a chance and I will try and help you out to get the result you are looking for.

ahmednadir 11-03-2007 03:26 PM

WOOOW
This is EXACTLY!!! what I was looking for
it just come to my mind 2 minutes ago so I logged in to check if its here and there it is.
alot of editing but hope I don't mess up anywhere down the line.lol

thanks alot mate
"installed"

class101 11-14-2007 05:49 AM

wow I was about to miss this awesome hack, thanks again bobster

class101 11-14-2007 08:21 AM

I'm also getting the same error some users mentionned also

Code:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/vba_cmps_include_template.php on line 47

class101 11-14-2007 09:20 AM

ok I have found how to fix this error ,

you should include cmps files before the vb global one

that way:
PHP Code:

chdir('../');

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once(
getcwd().'/includes/vba_cmps_include_template.php');
require_once(
getcwd().'/includes/vba_cmps_global.php');
require_once(
getcwd().'/global.php'); 


Gaetan 11-14-2007 09:39 AM

wooooooooow i love it Oo

thanks a lot !!

bobster65 11-14-2007 12:22 PM

Hey Guys.... there is a newer version of this here:

AJAX Tabs Content Script v2
https://vborg.vbsupport.ru/showthread.php?t=161197

It has the same features as this one, but with some added functionality that you might be interested in.

class101 11-14-2007 12:35 PM

yup I have seen it but Im looking yet at another method you can try on vbseo.com homepage, it uses Adobe Spry

Interesting code, you may look it to update your addon

bobster65 11-14-2007 12:56 PM

Quote:

Originally Posted by class101 (Post 1382340)
yup I have seen it but Im looking yet at another method you can try on vbseo.com homepage, it uses Adobe Spry

Interesting code, you may look it to update your addon

Sweet... you would implement it pretty close to the same way. Bookmarking it to test things out soon :cool:

class101 11-14-2007 05:35 PM

with Spry my tabexternal.php is in the /modules/ directoy

PHP Code:

<?php

$includetab1 
.= '<table cellspacing="2" cellpadding="0" width=100%><tr> <td class="alt2"><span class="smallfont">Welcome Back To SITE NAME&nbsp;<b>' $vbulletin->userinfo['username'] . '!</b><br><br>Hope you are enjoying the off season so far.<br><br> The Draft, Mini Camps & Hall of Fame Weekend Events are complete, Train Camps are in full swing and Preseason Games have started to kick off!<br><br> Im sure these next few weeks will be fun to follow and make the upcoming season even more exciting. <br><br>Good luck with your team&nbsp;<b>' .  $vbulletin->userinfo['username'] . '.</b></span></td></tr></table>';

eval(
'$home["$mods[modid]"][\'content\'] .= "' fetch_template('adv_portal_Tab_Block_Main') . '";');
?>

The adv_portal_Tab_Block_Main looks like:

PHP Code:

<script type="text/javascript" src="http://WEBSITE.com/forums/tabs/ajaxtabs.js"></script>

<
div id="TabbedPanels1" class="TabbedPanels" style="padding-bottom:$vba_style[portal_vspace]px" >
<
ul class="TabbedPanelsTabGroup">
<
li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
<
li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
<
li class="TabbedPanelsTab" tabindex="0">Tab 3</li>
<
li class="TabbedPanelsTab" tabindex="0">Tab 4</li>
</
ul>



<
div class="TabbedPanelsContentGroup">
    <
div class="TabbedPanelsContent">$includetab1</div>
    <
div class="TabbedPanelsContent">$includetab2</div>
        <
div class="TabbedPanelsContent">$includetab3</div>
    <
div class="TabbedPanelsContent">$includetab4</div>
</
div>

</
div>

<
script type="text/javascript">
var 
TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</
script

then create the php module, selecting tabexternal.php and name the template it will use :)
havent tested to add much tabs yet but I guess you can add them in the same tabexternal.php file then.

bobster65 11-14-2007 05:45 PM

Cool Beans! I'm playing around with their Slider & Accordian Stuff... works pretty slick.

class101 11-15-2007 08:12 AM

looks like working so to define the tabbed module for example as a homepage's template, then you define unique locations in the cmps options that are locations of differents tabs, then you can choose to display for example recent threads within the Tabbed module defined as a homepage , that way you quickly add others modules within tabs without so much php editing :)

turkforum 11-15-2007 08:25 AM

Quote:

looks like working so to define the tabbed module for example as a homepage's template, then you define unique locations in the cmps options that are locations of differents tabs, then you can choose to display for example recent threads within the Tabbed module defined as a homepage , that way you quickly add others modules within tabs without so much php editing
Reply With Quote
I am kind a comfused.. :) Can you explain us these step by step?
Especially in this step, vBa CMPS> Add Page > Template Page, How do we do it?
+
I did modify my ajax tabs and I am facing with strange problems like recent threads of my forums loads on firefox but not on IE..Here is the example of it..
http://www.turkforum.net/pasali.php?pageid=turkforum

class101 11-15-2007 12:30 PM

Ha yeah I see you used to try the bobster script , me Im talking about the Adobe Spry script wich looks like same as this one but with much documentation and samples

https://www.adobe.com/cfusion/entitl...?e=labs%5Fspry

you register for free and you dl Spry 1.6 and inside the Widget folder there is another folder "TabbedPanels" all is inside but let me know if it is of interest I can take the time to write the small tut how implementing Spry TabbedPanels + cmps, I'm able to choose any modules now to be displayed in tabs without any php edit with my method.

Screenshot(the 2 red areas are from the news module imported into the tab1):

https://vborg.vbsupport.ru/external/2007/11/34.jpg

turkforum 11-23-2007 07:51 AM

Class, thank you for showing an alternative way to use tabs..:)
In your system I have some questions..
1.As you might know with ajax system, we decrease the server loads by reducing query calls..For example, my cmps main page calls 10 quries to load with ajax..If I do it by your system,all tabbeb content will be called in same time and will it increase quries in total? (not ajax but kind a dhtml type)

2.Can we create more than one tab system in one page? Like below..

1 2 3 4 > tabs X
content by numbers of tabs X
A B C D > tabs y
content by alphabets of tabs Y

thank you..:)

Alfa1 12-07-2007 02:12 PM

Quote:

Originally Posted by bobster65 (Post 1318248)
AJAX TABS version 2.0 is now available as the primary option of this thread.... please review the new information as released today.

Version 1.0 information has been moved into the 2nd post of this thread for historical purposes as well as reference for those that have installed.

Thanks.. Bobster

Just a heads up: The 1st post says version 1, while the 2nd post says version 1.5. Where is version 2?

I have installed the version in the 1st post and am getting this error:
Quote:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/vba_cmps_include_template.php on line 47
EDIT: I found version 2 here: https://vborg.vbsupport.ru/showthread.php?t=161197


All times are GMT. The time now is 04:15 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01438 seconds
  • Memory Usage 1,868KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (3)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete