The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
proaracde (admin) modify game hack
i'm after a simple hack to have jump to links at the top of the page just like the vbulletin-Options page.
|
#2
|
||||
|
||||
Be more specific please? Screenshot?
|
#3
|
||||
|
||||
like this, you know the way you have the links at the top of the page to jump to each different setting group, i'd like something like that in the https://vborg.vbsupport.ru/admin/pro...ction=modify&s= to jump to each game rather than having to seach via scrolling
|
#4
|
||||
|
||||
A dropdown box?!
|
#5
|
||||
|
||||
Quote:
But anyways, why not just hardcode the values? How many games do you have? |
#6
|
||||
|
||||
got about 20 games, and to hardcode it would mean having to edit the page source every time i add a game, where if it was automatically done via the database it would say me so much stress.
|
#7
|
||||
|
||||
Quote:
try doing this query in the segment of the proarcade.php file that is used whenever you view/play a game: Code:
$gamenames = $DB_site->query('SELECT gameid,gamename FROM gametable ORDER BY gamename ASC'); then add this code below that: Code:
$gamenamesblock = '<table border="0"><tr valign="top"><td>'; $numgames = $DB_site->num_rows($gamenames); $halfway = ceil($numgames/2); $counter = 0; while ($row = $DB_site->fetch_array($gamenames)) { if ($counter++ == $halfway) { $gamenamesblock .= '</td><td>'; } $gamenamesblock .= "<a href='proarcade.php?game=$row[gameid]'>$row[gamename]</a><br>\n"; } $gamenamesblock .= '</td></tr></table>'; and then you can use $gamenamesblock in the template that is used for the games (make sure that you use the template that is used in that same segment of proarcade.php where you place this code in). Should work. |
#8
|
||||
|
||||
wow i really never saw this
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|