vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

Xelation 04-09-2002 07:02 PM

Quote:

Originally posted by nakkid
Add PM info to your vbHome page

1. In forum/index.php, find the code segment:
PHP Code:

//check usergroup of user to see if they can use PMs
  
...[vB code]...
  eval(
"\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
  
$pminfo='';


Copy that code into the vB marked area, in your home/index.php file.

2. Replace this code:
PHP Code:

eval("\$pminfo = \"".gettemplate('forumhome_pmloggedin')."\";");

} else {
  
$pminfo='';


With::
PHP Code:

eval("\$homepminfo = \"".gettemplate('home_pmloggedin')."\";");

} else {
  
$homepminfo='';


Create a new template (home_pmloggedin) and copy into it the forumhome_pmloggedin contents (edited to match your homepage).

Let me know if that helped you.

in the home template, what do I need to add for it to show up now?

Sadie Frost 04-09-2002 07:03 PM

I believe it's $pminfo - it's the same variable that's in your forumhome now :)

Xelation 04-09-2002 07:06 PM

Quote:

Originally posted by Sadie Frost
I believe it's $pminfo - it's the same variable that's in your forumhome now :)
I tried that and it came up blank on the page.

Xelation 04-09-2002 07:07 PM

figured it out, its $homepminfo

Xelation 04-09-2002 07:19 PM

ok nakkid, I know I am doing something wrong here for sure... when I go to edit the home_pmloggedin template it does not change on the page... I think its getting the information from the forumhome_pmloggedin template, but I dont know how that can be because I'm using $homepminfo... do you know what my problem is?

TECK 04-09-2002 07:27 PM

can you pm me 2 attachments.. as .txt files with the actual codes? one file is the index.php and the second is the template.
thanks.

TECK 04-09-2002 07:39 PM

ok.. the prob was in index.php file.
i added in $templatesused your new template.
also i realised that your $homepminfo was pointing still to the old forumhome_pmloggedin instead of the new one. also the second variable was left $pminfo, instead of homepminfo. please compare the 2 files so you understand better the mechanism.

otherwise, good job in there... :)

Xelation 04-09-2002 07:44 PM

yup, I see what happened now, ok thanks for the help! ;)

Sadie Frost 04-10-2002 12:05 AM

Sorry about that Xelation - my bad :)

wooolF[RM] 04-10-2002 07:06 PM

]grrrrrrrrrrrrrr @ my fellow admins...

what they do : they post a new thread in the vbHome news section (about 3-5 lines). After that they go to normal forums and post the whole news ( about 5-50-xxx lines) there so people get chance to know more about news and people get chance to comment news.

As u may understand it's irritating for me (double post) + it's double job for admins to post it twice + double badwidth... :(

Now I used vBHome for about 1 week and it seems that all my users are happy to use it. I have also included poll feature from vbIndex after I got permission from el3m3nt. Well, when u vote u have ability to leave a comment (good).

Here's idea (maybe it will be used maybe not) : Make news the same like new threads (max characters = for example 100, after that inserting "..." and making link to the thread) and give ability to comment news (with link leading to the thread).

I direct this thread to nakkid ofcourse as he's creator of vBHome, but if there are anybone who can make my dream into life I will be very appreciatted.

Thanx :)

TECK 04-11-2002 12:01 AM

the comments file is part of vbHome (full version). i'm still working on it. as we speak, i'm focused on my new website. once is done and completed, i will find a host and go live. ;)
then i will release vbHome.

Emma 04-11-2002 03:44 AM

Hi :)

I have a slight problem on my vbhome. the newsbits section posts are showing up side by side instead of under each other.

What coding do I need to change to fix that?

Thanks,
Emma

TECK 04-11-2002 03:50 AM

emma, i looked at your site, the problem is in your html template. you have a html error, [high]<td bgcolor="#A2A0A0">[/high] it's not closed properly. check the code with a good html editor.

let me know if you fix it. ;)

Emma 04-11-2002 03:59 AM

okay I went back and changed that ..... and now the orignal news post is showing up under the most recent threads... help :)

Emma

TECK 04-11-2002 04:01 AM

emma. i would love to help you, but this is not related to any php code but basic html coding. post your newsbits template using [code] brackets. i will look at it.

Emma 04-11-2002 04:02 AM

Code:

<table cellpadding="0" cellspacing="0" border="0"  width="100%" bgcolor="#A2A0A0">
<tr>
<td><normalfont><b>$newstitle</b><br>
$newstext<br>
<br></normalfont></td>
</tr>
<tr>
<td align="right"><smallfont>- by <a href="$bburl/member.php?s=$session[sessionhash]&action=getinfo&userid=$newsuserid">$newsusername</a> on $newsdate <font color=#FF9C58>$newstime</font></smallfont></td>
</tr>
</table>
</td>


TECK 04-11-2002 04:05 AM

remove the [high]</td>[/high], at the end.

