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)
-   -   vBindex (https://vborg.vbsupport.ru/showthread.php?t=37021)

-=dm=- 04-08-2002 07:21 PM

Yes only news error.
thanx

NTLDR 04-08-2002 07:23 PM

In the template home_newsbit:

Change
Quote:

https://vborg.vbsupport.ru/images/icons/icon$icon.gif
To:
Quote:

https://vborg.vbsupport.ru/images/icons/icon$news[iconid].gif
That should correct the broken links for the news icons in v1.3 :bunny:

-=dm=- 04-08-2002 07:41 PM

Yeah cool! now its showing up again lol
a BIG Thanx to you both el3m3nt & NTLDR :)

dm

NTLDR 04-08-2002 08:03 PM

Quote:

Originally posted by -=dm=-
Yeah cool! now its showing up again lol
a BIG Thanx to you both el3m3nt & NTLDR :)

dm

No problem dm, glad I could help you and this great hack out, I hope to see how you have implimented this hack soon!

freakyshiat 04-09-2002 05:29 AM

I installed this hack with {getmicrostats} in the footer template and it is reporting 83 queries...can this be true?

el3m3nt 04-09-2002 06:44 AM

dm, probably you mixed the two solutions (my one and NTLDR one). but when it works now then its okey :).

Fazle, i have only 54 on partylife.ch. it depends on how many threads you wanna display and how many newsarticles. if i show 30 threads i have 104 queries. so 83 can be true.. :)

-=dm=- 04-09-2002 10:36 AM

me back again :lick:
Quote:

Originally posted by el3m3nt
dm, probably you mixed the two solutions (my one and NTLDR one). but when it works now then its okey :).

yeah your right, I have installed this hack 3 times :D

the poll system dont work for me:(

I have a stupid question :D how do I hide poll forum from normal members and still let them vote on the mainpage(vbindex) cuz when I change the settinges in "Registered user group" the forum settings jumps to "private forum" see the screenshot.

el3m3nt 04-09-2002 01:05 PM

you have to give the registered user the right to vote for the pollforum... not for the usergroup "Registered".

so go to "Forums & Moderators > Permissions > Choose your Pollforum > Registered > Edit"
There you set "Can view forum" to no and "Can vote on polls" to yes. you can also allow them to post replies (comments) or all other settings.

got it? :)

el3m3nt 04-09-2002 01:13 PM

html-code in the news:
look for...
PHP Code:

  $newstext=bbcodeparse($getnews[pagetext]); 

replace with..
PHP Code:

$newstext=bbcodeparse($getnews[pagetext],$newsforum,1);
$newstext=str_replace("<br />","",$newstext); 

Thanks to nakkid, Gimp and FireFly for drawing attention to me on this.

2 new actions (getdaily and getsticky!) and threads-table-title depends on the action!

look for...
PHP Code:

if ($action=="" or $action=="getactive") {
    
// active threads
    
$threadsquery $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");
}

if  (
$action == "getnew") {
    
// new posts
    
$threadsquery $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND lastpost>=".$bbuserinfo[lastvisit]." AND open<>10 ".$threadsql." order by lastpost desc limit $numthreads");


replace with...
PHP Code:

if ($action=="" or $action=="getactive") {
    
// active threads
    
$threadsquery $DB_site->query("SELECT threadid,forumid,title,postusername,lastposter,replycount,iconid FROM thread WHERE forumid!=$newsforum AND forumid!=$pollsforum ".$threadsql." AND visible=1 order by lastpost desc limit $numthreads");
    
$threadstitle="Latest Threads";
}

if  (
$action == "getnew") {
    
// new posts
    
$threadsquery $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND lastpost>=".$bbuserinfo[lastvisit]." AND open<>10 ".$threadsql." order by lastpost desc limit $numthreads");
    
$threadstitle="Newest Posts";
}

if  (
$action == "getdaily") {
    
// posts today
    
$threadsquery $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND thread.lastpost>=".(time() - (24 60 *60 $days)).$threadsql." order by lastpost desc limit $numthreads");
    
$threadstitle="Posts Today";
}

if  (
$action == "getsticky") {
    
// sticky threads
    
$threadsquery $DB_site->query("select threadid,forumid,title,postusername,lastposter,replycount,iconid from thread WHERE visible=1 AND sticky=1 ".$threadsql." order by lastpost desc limit $numthreads");
    
$threadstitle="Sticky Threads";


now modify the template "home_threads":
- 2 new options (select)
- replace "Latest Threads" (title) with $threadstitle

that's it. all these improvements will be included in version 1.4.
pls write me all suggestions and ideas how we all can improve this script :).

-=dm=- 04-09-2002 03:40 PM

Quote:

Originally posted by el3m3nt
you have to give the registered user the right to vote for the pollforum... not for the usergroup "Registered".

so go to "Forums & Moderators > Permissions > Choose your Pollforum > Registered > Edit"
There you set "Can view forum" to no and "Can vote on polls" to yes. you can also allow them to post replies (comments) or all other settings.

got it? :)

