vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Simple Modification needed Someone help me please!!! (https://vborg.vbsupport.ru/showthread.php?t=209802)

GraphiX2004 03-29-2009 07:11 PM

Simple Modification needed Someone help me please!!!
 
i posted this a few days ago it got over 44 views no reply's then just got buried under the last 3 pages worth so I'm trying again and hope some designer/coder picks up on this.

paid 180 bucks for this source which does not include something simple which to our community is much of a priority and i thought it would of had something like this included.

but it seems not so any help in getting this working be it a plugin or a direct forum edit.
i would really appreciate it. for you people this should be a breeeze to do but it seem
of the 44 people who read it last time not a single reply so here goes once again.
------

I've spent the last 4 hours searching for this what i thought was a simple answer
but cannot find it listed anywhere nor a plugin that does what i need.

Currently i use Wordpress and a plugin called "Members Only" if a member Visits my site and they are
not logged in it will re-direct them to another webpage on the server.

if the user is logged in it will allow them to bypass the Re-Directed website and hit the forum.
________________

What i am after is the following being made into a plugin for the adminCP maybe?

what i'm looking for is the following which shouldn't be very hard for someone with coding skills to do

When the user visits the www.mygamingsite.com/forums link if they are not already logged in they get re-directed
instantly to www.mygamingsite.com main homepage which is where they learn all about the history behind the group.

if the user is already logged in it bypasses being re-directed to the main homepage.

i can actually do this by using this

Code:


<if condition="$bbuserinfo['usergroupid'] == 1">
<meta HTTP-EQUIV="REFRESH" content="0; url=www.mysite.com/website/blah">
</if>

but the problem is i don't know how to make it halt the re-direct if the user is not logged in but goes
to the login.php page or Register page.

also manually editing the template when i've seen some of the most advanced complex adminCP plugin's that work flawless
just seems stupid because if people can do these huge complex plugin's this little thing should be a breeze.

Lynne 03-29-2009 08:38 PM

Perhaps this:
HTML Code:

<if condition="$show['guest'] AND THIS_SCRIPT == 'index'">

GraphiX2004 03-29-2009 09:01 PM

Hiya Lynne thanks for the reply but i dont understand what you mean.
can you be a little more informative

does this go on the login.php/register.php source page?

i understand kinda what it's doing but it doesn't make sense being that
the user who clicks on the login link or the register link must not be redirected.
if they was then it would just be an endless loop and they'd never be-able to login lol

could you maybe write up exactly how i would put this into play i would really appreciate it.
because at the moment the forums are offline until i get this sorted and it's probably just something so simple, but i am not familiar with vbulletin source

what i am familiar with is torrent source code and their php but vbulletin is totally different.

Lynne 03-29-2009 10:56 PM

You said you could use this code:
HTML Code:

<if condition="$bbuserinfo['usergroupid'] == 1">
<meta HTTP-EQUIV="REFRESH" content="0; url=www.mysite.com/website/blah">
</if>

And I was suggesting you change the condition:

HTML Code:

<if condition="$show['guest'] AND THIS_SCRIPT == 'index'">
<meta HTTP-EQUIV="REFRESH" content="0; url=www.mysite.com/website/blah">
</if>

The condition I suggested basically says If the user is a guest and you are on the (vbulletin) index page, do this.

GraphiX2004 03-29-2009 11:58 PM

ah now i understand so if the user is a guest and not logged in it re-directs them to the website but if the guest clicks the page which is register.php or login.php it wont re-direct them and allow them to login or signup?

if that is how it works thank you very much not got access to the FTP tonight so can't test it
but if you can confirm this is what it's actually doing then i'd be more than greatful

thank you

Lynne 03-30-2009 02:55 PM

If you ONLY want that line to not show up on the register or login page (like what if they go to forumdisplay.php? or showthread.php?), then you may want to try this instead:

HTML Code:

<if condition="$show['guest'] AND (THIS_SCRIPT != 'login' OR THIS_SCRIPT != 'register')">
<meta HTTP-EQUIV="REFRESH" content="0; url=www.mysite.com/website/blah">
</if>

That basically says If the user is not loggin in (they are a guest) AND they aren't on the login or register page, then......

GraphiX2004 03-30-2009 06:29 PM

even better you know out of all the people here who's made amazing complex scripts and plugins not one of them nor a single person who works for vbulletin has had any decency to help

i have just paid 180 bucks which is like a weeks full wage for me on this script.
and i cant even get someone official to help me with support in getting this simple thing fixed?

it's appalling

Anyway lynne much appreciated you coming back to this thread and helping to advance on it

Lynne 03-30-2009 06:34 PM

Quote:

Originally Posted by GraphiX2004 (Post 1780517)
even better you know out of all the people here who's made amazing complex scripts and plugins not one of them nor a single person who works for vbulletin has had any decency to help

The vbulletin.com guys will provide great help to make sure your default vbulletin site is working. They don't provide help with modifying your script. This is the site for that and this is an all volunteer site - we all pay to use vbulletin and don't get paid to help.

GraphiX2004 03-30-2009 07:04 PM

didn't know that thought this was an official website attached to the company.
and all the people here was paid helpers well the mods/and coders at least.

had no idea this is volunteer site explains why no-body else could be bothered to help.

anyway thanks again,

Lynne 03-30-2009 07:19 PM

It is the official website attached to the site. It's just that none of us are paid. None of the modification developers are paid. It's an all volunteer official site. (If that makes sense.)

Allnick 03-30-2009 11:13 PM

Lynne......you forgot to say just how useful this site is.
My thanks to all the helpful people that use this site...moderators/staff/coders...and just the users.
I've been helped many times with problems, and can't thank the users of this site enough.

Well done to all who spend time helping us for no payment.


All times are GMT. The time now is 05:50 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.01319 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete