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)
-   -   End-User Options - vBFavorites (https://vborg.vbsupport.ru/showthread.php?t=132401)

rrr 02-03-2007 05:36 AM

Quote:

That would be the same conditional as the one around the navbar link, just reverse that.
I apologize for my ignorance, how would I reverse that? I tried

Code:

<if condition="!$show['vbfavorites_fav_lastthreads'] OR !$show['vbfavorites_fav_lastposts'] OR !$show['vbfavorites_fav_lastusers']">

And

<if condition="!$show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers']">

But neither of them worked. I also tried putting an else after the statement and it didn't work either.

akanevsky 02-03-2007 01:27 PM

Quote:

Originally Posted by rrr (Post 1173484)
I apologize for my ignorance, how would I reverse that? I tried

Code:

<if condition="!$show['vbfavorites_fav_lastthreads'] OR !$show['vbfavorites_fav_lastposts'] OR !$show['vbfavorites_fav_lastusers']">

And

<if condition="!$show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers']">

But neither of them worked. I also tried putting an else after the statement and it didn't work either.

The easiest way to reverse it is to place the whole original condition string into parenthesis and then prepend it with an exclamation sign. Or, replace all instances of OR with AND in the first code you posted.

Either:

Code:

<if condition="!($show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers'])">
OR

Code:

<if condition="!$show['vbfavorites_fav_lastthreads'] AND !$show['vbfavorites_fav_lastposts'] AND !$show['vbfavorites_fav_lastusers']">

rrr 02-03-2007 02:50 PM

Quote:

Originally Posted by Psionic Vision (Post 1173651)
The easiest way to reverse it is to place the whole original condition string into parenthesis and then prepend it with an exclamation sign. Or, replace all instances of OR with AND in the first code you posted.

Either:

Code:

<if condition="!($show['vbfavorites_fav_lastthreads'] OR $show['vbfavorites_fav_lastposts'] OR $show['vbfavorites_fav_lastusers'])">
OR

Code:

<if condition="!$show['vbfavorites_fav_lastthreads'] AND !$show['vbfavorites_fav_lastposts'] AND !$show['vbfavorites_fav_lastusers']">

Weird, I tried both of those and neither seemed to work. If I have favorites saved, it still shows the text in the IF, if I don't have favorites saved, it still shows the text.

Could it be because if I have a favorite thread and a favorite post, but NOT a favorite user, the if conditional still gets triggered the same as if I didn't have any of the 3?

akanevsky 02-03-2007 05:36 PM

Quote:

Could it be because if I have a favorite thread and a favorite post, but NOT a favorite user, the if conditional still gets triggered the same as if I didn't have any of the 3?
The conditional is true when none of the favorites are added, and it is false if there is at least one favorite item.

blogtorank 02-04-2007 08:19 PM

Quote:

Originally Posted by Psionic Vision (Post 1131961)
Status: Not Installed :D

Awwwwww just caught this, I clicked it now just for you on 4 boards of mine! However I'm catching hell on one and not sure what's up but I'll figure it out later on the other one...

Status: Installed so take that back!

akanevsky 02-04-2007 08:47 PM

Quote:

Originally Posted by blogtorank (Post 1174744)
Awwwwww just caught this, I clicked it now just for you on 4 boards of mine! However I'm catching hell on one and not sure what's up but I'll figure it out later on the other one...

Status: Installed so take that back!

Thanks :)

blogtorank 02-05-2007 03:23 AM

Hey Anthony having issues with this here... I never had an issue with installing any of your hacks maybe I only have the most hacked boards out there, but I just can't find where this is going wrong here.

The navbar favorites is not showing up or anything (Odd S@#% if you ask me). I go to the URL www.mydomain.com/forums/vbfavorites.php "No permissions" to the Admin... I am probably just too damn tired from all of these damn boards I don't know dude, I went through all of your instructions 3 x to make sure and not a chance did I miss nothing!

I'm PM a URL to see what I mean if you like.

All the best!

djbaxter 02-05-2007 03:17 PM

Suggestion:

When I hover over any of your add-ons from the index, this is all I can see (truncated):

Quote:

/*================================================= =====================*\
|| vBFavorites
||
|| ================================================== =====
|| Brought to you by:
|| VisionScripts
|| Premium PHP & vBulletin Solutions!
|| ================================================== =====
||
|| Author : Anthony Kanevsky - aka Psionic Vision
|| Rent-a-Coder ID : #1360893
|| Works on : vBulletin 3.5 / 3.6
|| Released : Dec 01, 2006
||
|| Time required to install: 5 minutes
|| Difficulty: easy
\*================================================ ======================*/
It would be more helpful to post your add-ons with the following on top of that notice, so that index surfers could actually see what your mod is about:

Quote:

DESCRIPTION

This modification gives your users an opportunity to create their own personalized menus of favorite threads, posts and users within your bulletin board.

akanevsky 02-05-2007 08:39 PM

Quote:

Originally Posted by blogtorank (Post 1174947)
Hey Anthony having issues with this here... I never had an issue with installing any of your hacks maybe I only have the most hacked boards out there, but I just can't find where this is going wrong here.

The navbar favorites is not showing up or anything (Odd S@#% if you ask me). I go to the URL www.mydomain.com/forums/vbfavorites.php "No permissions" to the Admin... I am probably just too damn tired from all of these damn boards I don't know dude, I went through all of your instructions 3 x to make sure and not a chance did I miss nothing!

I'm PM a URL to see what I mean if you like.

All the best!

You are not supposed to go to that URL directly.

Rickeo 02-05-2007 08:57 PM

Installing now nice mod!!!

~Rick~


All times are GMT. The time now is 01:43 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.01114 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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