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)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

MuSuL 04-19-2003 04:34 AM

Quote:

Yesterday at 06:56 PM Tigga said this in Post #1084
MuSuL - By default the script will only pull threads that your users have permission to view. If it's still pulling threads which users shouldn't have persmission to view, you most likely don't have your forum permissions set correctly. Go in your Admin CP, click on "Forum Permissions", and then double check that your private forums are set not to allow users to view threads for each usergroup that shouldn't have permission, and that "Use custom settings" at the top is selected. I'm about 99% sure that if the permissions are set correctly that it will work fine, but someone is having that problem would like me to take a look let me know.


Yep, you nailed it alright. I just figured the forums would have inherited from the parent. I did the use custom setting on each and it works perfect. Thanks, I like this hack.

KelteN 04-19-2003 09:37 AM

For some reason, after installing this hack I can no longer use the "Update Counters" option. When I click on it, it just gives me a blank page. Maybe it wasn't due to this hack, but has anyone else had this problem?

Tigga 04-20-2003 08:58 PM

Alien - I just took a look at Teck's "article source" hack and it doesn't look like it would be too hard to implement it with mYvBindex. The only difference would be the modifications to the news part in your index.php file, and if you're at least a little fluent with PHP, then it shouldn't be too hard to figure out. If you have problems getting it to work though let me know and I'll post what the changes would be.

MuSuL - Glad to hear it's working right. :)

KelteN - That would have to be a problem with another hack you've installed as this script wouldn't affect any of the files you use to update your counters. I'd recommend uploading a fresh admin/misc.php file and see if that helps. If not, my next best guess would be it's something in your admin/functions.php file (that's just a guess though. ;))

Alien 04-21-2003 02:17 AM

Tigga: Hey. :) Yeah I'd appreciate the help, I've just barely began coding myself.. Like MAJOR n00b here, so I could use the pointers to help learn!

Thanks!
-Jason

Tigga 04-21-2003 03:21 AM

Ok, here's the changes you would make to your myvbindex.php instead...

Near the top of the file, look for:
index_polledit,';

Change that to
index_polledit,home_articlesource,';

Then look for:
votenum,votetotal,postid,pagetext

Replace that with:
votenum,votetotal,articlesource as sourcetitle,articlesourceurl as sourceurl,postid,pagetext

Then look for:
eval("\$newsbits .= \"".gettemplate('index_newsbits')."\";");

Right Above that Add:
PHP Code:

  $articlesource '';
  
$articlesourceurl '';
  if ( !empty( 
$news['sourceurl'] ) )
  {
    
$articlesourceurl ' href="' $news['sourceurl'] . '" target="_blank"';
  }
  if ( !empty( 
$news['sourcetitle'] ) )
  {
    eval( 
'$articlesource = "' gettemplate'home_articlesource' ) . '";' );
  } 

Then you would follow the rest of the steps in Teck's install file, except you would add $articlesource wherever you would like that to appear in your index_newsbits template instead. That should be it. :)

Jacko 04-21-2003 03:36 PM

hi there,
excellent hack and i currently have it running perfect at:

www.realmods.net

with weather to come and a few more modding of the templates still to come also.

here are some things i am after to add:

- Reviews
Bit like the way news work but members can post there reviews which will be moderated by admins, then it displays the start of the thread title and linked from the main page.

- Counter (added to the footer)
Probably dead easy to do but i am thick at any kind of code and i dont want anything but PHP, i have tried but it doesnt work if i try to include the .php file in the template.

- gallery
Users can upload or link a maximum of 10 pictures which will be displayed in the gallery pages and linked on there user profile. Each image will have the author, image name and image description and when image is clicked it opens the image up in a new page full size, as images displayed on the gallery page are thumnails.

any of these easy to do? and if so can anyone either help me do them or could do them for me etc. or a way to update it..

would be great additionas to do :rolleyes:

cheers. :beard:

Jacko 04-21-2003 09:40 PM

or any other hacks that i can use to incorporate the features i need ??!

Tigga 04-21-2003 10:59 PM

Well a "reviews" section probably wouldn't be too hard in your case. Since you don't appear to be using the latest threads portion of the script, you could fairly easily turn that into a reviews section instead. You would just make a new forum for your reviews and make sure permissions are set correctly so you can moderate new threads. Then just open your myvbindex.php file and look for:
WHERE open<>10 $iforumperms

Replace that with:
WHERE open<>10 AND forumid=XX
(you would just replace XX there with the forumid of your reviews forum)
Also, in that same line of code you will see "ORDER BY lastpost". If you wanted the threads to be displayed in the order they were created rather than by when the last post was made, you could replace that with "ORDER BY threadid". That should be enough to get you started on that.

As for a a counter system, see this post on vbulletin.com and it should help you to include the file for the counter.

As for a photo gallery hack, there's at least one or two released here. Some other solutions you might look at would be http://photopost.com, http://4homepages.de, http://gallery.menalto.com/, There's a million other image gallery scripts out there as well, so just look around. ;)

Hopefully I'll have my advanced version of this script finished up in a few months. It will include everything you asked about here and a lot more, but it'll be a little while before it's finished, and it won't be free. ;)

Jacko 04-22-2003 12:07 PM

personally i dont mind paying for it at all. if you need any beta testing of anything to do with myvbindex dont hesistate to contact me via ICQ or mail.

and thank you for the info i will look into it all now.

edit
__________

ok i now got the reviews showing up on the main page, is there anyway that they only get displayed after they have been moderated, i have a thread which is yet to be authorised yet it is showing up on the main page.??

again cheers.

Red Blaze 04-22-2003 02:20 PM

I don't mind paying for it at all either. Well, depending how much it's gonna be really. =s I'm not loaded. XD


All times are GMT. The time now is 06:51 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.02813 seconds
  • Memory Usage 1,758KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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