vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - AJAX Tabs Content Script - Version 3.0 (YUI) (https://vborg.vbsupport.ru/showthread.php?t=191106)

ButtKrust 03-02-2009 05:25 AM

Is there a way to pass the Forum ID through so that the forum ID can be used for various things within the PHP files (tabsampel1.php, tabsample2.php, tabsample3.php, ect)? Or is there another way to about grabbing the current Forum ID of where the php file is currently being viewed? Hope that makes sense.

bobster65 03-02-2009 12:53 PM

Quote:

Originally Posted by ButtKrust (Post 1758232)
Is there a way to pass the Forum ID through so that the forum ID can be used for various things within the PHP files (tabsampel1.php, tabsample2.php, tabsample3.php, ect)? Or is there another way to about grabbing the current Forum ID of where the php file is currently being viewed? Hope that makes sense.

Not sure I follow you .. can you try and explain in more detail..

wmlvb 03-02-2009 01:10 PM

Quote:

Originally Posted by bobster65 (Post 1751432)
Hi Lark,

Yes, those tabs use the default recent threads content module.. that was designed to mimic the output of the default vBa CMPS Recent Thread Module. The best way to do this is to edit each custom content file and add the output of the "ALT" text (or preview) .. I know YOU can't easily do this, but I can, so just email me. And no, you can't just "over write" these files with code from another file as there are specific setting in them to tell them what Forum to pull from, how many thread to pull, what order, etc etc etc...

Bob


Hey bob,

had not heard back! Was wondering about any update on this add-on? Thanks

bobster65 03-02-2009 01:39 PM

Quote:

Originally Posted by wmlvb (Post 1758481)
Hey bob,

had not heard back! Was wondering about any update on this add-on? Thanks

I wrote you back, said that I would try and work on something for you during my free time (which I don't have a lot of).. If you need something done faster, put in a request for paid services, there are a ton of people here that can easily assist you and you might even find someone that can do it for free.. I just don't have time to do a bunch of free customizations for people..

ButtKrust 03-02-2009 04:15 PM

Quote:

Originally Posted by bobster65 (Post 1758473)
Not sure I follow you .. can you try and explain in more detail..

Well for some reason when i try to program in php in the files that are being viewed through the tabs (tabsample1, tabsample2, tabsample3), I've make new files and put my own code in and I can't use the $foruminfo['forumid'] to do anything, whether it be echo the value or use a condition. Are there certain files i need to include in those? I have global.php included, and i've tried having several others included, but not matter what i do i can't get the forum id of the forum currently viewing the ajax tabs to show the id inside that tab. I hope that makes sense. I can get what i need to show through the tabs, now i just need that to change based on the forumid without having to make a new module with a new set of tabs. Thanks for any help you can give.

For example, INSIDE the php file tabsample1.php, pretent i've made my own file out of it. I need to be able to say if($foruminfo[forumid]==5) show this, and if it is something else, show that. "Echo $foruminfo" shows the word "array", but $foruminfo[forumid] shows nothing at all. So it clearly isn't being able to pick up the forumid. Unless i'm doing something wrong like not including the right support files or not coding something right.

wmlvb 03-02-2009 10:02 PM

Quote:

Originally Posted by bobster65 (Post 1758497)
I wrote you back, said that I would try and work on something for you during my free time (which I don't have a lot of).. If you need something done faster, put in a request for paid services, there are a ton of people here that can easily assist you and you might even find someone that can do it for free.. I just don't have time to do a bunch of free customizations for people..

Thanks for the reply bob
I guess my original request was for something similar to what was requested a few post before mine which would be an addon .php file. I think you mentioned to that poster you were working on that additional option. Is that no longer in the works?

bobster65 03-02-2009 10:33 PM

Quote:

Originally Posted by wmlvb (Post 1758841)
Thanks for the reply bob
I guess my original request was for something similar to what was requested a few post before mine which would be an addon .php file. I think you mentioned to that poster you were working on that additional option. Is that no longer in the works?

which post, there are so many lol.. it might have been one of the addons for TFH (Tabbed Forum Home) ?

One of these days, members might actually realize that they can release and support content files for this...

ButtKrust 03-03-2009 01:11 AM

Ignore what i said earlier, and let me put it this way.

When i create a new PHP MODULE with vbadvanced, and in the settings section i set the "Initialize Forum Permissions" to YES, it allows me to use $foruminfo[forumid] in the php file and it works fine. When i copy this exact same file and call it with the TEMPLATE module for this AJAX TABS, (EX: Datasrc: "tabsample1.php") i CAN NOT use $foruminfo[forumid]. It simply doesn't work. Is this because "Initialize Forum Permissions" haven't been allowed for this? Is it because this is a TEMPLATE module rather than a PHP module? Is there a way to set TEMPLATE modules to have this very same setting? Is there a way i can go about getting $foruminfo[forumid] to work when the php files are called through these AJAX tabs? I hope to God in heaven this made sense. I really need this to work.

kfiasche81 03-27-2009 07:23 AM

it's work on 3.8.x ?

bobster65 03-27-2009 01:06 PM

Quote:

Originally Posted by ButtKrust (Post 1758946)
Ignore what i said earlier, and let me put it this way.

When i create a new PHP MODULE with vbadvanced, and in the settings section i set the "Initialize Forum Permissions" to YES, it allows me to use $foruminfo[forumid] in the php file and it works fine. When i copy this exact same file and call it with the TEMPLATE module for this AJAX TABS, (EX: Datasrc: "tabsample1.php") i CAN NOT use $foruminfo[forumid]. It simply doesn't work. Is this because "Initialize Forum Permissions" haven't been allowed for this? Is it because this is a TEMPLATE module rather than a PHP module? Is there a way to set TEMPLATE modules to have this very same setting? Is there a way i can go about getting $foruminfo[forumid] to work when the php files are called through these AJAX tabs? I hope to God in heaven this made sense. I really need this to work.

If you are needing to include variables that are created by a specific function, then you need to include that function within the content php file.

Quote:

Originally Posted by kfiasche81 (Post 1778065)
it's work on 3.8.x ?

yes


All times are GMT. The time now is 08:22 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.01304 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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