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)
-   -   Simple newsportal / thread overview to add to your board... (https://vborg.vbsupport.ru/showthread.php?t=38334)

dgmayor 01-07-2003 05:21 PM

Well, I don't allow users to select styles on my board. Each category ties into a site with its own layout, thus each category has its own layout that blends it into the site.

www.lmalla.com and click on the Everquest logo for an example (It's the only one I have public atm). Click on forums and you'll see what I mean. When you click on forums, you're looking at a category under forumdisplay, not forumhome.

Also the news on that page is with your hack, though I have the style hardcoded in the templates atm.

KuraFire 01-07-2003 10:28 PM

hmkay, well, it's quite easy to get a page to use a different style.

1) install freddie's User's Style in Post hack;
2) set the variable $changestyle with a styleid of choice _before_ including global.php in the file :)

you can pass the variable through the URL also...

So then you can send people from each category to see it in that cat's style. But note that each of them will still see the exact same _content_, just not in the same style :)

ForKmaN 04-13-2003 01:44 PM

Does this work for 2.3.0?

Coz I cant find this in newthread.php:
PHP Code:

'1')"); 


KuraFire 04-14-2003 09:05 AM

Actually, you can do it without the newthread.php modification and the mysql database modification. Instead, you can use this hack WITHOUT MODIFYING ANYTHING to your site. Just open newsportal.php from the hack, and use this query at the start:

PHP Code:

SELECT thread.threadid as tidthread.title as ttitle
thread.replycount as treplythread.postusername as user
thread.postuserid as useridthread.dateline as dateline
post.pagetext as pagetextMIN(p.postid) as postid 
FROM thread 
LEFT JOIN post USING 
(threadid
WHERE forumid=$newsforum 
GROUP BY thread
.threadid 
ORDER BY thread
.threadid DESC 
LIMIT $newslimit 

That should work fine, and you don't have to modify any files or your database anymore, with that query. :)

Robink 04-21-2003 10:52 AM

^What you posted is another bugfix? Or it fixes the same bug? Or is it not related to the random post bug?

Or am I confused! ;)

Sharg 04-21-2003 07:41 PM

Quote:

04-14-03 at 10:05 AM KuraFire said this in Post #84
Actually, you can do it without the newthread.php modification and the mysql database modification. Instead, you can use this hack WITHOUT MODIFYING ANYTHING to your site. Just open newsportal.php from the hack, and use this query at the start:

PHP Code:

SELECT thread.threadid as tidthread.title as ttitle
thread.replycount as treplythread.postusername as user
thread.postuserid as useridthread.dateline as dateline
post.pagetext as pagetextMIN(p.postid) as postid 
FROM thread 
LEFT JOIN post USING 
(threadid
WHERE forumid=$newsforum 
GROUP BY thread
.threadid 
ORDER BY thread
.threadid DESC 
LIMIT $newslimit 

That should work fine, and you don't have to modify any files or your database anymore, with that query. :)

Hello, what do you mean exactly when you say to run this query at the start of the file ? Should we siply copy past this, and where ?

Thanks in advance,
Shart

Robink 04-22-2003 07:40 AM

I think he means we replace the existing query :s

KuraFire 04-22-2003 01:14 PM

Yeah, there's a query VERY much like that one at the start of newsportal.php, just replace it with the one you see above :)

Robink 04-22-2003 06:51 PM

What will this new query do? Fix the bug?

KuraFire 04-22-2003 07:05 PM

Yes.


All times are GMT. The time now is 11:31 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.01190 seconds
  • Memory Usage 1,752KB
  • 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_php_printable
  • (1)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
  • (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