Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2009, 07:11 PM
GraphiX2004 GraphiX2004 is offline
 
Join Date: Mar 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 03-29-2009, 08:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perhaps this:
HTML Code:
<if condition="$show['guest'] AND THIS_SCRIPT == 'index'">
Reply With Quote
  #3  
Old 03-29-2009, 09:01 PM
GraphiX2004 GraphiX2004 is offline
 
Join Date: Mar 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-29-2009, 10:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-29-2009, 11:58 PM
GraphiX2004 GraphiX2004 is offline
 
Join Date: Mar 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 03-30-2009, 02:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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......
Reply With Quote
  #7  
Old 03-30-2009, 06:29 PM
GraphiX2004 GraphiX2004 is offline
 
Join Date: Mar 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 03-30-2009, 06:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GraphiX2004 View Post
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.
Reply With Quote
  #9  
Old 03-30-2009, 07:04 PM
GraphiX2004 GraphiX2004 is offline
 
Join Date: Mar 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #10  
Old 03-30-2009, 07:19 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:40 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.04556 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (4)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete