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)
-   -   Portal Software - Simple Portal (https://vborg.vbsupport.ru/showthread.php?t=137919)

KingPuyol 01-29-2007 10:00 PM

Simple Portal
 
This is a simple portal that I just took some of my time to make, I will make a better version of this when I have time.

All you have to do is:
1) Open the portal.php file and edit the $forumpath variable to your forum path, if you don't know how, upload the vbpath.php file to your forum directory and access it via the browser to get the forum path.

2) Upload the portal.php file anywhere you want (It doesn't have to be in the forum directory), and you can also rename the file if you want, depending on your needs.

3) Go to the Style Manager, and create a new template called: portal and paste the following in it:
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header
<br />
<!-- Content -->
<font size="4"><center>Welcome to $vboptions[bbtitle]!</center></font><br />

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<table align="center">
<tr>
       
<if condition="$show['member']">
       
                <td valign="top" nowrap="nowrap" align="center">
                <div class="smallfont" align="center">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong>&nbsp;(<a href="$vboptions[bburl]/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>)<br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase><br />
<a href="$vboptions[bburl]/$vboptions[forumhome].php">
<b>Go to the forum >></b></a>
<br /><br />
                </div>
                </td>

        <else />
               
                <td nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="$vboptions[bburl]/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="$vboptions[bburl]/clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
<tr><td align="center" colspan="3"><a href="$vboptions[bburl]/register.php">Not A Member Yet? Register Now!</a><br /><a href="$vboptions[bburl]/faq.php?faq=vb_user_maintain#faq_vb_why_register" target="_blank">Want to know why you should register?</a><br /><br /></td></tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- DO NOT REMOVE THESE LINES BELOW -->
<table><tr><td><font class="smallfont"><a href="https://vborg.vbsupport.ru/showthread.php?t=137919" target="_blank">Simple Portal</a> by: <a href="http://www.barcaclub.net/forum/member.php?u=1" target="_blank">KingPuyol</a></font></td></tr></table>
<!-- /Content -->
<br />
$footer
</body>
</html>

Remember to do this to every style you have, or else it won't work with that style.


One more thing, as I said the next version will be way better than this, so for now, not everything is PHRASED, but most of the things it is, so if you are using this in a different language other than English, then remember to edit the portal template.

PLEASE MARK AS INSTALLED.

KingPuyol 01-30-2007 08:54 AM

Reserved for later use.

spipo 01-30-2007 09:01 AM

it look good . and i like it . but how about the security of the forum it will affect it ??
lastly i heard so many site hacked from the portals ..
i would like to know because i want to install it in my site

KingPuyol 01-30-2007 09:16 AM

Quote:

Originally Posted by spipo (Post 1170430)
it look good . and i like it . but how about the security of the forum it will affect it ??
lastly i heard so many site hacked from the portals ..
i would like to know because i want to install it in my site

This is different than the other portals, I didn't add any extra modules, not anything, it's just a smimple vB page just like the other pages, the only thing it does is fetches the portal template.
In other ways, it's as safe as the other vbulletin pages.

Lizard King 01-30-2007 10:11 AM

It is just a regular vb page with navbar inside. I don't understand how you call it portal.

bashy 01-30-2007 10:47 AM

A Portal is a door, If there is no portal as such, then the forum home is the portal.

Portal is just a word for the entrance to the site regardless of how it looks :)

Code:

Dictionary.com Unabridged (v 1.1) - Cite This Source
por?tal1    /ˈpɔrtl, ˈpoʊr-/ Pronunciation Key - Show Spelled Pronunciation[pawr-tl, pohr-] Pronunciation Key - Show IPA Pronunciation
?noun
1.        a door, gate, or entrance, esp. one of imposing appearance, as to a palace.
2.        an iron or steel bent for bracing a framed structure, having curved braces between the vertical members and a horizontal member at the top.
3.        an entrance to a tunnel or mine.


Lizard King 01-30-2007 12:04 PM

The point is there is nothing special about this hack.
Just follow this article and you are ready to go

StuntFactoryX 01-30-2007 02:21 PM

i like it.. i think it would be awesome w/ a forum desciption or a "welcome header" like message to guests. simple and clean. i use vbadvanced now and i offen wonder if its not overwelming for new users that arent computer savey or new to message boards or vbulletin.

spipo 01-30-2007 09:05 PM

I wonder if ther is any methode to include Keywords and meta description !! in the page

KingPuyol 01-31-2007 04:35 AM

I was just testing to see, I will make a better one soon.

Greek Wizard 01-31-2007 07:47 AM

Quote:

Originally Posted by KingPuyol (Post 1171093)
I was just testing to see, I will make a better one soon.

I think you need to make your signature a bit bigger. We can hardly read it.

trbznl 02-02-2007 02:47 PM

thanks... I will use it

spipo 02-05-2007 12:48 PM

any news about a new version with Keywords and meta description ?

ymy 02-06-2007 05:09 AM

Great mod

I'm going to test this out now

install click . Thanks

Smoothie 02-10-2007 08:17 PM

Quote:

This is a simple portal that I just took some of my time to make, I will make a better version of this when I have time.
How soon? :)

Smoothie 02-21-2007 06:35 PM

^Bump^

daloosaa 05-20-2007 11:02 PM

*installed*

I hate it when the docroot is flooded with files this is why i run my community in mydomain.com/community. This little portal allows me to replace the stupid HTML-File with it's stupid META-redirect in the docroot. Great.

Greetings,
Florian

stevebullman 08-27-2007 01:31 PM

Quote:

Originally Posted by spipo (Post 1170430)
it look good . and i like it . but how about the security of the forum it will affect it ??
lastly i heard so many site hacked from the portals ..
i would like to know because i want to install it in my site


could someone elaborate on this please as i was planning on installed vbadvanced as a portal.

AzaDiyaR 08-28-2007 12:43 AM

very nice thank you ;)

touba 09-27-2007 08:58 AM

hi all,

when i go to mydomain/forums/portal.php the page is blank :(

an idea ?


All times are GMT. The time now is 05:49 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.01301 seconds
  • Memory Usage 1,776KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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