Emma 04-11-2002 04:07 AM

thank you so much... I can't believe I didn't notice that :) last question, is there anyway to get each news post to change colors like in the most recent threads table?

TECK 04-11-2002 04:13 AM

yes. in your home_newsbits template, replace this code:
Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
with:
Code:

<table  bgcolor="$getbgrow" cellpadding="0" cellspacing="0" border="0" width="100%">
a quick tip, double click on the table above to copy your html code to the clipboard. paste it after in your template. ;)
let me know if it is what you needed.

Emma 04-11-2002 04:24 AM

I replaced that but the colors are still the same :disappointed:

Em

TECK 04-11-2002 04:28 AM

post another news article. you will see it works. ;)

Emma 04-11-2002 04:29 AM

this thing hates me :) lol it still isn't working :)

Apok2002 04-11-2002 04:33 AM

What is the difference between this hack and vbPortal? What does this hack do better than vbPortal? vbPortal seems pretty comprehensive and offers many features...and it's free. What does your hack offer than vbPortal does not. Just curious.

TECK 04-11-2002 04:35 AM

ouuuups... :ermm:
in homepage/index.php, find the code:
PHP Code:

$newsuserid=$news[postuserid]; 

below this add:
PHP Code:

$getbgrow=getrow(); 


TECK 04-11-2002 04:40 AM

Quote:

Originally posted by Apok2002
What is the difference between this hack and vbPortal? What does this hack do better than vbPortal? vbPortal seems pretty comprehensive and offers many features...and it's free. What does your hack offer than vbPortal does not. Just curious.
my hack doent try to associate with vbPortal. it's an interface between the website and VB forums. like vB.org's home page. it's basically up to you how you devellop it and what features you want to add. in other words, it let you achieve the look you want, not a standard page that most portals have. i do not understand why you associate the word "free" to vbPortals? every hack here is free, if you pay the VB license.

i hope that answered your questions.

Emma 04-11-2002 04:40 AM

It works perfectly now :) Thank you so much! This is a great hack!


Emma

Birdie501 04-11-2002 08:45 AM

Hi,

i just installed vbhome for testing. Now i have one question:

i renamed the original index.php to index2.php and the vbhome page is index.php.

If i use the referbbtofriend hack, it shows the board url as .../index.php&reffererid=x

What kind of code do i have to put in the vbhome index.php that it works and count the referrer?

Thanks!
Regards
Birdie501

TECK 04-11-2002 03:41 PM

place a link in your vbHome page the way you used to do it in the previous homepage.
i did not understand properly your file removal. be more speciffic and list also the folder and file name.

filburt1 04-11-2002 04:48 PM

Eh, slight issue...http://www.turtletips.com/i9/

vB code newlines and HTML code isn't parsed :(

TECK 04-11-2002 07:58 PM

i just looked at your link. i dont see nothing wrong there. can you be more specific?

Gutspiller 04-11-2002 08:34 PM

Look at the last news post on his page, it's showing the html code.

TECK 04-11-2002 08:39 PM

Quote:

Originally posted by filburt1
vB code newlines and HTML code isn't parsed :(
thanks Gutspiller.
filburt1, read this and tell me if it fix it:
https://vborg.vbsupport.ru/showthrea...&postid=238601

Emma 04-14-2002 06:31 PM

Hi again, I noticed something on the last thread portion of the vbhome. And since I am not very accustomed to php yet I need to ask this :)

The date that appears under the lastest threads subject title appears to be the date that the thread was started and not the date that the last post in the thread was made. How do I change this to be the date the last post was made in the thread?

Thanks!
Emma

TECK 04-14-2002 07:29 PM

the script grabs the first post of each thread.
i will look into it for a mod.

Emma 04-16-2002 04:23 PM

another question, I wasn't sure if this was the place to post it since it involves another hack too, but it I am in the wrong place forgive me :)

My question is I have a shoutbox already installed on my site. But I wanted to move it into a small table on a page where I have vbhome installed. How do I do this? I wasn't sure what part of the code needs to be copied over into the index file and so forth.

Thanks!
Emma

TECK 04-16-2002 06:39 PM

unfortunatelly i cannot provide support to other hacks, emma.
is better to contact the hack's author. thanks for understanding.

Okiewan 04-16-2002 08:15 PM

Tried unsucessfuly to add wajones's cal.php to vbhome... anybody pulled this off?

Okiewan 04-19-2002 01:00 PM

No more follow-up on this one?

212rikanmofo 04-22-2002 02:26 AM

i just wanna know is it possible to rename my current index.php to index.bak b4 i install this hack? just incase i want to revert back? is there an uninstall feature for this hack?

TECK 04-22-2002 03:06 AM

yes. it is. vbHome will not affect any of the current vb or non-vb files.


All times are GMT. The time now is 04:36 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.04778 seconds
  • Memory Usage 1,831KB
  • 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
  • (5)bbcode_php_printable
  • (4)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