vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - vBH-Add new tabs (https://vborg.vbsupport.ru/showthread.php?t=228507)

Boofo 05-20-2010 05:15 PM

Try:

https://www.example.com=>blank;5 6 7

without the space before the 5.

compuminus 05-20-2010 05:42 PM

Quote:

Originally Posted by Boofo (Post 2040662)
Try:

https://www.example.com=>blank;5 6 7

without the space before the 5.

Thanks, that seems to have fixed it. It would be nice if it weren't that sensitive to spaces...

Boofo 05-20-2010 06:11 PM

Only a first space and the ; would give any problems. Make sense the way it was done though.

WhiskeyOSS 05-21-2010 08:05 PM

Nice Hack works great ... and easy to use..

Martz 05-22-2010 10:07 PM

I turn this on and get:

Code:

Warning:  Unexpected character in input:  ''' (ASCII=39) state=1  in /home/martz/sites/supermono/web/includes/class_bootstrap.php(384) :  eval()'d code on line 29

Parse error:  syntax error, unexpected '<' in /home/martz/sites/supermono/web/includes/class_bootstrap.php(384)  : eval()'d code on line 29

And i've also tried another Tabs mod, which caused something simillar. Any ideas whats up or how to debug it further?

ftadirect 05-23-2010 12:03 AM

*this is a great! MOD.

1. When you log out of the forum the links are still displayed.
? - Can this be a feature to disable if you are not logged into the forum.

2. When you click the disable what's new checkbox is in fact does not disable the button when you sit on the forum.php main page.
? - Can this glitch be fixed.

Craig Ross 05-24-2010 01:33 PM

Great mod and should be standard with VB IMO.

saying that i had to remove this one as i just didn't like the link in the footer.

went for this mod instead.

https://vborg.vbsupport.ru/showthread.php?t=233629

does the same thing with more options and no footer link. :)

Boofo 05-24-2010 01:54 PM

The one does have a footer link. You are just able to block it is all. That hack is more complicated which will end up being more of a problem if it ever breaks. This hack is simple and elegant.

pcmwebmaster 06-01-2010 05:56 AM

Atfter Install This Plugin in vbulletin 4.0.3 iGet This error:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/pcmbr/public_html/forum/includes/class_bootstrap.php(384) : eval()'d code on line 29

Parse error: syntax error, unexpected '<' in /home/pcmbr/public_html/forum/includes/class_bootstrap.php(384) : eval()'d code on line 29

Pls Help

Hippy 06-01-2010 09:42 PM

I went to edit vbh_newtabs
I went to save it and this error came up

vBulletin Message
The following error occurred when attempting to evaluate this template:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(4781) : eval()'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.


so I went into the template again (still stock)
and tried to save with out editing it and I still get this message
any idea what the problem would be

here is the template

Code:

<vb:if condition="in_array(THIS_SCRIPT, $selectedtabs) AND THIS_SCRIPT == $filename">

<li class="selected"><a class="navtab" href="{vb:raw url}" <vb:if condition="$target">target="_{vb:raw target}"</vb:if>>{vb:raw titulo}</a>
<ul>
{vb:raw subnavlinks}
</ul></li>

<vb:else />
<li><a class="navtab" href="{vb:raw url}" <vb:if condition="$target">target="_{vb:raw target}"</vb:if>>{vb:raw titulo}</a></li>
</vb:if>


Boofo 06-01-2010 10:09 PM

I would suggest uninstalling the product and re-installing it to see if that fixes it. Sounds like to made an edit somewhere.

Hippy 06-01-2010 11:51 PM

un-installed and reinstalled it same thing happens

Boofo 06-01-2010 11:56 PM

The you must have another plugin messing with it. Try disabling the other plugins and see if that fixes that one.

garyb12001 06-02-2010 07:47 AM

Awesome plugin - thanks!

setishock 06-02-2010 08:36 AM

Quote:

Originally Posted by Boofo (Post 2039567)
You shouldn't remove the copyright without the hack author's permission.

I have to agree here. Giving the author credit is part of the deal of using one of thier mods. I would suggest making the hyperlink static. That way the author gets due credit but the link is not active. Either way it wouldn't hurt to make contact with the author and get permission.

Hippy 06-02-2010 11:40 PM

all plugins off and it still does it

Infopro 06-03-2010 11:24 AM

Quote:

Originally Posted by Boofo (Post 2046829)
The you must have another plugin messing with it. Try disabling the other plugins and see if that fixes that one.

Hey, Boofo, good to see you out and about. :)

If you have this mod installed open that template vbh_newtabs and then save it not changing anything. Not sure how many people have actually tried to edit this template but it cannot be saved without removing the second argument. Also, I'm not sure how another plugin can have any issues with saving a template.

This template has an issue in it, no doubt. If you remove the 2nd and save it, it will save, and you can revert as well. But simply opening and saving does not work. It's a coding issue with the datatype in this template.

Boofo 06-03-2010 12:30 PM

Well, I just did as you suggested and the template saved fine just like it was before I saved it. The hack is working fine after saving the template. As I said before, something else is affecting it somewhere.

Infopro 06-03-2010 07:06 PM

Impossible. I've just installed this to my newly installed testvb and simply opened and saved it, it will not save.

I had earlier tested this on the live site before I posted here. I've got better things to do than to waste yours and my time.

Boofo 06-03-2010 07:19 PM

No, it is not impossible. Why would I make that up? It saved fine for me and I do not get any errors on saving the template. What is impossible is that you did it on a fresh install and it didn't save properly.

Hippy 06-03-2010 07:56 PM

I also did a fresh install On my test board same issue

not 1 single mod done to it ..

Just a clean install of vb and this hack only..

your right infopro the coding is no correct ..
all tho the mod works perfectly

thanks boofo for your information,
lets see if any one has any other ideas

thanks infopro for confirming this issue

Boofo 06-03-2010 08:06 PM

The coding is correct if I was able to save the template fine. You must be having some other issues going on as you guys are the only ones who have reported this. Maybe you guys are trying in on a version less than 4.0.3? IIRC, there were issues with the way templates were being parsed that was supposedly fixed in 4.0.3.

Infopro 06-03-2010 11:18 PM

It's great to see you back around Boofo, I mean that. I stil have a few of your hacks on my 3.8 forum and I've agreed with you many times over the years on different topics, but this one? I'm sorry I just can't.

I have no clue what you're talking about with less than 4.0.3, this hack has not been updated since:

Last Update: 08 Feb 2010

This thread is 16 pages long. (for me) so, the hack itself has been around far longer than 4.0.3


As I mentioned previously, I'm not sure why another user would have edited this template and came across it, so to say no one else has had this problem is pure guess work on your part.

Maybe Elmer can help explain our problem. Or are you Elmer? You seem to be assisting here a bit more than just another coder might in this thread. You're in the top 3 posters of a 16 page thread.

No biggy, as that guy above Hippy mentioned, the hack works. It's opening an saving the template that does not. IMHO< it's not standards compliant somehow.

But hey what do I know, you're the coder, I'm just lowly end user with issues. ;)

All the best.

Boofo 06-03-2010 11:23 PM

All I'm saying is if you are trying to save the template on a version less than 4.0.3, then that might be the problem, no matter how long this hack has been around. On my 4.0.3, with numerous products installed, saving the template gave me no errors whatsoever. Funny why this would work fine for most others but mess up for just a very few, unless there were some other issues involved somehow.

No, I am not Elmer. And sorry if my assisting bothers anyone. I will back out of the thread and let you all handle things then. ;)

Infopro 06-04-2010 01:28 AM

Quote:

Originally Posted by Boofo (Post 2047960)
All I'm saying is if you are trying to save the template on a version less than 4.0.3, then that might be the problem, no matter how long this hack has been around.

That's not what you said at all.

Quote:

Originally Posted by Boofo (Post 2047960)
On my 4.0.3, with numerous products installed, saving the template gave me no errors whatsoever.

That's great!
Quote:

Originally Posted by Boofo (Post 2047960)
Funny why this would work fine for most others but mess up for just a very few, unless there were some other issues involved somehow.

Clearly you're not reading what I'm posting here. I've mentioned that the hack DOES work. Your answers lead me to believe I'm talking to the wrong person.

Quote:

Originally Posted by Boofo (Post 2047960)
No, I am not Elmer. And sorry if my assisting bothers anyone. I will back out of the thread and let you all handle things then. ;)

Again, you're not reading what your replying to it seems. I never once said you were a bother, I even welcomed you back, twice.

There is no problem that I can see, other than opening then saving the template. As you well know, this message means something is not correct in the template.

Code:


The following error occurred when attempting to evaluate this template:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/adminfunctions_template.php(4781) : eval()'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Saving that template, untouched has nothing to do with something else as you've suggested, multiple times now, it has to do with the template itself, and what vbulletin requires to be correct to save it normally.

I do not believe the template is entirely vb4 compatible.

Now, all that said and your comment about backing out of this thread? That's fine, me too.

I don't even use the hack. I came across this thread and in an effort to help, and because I was nosy about possibly using it myself, I installed it today for the first time, to take a peek.

That's all. So, if it works for you great. You and I have no clue how many others it would save for, and how many it will error out for, no ones commenting in that regards other than Hippy and the noisy guy, Infopro.

So for you to say:

Quote:

Funny why this would work fine for most others but mess up for just a very few, unless there were some other issues involved somehow.
And several of your other comments in this regard, just don't make any sense to me. If it saves for you normally, great say so and move on. If you've got an educated guess as to the problem or a fix, say so or move on.

But please don't say its not an issue and write it off. And then go on to repeat things without actually reading the posts you're commenting to, you help no one and only promote responses like this one.

I hope this post doesn't sound like I'm being rude or offensive, that is surely not my intentions here. I don't use the hack myself. I tried to help I verified the problem here on my end and was hoping to help somehow. That's it.


BTW, if that's an actual picture of you, your av? You and I could be long lost brothers. :p

Peace.

krustyx 06-09-2010 09:17 PM

Can't get the "tab selected" to work.

I use photopost classified. THIS_SCRIPT is defined as cpindex in the index.php of the folder classified (wich is not in the forum directory).

i specify cpindex in the "tab selected" area of the script and it doesnt work... any ideas?

Cort 06-17-2010 06:45 PM

Hi - nice app! Everything works fine except I've been unable to link to a https page (for a paypal donate button). I use the same URL elsewhere and it works just fine. The page says "some information is missing'...it appears to leave off the ID number on the end. ??

Cort 06-18-2010 06:35 PM

I sent it to a page where the donate URL does work; its a little more trouble on the users end but it does work.

Oddly enough, until I eliminated the " ,'s" on the end of the lines the external links would not work. Now they are.

Alphaforums.com 06-20-2010 02:53 PM

Don't use this, once you create a tab, it can't be deleted, it just stays there forever. I deleted it in the settings, I disabled the addon, I even uninstalled it, it's still there...Avoid at all costs

Boofo 06-20-2010 04:58 PM

Quote:

Originally Posted by Alphaforums.com (Post 2056424)
Don't use this, once you create a tab, it can't be deleted, it just stays there forever. I deleted it in the settings, I disabled the addon, I even uninstalled it, it's still there...Avoid at all costs

Then you are doing something wrong somewhere.

Hippy 06-20-2010 05:13 PM

Quote:

Originally Posted by Alphaforums.com (Post 2056424)
Don't use this, once you create a tab, it can't be deleted, it just stays there forever. I deleted it in the settings, I disabled the addon, I even uninstalled it, it's still there...Avoid at all costs

this was to good to pass up..

what tab did you make that you can't get rid of ..?

If you turn the plugin off, all the tabs that you created are gone..
no 2 ways about it ..

if you un-installed it an the tab is still there .....

it was not added with this mod

Boofo 06-20-2010 05:19 PM

If I remember right, when I disabled the Blogs and CMS (Home) buttons, disabling plugins did not bring them back. I had to actually bring them back in the hack first. But as far as others tabs, anything the hack adds is gone on un-install.

Eruantien 06-21-2010 12:35 AM

I can't get the "Extra Tabs by vBulletin Hispano" removed. I uninstalled this mod and it is still showing up. Any help?

Boofo 06-21-2010 12:48 AM

Revert the footer template.

Eruantien 06-23-2010 09:29 AM

That did not work. It removed the other ones but not the annoying "Extra Tabs by vBulletin Hispano". :down:

salvador21 06-23-2010 03:17 PM

Sorry to appear thick, but can someone explain in simple language how to get a tab selected.

The tab is working nicely but I can't figure out the THIS_SCRIPT business.

e.g. if I am linking to a CMS article, e.g.

http://cafesaxophone.com/content.php?198-Music-Store

what do I put in the VBH tab control panel, and do I edit any files?

pincherplayer 06-25-2010 12:49 AM

very nice, it's I love it.:up:

Alphaforums.com 06-25-2010 07:10 AM

Can someone please aid me with this? I was using a tab until my update to 4.04. Then, once updated, I tried to delete the tab that had now grown useless. But, even after the app has been disabled (then uninstalled), the cursed tab just won't go. This takes away a lot of value on my board, and I must have it off as soon as possible!
Thanks for your help.

Boofo 06-25-2010 07:17 AM

Which tab is it? And do you still have the mod installed?

Alphaforums.com 06-26-2010 05:59 AM

It's a tab I created for my site's arcade, but I would like to replace it with a "Entertainment" tab, that would scroll down to give, among others, the arcade. No, I have uninstalled this, I'm guessing I should reinstall it, so it will be by the time you read this. Thanks for your help.


All times are GMT. The time now is 09:35 PM.

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.01976 seconds
  • Memory Usage 1,838KB
  • 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
  • (3)bbcode_code_printable
  • (10)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
  • (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