Hi el3m3nt

I did everything like you wrote above but stil no luck:(
I get the no premission message...

el3m3nt 04-09-2002 05:14 PM

hmm... i will this try .. hope i find the problem. sorry, i dont know really where the problem could be. when you give this usergroup the permission to vote.. the should be able to vote. hmm.. funny.

i'll report you tomorrow.. sorry.

NTLDR 04-09-2002 05:21 PM

Quote:

Originally posted by -=dm=-
I have a stupid question :D how do I hide poll forum from normal members and still let them vote on the mainpage(vbindex) cuz when I change the settinges in "Registered user group" the forum settings jumps to "private forum" see the screenshot.
If you just want to hide the forum so it doesn't appear on the front page install this hack by Firefly https://vborg.vbsupport.ru/showthrea...threadid=28262 then set the permissions to that users can reply to threads/posts or create new posts.

el3m3nt 04-09-2002 05:52 PM

wow.. congrats NTLDR.. your board looks really very nice :). GJ.

NTLDR 04-09-2002 06:04 PM

Quote:

Originally posted by el3m3nt
wow.. congrats NTLDR.. your board looks really very nice :). GJ.
Thanks el3m3nt, I'm in the process or converting my entire site into vb Templates to use with your hack :D

-=dm=- 04-09-2002 06:59 PM

Quote:

Originally posted by NTLDR


Thanks el3m3nt, I'm in the process or converting my entire site into vb Templates to use with your hack :D

NTLDR
damn this is one of the best forums :) I just love the whole design it looks great nice works buddy. its in my "good looking vB?s" bookmarks catagory now;)

when I saw this hack by el3m3nt, the first thing I did was REMOVE the whole postnuke site from my server, I better like vBindex, its just what I need.

btw I have just installed the hack by FireFly, but still no luck:(

members are only able to vote if they can see the forum this is strange, I know Im probably over looking something....god I should take a break... :D

NTLDR 04-09-2002 07:04 PM

Quote:

Originally posted by -=dm=-


NTLDR
damn this is one of the best forums :) I just love the whole design it looks great nice works buddy. its in my "good looking vB?s" bookmarks catagory now;)

when I saw this hack by el3m3nt, the first thing I did was REMOVE the whole postnuke site from my server, I better like vBindex, its just what I need.

btw I have just installed the hack by FireFly, but still no luck:(

members are only able to vote if they can see the forum this is strange, I know Im probably over looking something....god I should take a break... :D

Thanks -=dm=- I'm glad you like the site, I've managed to hack vBindex so it can power multiple pages using the format home.php?&page=template_name so I can run my how website off it, I like vBindex much more than Postnuke or vbportal which so many sites use.

Have you still got the forum set as a private forum? If you do then you need to make it so its not private and just hidden with firefly's hack... I'll post my permissions on my polls forum for you so you can see what I've got.

[EDIT]

See attached jpeg for my polls forum permissions.

[/EDIT]

-=dm=- 04-09-2002 07:21 PM

Thanx
Forums are not set as private.
as member the get no permission message and moderators and admin the get this message:
Quote:

The action you have attempted could not be performed as your session appears to be invalid. Click the below link to attempt this action again with a new session.
Try this action again!
this is strange...

EDIT:
ups!
ok thanx let me try this.

-=dm=- 04-09-2002 07:36 PM

Thanx!
now the are able to vote, cool:D:D:D
but mod/admin are still getting the above messageThe action you have attempted.....

:)

NTLDR 04-09-2002 07:36 PM

Has changing the permissions to the same as those in the attachment above made any difference?

-=dm=- 04-09-2002 08:07 PM

yeah NTLDR
it was your attachment/screenshot wich helped me out :)
"but mod/admin are still getting the above messageThe action you have attempted..... "

thanx

NTLDR 04-09-2002 08:11 PM

I think to correct that you need to clear the sessions in your database, I may be wrong though. Have you tried loging out closing the browser, visiting again, logging back in and trying to vote again?

