vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   V3Arcade - Scrollable news / more news (https://vborg.vbsupport.ru/showthread.php?t=71139)

frankenberrie 10-28-2004 10:00 PM

V3Arcade - Scrollable news / more news
 
[MOD] V3Arcade - Scrollable news / more news

This little mod will make your news window thats on the main Arcade screen / Arcade category screen scrollable.

Files to modify
Arcade.php

Templates to modify:
arcade_main
arcade_main_category (if your using the category mod)



**** DONT FORGET TO BACK UP BEFORE U MODIFY ****


Here what to do:
Open your admincp ==> Styles & Templates ==> Style Manager ==> Edit templates

Open up the arcade_main template
FIND:
Code:

$arcadenews
Add this directly above that:
Code:

<div style="height:125px; width:100%; overflow:auto;">
If you have the category mod installed:

Open the arcade_main_category template
FIND:
Code:

$arcadenews
Add this directly above that:
Code:

<div style="height:125px; width:100%; overflow:auto;">

NOTE: CHANGE :
Code:

height:125px to your liking
Now to make more news available for viewing. Remember, depending on how much news you set to view, this can have an effect on your sites performance.

Open up Arcade.php
FIND: (if you are using the category mod, this like will be in there twice)
Code:

$newsresult = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "gamenews ORDER BY datestamp DESC LIMIT 4");
SET Number of new items to show by changing this:
Code:

LIMIT 4
Hope this can be usefull. Just click install if you use.

The Realist 10-29-2004 05:43 PM

<div style="height:125px; width:100%; overflow:auto;"> you say above?

Do you mean before?

My line looks like:
$welcomeblock
<td class="alt1" width="40%" valign="top">$arcadenews</td>
</tr>
</table></td>

Laters

docvader 12-17-2004 11:00 PM

Mine kind of looks like that too, :). I tried to input this, but can't figure out how to make it work with this code. Any ideas?

Sooner95 12-22-2004 12:28 AM

same here... anyone???

BTPRex 12-27-2004 06:53 PM

Same Problem here :S

Psybadek 01-14-2005 11:54 AM

It works fine for me the way described. :)

sim tech 02-28-2005 04:01 AM

Quote:

Originally Posted by The Realist
<div style="height:125px; width:100%; overflow:auto;"> you say above?

Do you mean before?

My line looks like:
$welcomeblock
<td class="alt1" width="40%" valign="top">$arcadenews</td>
</tr>
</table></td>

Laters

I am runing 3.0.7 and inserted it as follows:


PHP Code:

            $welcomeblock
</td
          <
td class="alt1" width="40%" valign="top">
<
div style="height:125px; width:100%; overflow:auto;"
$arcadenews
</td
        </
tr
      </
table></td

Note that I added a </td> just below $welcomeblock And moved the </td> from the end of the mod line to below the $arcadenews.

I don't have the catagory mod, so I skipped that part and went directly to modding arcade.php (I set mine to DESC LIMIT 48)... I had to change the mod slightly 'cause the original one caused the frames that the scroll bar was in to triple in size.

Thanks for the mod - I've been wanting to do that but did not know how! Hope I didn't step on any toes by changing mine a bit... (php newbie here)

sim tech 02-28-2005 05:11 AM

modding
Quote:

height:125px to your liking
Still causes the frams size to go haywire though I had mine increased to 140 until I checked it on another pc and saw that it screwed up the frame size.

This mod gets 5 stars from me though! Sweet!

Polo 03-14-2005 03:06 PM

Quote:

Originally Posted by sim tech
I am runing 3.0.7 and inserted it as follows:


PHP Code:

            $welcomeblock
</td
          <
td class="alt1" width="40%" valign="top">
<
div style="height:125px; width:100%; overflow:auto;"
$arcadenews
</td
        </
tr
      </
table></td

Note that I added a </td> just below $welcomeblock And moved the </td> from the end of the mod line to below the $arcadenews.

I don't have the catagory mod, so I skipped that part and went directly to modding arcade.php (I set mine to DESC LIMIT 48)... I had to change the mod slightly 'cause the original one caused the frames that the scroll bar was in to triple in size.

Thanks for the mod - I've been wanting to do that but did not know how! Hope I didn't step on any toes by changing mine a bit... (php newbie here)

Mine worked using this method...

YLP1 04-04-2005 03:17 PM

This is an awesome mod..... I would love to have this on my portal latest topics versus an auto scrolling. Could the code that is used on this work for the latest topics?


All times are GMT. The time now is 10:03 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.01175 seconds
  • Memory Usage 1,750KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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