Also can admins and mods vote in the forum on the poll? Or does that message come up then as well?

-=dm=- 04-09-2002 09:13 PM

Quote:

Also can admins and mods vote in the forum on the poll? Or does that message come up then as well?
this comes as well...
hmm... as el3m3nt say its probably not the vBindex which causing this problem.

therefor my latest posts are not related to vBindex anymore, so maybe I should
start a new thread in the "General Hacking Discussion
"
Thanx ;)

NTLDR 04-09-2002 09:32 PM

Did you try the logout, close browser, login?

If that doesn't work, I think you need to empty the 'session' table in your MySQL database.

el3m3nt 04-10-2002 01:24 PM

hmm.. dm, i got this message (session problem) on my localhost too. i dont really now what it means. But there's a link below this message. When i followed this link.. it has worked.

It cannot be a problem with vBindex.. cause the vbindex-script just reads the latest poll in the pollforum. nothing more. the action of voting.. has nothing to do with it.

ehm.. when you cannot fix it anyway.. contact a mod or a dev or just ask somebody who could help you :).

el3m3nt 04-10-2002 01:28 PM

Quote:

Originally posted by NTLDR

Thanks -=dm=- I'm glad you like the site, I've managed to hack vBindex so it can power multiple pages using the format home.php?&page=template_name so I can run my how website off it, I like vBindex much more than Postnuke or vbportal which so many sites use.

very nice idea, ntldr. something like this.. i wanna use/write too. but it has to be independent of vbulletin. another script i'm gonna write is a script which creates php-files incl. content & design.

NTLDR 04-10-2002 01:57 PM

That sounds good el3m3nt, I look forward to seeing that :D

netman 04-10-2002 02:00 PM

I am trying to install this. I am running php3 on my forum. I have this installed with all the templates. I now get this:

Parse error: parse error in /usr/sites/www.dssworld.tv/www/pages/forums/home.php on line 345

What is going on.

Netman

NTLDR 04-10-2002 02:31 PM

Quote:

Originally posted by netman
I am trying to install this. I am running php3 on my forum. I have this installed with all the templates. I now get this:

Parse error: parse error in /usr/sites/www.dssworld.tv/www/pages/forums/home.php on line 345

What is going on.

Netman

Firstly you need to change the file name to home.php3 if you are using php3 extensions, also you will need to change the file names within this hack to .php3

This hack may require PHP4+ in order to work though.

netman 04-10-2002 02:37 PM

Ok i did this and i get the same error.

NTLDR 04-10-2002 03:02 PM

This hack may only be PHP4+ compatible then, perhaps el3m3nt can tell you.

el3m3nt 04-11-2002 09:13 AM

ehm.. actually i dont really know.. vB needs PHP 4.0.4 so.. i think.. vBindex too, sorry netman.

why don't you update to the .php version?

netman 04-11-2002 10:33 AM

I guess thats my next question is what is involved in upgrading to php. all my templates reference .php3 right now. Can i upgrade easily.

el3m3nt 04-11-2002 10:44 AM

ouh nice question.. hmm.. search in the vb.com forums.. this question has been asked quite a lot, i guess.

el3m3nt 04-11-2002 10:46 AM

found: http://www.vbulletin.com/forum/showt...threadid=40858 :)

netman 04-11-2002 10:50 AM

Thanks

That is what i was looking for.

Netman

el3m3nt 04-11-2002 04:09 PM

i will release a small update i hope this week.. i'd like to include the calendar to the index-site too :).

DFT KoMFLeX 04-12-2002 12:35 AM

is it possible for me just to put the news thing on a table on a seperate page....i want some 1 to be able to post in a thread and have a prievew and a link to that forum on a new page in a table.....is this possible? that would be perfect for me..

thanx in advanced

el3m3nt 04-12-2002 10:07 AM

hmm.. you have to create a new file which only reads the newsforum and display it. also a new custom template.. would be necessary.

should i write it for you? wouldnt be a problem :).

wintz 04-12-2002 11:27 AM

I`ve just tried installing this hack but i`m getting this error

Quote:

Parse error: parse error in /home/blake/public_html/forum/index.php on line 350
any ideas how to fix this, Thanks

wooolF[RM] 04-12-2002 01:34 PM

]what's on line 350? :)


All times are GMT. The time now is 12: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.01622 seconds
  • Memory Usage 1,851KB
  • 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
  • (4)bbcode_php_printable
  • (14)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
  • (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